![Hynix Semiconductor GMS81C5108 User Manual Download Page 36](http://html1.mh-extra.com/html/hynix-semiconductor/gms81c5108/gms81c5108_user-manual_2192989036.webp)
GMS81C5108
JUNE 2001 Ver 1.0
33
Port R1 is multiplexed with various special features.The
control registers controls the selection of alternate func-
tion. After reset, this value is “0”, port may be used as nor-
mal I/O port. The way to select alternate function such as
comparator input or buzzer will be shown in each periph-
eral section.
In addition, R1 port is used as key scan function which op-
erate with normal input port.
Input or output is configured automatically by each func-
tion register (KSMR) regardless of R1DR.
R2 Port
R2 is a 4-bit CMOS bidirectional I/O port (address 0C2
H
).
Each I/O pin can independently used as an input or an out-
put through the R2DR register (address 0CA
H
).
R2 has internal pull-ups that is independently connected or
disconnected by R2PU (address 0D2
H
). The control regis-
ters for R2 are shown as below.
R3 Port
R3 is a 4-bit CMOS bidirectional I/O port (address 0C3
H
).
Each I/O pin can independently used as an input or an out-
put through the R3DR register (address 0CB
H
).
SEG0~SEG36
Segment signal output pins for the LCD display. See "19.
LCD DRIVER" on page 71 for details.
COM0~COM3
Common signal output pins for the LCD display. See "19.
LCD DRIVER" on page 71 for details.
SEG34~SEG36 and COM1~COM3 are selected by LCDD
of the LCR register.
R2 Data Register
R2
ADDRESS: 0C2
H
RESET VALUE: ----0000
B
Port Direction
R2 Direction Register
R2DR
ADDRESS : 0CA
H
RESET VALUE : ----0000
B
0: Input
1: Output
Pull-up select
R2 Pull-up
R2PU
ADDRESS : 0D2
H
RESET VALUE : ----0000
B
0: Without pull-up
1: With pull-up
R23
R22
R21
R20
-
-
-
-
-
-
-
-
-
-
-
-
Pull-up select
R2 Open Drain
R2CR
ADDRESS : 0D6
H
RESET VALUE : ----0000
B
0: No Open Drain
1: Open Drain
-
-
-
-
Selection Register
Selection Register
R3 Data Register
R3
ADDRESS: 0C3
H
RESET VALUE: ----0000
B
Port Direction
R3 Direction Register
R3DR
ADDRESS : 0CB
H
RESET VALUE : ----0000
B
0: Input
1: Output
Pull-up select
R3 Pull-up
R3PU
ADDRESS : 0D3
H
RESET VALUE : ----0000
B
0: Without pull-up
1: With pull-up
R33
R32
R31
R30
-
-
-
-
-
-
-
-
-
-
-
-
Pull-up select
R3 Open Drain
R3CR
ADDRESS : 0D7
H
RESET VALUE : ----0000
B
0: No Open Drain
1: Open Drain
-
-
-
-
Selection Register
Selection Register
Downloaded from
Elcodis.com
electronic components distributor