HMS81C2012A/2020A
SEP. 2004 Ver 2.00
37
R1 and R0IO register:
R1 is an 8-bit high-voltage CMOS
bidirectional I/O port (address 0C2
H
). Each port can be set
individually as input and output through the R1IO register
(address 0C3
H
). Each port can directly drive a vacuum flu-
orescent display.
R2 and R2IO register:
R2 is an 8-bit high-voltage CMOS
bidirectional I/O port (address 0C4
H
). Each port can be set
individually as input and output through the R2IO register
(address 0C5
H
). Each port can directly drive a vacuum flu-
orescent display.
R3 and R3IO register:
R3 is a 6-bit high-voltage CMOS
bidirectional I/O port (address 0C6
H
). Each port can be set
individually as input and output through the R3IO register
(address 0C7
H
).
R4 and R4IO register:
R4 is a 4-bit bidirectional I/O port
(address 0C8
H
). Each port can be set individually as input
and output through the R4IO register (address 0C9
H
). R40
port is multiplexed with Timer 0 Output Port (T0O).
The control register R4FUNC (address 0F5
H
) controls to
select alternate function. After reset, this value is "0", port
may be used as general I/O ports. To select alternate func-
tion such as Timer 0 Output, write "1" to the corresponding
bit of R4FUNC. Regardless of the direction register R4IO,
R4FUNC is selected to use as alternate functions, port pin
can be used as a corresponding alternate features (T0O)
R1 Data Register
R1
ADDRESS: 0C2
RESET VALUE: Undefined
R17 R16 R15 R14 R13 R12 R11 R10
Port Direction
0: Input
1: Output
R1 Direction Register
R1IO
ADDRESS : 0C3
RESET VALUE : 00
H
Input / Output data
R2 Data Register
R2
ADDRESS: 0C4
RESET VALUE: Undefined
R27 R26 R25 R24 R23 R22 R21 R20
Port Direction
0: Input
1: Output
R2 Direction Register
R2IO
ADDRESS : 0C5
RESET VALUE : 00
H
Input / Output data
Port Pin
Alternate Function
R40
T0O (Timer 0 Compare Output Port)
R3 Data Register
R3
ADDRESS: 0C6
RESET VALUE: Undefined
-
-
R35 R34 R33 R32 R31 R30
Port Direction
0: Input
1: Output
R3 Direction Register
R3IO
ADDRESS : 0C7
RESET VALUE : --000000
B
Input / Output data
-
-
R4 Data Register
R4
ADDRESS: 0C8
RESET VALUE: Undefined
-
-
-
-
R43 R42 R41 R40
Port Direction
0: Input
1: Output
R4 Direction Register
R4IO
ADDRESS : 0C9
RESET VALUE : ----0000
B
Input / Output data
R4 Function Selection Register
R4FUNC
ADDRESS : 0F5
RESET VALUE : -------0
B
0: R40
1: T0O
T0O
-
-
-
-
-
-
-
-
-
-
-