16.5.11 Pin n Control

Name: PINCTRL
Offset: 0x10 + n*0x01 [n=0..7]
Reset: 0x00
Property: -

Bit 76543210 
 INVEN   PULLUPENISC[2:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bit 7 – INVEN Inverted I/O Enable

ValueDescription
0I/O on pin n not inverted
1I/O on pin n inverted

Bit 3 – PULLUPEN Pullup Enable

ValueDescription
0Pullup disabled for pin n
1Pullup 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.

ValueNameDescription
0x0INTDISABLEInterrupt disabled but input buffer enabled
0x1BOTHEDGESSense both edges
0x2RISINGSense rising edge
0x3FALLINGSense falling edge
0x4INPUT_DISABLEDigital input buffer disabled
0x5LEVELSense low level
other-Reserved