v
Table of Contents
1. GENERAL ...............................................................................................................1-1
1.1 FEATURES ..................................................................................................................1-3
1.2 PRODUCT SERIES......................................................................................................1-4
1.3 BLOCK DIAGRAM........................................................................................................1-5
1.4 PIN ASSIGNMENT.......................................................................................................1-6
1.5 PACKAGE DIMENSIONS .............................................................................................1-8
1.6 PIN DESCRIPTION ....................................................................................................1-11
1.7 HANDLING DEVICES ................................................................................................1-16
2. HARDWARE CONFIGURATION............................................................................2-1
2.1 CPU ..............................................................................................................................2-3
2.1.1
Memory Space ............................................................................................................. 2-3
2.1.2
Arrangement of 16-bit Data in Memory ........................................................................ 2-5
2.1.3
Internal Registers in CPU ............................................................................................. 2-6
2.1.4
Operation Modes and External Bus Operation............................................................. 2-9
2.1.5
Clock Control Block .................................................................................................... 2-14
2.1.6
Interrupt Controller ..................................................................................................... 2-24
2.2 RESOURCE FUNCTIONS .........................................................................................2-27
2.2.1
I/O Ports ..................................................................................................................... 2-27
2.2.2
2-channel 8-bit PWM Timers (Timers 1 and 2) .......................................................... 2-38
2.2.3
Pulse-width Count Timer (Timer 3) ............................................................................ 2-48
2.2.4
16-bit Timer/Counter (Timer 3)................................................................................... 2-55
2.2.5
UART.......................................................................................................................... 2-59
2.2.6
8-bit Serial I/O 1 .........................................................................................................2-73
2.2.7
10-bit A/D Converter................................................................................................... 2-79
2.2.8
External Interrupt Circuit............................................................................................. 2-85
2.2.9
Buzzer Output Circuit ................................................................................................. 2-89
2.2.10 Watch Prescaler ......................................................................................................... 2-91
2.2.11 Time-base Timer ........................................................................................................ 2-93
2.2.12 Watchdog Timer Reset............................................................................................... 2-95
3. OPERATION ...........................................................................................................3-1
3.3 CLOCK PULSE GENERATOR.....................................................................................3-3
3.4 RESET....................................................................................................................... ...3-4
3.4.1
Reset Operation ........................................................................................................... 3-4
3.4.2
Reset Sources..............................................................................................................3-5
3.5 INTERRUPT .................................................................................................................3-6
3.6 MEMORY ACCESS MODE..........................................................................................3-8