34.11.3 I/O Pin Configurations
The Pin Configuration register (PINCFGn) is used for additional I/O pin configuration. A pin can be set in a totem-pole, open-drain, or pull configuration.
As pull configuration is done through the Pin Configuration register, all intermediate PORT states during switching of pin direction and pin values are avoided.
The I/O pin configurations are described further in this chapter and summarized in the following table:
DIR | INEN | PULLEN | OUT | Configuration |
---|---|---|---|---|
0 | 0 | 0 | X | Reset or analog I/O: all digital disabled |
0 | 0 | 1 | 0 | Pull-down; input disabled |
0 | 0 | 1 | 1 | Pull-up; input disabled |
0 | 1 | 0 | X | Input |
0 | 1 | 1 | 0 | Input with pull-down |
0 | 1 | 1 | 1 | Input with pull-up |
1 | 0 | X | X | Output; input disabled |
1 | 1 | X | X | Output; input enabled |
Note: X=Don't care.