
8
8-11
32170/32174 Group User's Manual (Rev. 2.1)
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8.3 Input/Output Port Related Registers
<When reset : H'00>
D
Bit Name
Function
R
W
0
Pn0DIR (Port Pn0 direction bit)
0: Input mode (when reset)
1
Pn1DIR (Port Pn1 direction bit)
1: Output mode
2
Pn2DIR (Port Pn2 direction bit)
3
Pn3DIR (Port Pn3 direction bit)
4
Pn4DIR (Port Pn4 direction bit)
5
Pn5DIR (Port Pn5 direction bit)
6
Pn6DIR (Port Pn6 direction bit)
7
Pn7DIR (Port Pn7 direction bit)
Note 1: The following bits have no functions assigned (when read, the bit = 0; writing to the bit has no effect).
P40, P60, P64, P80, P81, P90-P92, P120-P123, P170, P171, P204-P207, P221, P226, P227
Note 2: When reset, all ports are placed in input mode.
Note 3: Port P64 is input mode-only. The register does not have a P64DIR bit.
Note 4: Ports P80 and P81 are input mode-only. The register does not have P80DIR and P81DIR bits.
Note 5: Port P221 is input mode-only. The register does not have a P221DIR bit.