
vi
3.7.4 Setting procedure of Extended Intelligent I/O Service (EI2OS) ..................................................... 89
3.7.5 Processing Time for Extended Intelligent I/O Service (EI2OS) ..................................................... 90
3.8 Exception Processing Interrupt by Executing Undefined Instruction .................................................. 93
3.9 Stack Operation of Interrupt Processing ............................................................................................. 94
3.10 Sample Program of Interrupt Processing ............................................................................................ 96
3.11 Delay Interrupt Event Module ............................................................................................................. 99
3.11.1 Operation of Delay Interrupt Event Module ................................................................................. 100
CHAPTER 4 RESET ...................................................................................................... 101
4.1 Overview of Reset ............................................................................................................................. 102
4.2 Reset Factors and Oscillation Stabilization Wait Time ..................................................................... 104
4.3 External-Reset Pin ............................................................................................................................ 106
4.4 Resetting ........................................................................................................................................... 107
4.5 Reset-Factor Bits .............................................................................................................................. 109
4.6 Condition of Pins as Result of Reset ................................................................................................ 111
CHAPTER 5 CLOCKS ................................................................................................... 113
5.1 Overview ........................................................................................................................................... 114
5.2 Block Diagram of Clock Generator ................................................................................................... 116
5.3 Clock Selection Register (CKSCR) ................................................................................................... 118
5.4 Clock Modes ..................................................................................................................................... 121
5.5 Oscillation Stabilization Wait Time .................................................................................................... 125
5.6 Connecting Oscillator to External Clock ............................................................................................ 126
CHAPTER 6 LOW-POWER CONSUMPTION MODE .................................................... 127
6.1 Overview of Low-Power Consumption Mode .................................................................................... 128
6.2 Block Diagram of Low-power Control Circuit .................................................................................... 131
6.3 Low-Power Consumption Mode Control Register (LPMCR) ............................................................. 133
6.4 CPU Intermittent Operation Mode ..................................................................................................... 136
6.5 Standby Mode ................................................................................................................................... 137
6.5.1 Sleep Mode .................................................................................................................................. 138
6.5.2 Timebase Timer Mode ................................................................................................................. 140
6.5.3 Watch Mode ................................................................................................................................. 142
6.5.4 Stop Mode ................................................................................................................................... 144
6.6 State Transition Diagram .................................................................................................................. 146
6.7 Pin State in Standby Mode, Hold, and Reset .................................................................................... 148
6.8 Caution on Using Low-Power Consumption Mode ........................................................................... 153
CHAPTER 7 MODE SETTING ....................................................................................... 157
7.1 Mode Setting ..................................................................................................................................... 158
7.2 Mode Pins (MD2 to MD0) ................................................................................................................. 159
7.3 Mode Data ........................................................................................................................................ 160
7.4 External Memory Access .................................................................................................................. 164
7.4.1 Automatic ready function selection register (ARSR) .................................................................... 166
7.4.2 External address output control register (HACR) ......................................................................... 168
7.4.3 Bus control signal selection register (EPCR) ............................................................................... 169
7.5 Operation of Each Mode for Mode Setting ........................................................................................ 171
7.5.1 External memory access control signals ...................................................................................... 172