GMS81C3004
MAR. 1999 Ver 1.01
1
GMS81C3004
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
WITH LCD DRIVER
1. OVERVIEW
1.1 Description
The GMS81C3004 is an advanced CMOS 8-bit microcontroller with 4K bytes of ROM. The device is one of GMS800 fam-
ily. The LG Semicon GMS81C3004 is a powerful microcontroller which provides a highly flexible and cost effective solu-
tion to many LCD applications such as controller with LCD and toys. The GMS81C3004 provides the following standard
features: 4K bytes of ROM, 256 bytes of RAM, 8-bit timer/counter, on-chip oscillator and clock circuitry. In addition, the
GMS81C3004 supports power saving modes to reduce power consumption.
1.2 Features
• 4K Bytes On-chip Program Memory
• 256 Bytes of On-chip Data RAM
(Included 64 bytes stack memory)
• Dot Matrix LCD Driver
- Max. 320 dots (40 seg. x 8 com.)
- 40 bytes of Display RAM
• Instruction Cycle Time:
- 0.5us, 1.9us, 3.8us, 15.2us at 4.19MHz
- 61us, 244us, 488us, 1.95ms at 32.768KHz
• 51 Programmable I/O pins
(Included 32 LCD pins)
• 2.2V to 5.5V Wide Operating Range
• Dual Clock Operation (4.19MHz, 32kHz)
• One 8-bit Basic Interval Timer
• Key Scan
• One 8-bit Timer/ Counter
• Watch Timer
• Watchdog timer
• Eight Interrupt sources
- External input: 3
- Keyscan input: 1
- Timer: 4
• Buzzer Driving port
- 500Hz ~ 130kHz
• 4-channel 5-bit On-chip Comparator
• Power Down Mode
- STOP mode
- SLEEP mode
1.3 Development Tools
The GMS81C3004 is supported by a full-featured macro
assembler, an in-circuit emulator CHOICE-Dr
TM
.
Device name
ROM Size
RAM Size
Package
GMS81C3004
4K bytes
256 bytes
80QFP or DIE
In Circuit Emulators
CHOICE-Dr. (with EVA81C)
LCD Simulator
Under development
Assembler
LGS Macro Assembler
GMS81C3004
MAR. 1999 Ver 1.01
5
5. PIN FUNCTION
V
DD
: Supply voltage.
V
SS
: Circuit ground.
TEST: Used for shipping inspection of the IC. For normal
operation, it should be connected to V
SS
.
RESET: Reset the MCU.
X
IN
: Input to the inverting oscillator amplifier and input to
the internal main clock operating circuit.
X
OUT
: Output from the inverting oscillator amplifier.
SX
IN
: Input to the internal sub system clock operating cir-
cuit.
SX
OUT
: Output from the inverting subsystem oscillator
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.
In addition, R0 serves the functions of the various follow-
ing special features.
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.
R20~R22: R2 is a 3-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.
R40~R47, R50~57, R60~R67, R70~R77:
R4, R5, R6, R7 are four 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.
Ports is multiplexed with SEG0~SEG31 respectively.
After the reset of the MCU, port is initialized as a segment
output port.
SEG0~SEG39: Segment signal output pins for the LCD
COM0~COM7: Common signal output pins for the LCD
V
CL1
~V
CL5
: Power supply pins for the LCD driver. Since
the LCD driving resistors are provided internally, no lines
should be connected to these pins. The voltage on each pin
is V
DD
>
V
CL1
>
V
CL2
>
V
CL3
>
V
CL4
>
V
CL5
>
V
SS
. For de-
Port pin
Alternate function
R00
R01
R02
R03
R06
INT0 (External interrupt 0)
INT1 (External interrupt 1)
INT2 (External interrupt 2)
Event counter input
LCD clock output
Port pin
Alternate function
R10
R11
R12
R13
R14
R15
R16
R17
KS0 (Key scan input 0)
KS1 (Key scan input 1)
KS2 (Key scan input 2)
BUZ / KS3 (Buzzer output or Key scan input
3)
CMP0 / KS4 (Comparator input or Key scan
input 4)
CMP1 / KS5 (Comparator input or Key scan
input 5)
CMP2 / KS6 (Comparator input or Key scan
input 6)
CMP3 / KS7 (Comparator input or Key scan
input 7)
Port pin
Alternate function
SEG0~SEG7
R40~R47
SEG8~SEG15
R50~R57
SEG16~SEG23
R60~R67
SEG24~SEG31
R70~R77
GMS81C3004
6
MAR. 1999 Ver 1.01
PIN NAME
Pin No.
In/Out
Function
V
DD
46
-
Supply voltage
V
SS
11
-
Circuit ground
TEST
45
I
For test purposes. Should connect it to GND for normal operation.
RESET
44
I
Reset signal input
VCL1~VCL5
20~24
-
LCD power supply
X
IN
48
I
Main oscillation input
X
OUT
47
O
Main oscillation output
SX
IN
50
I
Sub oscillation input
SX
OUT
49
O
Sub oscillation output
R00 (INT0)
33
I/O (Input)
8-bit general I/O ports
External interrupt 0 input
R01 (INT1)
34
I/O (Input)
External interrupt 1 input
R02 (INT2)
35
I/O (Input)
External interrupt 2 input
R03 (EC1)
36
I/O (Input)
External counter input
R04
37
I/O
-
R05
38
I/O
-
R06 (LCDCK)
39
I/O (Output)
LCD clock output
R07
40
I/O
-
R10 (KS0)
25
I/O (Input)
8-bit general I/O ports
R11 (KS1)
26
I/O (Input)
Key scan input
R12 (KS2)
27
I/O (Input)
R13 (BUZ/KS3)
28
I/O (Output/Input)
Buzzer output or key scan input
R14~R17
(CMP0~CMP3/
KS4~KS7)
29~32
I/O
(Input/Input)
Comparator input 0~3 or key scan
input 4~7
R20~R22
41,42,
43
I/O
3-bit general I/O ports
-
SEG0~SEG7
(R40~R47)
51~58
Output (I/O)
Segment signal output ports
8-bit general I/O ports
SEG8~SEG15
(R50~R57)
59~66
Output (I/O)
8-bit general I/O ports
SEG16~SEG23
(R60~R67)
67~74
Output (I/O)
8-bit general I/O ports
SEG24~SEG31
(R70~R77)
1,2,
75~80
Output (I/O)
8-bit general I/O ports
SEG32~SEG39
3~10
O
Segment signal output ports
COM0~COM7
12~19
O
Common signal output ports
Table 5-1 Port Function Description
GMS81C3004
10
MAR. 1999 Ver 1.01
7. ELECTRICAL CHARACTERISTICS
7.1 Absolute Maximum Ratings
Supply voltage ........................................... -0.3 to +6.0 V
Storage Temperature ................................-40 to +125
°
C
Voltage on any pin with respect to Ground (V
SS
)
............................................................... -0.3 to V
DD
+0.3
Maximum current out of V
SS
pin ........................100 mA
Maximum current into V
DD
pin ............................80 mA
Maximum current sunk by (I
OL
per I/O Pin) ........20 mA
Maximum output current sourced by (I
OH
per I/O Pin)
.................................................................................8 mA
Maximum current (
Σ
I
OL
) ...................................... 80 mA
Maximum current (
Σ
I
OH
)...................................... 50 mA
Note: Stresses above those listed under "Absolute Maxi-
mum Ratings" may cause permanent damage to the de-
vice. This is a stress rating only and functional operation of
the device at any other conditions above those indicated in
the operational sections of this specification is not implied.
Exposure to absolute maximum rating conditions for ex-
tended periods may affect device reliability.
7.2 Recommended Operating Conditions
7.3 DC Electrical Characteristics
(T
A
=-20~85
°
C, V
DD
=2.2~5.5V)
,
Paramet