EasyManua.ls Logo

Cmsemicon CMS32L051 - Port Mode Control Register (Pmcxx)

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 28 / 703
2.3.8 Port mode control register (PMCxx)
The PMC register sets the port in bits to be used as a digital input/output or as an analog channel.
After the reset signal is generated, P10, P26, P130 are used as digital channels by default (PMC10,
PMC26, PMC130 reset value is 0,), and other ports are used as analog channels by default. P40, P41, P60,
P61, P122~P124, P137 only has digital function and cannot be used as an analog channel.
Register address = base address + offset address; the base address of the PMC register is 0x40040000,
and the offset address is shown in the figure below.
Figure 2-8 Format of port mode control register
symbol
7
6
5
4
3
2
1
0
address
after reset
R/W
PMC0
1
1
1
1
1
1
PMC01
PMC00
0x060
FFH
R/W
PMC1
PMC17
PMC16
PMC15
PMC14
PMC13
PMC12
PMC11
PMC10
0x061
FEH
R/W
PMC2
PMC27
PMC26
PMC25
PMC24
PMC23
PMC22
PMC21
PMC20
0x062
DFH
R/W
PMC3
1
1
1
1
1
1
PMC31
PMC30
0x063
FFH
R/W
PMC5
1
1
1
1
1
1
PMC51
PMC50
0x065
FFH
R/W
PMC6
1
1
1
1
PMC63
PMC62
PMC61
Note 2
PMC60
Note 2
0x066
FFH
R/W
PMC7
1
1
PMC75
PMC74
PMC73
PMC72
PMC71
PMC70
0x067
FFH
R/W
PMC12
1
1
1
1
1
1
1
PMC120
0x06C
FFH
R/W
PMC13
0
PMC136
1
1
1
1
1
PMC130
0x06D
7EH
R/W
PMC14
PMC147
PMC146
1
1
1
1
1
PMC140
0x06E
FFH
R/W
PMCmn
Selection of digital input/output or analog input for the Pmn pin (m=0~3, 5~7, 12~14, n=0~7)
0
Digital inputs/outputs (multiplexing functions other than analog inputs).
1
Analog input
Note: 1. The initial value must be set for the unassigned bits.
2. It is limited to CMS32L051xx-S series products. For products other than the CMS32L051xx-S series, ports P60, P61
can only be used as digital pins.
3. Ports P40, P41, P121~P124, P137 are not supported as analog channels.
4. P10, P26, P130 are used as digital channels by default after reset.
5. In addition to the above ports, other ports are used as analog channels by default after reset.

Table of Contents

Related product manuals