HYNIX SEMICONDUCTOR
8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81508B
GMS82512
GMS81516B
GMS82516
GMS81524B
GMS81524
User’s Manual (Ver. 2.0)
Version 2.0
Published by
MCU Application Team
©2001
©2001
©2001
©2001
Hynix Semiconductor Inc. All right reserved.
Additional information of this manual may be served by Hynix Semiconductor offices in Korea or Distributors and Repre-
sentatives listed at address directory.
Hynix Semiconductor reserves the right to make changes to any information here in at any time without notice.
The information, diagrams and other data in this manual are correct and reliable; however, Hynix Semiconductor is in no
way responsible for any violations of patents or other rights of the third party generated by the use of this manual.
Revision History
Ver 2.0 (this manual) May, 01, 2001
The manuals of GMS81508B/16B/24B and GMS82512/16/24 are integrated.
Choice-Gang4 writer(for PC) is replaced with Choice-Gang4(for stand alone).
Ver 1.05 (before manual) Sep., 20, 2000
Choice-Dr writer is omitted on the page 76 because it is not available any longer.
For the Hynix MCU on the ALL-07, writer program is only available from Hynix sales part. Please ask to Hynix
sales. Hi-Lo systems does not support the software of ALL-07 in their web site currently.
Ver 1.04 (before version) Dec., 1999
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
1
Table of Contents
1. OVERVIEW ...........................................1
Description .........................................................1
Features .............................................................1
Development Tools ............................................2
Ordering Information
2. BLOCK DIAGRAM ................................3
3. PIN ASSIGNMENT ...............................5
4. PACKAGE DIAGRAM ...........................8
5. PIN FUNCTION ...................................11
6. PORT STRUCTURES .........................13
7. ELECTRICAL CHARACTERISTICS ...15
Absolute Maximum Ratings .............................15
Recommended Operating Conditions ..............15
A/D Converter Characteristics .........................15
DC Electrical Characteristics ...........................16
AC Characteristics ...........................................17
Serial Interface Timing Characteristics ............18
Typical Characteristic Curves ..........................19
8. MEMORY ORGANIZATION ................21
Registers ..........................................................21
Program Memory .............................................24
Data Memory ...................................................27
Addressing Mode .............................................30
9. I/O PORTS ..........................................34
10. BASIC INTERVAL TIMER .................37
11. TIMER/EVENT COUNTER ...............39
8-bit Timer / Counter Mode ..............................41
16-bit Timer / Counter Mode ............................45
8-bit Capture Mode ..........................................46
16-bit Capture Mode ........................................47
12. ANALOG DIGITAL CONVERTER .....49
13. SERIAL COMMUNICATION .............51
Transmission/Receiving Timing .......................53
The Serial I/O operation by SRDY pin ............ 53
The method of Serial I/O ................................. 54
The Method to Test Correct Transmission ...... 54
14. PWM OUTPUT .................................55
15. BUZZER FUNCTION ........................58
16. INTERRUPTS ...................................60
Interrupt Sequence .......................................... 62
BRK Interrupt .................................................. 63
Multi Interrupt .................................................. 64
External Interrupt ............................................. 64
17. WATCHDOG TIMER ........................67
18. POWER DOWN OPERATION ..........69
STOP Mode .................................................... 69
Minimizing Current Consumption .................... 70
19. OSCILLATOR CIRCUIT ....................72
20. RESET ..............................................73
External Reset Input ........................................ 73
Watchdog Timer Reset ................................... 73
21. POWER FAIL PROCESSOR ............74
22. OTP PROGRAMMING ......................76
How to Program .............................................. 76
Pin Function .................................................... 76
Programming Specification ............................. 80
A. CONTROL REGISTER LIST ................. i
B. SOFTWARE EXAMPLE ...................... iii
7-segment LED display .................................... iii
C. INSTRUCTION ...................................viii
Terminology List .............................................. viii
Instruction Map ..................................................ix
Alphabetic order table of instruction ...................x
Instruction Table by Function ...........................xv
D. MASK ORDER SHEET
........................ xxi
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
1
GMS81508B/16B/24B
GMS82512/16/24
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 and 64pin package.
And the GMS82512/16/24 are the same except for 12K/16K/24K bytes of ROM and 42pin package. The GMS825xx is a
cut-down product of GMS815xxB microcontroller, that is, the function and package are reduced. These are powerful micro-
controllers which provide a highly flexible and cost effective solution to many general application. These includes several
peripheral functions such as Timer, A/D converter, Programmable buzzer driver, Serial I/O communication(GMS815xxB
only), Pulse Width Modulation function( GMS815xxB only), etc. The RAM, ROM, and I/O are placed on the same memory
map in addition to simple instruction set. Also, they support power saving mode to reduce power consumption.
The GMS815xxB is functionally 100% compatible with earier GMS81508/16 or GMS81508A/16A, and has better charac-
teristics such as strong EMS, wide operating voltage, temperature, frequency and fast programming time for the OTP.
1.2 Features
• 8K/16K/24K Bytes On-chip Program ROM
(12K/16K/24K Bytes in GMS825xx)
• 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
(Four channel in GMS825xx)
• Two channel 8-bit PWM
(Not support in GMS825xx)
• One 8-bit Serial Communication Interface
(Not support in GMS825xx)
• Four External Interrupt input ports
• Buzzer Driving port
- 500Hz ~ 250kHz@8MHz
• 52 I/O Ports, 4 Input Ports
(35 I/O ports in GMS825xx)
• Twelve Interrupt sources
- Basic Interval Timer: 1
- External input: 4
- Timer/Event counter: 4
- ADC: 1
- Serial Interface: 1(Not support in GMS825xx)
- WDT: 1
• Built in Noise Immunity Circuit
Device name
ROM Size
RAM Size
I/O
OTP
Package
GMS81508B
8K bytes
448 bytes
52 I/O, 4Input
GMS81516BT
64SDIP, 64MQFP,
64LQFP
GMS81516B
16K bytes
448 bytes
52 I/O, 4Input
GMS81516BT
GMS81524B
24K bytes
448 bytes
52 I/O, 4Input
GMS81524BT
GMS82512
12K bytes
448 bytes
35 I/O
GMS82524T
42SDIP, 44MQFP
GMS82516
16K bytes
448 bytes
35 I/O
GMS82524T
GMS82524
24K bytes
448 bytes
35 I/O
GMS82524T
GMS81508B/16B/24B, GMS82512/16/24
2
MAY. 2001 Ver 2.0
- 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
(42SDIP,44MQFP in GMS825xx)
• Available 16K, 24K bytes OTP version
(Available 24K bytes in GMS825xx)
1.3 Development Tools
The GMS815xxB and GMS825xx are supported by a full-
featured macro assembler, an in-circuit emulator
CHOICE-Dr.
TM
and OTP programmers. There are two
different type programmers such as single type, gang
operates under the MS-Windows 95/98
TM
.
Please contact sales part of Hynix Semiconductor.
1.4 Ordering Information
Device name
ROM Size
RAM size
Package
Mask version
GMS81508B K
GMS81508B Q
GMS81508B LQ
GMS81516B K
GMS81516B Q
GMS81516B LQ
GMS81524B K
GMS81524B Q
GMS81524B LQ
GMS82512 K
GMS82512 Q
GMS82516 K
GMS82516 Q
GMS82524 K
GMS82524 Q
8K bytes
8K bytes
8K bytes
16K bytes
16K bytes
16K bytes
24K bytes
24K bytes
24K bytes
12K bytes
12K bytes
16K bytes
16K bytes
24K bytes
24K bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
64SDIP
64MQFP
64LQFP
64SDIP
64MQFP
64LQFP
64SDIP
64MQFP
64LQFP
42SDIP
44MQFP
42SDIP
44MQFP
42SDIP
44MQFP
OTP version
GMS81516BT K
GMS81516BT Q
GMS81516BT LQ
GMS81524BT K
GMS81524BT Q
GMS81524BT LQ
GMS82524 K
GMS82524 Q
16K bytes OTP
16K bytes OTP
16K bytes OTP
24K bytes OTP
24K bytes OTP
24K bytes OTP
24K bytes
24K bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
448 bytes
64SDIP
64MQFP
64LQFP
64SDIP
64MQFP
64LQFP
42SDIP
44MQFP
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
3
2. BLOCK DIAGRAM
2.1 GMS81508B/GMS81516B/GMS81524B(64 pin package)
ALU
A
Interrupt Controller
Data Memory
8-bit
ADC
8-bit
Counter
Timer/
Program
Memory
Data Table
PC
8-bit Basic
Timer
Interval
Watchdog
Timer
PC
R4
R5
R2
PSW
System controller
Timing generator
System
Clock Controller
ClockGenerator
RESET
TEST
X
IN
X
OUT
R40 / INT0
R41 / INT1
R42 / INT2
R43 / INT3
R44 / EC0
R45 / EC2
R46 / T1O
R47 / T3O
R50 / SIN
R20~R27
V
DD
V
SS
Power
Supply
8-bit serial
R51 / SOUT
R52 / SCLK
R53 / SRDY
R54 / WDTO
R55 / BUZ
R56 / PWM0
R57 / PWM1
R1
R10~R17
R0
R00~R07
R3
R30~R37
Interface
Buzzer
Driver
R6
R60 / AN0
R61 / AN1
R62 / AN2
R63 / AN3
R64 / AN4
R65 / AN5
R66 / AN6
R67 / AN7
(448 bytes)
8-bit PWM
AV
DD
AV
SS
ADC Power
Supply
Stack Pointer
X
Y
GMS81508B/16B/24B, GMS82512/16/24
4
MAY. 2001 Ver 2.0
2.2 GMS82512/GMS82516/GMS82524(42 pin package)
ALU
A
Interrupt Controller
Data Memory
8-bit
ADC
8-bit
Counter
Timer/
Program
Memory
Data Table
PC
8-bit Basic
Timer
Interval
Watchdog
Timer
PC
R4
R5
R0
PSW
System controller
Timing generator
System
Clock Controller
ClockGenerator
RESET
TEST
X
IN
X
OU
T
R40 / INT0
R41 / INT1
R42 / INT2
R43 / INT3
R44 / EC0
R00~R07
V
DD
V
SS
Power
Supply
R54 / WDTO
R55 / BUZ
R2
R20~R27
Buzzer
Driver
R6
R64 / AN4
R65 / AN5
R66 / AN6
R67 / AN7
(448 bytes)
AV
DD
ADC Power
Supply
Stack Pointer
X
Y
R3
R30~R37
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
5
3. PIN ASSIGNMENT
3.1 GMS81508B/GMS81516B/GMS81524B(64 pin package)
V
DD
TEST
AV
SS
AV
DD
R67
R66
R65
R64
R63
R62
R61
R60
R57
R56
R55
R54
AN7
AN6
AN5
AN4
AN3
AN2
AN1
AN0
PWM1
PWM0
BUZ
WDTO
R53
R52
R51
R50
R47
R46
R45
R44
R43
R42
R41
R40
RESET
XIN
XOUT
V
SS
SRDY
SCLK
SOUT
SIN
T3O
T1O
EC2
EC0
INT3
INT2
INT1
INT0
R30
R31
R32
R33
R34
R35
R36
R37
R00
R01
R02
R03
R04
R05
R06
R07
R10
R11
R12
R13
R14
R15
R16
R17
R20
R21
R22
R23
R24
R25
R26
R27
R66
R36
R35
R34
R33
R32
R31
R30
V
DD
TEST
AV
SS
AV
DD
R67
AN6
AN7
R42
R22
R23
R24
R25
R26
R27
V
SS
XOUT
XIN
RESET
R40
R41
INT2
INT0
INT1
R37
R01
R02
R03
R04
R05
R06
R07
R10
R11
R12
R13
R14
R15
R16
R17
R00
R20
R21
R65
R63
R62
R61
R60
R57
R56
R55
R54
R53
R52
R51
R50
R47
R46
R45
R64
R44
R43
AN5
AN3
AN2
AN1
AN0
PWM1
PWM0
BUZ
WDTO
SRDY
SCLK
SOUT
SIN
T3O
T1O
EC2
AN4
EC0
INT
3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
51
50
49
32
31
30
29
28
27
26
25
24
23
22
21
20
52
53
54
55
56
57
58
59
60
61
62
63
64
64MQFP
64SDIP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
GMS81508B/16B/24B
GMS81508B/16B/24B
(Top View)
(Top View)
GMS81508B/16B/24B, GMS82512/16/24
6
MAY. 2001 Ver 2.0
R20
R21
R22
R23
R24
R25
R26
R27
V
SS
XOUT
XIN
RESET
R40
R41
R42
R43
R00
R01
R02
R03
R04
R05
R06
R07
R10
R11
R12
R13
R14
R15
R16
R17
R63
R62
R61
R60
R57
R56
R55
R54
R53
R52
R51
R50
R47
R46
R45
R44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
R37
R36
R35
R34
R33
R32
R31
R30
V
DD
TEST
AV
SS
AV
DD
R67
R66
R65
R64
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
GMS81508B/16B/24B
64LQFP
AN3
AN2
AN1
AN0
PWM1
PWM0
BUZ
WDTO
SRDY
SCLK
SOUT
SIN
T3O
T1O
EC2
EC0
INT2
INT0
INT1
INT3
AN5
AN7
AN6
AN4
(Top View)
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
7
3.2 GMS82512/GMS82516/GMS82524(42 pin package)
R30
V
DD
TEST
AV
DD
R67
R66
R65
R64
R55
R54
R44
R43
R42
R41
R40
RESET
AN7
AN6
AN5
AN4
BUZ
WDTO
EC0
INT3
INT2
INT1
INT0
XIN
XOUT
V
SS
R27
R26
R31
R32
R33
R34
R35
R36
R37
R00
R01
R02
R03
R04
R05
R06
R07
R20
R21
R22
R23
R24
R25
42SDIP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
GMS82512/16/24
(Top View)
(Top View)
R21
R22
R23
R24
R25
R26
R27
V
SS
XOUT
XIN
RESET
R37
R00
R01
R02
R03
R04
R05
R06
R07
N.
C.
*
R20
R66
R65
R64
N.C.
*
R55
R54
R44
R43
R42
R41
R40
1
2
3
4
5
6
7
8
9
10
11
R36
R35
R34
R33
R32
R31
R30
V
DD
TEST
AV
DD
R67
33
32
31
30
29
28
27
26
25
24
23
17
16
15
14
13
12
34
35
36
37
38
39
40
41
42
43
44
GMS82512/16/24
44MQFP
AN6
AN5
AN4
BUZ
WDTO
EC0
INT3
INT2
INT1
INT0
AN7
18
19
20
21
22
N .C .
*
: N o C o n n e ctio n
GMS81508B/16B/24B, GMS82512/16/24
8
MAY. 2001 Ver 2.0
4. PACKAGE DIAGRAM
4.1 GMS81508B/GMS81516B/GMS81524B(64 pin package)
UNIT: INCH
2.280
2.260
0.022
0.016
0.050
0.030
0.070 Typ.
0.140
0.120
min. 0.015
0.680
0.660
0.750 Typ.
0-15
°<