Pin n Control

Name:
PINCTRL
Offset:
0x10 + n*0x01 [n=0..7]
Reset:
0x00
Access:
-
Bit76543210
INVENPULLUPENISC[2:0]
AccessR/WR/WR/WR/WR/W
Reset00000

Bit 7 – INVEN: Inverted I/O Enable

Inverted I/O Enable

ValueDescription
0 Input and output values are not inverted
1 Input and output values are inverted

Bit 3 – PULLUPEN: Pullup Enable

Pullup Enable

ValueDescription
0 Pullup disabled for pin n
1 Pullup enabled for pin n

Bits 2:0 – ISC[2:0]: Input/Sense Configuration

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.

ValueNameDescription
0x0 INTDISABLE Interrupt disabled but input buffer enabled
0x1 BOTHEDGES Interrupt enabled with sense on both edges
0x2 RISING Interrupt enabled with sense on rising edge
0x3 FALLING Interrupt enabled with sense on falling edge
0x4 INPUT_DISABLE Interrupt and digital input buffer disabled
0x5 LEVEL Interrupt enabled with sense on low level
other - Reserved