HYUNDAI MicroElectronics
GMS87C1404/GMS87C1408
Table of Contents
OVERVIEW . . . . . . . . . . . . . . . . . . . . . . .1
Description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . 1
Development Tools . . . . . . . . . . . . . . . 1
Basic Interval Timer . . . . . . . . . . . . . . . 35
TIMER / COUNTER . . . . . . . . . . . . . . . 36
8-bit Timer/Counter Mode . . . . . . . . . .
16-bit Timer/Counter Mode . . . . . . . . .
8-bit Compare Output (16-bit) . . . . . . .
8-bit Capture Mode . . . . . . . . . . . . . . .
16-bit Capture Mode . . . . . . . . . . . . . .
PWM Mode . . . . . . . . . . . . . . . . . . . . .
37
39
39
39
42
42
BLOCK DIAGRAM . . . . . . . . . . . . . . . . .2
PIN ASSIGNMENT . . . . . . . . . . . . . . . . .3
PACKAGE DIAGRAM . . . . . . . . . . . . . . .4
PIN FUNCTION . . . . . . . . . . . . . . . . . . . .5
PORT STRUCTURES . . . . . . . . . . . . . . .7
ELECTRICAL CHARACTERISTICS . . .11
Absolute Maximum Ratings . . . . . . . .
Recommended Operating Conditions
A/D Converter Characteristics . . . . . .
DC Electrical Characteristics . . . . . . .
AC Characteristics . . . . . . . . . . . . . . .
Typical Characteristics . . . . . . . . . . . .
Registers . . . . . . . . . . . . . . . . . . . . . .
Program Memory . . . . . . . . . . . . . . . .
Data Memory . . . . . . . . . . . . . . . . . . .
Addressing Mode . . . . . . . . . . . . . . . .
RA and RAIO registers . . . . . . . . . . . .
RB and RBIO registers . . . . . . . . . . . .
RC and RCIO registers . . . . . . . . . . .
RD and RDIO registers . . . . . . . . . . .
11
11
11
12
13
14
16
18
21
25
29
30
32
33
Serial Peripheral Interface . . . . . . . . . . 45
Buzzer Output function . . . . . . . . . . . . . 47
ANALOG TO DIGITAL CONVERTER . 48
INTERRUPTS . . . . . . . . . . . . . . . . . . . . 51
Interrupt Sequence . . . . . . . . . . . . . . .
BRK Interrupt . . . . . . . . . . . . . . . . . . .
Multi Interrupt . . . . . . . . . . . . . . . . . . .
External Interrupt . . . . . . . . . . . . . . . .
53
54
54
56
MEMORY ORGANIZATION . . . . . . . . .16
WATCHDOG TIMER . . . . . . . . . . . . . . 58
Power Saving Mode . . . . . . . . . . . . . . . 59
Stop Mode . . . . . . . . . . . . . . . . . . . . . .
STOP Mode using Internal RCWDT . .
Wake-up Timer Mode . . . . . . . . . . . . .
Minimizing Current Consumption . . . .
59
61
62
63
I/O PORTS . . . . . . . . . . . . . . . . . . . . . .29
RESET . . . . . . . . . . . . . . . . . . . . . . . . . 65
POWER FAIL PROCESSOR . . . . . . . . 66
OTP PROGRAMMING . . . . . . . . . . . . . 68
DEVICE CONFIGURATION AREA . . . 68
A. INSTRUCTION MAP . . . . . . . . . . . . . i
B. INSTRUCTION SET . . . . . . . . . . . . . ii
CLOCK GENERATOR . . . . . . . . . . . . .34
Oscillation Circuit . . . . . . . . . . . . . . . . 34
Oct. 1999 Ver 1.0
HYUNDAI MicroElectronics
GMS87C1404/GMS87C1408
GMS87C1404 / GMS87C1408
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
1. OVERVIEW
1.1 Description
The GMS87C1404 and GMS87C1408 are an advanced CMOS 8-bit microcontroller with 4K/8K bytes of EPROM. The
HYUNDAI MicroElectronics GMS87C1404 and GMS87C1408 are a powerful microcontroller which provides a highly
flexible and cost effective solution to many small applications such as controller for battery charger. The GMS87C1404 and
GMS87C1408 provide the following standard features: 4K/8K bytes of EPROM, 192 bytes of RAM, 8-bit timer/counter, 8-
bit A/D converter, 10-bit high speed PWM output, programmable buzzer driving port, 8-bit serial communication port, on-
chip oscillator and clock circuitry. In addition, the GMS87C1404 and GMS87C1408 supports power saving modes to reduce
power consumption.
Device name
GMS87C1404
GMS87C1408
ROM Size
4K bytes
8K bytes
RAM Size
192bytes
192bytes
Package
28 SKDIP or SOP
28 SKDIP or SOP
1.2 Features
• 4K/8K Bytes On-chip Program Memory (OTP)
• 192 Bytes of On-chip Data RAM
(Included stack memory)
• Instruction Cycle Time:
- 250nS at 8MHz
• 23 Programmable I/O pins
(LED direct driving can be source and sink)
• 2.5V to 5.5V Wide Operating Range
• One 8-bit A/D Converter
• One 8-bit Basic Interval Timer
• Four 8-bit Timer / Counters
• Two 10-bit High Speed PWM Outputs
• Watchdog timer (can be operate with internal
RC-oscillation)
• Power Down Mode
- STOP mode
- Wake-up Timer mode
• One 8-bit Serial Peripheral Interface
• Twelve Interrupt sources
- External input: 4
- A/D Conversion: 1
- Serial Peripheral Interface: 1
- Timer: 6
• One Programmable Buzzer Driving port
- 500Hz ~ 130kHz
• Oscillator Type
- Crystal
- Ceramic Resonator
• Noise Immunity Circuit
- Power Fail Processor
1.3 Development Tools
The GMS87C1404 and GMS87C1408 are supported by a
full-featured macro assembler, an in-circuit emulator
CHOICE-Dr
TM
.
In Circuit Emulators
Assembler
OTP Writer
CHOICE-Dr.
HME Macro Assembler
Dr. Writer
Oct. 1999 Ver 1.0
1