Chapter 3. I/O PORT
3.3 PORT R2
3.3.1 PORT R2 Registers
REGISTERS
R2 I/O Data Direction Register
R2 Data Register
SYMBOL
R2DD
R2
R/W
W
RESET VALUE
ADDRESS
00C5H
00H
R/W
Undefined
00C4H
Table 3.3 Port R2 Registers
3.3.2 I/O Data Direction Register (R2DD)
bit
7
6
5
4
3
2
1
0
R2DD7
R2DD6
R2DD5
R2DD4
R2DD3
R2DD2
R2DD1
R2DD0
R2DD
<00C5H>
initial value
R/W
0
W
0
W
0
W
0
0
0
0
0
W
W
W
W
W
R2 Data Direction Register(R2DD) is 8-bit register, and can assign input state or output
¡ È ¡ È
state or output state to each bit. If R2DD is
¡ È ¡ È
1 , port R2 is in the output state, and if
0
, it is in the input state.
¡ È
¡ È
R2DD is write-only register. Since R2DD is initialized as 00H in reset state, the
whole port R2 becomes input state.
3.3.3 Data Register (R2)
bit
7
6
5
4
3
2
1
0
R27
R26
R25
R24
R23
R22
R21
R20
R2
<00C4H>
initial value
R/W
X
R/W
X
R/W
X
R/W
X
X
X
X
X
R/W
R/W
R/W
R/W
R/W
R2 Data Register(R2) is 8-bit register to store data of port R2.
When setted as the output state by R2DD, and data is written in R2, data is output into
R2 pin. When setted as input state, input state of pin is read.
The initial value of R2 is unknown in reset state.
3 - 5