English
Language : 

GMS81C2112 Datasheet, PDF (41/107 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C2112/GMS81C2120
R2 and R2IO register: R2 is an 8-bit high-voltage CMOS
bidirectional I/O port (address 0C4H). Each port can be set
individually as input and output through the R2IO register
(address 0C5H). Each port can directly drive a vacuum flu-
orescent display.
R2 Data Register
ADDRESS: 0C4H
RESET VALUE: Undefined
R2
R27 R26 R25 R24 R23 R22 R21 R20
Input / Output data
R2 Direction Register
R2IO
ADDRESS : 0C5H
RESET VALUE : 00H
Port Direction
0: Input
1: Output
R3 and R3IO register: R3 is a 5-bit high-voltage CMOS
bidirectional I/O port (address 0C6H). Each port can be set
individually as input and output through the R3IO register
(address 0C7H).
R3 Data Register
R3
---
ADDRESS: 0C6H
RESET VALUE: Undefined
R34 R33 R32 R31 R30
Input / Output data
R3 Direction Register
R3IO - - -
ADDRESS : 0C7H
RESET VALUE : ---00000B
Port Direction
0: Input
1: Output
R5 and R5IO register: R5 is an 5-bit bidirectional I/O
port (address 0CAH). Each pin can be set individually as
input and output through the R5IO register (address
0CBH).In addition, Port R5 is multiplexed with Pulse
Width Modulator (PWM).
Port Pin
R56
Alternate Function
PWM1 Data Output
Timer 1 Data Output
The control register R5FUNC (address 0F6H) controls to
select PWM function.After reset, the R5IO register value
is "0", port may be used as general I/O ports. To select
PWM function, write "1" to the corresponding bit of
R5FUNC.
The control register R5NODR (address 0F9H) controls to
select N-MOS open drain port. To select N-MOS open
drain port, write "1" to the corresponding bit of R5FUNC.
R5 Data Register
ADDRESS: 0CAH
RESET VALUE: Undefined
R5
R57 R56 R55 R54 R53 - - -
Input / Output data
R5 Direction Register
R5IO
ADDRESS : 0CBH
RESET VALUE : 00000---B
Port Direction
0: Input
1: Output
R5
Function
Selection
Register
ADDRESS : 0F6H
RESET VALUE : -0------B
R5FUNC - 6 - - - - - -
0: R56
1: PWM1O/T1O
R5 N-MOS Open Drain
Selection Register
R5NODR
ADDRESS: 0F9H
RESET VALUE: 00000---B
N-MOS Open Drain Selection
0: Disable
1: Enable
R6 and R6IO register: R6 is an 8-bit bidirectional I/O
port (address 0CCH). Each port can be set individually as
input and output through the R6IO register (address
0CDH). R67~R60 ports are multiplexed with Analog Input
Port.
Port Pin
R60
R61
R62
R63
R64
R65
R66
R67
Alternate Function
AN0 (ADC input 0)
AN1 (ADC input 1)
AN2 (ADC input 2)
AN3 (ADC input 3)
AN4 (ADC input 4)
AN5 (ADC input 5)
AN6 (ADC input 6)
AN7 (ADC input 7)
The control register R6FUNC (address 0F7H) controls to
select alternate function. After reset, this value is "0", port
may be used as general I/O ports. To select alternate func-
JUNE. 2001 Ver 1.00
35