background image
8-BIT SINGLE CHIP MICROCOMPUTERS
GMS810 SERIES
USER`S MANUAL
JUNE. 2001
Rev. 3.1
• GMS81004
• GMS81008
• GMS81016
• GMS81024
• GMS81032
background image
Revision 3.1
Published by MCU Application Team in HYNIX Semiconductor Inc.
All Right Reserved.
Editor's E-Mail :
rhja@hynix.com
Additional information of this manual may be served by HYNIX Semiconductor Inc.Offices in
Korea or Distributors and Representative listed at address directory.
HYNIX Semiconductor Inc.reserves the right to make changes to any Information here at any
time without notice.
The information, diagrams, and other data in this manual are correct and reliable; however, HYNIX
Semiconductor Inc.is in no way responsible for any violations of patents or other rights of the third
party generated by the use of this manual.
background image
Table of Contents
Table of Contents
Chapter 1
Overview
1.1 Features & Pin Assignments . . . . . . . . . . . . . . . . . . . . .
1-1
1.2 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2
1.3 Package Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3
1.4 Pin Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5
1.5 Port Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6
1.6 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . .
1-10
Chapter 2
Function Description
2.1 Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
2.2 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6
2.3 TCALL Vector Area . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-7
2.4 Zero-Page Peripheral Registers . . . . . . . . . . . . . . . . . . . 2-8
Chapter 3
I/O PORT
3.1 Port R0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1
3.2 Port R1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2
3.3 Port R2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2
Chapter 4
Peripheral Hardware
4.1 Clock Generating Circuit . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.2 Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
background image
Table of Contents
Chapter 5
Interrupt
5.1 Interrupt Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
5.2 Interrupt Control Register . . . . . . . . . . . . . . . . . . . . . . . .
5-3
5.3 Interrupt Accept Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4
5.4 Interrupt Processing Sequence . . . . . . . . . . . . . . . . . . . .
5-7
5.5 Software Interrupt . . .. . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8
5.6 Multiple Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-9
5.7 Key Scan Input Processing . . . . . . . . . . . . . . . . . . . . . . .
5-11
Chapter 6
Standby Function
6.1 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1
6.2 Standby Mode Release . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.3 Release Operation of Standby Mode . . . . . . . . . . . . . . . 6-5
Chapter 7
Reset Function
7.1 External RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-1
7.2 Power On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-1
7.3 Low Voltage Detection Mode . . . . . . . . . . . . . . . . . . . . .
7-4
Appendix
Instruction Set Table
Programmer`s guide
Mask option list
background image
OVERVIEW
1
FUNCTION DESCRIPTION
2
I/O PORT
3
PERIPHERAL HARDWARE
4
INTERRUPT
5
STANDBY FUNCTION
6
RESET FUNCTION
7
APPENDIX A.
8
APPENDIX B.
9
background image
1 - 1
Chapter 1. Overview
CHAPTER 1. OVERVIEW
The GMS810 Series is the high speed and Low voltage operating 8-bit single chip
microcomputers. This MCU contains G8MC core, ROM, RAM, input/output ports and five
multi-function timer/counters.
1.1 FEATURES & PIN ASSIGNMENTS (TOP VIEW)
¡á
ROM size . . . . . . . . . . . . . 4,096 Bytes ( GMS81004 ) , 8,192 Bytes (GMS81008 )
. . . . . . . . . . . . . 16,384 Bytes ( GMS81016 ) ,24,576 Bytes(GMS81024 )
. . . . . . . . . . . . . 32,768 Bytes ( GMS81032 )
¡á
RAM size . . . . . . . . . . . . . 448 Bytes
¡á
Instruction Execution Time . . 1us @Xin=4MHz
¡á
Timer
¡Ü
Timer/Counter . . . . . .
8Bit * 2ch , 16Bit * 1ch
¡Ü
Basic Interval Time . . .
8Bit * 1ch
¡Ü
Watch Dog Timer . . . .
6Bit * 1ch
¡á
Power On Reset
¡á
Power Saving Operation Modes
¡Ü
STOP
¡á
8 Interrupt Sources
¡Ü
Nested Interrupt Control is Available
¡á
Operating Voltage
¡Ü
2.0~4.0V @2MHz
¡Ü
2.2~4.0V @4MHz
¡á
Low Voltage Detection Circuit
¡á
Watch dog Timer Auto Start ( During 1Second after Power on Reset )
¡á
Package
¡Ü
20SOP/20PDIP/24SOP/24Skinny DIP/28SOP/28Skinny DIP
¡Ü
44PLCC
¡á
I/O Port
20pin
24pin
28pin
44pin
input
3
3
3
3
output
2
2
2
2
I/O
13
17
21
24
background image
1 - 2
Chapter 1. Overview
PIN ASSIGNMENT
R11
R10
VDD
XOUT
XIN
R00
R01
R02
R03
R20
1
2
3
4
5
7
8
9
10
6
R16
R17
REMOUT
RESET
TEST
R07
R06
R05
R04
VSS
20
19
18
17
16
15
14
13
12
11
R13
R12
R11
R10
VDD
XOUT
XIN
R00
R01
R02
R03
R20
1
2
3
4
5
7
8
9
10
11
12
6
R14
R15
R16
R17
REMOUT
RESET
TEST
R07
R06
R05
R04
VSS
24
23
22
21
20
19
18
17
16
15
14
13
R14
R15
R16
R17
REMOUT
RESET
TEST
R07
R06
R05
R04
VSS
R24
R23
28
27
26
25
24
23
22
21
20
19
18
17
16
15
R13
R12
R11
R10
VDD
XOUT
XIN
R00
R01
R02
R03
R20
R21
R22
1
2
3
4
5
7
8
9
10
11
12
13
14
6
28PIN
R27
VSS
REMOUT
RESET
TEST
R07
R06
R05
39
38
37
36
35
34
33
32
31
30
29
44PLCC
R25
R26
7
8
9
10
11
12
13
14
VDD
XOUT
XIN
R00
R01
R02
15
16
17
R13
R12
R11
R10
6
5
4
3
2
1
44
43
42
41
40
R14
R15
R16
R17
R22
R21
R20
R03
18
19
20
21
22
23
24
25
26
27
28
R23
R24
VSS
R04
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
24PIN
24PIN
20PIN
background image
1 - 3
1.2 Block Diagram
`
G8MC
CORE
RAM
(448byte)
ROM
(16K byte)
WATCHDOG
TIMER
TIMER
INTERRUPT
Key scan
INT.
generation
Block
CLOCK
GEN. /
SYSTEM
CONTROL
PRESCALER
/
B.I.T
R0
PORT
R1
PORT
R2
PORT
Vdd
Vss
Xout
Xin
RESET
TEST
R10~R17
R00~R07
R11/INT1
R12/INT2
REMOUT
R17/T0
R16/T1
R15/T2
R14/EC
R00~R07
R10~R17
R20~R27
Chapter 1. Overview
background image
1 - 4
1.3 Package Dimension
Chapter 1. Overview
1.3.1 20SOP Pin Dimension(dimensions in inch)
1.3.2 20PDIP Pin Dimension (dimensions in inch)
background image
1 - 5
Chapter 1. Overview
1.3.3 24SOP Pin Dimension (dimensions in inch)
1.3.4 24skinnyDIP Pin Dimension (dimensions in inch)
background image
1 - 6
Chapter 1. Overview
1.3.5 28SOP Pin Dimension (dimensions in inch)
1.3.6 28skinnyDIP Pin Dimension (dimensions in inch)
background image
1 - 7
1.3.7 44PLCC Pin Dimension (dimensions in mm)
Chapter 1. Overview
background image
1 - 8
1.4 Pin Function
PIN NAME
INPUT/
OUTPUT
Function
@ RESET @ STOP
R00
I/O
INPUT
State
of before
STOP
R01
R02
R03
R04
R05
R06
R07
R10
R11/INT1
R12/INT2
R13
R14/EC
R15/T2
R16/T1
R17/T0
R20
R21
R22
R23
R24
XIN
XOUT
REMOUT
RESET
TEST
VDD
VSS
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I
O
O
I
I
P
P
- Each bit of the port can be
individually configured as an
input or an output by user
software
- Push-pull output
- CMOS input with pull-up resistor
(option)
- Can be programmable as Key
Scan Input
- Pull-ups are automatically
disabled at output mode
INPUT
State
of before
STOP
- CMOS input with pull-up resistor
(option)
- Push-pull output
- Can be programmable as Key
Scan Input or Open drain output
- Direct Driving of LED(N-TR)
- Pull-ups are disabled at output
mode
INPUT
State
of before
STOP
- CMOS input with pull-up resistor
(option)
- Push-pull output
- Direct Driving of LED(N-TR)
- Pull-ups are disabled at output
mode
Low
High
- Oscillator Input
- Oscillator Output
`L` output
`L` Output
- High Current Output
`L` level
state
of before
STOP
- Includes pull-up resistor
- Includes pull-up resistor
- Positive power supply
- Ground
Chapter 1. Overview
INPUT
20Pin 24Pin 28Pin 44Pin
6
8
8
11
7
9
9
15
8
10
10
16
9
11
11
19
12
14
18
27
13
15
19
30
14
16
20
31
15
17
21
32
2
4
4
5
1
3
3
4
-
2
2
3
-
1
1
2
-
24
28
44
-
23
27
43
20
22
26
42
19
21
25
41
R25
I/O
R26
I/O
R27
I/O
10
12
12
20
-
-
13
21
-
-
14
22
-
-
15
24
-
-
16
25
-
-
-
13
-
-
-
14
-
-
-
36
VSS
P
5
7
7
10
4
6
6
9
18
20
24
38
17
19
23
37
16
18
22
33
3
5
5
8
11
13
17
26
-
-
-
35
background image
1 - 9
1.5 Port Structure
1.5.1 R0 PORT
Chapter 1. Overview
R00
R01
R02
R03
R04
R05
R06
R07
PIN
@ RESET
Hi - Z
OR
High-Input
(with pullup)
MUX
Data Reg
Direction Reg
Data Bus
¡è
Rd
CIRCUIT TYPE
VDD
VSS
pull-up
option
PAD
VDD
Data Bus
¡è
Rd
background image
1 - 10
1.5.2 R1 PORT
Chapter 1. Overview
MUX
Data Reg
Direction Reg
Data Bus
R10
R11/INT1
R12/INT2
R13
R14/EC
PIN
CIRCUIT TYPE
@ RESET
Hi - Z
OR
High-Input
(with pullup)
VDD
VSS
pull-up
option
PAD
VDD
T0 R11...INT1
T0 R12...INT2
T0 R14...EC
Rd
open drain
selection
MUX
Data Reg
Direction Reg
Data Bus
R15 / T2
R16 / T1
R17 / T0
Hi - Z
OR
High-Input
(with pullup)
VDD
VSS
pull-up
option
PAD
VDD
Rd
open drain
selection
MUX
from R15...T2
from R16...T1
from R17...T0
background image
1 - 11
1.5.3 R2 PORT
Chapter 1. Overview
REMOUT PORT
internal signal
REMOUT
PIN
CIRCUIT TYPE
@ RESET
Low level
VDD
VSS
PAD
MUX
Data Reg
Direction Reg
Data Bus
R20
R21
R22
R23
R24
R25
R26
R27
PIN
CIRCUIT TYPE
@ RESET
Hi - Z
OR
High-Input
(with pullup)
VDD
VSS
pull-up
option
PAD
VDD
¡è
Rd
background image
1 - 12
1.5.4 Miscellaneous Ports
Chapter 1. Overview
PIN
CIRCUIT TYPE
@ RESET
RESET
Low level
VSS
PAD
VDD
VSS
from POWER on RESET circuit
pull-up resistor
TEST
High level
PAD
VDD
VSS
pull-up resistor
Xin
Xout
oscillation
Xin
Xout
VSS
from STOP circuit
background image
1 - 13
1.6 Electrical Characteristics
1.6.1 Absolute Maximum Ratings (Ta = 25
¡É
)
Chapter 1. Overview
1.6.2 Recommended Operating Ranges
PARAMETER
Supply Voltage
Input Voltage
Output Voltage
Operating Temperature
Storage Temperature
Power Dissipation
SYMBOL
VDD
VI
VO
Topr
Tstg
PD
RATINGS
-0.3 ~ +7.0
-0.3 ~ VDD + 0.3
0 ~ 70
-65 ~ 150
700
-0.3 ~ VDD + 0.3
UNIT
V
V
¡É
¡É
mW
V
PARAMETER
SYMBOL
CONDITION
UNIT
Supply Voltage
VDD1
VDD2
Operating Temperature
Topr
Oscillation Frequency
fXin
fXin = 1MHz
fXin = 2MHz
fXin = 4MHz
MIN.
TYP.
MAX.
V
V
MHz
¡É
2.0
2.2
4.0
4.0
2.0
1.0
0
70
4.0
1.6.2 Recommended Operating Ranges
background image
1 - 14
1.6.3 DC Characteristics (VDD = 2.0~4.0, Vss = 0V, Ta = 0
¡É
~ 70
¡É
)
Chapter 1. Overview
Parameter
Symbol
Condition
Specification
Unit
max
typ
min
V
DD
0.8V
DD
high level
input voltage
V
IH
1
R11, R12, R14, RESETB
V
IH
2
V
V
V
DD
0.7V
DD
R0, R1(Except R11,R12,R14 ) , R2
V
IL
1
R11, R12, R14, RESETB
V
IL
2
R0, R1(Except R11,R12,R14 ) , R2
low level
input voltage
0.2V
DD
0
0.3V
DD
0
V
V
high level input
leakage current
low level input
leakage current
I
IH
I
IL
V
OH
1
V
OH
2
V
OH
3
V
OL
1
V
OL
2
high level
output voltage
low level
output voltage
high level output
leakage current
low level output
leakage current
I
OHL
I
OLL
I
P
1
RESETB
I
P
2
R0, R1, R2
input pull-up
current
60
30
15
40
20
10
uA
uA
10
4
6
2.4
mA
6
2.4
3
1.2
10
3
---
8
2
---
POWER
SUPPLY
CURRENT
I
DD
operating
current
f
XIN
=4MHz
I
STOP
stop
mode
current
oscillator
stop
R0,R1,R2,RESETB
R0,R1,R2,RESETB
(without pull-up)
R0
R1(ExceptR17),R2
R17
R0
R1, R2
R0, R1, R2
R0, R1, R2
V
IH
=V
DD
V
IL
=0V
I
OH
=-0.5mA
I
OH
=-1mA
I
OH
=-8mA
I
OL
=1mA
I
OL
=5mA
V
OH
=V
DD
V
OL
=0V
V
DD
=3V
V
DD
=3V
f
XIN
=2MHz
V
DD
=4V
V
DD
=2.2V
V
DD
=4V
V
DD
=2V
V
DD
=4V
V
DD
=2V
1
-1
uA
uA
V
DD
-0.4
V
DD
-0.4
V
DD
-0.9
V
V
V
0.4
0.8
V
V
1
-1
uA
uA
mA
mA
mA
uA
uA
I
OL
REMOUT
V
OL