Data Direction
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DIR[7:0] | |||||||
AccessR/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
Reset0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Data Direction
This bit field does not control the digital input buffer. The digital input buffer for pin n (Pxn) can be configured in the Input/Sense Configuration (ISC) bit field in the Pin n Control (PORTx.PINnCTRL) register.
The table below shows the available configuration for each bit n in this bit field.
Value | Description |
---|---|
0 | Pxn is configured as an input-only pin, and the output driver is disabled |
1 | Pxn is configured as an output pin, and the output driver is enabled |