CHAPTER 4 PORT FUNCTIONS
User’s Manual U16898EJ3V0UD
62
Figure 4-14. Format of Port Register
Address: FF02H After reset: 00H (Output latch) R/W
Symbol
7 6 5 4 3 2 1 0
P2 0 0 0 0
P23
P22
P21
P20
Address: FF03H After reset: 00H
Note
(Output latch) R/W
Note
Symbol
7 6 5 4 3 2 1 0
P3 0 0 0
P34
0 0
P31
P30
Address: FF04H After reset: 00H (Output latch) R/W
Symbol
7 6 5 4 3 2 1 0
P4 0
0 P45 P44 P43 P42 P41 P40
Address: FF0CH After reset: 00H (Output latch) R/W
Symbol
7 6 5 4 3 2 1 0
P12
0 0 0 0
P123
P122
P121
0
Address: FF0DH After reset: 00H (Output latch) R/W
Symbol
7 6 5 4 3 2 1 0
P13
0 0 0 0 0 0 0
P130
m = 2, 3, 4, 12, or 13; n = 0-5
Pmn
Controls of output data (in output mode)
Input data read (in input mode)
0
Output 0
Input low level
1
Output 1
Input high level
Note
Because P34 is read-only, its reset value is undefined.
(3) Port mode control register 2 (PMC2)
This register specifies the port mode or A/D converter mode.
Each bit of the PMC2 register corresponds to each pin of port 2 and can be specified in 1-bit units.
PMC2 is set by using a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets PMC2 to 00H.