HYUNDAI MicroElectronics
GMS82512/16/24
Table of Contents
1. OVERVIEW ...........................................1
Description .........................................................1
Features .............................................................1
Development Tools ............................................2
Ordering Information ..........................................2
12. ANALOG DIGITAL CONVERTER ....43
13. BUZZER FUNCTION ........................45
14. INTERRUPTS ...................................47
Interrupt Sequence .......................................... 49
BRK Interrupt .................................................. 50
Multi Interrupt .................................................. 51
External Interrupt ............................................. 51
2. BLOCK DIAGRAM ................................3
3. PIN ASSIGNMENT ...............................4
4. PACKAGE DIAGRAM
.............................. 5
5. PIN FUNCTION .....................................6
6. PORT STRUCTURES ...........................8
7. ELECTRICAL CHARACTERISTICS ...10
Absolute Maximum Ratings .............................10
Recommended Operating Conditions ..............10
A/D Converter Characteristics .........................10
DC Electrical Characteristics ...........................11
AC Characteristics ...........................................12
Typical Characteristic Curves ..........................13
15. WATCHDOG TIMER ........................54
16. POWER DOWN OPERATION ..........56
STOP Mode .................................................... 56
Minimizing Current Consumption .................... 57
17. OSCILLATOR CIRCUIT ....................59
18. RESET ..............................................60
External Reset Input ........................................ 60
Watchdog Timer Reset ................................... 60
19. POWER FAIL PROCESSOR ............61
20. OTP PROGRAMMING ......................63
How to Program .............................................. 63
Pin Function .................................................... 63
Programming Specification ............................. 65
8. MEMORY ORGANIZATION ................15
Registers ..........................................................15
Program Memory .............................................18
Data Memory ...................................................21
Addressing Mode .............................................24
A. CONTROL REGISTER LIST ................. i
B. SOFTWARE EXAMPLE ....................... ii
7-segment LED display .....................................ii
9. I/O PORTS ..........................................28
10. BASIC INTERVAL TIMER .................31
11. TIMER/EVENT COUNTER ...............33
8-bit Timer / Counter Mode ..............................35
16-bit Timer / Counter Mode ............................39
8-bit Capture Mode ..........................................40
16-bit Capture Mode ........................................41
C. INSTRUCTION ................................... vii
Terminology List ............................................... vii
Instruction Map ................................................ viii
Alphabetic order table of instruction ..................ix
Instruction Table by Function .......................... xiv
D. MASK ORDER SHEET
......................... xx
FEB. 2000 Ver 1.00
1
HYUNDAI MicroElectronics
GMS82512/16/24
GMS82512/16/24
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
WITH A/D CONVERTER
1. OVERVIEW
1.1 Description
The GMS82512/16/24 are advanced CMOS 8-bit microcontrollers with 12K/16K/24K bytes of ROM. The device is one of
GMS800 family. This device using the GMS800 family CPU includes several peripheral functions such as Timer, A/D con-
verter, Programmable buzzer driver, etc. The RAM, ROM, and I/O are placed on the same memory map in addition to simple
instruction set.
Device name
GMS82512
GMS82516
GMS82524
ROM Size
12K bytes
16K bytes
24K bytes
RAM Size
448 bytes
448 bytes
448 bytes
OTP
GMS82524T
GMS82524T
GMS82524T
Package
42SDIP, 44QFP
1.2 Features
• 12K/16K/24K Bytes On-chip Program Memory
• 448 Bytes of On-chip Data RAM
(Included stack memory)
• Minimum Instruction Execution Time
0.5µs at 8MHz
µ
• One 8-bit Basic Interval Timer
• Four 8-bit Timer/Event counter
or Two 16-bit Timer/Event counter
• One 6-bit Watchdog timer
• Four channel 8-bit A/D converter
• Four External Interrupt input ports
• Buzzer Driving port
- 500Hz ~ 250kHz@8MHz
• 35 I/O Ports
• Eleven Interrupt sources
- Basic Interval Timer: 1
- External input: 4
- Timer/Event counter: 4
- ADC: 1
- WDT: 1
• Built in Noise Immunity Circuit
- Noise filter
- Power fail processor
• Power Down Mode
- STOP mode
• 2.2V to 5.5V Wide Operating Range
• 1~10MHz Wide Operating Frequency
• 42SDIP, 44QFP package types
• Available 24K bytes OTP version
FEB. 2000 Ver 1.00
1