HYUNDAI MicroElectronics
GMS81508B/16B/24B
Table of Contents
1. OVERVIEW............................................1
Description .........................................................1
Features .............................................................1
Development Tools ............................................2
Ordering Information ..........................................2
Transmission/Receiving Timing ...................... 50
The Serial I/O operation by SRDY pin ............ 50
The method of Serial I/O ................................. 51
The Method to Test Correct Transmission ...... 51
14. PWM OUTPUT ..................................52
15. BUZZER FUNCTION .........................55
16. INTERRUPTS ....................................57
Interrupt Sequence .......................................... 59
BRK Interrupt .................................................. 60
Multi Interrupt .................................................. 61
External Interrupt ............................................. 61
2. BLOCK DIAGRAM .................................3
3. PIN ASSIGNMENT ................................4
4. PACKAGE DIAGRAM ............................6
5. PIN FUNCTION......................................8
6. PORT STRUCTURES..........................10
7. ELECTRICAL CHARACTERISTICS ....12
Absolute Maximum Ratings .............................12
Recommended Operating Conditions ..............12
A/D Converter Characteristics .........................12
DC Electrical Characteristics ...........................13
AC Characteristics ...........................................14
Serial Interface Timing Characteristics ............15
Typical Characteristic Curves ..........................16
17. WATCHDOG TIMER .........................64
18. POWER DOWN OPERATION...........66
STOP Mode .................................................... 66
Minimizing Current Consumption .................... 67
19. OSCILLATOR CIRCUIT.....................69
20. RESET ...............................................70
External Reset Input ........................................ 70
Watchdog Timer Reset ................................... 70
8. MEMORY ORGANIZATION.................18
Registers ..........................................................18
Program Memory .............................................21
Data Memory ...................................................24
Addressing Mode .............................................27
21. POWER FAIL PROCESSOR.............71
22. OTP PROGRAMMING.......................73
How to Program .............................................. 73
Pin Function .................................................... 73
Programming Specification ............................. 76
9. I/O PORTS ...........................................31
10. BASIC INTERVAL TIMER..................34
11. TIMER/EVENT COUNTER ................36
8-bit Timer / Counter Mode ..............................38
16-bit Timer / Counter Mode ............................42
8-bit Capture Mode ..........................................43
16-bit Capture Mode ........................................44
A. CONTROL REGISTER LIST .................. i
B. SOFTWARE EXAMPLE ....................... iii
7-segment LED display .................................... iii
C. INSTRUCTION....................................viii
Terminology List .............................................. viii
Instruction Map ..................................................ix
Instruction Set ....................................................x
12. ANALOG DIGITAL CONVERTER......46
13. SERIAL COMMUNICATION ..............48
D. MASK ORDER SHEET ...................... xvi
DEC. 1999 Ver 1.04
HYUNDAI MicroElectronics
GMS81508B/16B/24B
GMS81508B/16B/24B
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
WITH A/D CONVERTER
1. OVERVIEW
1.1 Description
The GMS81508B/16B/24B are advanced CMOS 8-bit microcontrollers with 8K/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
converter, Programmable buzzer driver, Serial I/O communication, Pulse Width Modulation function, etc. The RAM, ROM,
and I/O are placed on the same memory map in addition to simple instruction set.
The GMS815xxB is functionally 100% compatible with earier GMS81508/16 or GMS81508A/16A, however better charac-
teristics have such as strong EMS, wide operating voltage, temperature, frequency and fast programming time for the OTP.
Device name
GMS81508B
GMS81516B
GMS81524B
ROM Size
8K bytes
16K bytes
24K bytes
RAM Size
448 bytes
448 bytes
448 bytes
OTP
GMS81516BT
GMS81516BT
GMS81524BT
64SDIP, 64MQFP,
64LQFP
Package
1.2 Features
• 8K/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
• Eight channel 8-bit A/D converter
• Two channel 8-bit PWM
• One 8-bit Serial Communication Interface
• Four External Interrupt input ports
• Buzzer Driving port
- 500Hz ~ 250kHz@8MHz
• 52 I/O Ports, 4 Input Ports
• Twelve Interrupt sources
- Basic Interval Timer: 1
- External input: 4
- Timer/Event counter: 4
- ADC: 1
- Serial Interface: 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
• 64SDIP, 64MQFP, 64LQFP package types
• Available 16K, 24K bytes OTP version
DEC. 1999 Ver 1.04
1