GMS81C1404/GMS81C1408
1. OVERVIEW .........................................................1
Description .........................................................1
Features .............................................................1
Development Tools ............................................2
Ordering Information ..........................................2
2. BLOCK DIAGRAM .............................................3
3. PIN ASSIGNMENT .............................................4
4. PACKAGE DIAGRAM ........................................5
5. PIN FUNCTION ...................................................6
6. PORT STRUCTURES .........................................8
7. ELECTRICAL CHARACTERISTICS
(GMS81C1404/GMS81C1408) .............................12
Absolute Maximum Ratings .............................12
Recommended Operating Conditions ..............12
A/D Converter Characteristics .........................12
DC Electrical Characteristics ...........................13
AC Characteristics ...........................................14
Typical Characteristics .....................................15
8. ELECTRICAL CHARACTERISTICS
(GMS87C1404/GMS87C1408) .............................17
Absolute Maximum Ratings 17
Recommended Operating Conditions ..............17
A/D Converter Characteristics .........................17
DC Electrical Characteristics ...........................18
AC Characteristics ...........................................19
Typical Characteristics .....................................20
9. MEMORY ORGANIZATION .............................22
Registers ..........................................................22
Program Memory .............................................24
Data Memory ...................................................27
Addressing Mode .............................................31
10. I/O PORTS ......................................................35
RA and RAIO registers ....................................35
RB and RBIO registers ....................................36
RC and RCIO registers ................................... 38
RD and RDIO registers ................................... 39
11. CLOCK GENERATOR ................................... 40
Oscillation Circuit ............................................ 40
12. Basic Interval Timer .................................... 41
13. TIMER / COUNTER ....................................... 42
8-bit Timer/Counter Mode ............................... 43
16-bit Timer/Counter Mode ............................. 45
8-bit Compare Output (16-bit) ......................... 45
8-bit Capture Mode ......................................... 45
16-bit Capture Mode ....................................... 48
PWM Mode ..................................................... 48
14. Serial Peripheral Interface ........................... 51
15. Buzzer Output function ................................ 53
16. ANALOG TO DIGITAL CONVERTER ........... 54
17. INTERRUPTS ................................................ 57
Interrupt Sequence .......................................... 59
BRK Interrupt .................................................. 60
Multi Interrupt .................................................. 60
External Interrupt ............................................. 62
18. WATCHDOG TIMER ...................................... 64
19. Power Saving Mode ..................................... 65
Stop Mode ....................................................... 65
STOP Mode using Internal RCWDT ............... 67
Wake-up Timer Mode ...................................... 68
Minimizing Current Consumption .................... 69
20. RESET ........................................................... 71
21. POWER FAIL PROCESSOR ......................... 72
22. OTP PROGRAMMING (GMS87C1404/
GMS87C1408 only) ............................................. 74
DEVICE CONFIGURATION AREA ................. 74
A. INSTRUCTION MAP ......................................i
B. INSTRUCTION SET ......................................ii
SEP. 2004 Ver 1.3
GMS81C1404/GMS81C1408
GMS81C1404 / GMS81C1408
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
1. OVERVIEW
1.1 Description
The GMS81C1404 and GMS81C1408 are an advanced CMOS 8-bit microcontroller with 4K/8K bytes of ROM. The Mag-
naChip semiconductor’s GMS81C1404 and GMS81C1408 are a powerful microcontroller which provides a highly flexible
and cost effective solution to many small applications such as controller for battery charger. The GMS81C1404 and
GMS81C1408 provide the following standard features: 4K/8K bytes of ROM, 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 GMS81C1404 and GMS81C1408 supports power saving modes to reduce pow-
er consumption.
Device name
GMS81C1404
GMS81C1408
GMS87C1404
GMS87C1408
ROM Size
4K bytes
8K bytes
-
-
EPROM Size
-
-
4K bytes
8K bytes
RAM Size
192bytes
192bytes
192bytes
192bytes
Operatind
Voltage
2.2 ~ 5.5V
2.2 ~ 5.5V
2.5 ~ 5.5V
2.5 ~ 5.5V
Package
28 SKDIP or SOP
28 SKDIP or SOP
28 SKDIP or SOP
28 SKDIP or SOP
1.2 Features
• 4K/8K Bytes On-chip Program Memory
• 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.2V 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)
• 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
• Power Down Mode
- STOP mode
- Wake-up Timer mode
SEP. 2004 Ver 1.3
1