Datasheet

Miscellaneous and GPIO Configuration Registers
9−3
SLLS535E − April 2008 TUSB6250
9.2 PUPDSLCT_P2: GPIO Pullup and Pulldown Resistor Selection Register for Port 2
(XDATA at F08A)
The PUPDSLCT_P2 register allows the MCU to select either the pullup or pulldown resistors on the MCU
port-2 GPIO pins. To turn off both the pullup and pulldown resistors, the MCU must configure the
corresponding bit in the PUPDPWDN_P2 register.
PUSEL[N] means the pullup/pulldown resistor selection for pin P2.N.
76543210
RSV PUSEL6 PUSEL5 PUSEL4 RSV RSV RSV PUSEL0
R/O R/W R/W R/W R/O R/O R/O R/W
BIT
NAME RESET FUNCTION
0 PUSEL0 0 Port-2 GPIO pin P2.0 pullup and pulldown resistor selection by the MCU.
If the MCU sets this bit to 1, the pullup resistor is selected and the pulldown resistor is
deselected.
If the MCU clears this bit to 0, the pulldown resistor is selected and the pullup resistor is
deselected.
The power-up default is the pullup resistor disabled and the pulldown resistor enabled for the P2.0
pin.
3−1 RSV 000b Reserved
6−4 PUSEL[N]
(N = 4 to 6)
111 Port-2 GPIO pin P2.4–P2.6 pullup and pulldown resistor selection by the MCU.
If the MCU sets any of these bits to 1, the corresponding pullup resistor is enabled and the
pulldown resistor is disabled.
If the MCU clears any of these bits to 0, the corresponding pulldown resistor is enabled and
the pullup resistor is disabled.
The power-up default is the pullup resistor enabled and the pulldown resistor disabled for pins
P2.4–P2.6.
7 RSV 0 Reserved