Are all i/o's on microcontroller are considered as digital I/O's including ATD pins?

Thread Starter

Nitin Sasture

Joined Nov 4, 2014
1
hi,
I do want to ask if all the pins on microcontroller are digital i/o's?
Since in a spec of freesclae datasheet.
It was mentioned that all digital i/o's are clamped to 5V internally.Does it mean analog pins also clamped to 5V?
 

Papabravo

Joined Feb 24, 2006
13,958
Modern processors can assign multiple functions to a single pin. They can even be a mix of inputs and outputs on the same pin. Usually pins default to some state at power up and you really need to know what that state is. Many development problems revolve around making the wrong assumptions about what state a pin is actually in.
 

WBahn

Joined Mar 31, 2012
25,923
hi,
I do want to ask if all the pins on microcontroller are digital i/o's?
Since in a spec of freesclae datasheet.
It was mentioned that all digital i/o's are clamped to 5V internally.Does it mean analog pins also clamped to 5V?
You'd have to look at the spec sheet, possibly very carefully, to determine if the clamping applies to the analog pins -- but it almost certainly does since it is usually the pad that performs this function and since, regardless of whether it is digital or analog I/O, the goal is to protect the chip from voltage above (or below) particular limits.
 

ErnieM

Joined Apr 24, 2011
8,046
I know Microchip has specific warnings about the pins having both analog and digital functions. Seems there is a additional internal structure (the details escape me) that leads to the advice to never use such a pin to catch an over voltage. While the device remains safe the over voltage will creap into all the other analog pins thus corrupting their readings while the over voltage exists.

Do check your spec sheet carefully if you are using that diode in your app. If you are just concerned about ESD they don't worry so much.
 
Top