EasyManua.ls Logo

Cmsemicon CMS32L051 - Pull-Up Resistor Selection Register (Puxx)

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 2 Pin Function
www.mcu.com.cn 25 / 703
2.3.5 Pull-up resistor selection register (PUxx)
Selection register for internal pull-up resistors. The internal pull-up resistor can only be used in bits for bits
specified by the pull-up resistor select register using the pin using the internal pull-up 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-up
resistor selection register, the internal pull-up resistor is not 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 pull-up function of the four ports P10, P26, P40, and P137 is turned
on by default (PU10, PU26, PU40, PU137 Reset Value is 1), and the pull-up function of other ports is not
turned on by default.
Register address = base address + offset address; the base address of the PU register is 0x40040000, and
the offset address is shown in the figure below.
Figure 2-5 Format of pull-up resistor selection register
symbol
7
6
5
4
3
2
1
0
address
After reset
R/W
PU0
0
0
0
0
0
0
PU01
PU00
0x030
00H
R/W
PU1
PU17
PU16
PU15
PU14
PU13
PU12
PU11
PU10
0x031
01H
R/W
PU2
PU27
PU26
PU25
PU24
PU23
PU22
PU21
PU20
0x032
40H
R/W
PU3
0
0
0
0
0
0
PU31
PU30
0x033
00H
R/W
PU4
0
0
0
0
0
0
PU41
PU40
0x034
01H
R/W
PU5
0
0
0
0
0
0
PU51
PU50
0x035
00H
R/W
PU6
0
0
0
0
PU63
PU62
PU61
Note2
PU60
Note2
0x036
00H
R/W
PU7
0
0
PU75
PU74
PU73
PU72
PU71
PU70
0x037
00H
R/W
PU12
0
0
0
0
0
0
0
PU120
0x03C
00H
R/W
PU13
PU137
PU136
0
0
0
0
0
PU130
0x03D
80H
R/W
PU14
PU147
PU146
0
0
0
0
0
PU140
0x03E
00H
R/W
PUmn
Selection of internal pull-up resistors for Pmn pins (m=0~7, 12~14, n=0~7)
0
Internal pull-up resistors are not connected.
1
Connect an internal pull-up resistor.
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.

Table of Contents

Related product manuals