Chapter 3. I/O PORT
3.2 PORT R1
PIN NAME
PORT SELECTION
FUNCTION SELECTION
R10
R10(I/O)
R11(I/O)
R12(I/O)
R13(I/O)
R14(I/O)
R15(I/O)
R16(I/O)
R17(I/O)
R11/INT1
R12/INT2
R13
INT1 (INPUT)
INT2 (INPUT)
R14/EC
R15/T2
R16/T1
R17/T0
EC (INPUT)
T2(OUTPUT)
T1(OUTPUT)
T0(OUTPUT)
Fig 3.1 Pin Function of port R1
3.2.1 PORT R1 Register
REGISTER
SYMBOL
R1DD
R1
R/W
W
RESET VALUE
00H
ADDRESS
00C3H
R1 I/O Data Direction Register
R1 Data Register
R/W
W
Undefined
00H
00C2H
R1 Port Mode Register
PMR1
00C9H
R1 Port Open drain Assign
Register
R10DC
W
00H
00CEH
Table 3.1 Port R1 Registers
3.2.2 I/O Data Direction Register (R1DD)
bit
7
6
5
4
3
2
1
0
R1DD7
R1DD6
R1DD5
R1DD4
R1DD3
R1DD2
R1DD1
R1DD0
R1DD
<00C3H>
initial value
R/W
0
W
0
0
0
0
0
0
0
W
W
W
W
W
W
W
R1 Data Direction Register(R1DD) is 8-bit register, and can assign input state or output
¡ È ¡ È ¡ È ¡ È
state to each bit. If R1DD is
1
, port R1 is in the output state, and if , it is in the
0
¡ È
¡ È
input state. R1DD is write-only register. Since R1DD is initialized as 00H in reset
state, the whole port R1 becomes input state.
3 - 2