CHAPTER 5 PORT FUNCTIONS
Preliminary User’s Manual U17260EJ3V1UD
127
(2) Port registers (P0 to P7, P12 to P14)
These registers write the data that is output from the chip when data is output from a port.
If the data is read in the input mode, the pin level is read. If it is read in the output mode, the value of the output
latch is read.
These registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to 00H.
Figure 5-27. Format of Port Register
7
0
Symbol
P0
6
P06
5
P05
4
P04
3
P03
2
P02
1
P01
0
P00
Address
FF00H
After reset
00H (output latch)
R/W
R/W
P17
P1
P16
P15
P14
P13
P12
P11
P10
FF01H
00H (output latch)
R/W
R/W
P27
P2
P26
P25
P24
P23
P22
P21
P20
FF02H
00H (output latch)
0
P3
0
0
0
P33
P32
P31
P30
FF03H
00H (output latch)
R/W
P4
P43
P42
P41
P40
FF04H
00H (output latch)
R/W
P5
P53
P52
P51
P50
FF05H
00H (output latch)
R/W
P6
P63
P62
P61
P60
FF06H
00H (output latch)
R/W
P77
P7
P76
P75
P74
P73
P72
P71
P70
FF07H
00H (output latch)
R/W
0
P12
0
0
P124
P123
P122
P121
P120
FF0CH
00H (output latch)
R/W
0
P13
0
0
0
0
0
0
P130
FF0DH
00H (output latch)
R/W
0
P14
0 P141
P140
FF0EH
00H (output latch)
R/W
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
m = 0 to 7, 12 to 14; n = 0 to 7
Pmn
Output data control (in output mode)
Input data read (in input mode)
0
Output 0
Input low level
1
Output 1
Input high level