17.5.11 Pin n Control
Name: | PINCTRL |
Offset: | 0x10 + n*0x01 [n=0..7] |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
INVEN | PULLUPEN | ISC[2:0] | |||||||
Access | R/W | R/W | R/W | R/W | R/W | ||||
Reset | 0 | 0 | 0 | 0 | 0 |
Bit 7 – INVEN Inverted I/O Enable
Value | Description |
---|---|
0 | I/O on pin n not inverted |
1 | I/O on pin n inverted |
Bit 3 – PULLUPEN Pullup Enable
Value | Description |
---|---|
0 | Pullup disabled for pin n |
1 | Pullup enabled for pin n |
Bits 2:0 – ISC[2:0] 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 |