CMS32L051 User Manual |Chapter 2 Pin Function
www.mcu.com.cn 26 / 703
2.3.6 Pull-down resistor selection register (PDxx)
Selection register for internal pull-down resistors. The internal pull-down resistor can only be used in bits
for bits specified by the drop-down resistor select register using the pin using the internal pull-down resistor and
the POMmn bit is 0 and set to input mode (PMmn=1). For bits set to output mode, independent of the setting
of the pull-down resistor selection register, no internal pull-down resistor is connected. The same is true when
used as the output pin for the multiplexing function or when set to an analog function.
After the reset signal is generated, the values of these registers become 00H.
Register address = base address + offset address; the base address of the PD register is 0x40040000, and
the offset address is shown in the figure below.
Figure 2-6 Format of pull-up resistor selection register
Selection of internal pull-down resistors for the Pmn pin (m=0~3, 5~7, 12~14, n=0~7).
Note 1 The initial value must be set for the unassigned bits.
Note 2 It is limited to CMS32L051xx-S series products. For products other than the CMS32L051xx-S series, ports
P60 and P61 do not have pull-up and pull-down functions of their own and must be used with external pull-up
resistors.