Pin n Control
| Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| INVEN | PULLUPEN | ISC[2:0] | |||||
| AccessR/W | R/W | R/W | R/W | R/W | |||
| Reset0 | 0 | 0 | 0 | 0 | |||
Inverted I/O Enable
| Value | Description |
|---|---|
| 0 | I/O on pin n not inverted |
| 1 | I/O on pin n inverted |
Pullup Enable
| Value | Description |
|---|---|
| 0 | Pullup disabled for pin n |
| 1 | Pullup enabled for pin n |
Input/Sense Configuration
These bits configure the input and sense configuration of pin n. The sense configuration determines how a port interrupt can be triggered. If the input buffer is disabled, the input cannot be read in the IN register.
| Value | Name | Description |
|---|---|---|
| 0x0 | INTDISABLE | Interrupt disabled but input buffer enabled |
| 0x1 | BOTHEDGES | Sense both edges |
| 0x2 | RISING | Sense rising edge |
| 0x3 | FALLING | Sense falling edge |
| 0x4 | INPUT_DISABLE | Digital input buffer disabled |
| 0x5 | LEVEL | Sense low level |
| other | - | Reserved |