43
Pin Functions
Chapter 2
Preliminary User’s Manual U17566EE1V2UM00
(2)
PMCn - Port mode control register
The PMCn register specifies whether the individual pins of port group n are in
port mode or in alternative mode.
For port groups with up to eight ports, this is an 8-bit register. For port groups
with up to 16 ports, this is a 16-bit register.
Access
This register can be read/written in 8-bit and 1-bit units.
16-bit registers can also be read/written in 16-bit units.
Address
see
“Port Group Configuration“ on page 56
Initial Value
00
H
or 0000
H
. This register is initialized by any reset.
(3)
PFCn - Port function control register
If a pin is in alternative mode and serves as an output pin (PMn.PMnm = 0)
some pins offer two output functions ALT1-OUT and ALT2-OUT.
The 8-bit PFCn register specifies which output function of a pin is to be used.
Access
This register can be read/written in 8-bit and 1-bit units.
Address
see
“Port Group Configuration“ on page 56
Initial Value
PFC0: 20
H
other PFCn: 00
H
This register is initialized by any reset.
7
6
5
4
3
2
1
0
PMCn7
PMCn6
PMCn5
PMCn4
PMCn3
PMCn2
PMCn1
PMCn0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PMCn15 PMCn14 PMCn13 PMCn12 PMCn11 PMCn10 PMCn9
PMCn8
PMCn7
PMCn6
PMCn5
PMCn4
PMCn3
PMCn2
PMCn1
PMCn0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 2-5
PMCn register contents
Bit position
Bit name
Function
7 to 0
or
15 to 0
PMCn[7:0]
or
PMC[15:0]
Specifies the operation mode of the corresponding pin
0: Port mode
1: Alternative mode
7
6
5
4
3
2
1
0
PFCn7
PFCn6
PFCn5
PFCn4
PFCn3
PFCn2
PFCn1
PFCn0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 2-6
PFCn register contents
Bit position
Bit name
Function
7 to 0
PFCn[7:0]
Specifies the output function of the pin
0: Alternative output mode 1 (ALT1-OUT)
1: Alternative output mode 2 (ALT2-OUT)
See
“Port Group Configuration“ on page 56
for a list of
the possible output modes.
electronic components distributor