English
Language : 

GMS81004 Datasheet, PDF (34/101 Pages) Hynix Semiconductor – 8-BIT SINGLE CHIP MICROCOMPUTERS
Chapter 3. I/O PORT
3.2 PORT R1
PIN NAME
R10
R11/INT1
R12/INT2
R13
R14/EC
R15/T2
R16/T1
R17/T0
PORT SELECTION
R10(I/O)
R11(I/O)
R12(I/O)
R13(I/O)
R14(I/O)
R15(I/O)
R16(I/O)
R17(I/O)
FUNCTION SELECTION
INT1 (INPUT)
INT2 (INPUT)
EC (INPUT)
T2 (OUTPUT)
T1 (OUTPUT)
T0 (OUTPUT)
Fig 3.1 Pin Function of port R1
3.2.1 PORT R1 Register
REGISTER
R1 I/O Data Direction Register
R1 Data Register
R1 Port Mode Register
R1 Port Open drain Assign
Register
SYMBOL
R1DD
R1
PMR1
R10DC
R/W
W
R/W
W
W
RESET VALUE
00H
Undefined
00H
ADDRESS
00C3H
00C2H
00C9H
00H
00CEH
Table 3.1 Port R1 Registers
3.2.2 I/O Data Direction Register (R1DD)
bit
R1DD
initial value
R/W
7
R1DD7
0
W
6
R1DD6
0
W
5
R1DD5
0
W
4
R1DD4
0
W
3
R1DD3
0
W
2
R1DD2
0
W
1
R1DD1
0
W
0
R1DD0
0
W
<00C3H>
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 ¡È0¡È, it is in the
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