Table of Contents
OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . 1
Description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . 1
Development Tools . . . . . . . . . . . . . . . . 2
Ordering Information . . . . . . . . . . . . . . . 2
BLOCK DIAGRAM . . . . . . . . . . . . . . . . . 3
PIN ASSIGNMENT . . . . . . . . . . . . . . . . . 4
PACKAGE DIAGRAM . . . . . . . . . . . . . . . 5
PIN FUNCTION . . . . . . . . . . . . . . . . . . . . 6
PORT STRUCTURES . . . . . . . . . . . . . . . 8
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
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
MEMORY ORGANIZATION . . . . . . . . . 22
Registers . . . . . . . . . . . . . . . . . . . . . . 22
Program Memory . . . . . . . . . . . . . . . . 24
Data Memory . . . . . . . . . . . . . . . . . . . 27
Addressing Mode . . . . . . . . . . . . . . . . 31
I/O PORTS . . . . . . . . . . . . . . . . . . . . . . 35
RA and RAIO registers . . . . . . . . . . . . 35
RB and RBIO registers . . . . . . . . . . . . 36
RC and RCIO registers . . . . . . . . . . . .38
RD and RDIO registers . . . . . . . . . . . .39
CLOCK GENERATOR . . . . . . . . . . . . . .40
Oscillation Circuit . . . . . . . . . . . . . . . . .40
BASIC INTERVAL TIMER . . . . . . . . . . .41
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
SERIAL PERIPHERAL INTERFACE . . .51
BUZZER OUTPUT FUNCTION . . . . . . .53
ANALOG TO DIGITAL CONVERTER . . 54
INTERRUPTS . . . . . . . . . . . . . . . . . . . .57
Interrupt Sequence . . . . . . . . . . . . . . .59
BRK Interrupt . . . . . . . . . . . . . . . . . . . .60
Multi Interrupt . . . . . . . . . . . . . . . . . . . .60
External Interrupt . . . . . . . . . . . . . . . . .62
WATCHDOG TIMER . . . . . . . . . . . . . . .64
POWER SAVING MODE . . . . . . . . . . . .65
Stop Mode . . . . . . . . . . . . . . . . . . . . . .65
STOP Mode using Internal RCWDT . . 67
Wake-up Timer Mode . . . . . . . . . . . . . 68
Minimizing Current Consumption . . . .69
RESET . . . . . . . . . . . . . . . . . . . . . . . . . .71
POWER FAIL PROCESSOR . . . . . . . . . 72
OTP PROGRAMMING (GMS87C1404/
GMS87C1408 ONLY) . . . . . . . . . . . . . . .74
DEVICE CONFIGURATION AREA . . .74
A. INSTRUCTION MAP . . . . . . . . . . . . . i
B. INSTRUCTION SET . . . . . . . . . . . . . ii