i
CONTENTS
CHAPTER 1
Overview .................................................................................................
1.1
Features ....................................................................................................... 1
1.2
Product Lineup ............................................................................................ 3
1.3
Block Diagram ............................................................................................ 4
1.4
Pin Assignment ........................................................................................... 5
1.5
Dimensions.................................................................................................. 6
1.6
Pin Description ............................................................................................ 7
1.7
Handling of Devices.................................................................................. 13
1.8
Mask Option List....................................................................................... 15
CHAPTER 2
Hardware ............................................................................................ 16
2.1
CPU ........................................................................................................... 16
2.2
Maps .......................................................................................................... 55
2.3
Parallel Ports ............................................................................................. 64
2.4
Multi-Function Timer................................................................................ 70
2.5
UART ...................................................................................................... 113
2.6
10-Bit 8-Input Channel A/D Converter (with 8-bit Resolution Mode)... 129
2.7
PWM ....................................................................................................... 147
2.8
16-Bit Reload Timer (with Event Count Function) ................................ 153
2.9
External Interrupts................................................................................... 168
2.10 Delayed Interrupt Generator Module ...................................................... 173
2.11 Watchdog Timer, Timebase Timer Functions......................................... 175
2.12 Low Power Consumption Control Circuits (CPU Intermittent Operation
Function, Oscillation Stabilization Wait Time,
Clock Multiplier Function)...................................................................... 182
2.13 Interrupt Controller ................................................................................. 189
CHAPTER 3
Operation ......................................................................................... 197
3.1
Clock Generation Block .......................................................................... 197
3.2
Resets ...................................................................................................... 198
3.3
Interrupts ................................................................................................. 201
3.4
Memory Access Modes ........................................................................... 219
3.5
Low Power Consumption Modes............................................................ 223
3.6
Pin Status in Sleep, Stop, Hold and Reset Modes ................................... 230
CHAPTER 4
Instructions .................................................................................... 231
4.1
Addressing............................................................................................... 231
4.2
Instruction Set ......................................................................................... 236
4.3
Instruction Map ....................................................................................... 256
CHAPTER 5
MB90P663A Specifications ................................................... 279
5.1
Features ................................................................................................... 279
5.2
PROM Writing Sequence........................................................................ 279
5.3
PROM Option Settings............................................................................ 280