English
Language : 

GMS81C5108 Datasheet, PDF (36/102 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR INC. 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C5108
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 0C2H).
Each I/O pin can independently used as an input or an out-
put through the R2DR register (address 0CAH).
R2 has internal pull-ups that is independently connected or
disconnected by R2PU (address 0D2H). The control regis-
ters for R2 are shown as below.
R2 Data Register
R2
-
-
-
ADDRESS: 0C2H
RESET VALUE: ----0000B
- R23 R22 R21 R20
R2 Direction Register
R2DR
-
-
-
ADDRESS : 0CAH
RESET VALUE : ----0000B
-
R2 Pull-up
Selection Register
R2PU
-
-
-
Port Direction
0: Input
1: Output
ADDRESS : 0D2H
RESET VALUE : ----0000B
-
R2 Open Drain
Selection Register
R2CR
-
-
-
Pull-up select
0: Without pull-up
1: With pull-up
ADDRESS : 0D6H
RESET VALUE : ----0000B
-
Pull-up select
0: No Open Drain
1: Open Drain
R3 Port
R3 is a 4-bit CMOS bidirectional I/O port (address 0C3H).
Each I/O pin can independently used as an input or an out-
put through the R3DR register (address 0CBH).
R3 Data Register
R3
-
-
-
ADDRESS: 0C3H
RESET VALUE: ----0000B
- R33 R32 R31 R30
R3 Direction Register
R3DR
-
-
-
ADDRESS : 0CBH
RESET VALUE : ----0000B
-
R3 Pull-up
Selection Register
R3PU
-
-
-
Port Direction
0: Input
1: Output
ADDRESS : 0D3H
RESET VALUE : ----0000B
-
R3 Open Drain
Selection Register
R3CR
-
-
-
Pull-up select
0: Without pull-up
1: With pull-up
ADDRESS : 0D7H
RESET VALUE : ----0000B
-
Pull-up select
0: No Open Drain
1: Open Drain
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.
JUNE 2001 Ver 1.0
33