LG Semicon
GMS81604/08
R50, R51, R55: R5 is a 3-bit, CMOS, bidirectional I/O
port. As an output port each pin can sink several LS
TTL inputs. R5 pins that have 1 or 0 written to their
Port Direction Mode Register, can be used as outputs
or inputs. R50 and R51 differs in having internal
pull-ups.
PIN DESCRIPTIONS
V
V
DD: Supply voltage.
SS: Circuit Ground.
TEST: For test purposes only. Connect it to VDD
RESET: Reset the MCU.
.
Port R55 serves the functions of special features.
Port Pin
Alternate Function
X
IN: Input to the inverting oscillator amplifier and
R55
BUZ (Square wave output for Buzzer
driving)
input to the internal clock operating circuit.
X
OUT: Output from the inverting oscillator amplifier.
R60~R67: R6 is an 8-bit, CMOS, I/O port. R60~R63
can be used as only input, can not be output, R64~R67
are bidirectional I/O port. As an output port each pin
can sink several LS TTL inputs. R64~R67 pins that
have 1 or 0 written to their Port Direction Mode
Register, can be used as outputs or inputs.
R00~R07: R0 is an 8-bit, CMOS, bidirectional I/O
port. As an output port each pin can sink several LS
TTL inputs. R0 pins that have 1 or 0 written to their
Port Direction Mode Register, can be used as outputs
or inputs.
R6 serves the functions of following special features.
R10~R17: R1 is an 8-bit, CMOS, bidirectional I/O
port. As an output port each pin can sink several LS
TTL inputs. R1 pins that have 1 or 0 written to their
Port Direction Mode Register, can be used as outputs
or inputs.
Port Pin
Alternate Function
AN0 (ADC input 0)
R60
R61
R62
R63
R64
R65
R66
R67
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)
R40~R47: R4 is an 8-bit, CMOS, bidirectional I/O
port. As an output port each pin can sink several LS
TTL inputs. R4 pins that have 1 or 0 written to their
Port Direction Mode Register, can be used as outputs
or inputs.
AVDD: Supply voltage to the ladder resistor of ADC
circuit. To enhance the resolution of analog to digital
converter, use independent power source as well as
possible, other than digital power source.
In addition, Port 4 serves the functions of the various
following special features.
Port Pin
R40
Alternate Function
INT0 (External Interrupt 0)
INT1 (External Interrupt 1)
R41
R42
R43
INT2 (External Interrupt 2)
INT3 (External Interrupt 3)
R44
R45
EC0 (External Count Input to Timer/
Counter 0)
EC2 (External Count Input to Timer/
Counter 2)
R46
R47
T1O (Timer 1 Clock-Out)
T3O (Timer 3 Clock-Out)
7