42
Chapter 2
Pin Functions
Preliminary User’s Manual U17566EE1V2UM00
(1)
PMn - Port mode register
The PMn register specifies whether the individual pins of the port group n are
in input mode or in output 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
FF
H
or FFFF
H
. This register is initialized by any reset.
7
6
5
4
3
2
1
0
PMn7
PMn6
PMn5
PMn4
PMn3
PMn2
PMn1
PMn0
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
PMn15 PMn14 PMn13 PMn12 PMn11 PMn10 PMn9
PMn8
PMn7
PMn6
PMn5
PMn4
PMn3
PMn2
PMn1
PMn0
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-4
PMn register contents
Bit position
Bit name
Function
7 to 0
or
15 to 0
PMn[7:0]
or
PMn[15:0]
Specifies input/output mode of the corresponding pin
0: Output mode (output enabled)
1: Input mode (output disabled)
electronic components distributor