
ii
3.4.2
Program Execution State ....................................................................................... 71
3.4.3
Exception Handling State...................................................................................... 72
3.4.4
Program Stopped State.......................................................................................... 72
Section 4 Exception Handling........................................................................................... 73
4.1
Overview ............................................................................................................................ 73
4.2
Reset ................................................................................................................................... 74
4.2.1
Overview ............................................................................................................... 74
4.2.2
Reset Sequence...................................................................................................... 74
4.3
Stop Mode Clear................................................................................................................. 75
4.3.1
Overview ............................................................................................................... 75
4.3.2
Stop Mode Clear Sequence (
RESET Pin Input) ................................................... 75
4.3.3
Stop Mode Clear Sequence (
STOPC Pin Input) ................................................... 75
4.4
Initial Values of Registers and Flags on Reset and Stop Mode Clear................................ 76
4.5
Interrupts ............................................................................................................................ 79
4.5.1
Overview ............................................................................................................... 79
4.5.2
Interrupt Registers and Flags ................................................................................ 80
4.5.3
External Interrupts................................................................................................. 88
4.5.4
Internal Interrupts.................................................................................................. 88
4.5.5
Interrupt Handling Sequence ................................................................................ 89
Section 5 Low Power Modes (HD404344R/HD404394/HD404318
/HD404358 /HD404358R Series) .............................................................. 95
5.1
Overview ............................................................................................................................ 95
5.1.1
Features ................................................................................................................. 95
5.1.2
State Transition Diagram ...................................................................................... 97
5.1.3
Pin Functions......................................................................................................... 97
5.1.4
Registers and Flags................................................................................................ 98
5.2
Register and Flag Descriptions .......................................................................................... 99
5.2.1
Port Mode Register B (PMRB: $024) ................................................................... 99
5.2.2
RAM Enable Flag (RAME: $021, 3) .................................................................... 101
5.3
Standby Mode .................................................................................................................... 102
5.3.1
Entering Standby Mode ........................................................................................ 102
5.3.2
Clearing Standby Mode ........................................................................................ 102
5.4
Stop Mode .......................................................................................................................... 104
5.4.1
Entering Stop Mode .............................................................................................. 104
5.4.2
Clearing Stop Mode .............................................................................................. 104
5.4.3
Post-Stop Mode Oscillator Stabilization Period.................................................... 105
5.5
Low Power Mode Operating Sequence.............................................................................. 105
Section 6 Low Power Modes (HD404339 and HD404369 Series) ....................... 107
6.1
Overview ............................................................................................................................ 107
6.1.1
Features ................................................................................................................. 107