English
Language : 

GMS87C4060 Datasheet, PDF (10/102 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C4040/87C4060
PRELIMINARY
5. PIN FUNCTION
VDD: Supply voltage.
VSS: Circuit ground.
TEST: Used for shipping inspection of the IC. For normal
operation, it should not be connected .
RESET: Reset the MCU.
XIN: Input to the inverting oscillator amplifier and input to
the internal main clock operating circuit.
XOUT: Output from the inverting oscillator amplifier.
OSC1: Input to the internal On Screen Display operating
circuit.
OSC2: Output from the inverting OSC1 amplifier.
R00~R07: R0 is an 8-bit CMOS bidirectional I/O port. R0
pins 1 or 0 written to the Port Direction Register can be
used as outputs or inputs.
R10~R17: R1 is an 8-bit CMOS bidirectional I/O port. R1
pins 1 or 0 written to the Port Direction Register can be
used as outputs or inputs.
In addition, R1 serves the functions of the various follow-
ing special features.
Port pin
Alternate function
R10 AN0 (A/D converter input 0)
R11 AN1 (A/D converter input 1)
R12 AN2 (A/D converter input 2)
R13 AN3 (A/D converter input 3)
R14 AN4 (A/D converter input 4)
R15 AN5 (A/D converter input 5)
R16 VD (Vertical Sync. input)
R17 HD (Horisontal Sync. input)
R20~R27: R2 is a 8-bit CMOS bidirectional I/O port. Each
pins 1 or 0 written to the their Port Direction Register can
be used as outputs or inputs.
In addition, R2 serves the functions of the various follow-
ing special features.
Port pin
Alternate function
R20 INT2 (External interrupt input 2)
R21 Sclk (Serial communication clock)
R22 Sout (Serial communication data out)
R23 Sin (Serial communication data in)
R24 INT3 (External interrupt input 3)
R25 EC2 (Event counter input 2)
R26 INT4 (External interrupt input 4)
R27 EC3 (Event counter input 3)
R40~R47: R40~R43 are 8-bit NMOS open drain output
and R45~R47 are bidirectional CMOS Input / NMOS open
drain output port. R4 pins 1 or 0 written to the Port Direc-
tion Register can be used as outputs or inputs.
In addition, R4 serves the functions of the various follow-
ing special features.
Port pin
Alternate function
R40 PWM0 (Pulse Width Modulation output 0)
R41 PWM1 (Pulse Width Modulation output 1)
R42 PWM2 (Pulse Width Modulation output 2)
R43 PWM3 (Pulse Width Modulation output 3)
R44 SCL0 (I2C Clock 0)
R45 SCL1 (I2C Clock 1)
PWM4 (Pulse Width Modulation output 4)
R46 SDA0 (I2C Data 0)
R47 SDA1 (I2C Data 1)
PWM5 (Pulse Width Modulation output 5)
R50~R56: R50~R53 are 4-bit CMOS bidirectional I/O and
R54~R56 are CMOS output port. R5 pins 1 or 0 written to
the Port Direction Register can be used as outputs or in-
puts.
In addition, R5 serves the functions of the various follow-
ing special features.
Port pin
Alternate function
R50 BUZZ (Buzzer output)
R51 PWM8 (Pulse Width Modulation output 8)
R52 INT0 (External interrupt input 0)
R54 YM (Back ground)
R55 YS (Edge)
R56 I (Intencity)
R67: R67 is an 1-bit CMOS bidirectional I/O port. R67
pins 1 or 0 written to the Port Direction Register can be
used as outputs or inputs.
In addition, R67 serves the functions of the various follow-
ing special features.
Port pin
Alternate function
R67 INT1 (External interrupt input 1)
R,G,B: R,G,B CMOS output port. Each pins controls Red,
Green,. Blue color control.
6
PRELIMINARY
Nov. 1999 Ver 1.0