11
μ
PD17068
11. INTERRUPT ................................................................................................................................. 102
11.1
OUTLINE OF THE INTERRUPT BLOCK ........................................................................................
11.2
INTERRUPT CONTROL BLOCKS...................................................................................................
11.2.1
Formats and Functions of Interrupt Request Flags (IRQ
×××
) ..................................
11.2.2
Interrupt Enable Flags (IP
×××
) ......................................................................................
11.2.3
Vector Address Generator (VAG) ................................................................................
11.3
INTERRUPT STACK REGISTER .....................................................................................................
11.3.1
Format and Functions of the Interrupt Stack Register ............................................
11.3.2
Interrupt Stack Operation.............................................................................................
11.4
STACK POINTER, ADDRESS STACK REGISTER, AND PROGRAM COUNTER.......................
11.5
INTERRUPT ENABLE FLIP-FLOP (INTE).......................................................................................
11.6
ACCEPTING INTERRUPTS.............................................................................................................
11.6.1
Operation for Accepting Interrupts and Priorities ....................................................
11.6.2
Timing Charts for Accepting Interrupts......................................................................
11.7
OPERATION AFTER AN INTERRUPT IS ACCEPTED ..................................................................
11.8
RETURN FROM THE INTERRUPT HANDLING ROUTINE...........................................................
11.9
EXTERNAL INTERRUPTS (INT
0
PIN, INT
NC
PIN, V
SYNC
PIN, H
SYNC
PIN)...................................
11.9.1
Outline of External Interrupts ......................................................................................
11.9.2
Edge Detection Blocks...................................................................................................
11.9.3
Interrupt Control Block .................................................................................................
11.9.4
Input Pin for Remote Control (INT
NC
)..........................................................................
11.10
INTERNAL INTERRUPTS ...............................................................................................................
11.10.1
Timer 0 Interrupt ............................................................................................................
11.10.2
Timer 1 Interrupt ............................................................................................................
11.10.3
Basic Timer 2 Interrupt .................................................................................................
11.10.4
VRAM Pointer Interrupt ................................................................................................
11.10.5
Serial Interface 0 Interrupt ...........................................................................................
11.10.6
Serial Interface 1 Interrupt ...........................................................................................
11.10.7
Interrupts by Interrupt Group 0 and Interrupt Group Selection Register .............
102
104
104
110
112
113
113
113
114
114
115
115
116
119
119
120
120
121
122
123
123
124
124
124
124
124
124
125
12. TIMERS ........................................................................................................................................ 126
12.1
OVERVIEW ......................................................................................................................................
12.2
BASIC TIMER 0 ...............................................................................................................................
12.2.1
Overview of Basic Timer 0............................................................................................
12.2.2
Clock Selection Block ....................................................................................................
12.2.3
Flip-Flop and BTM0CY Flag ..........................................................................................
12.2.4
Example of Using Basic Timer 0 ..................................................................................
12.2.5
Time Interval Error in Basic Timer 0 ...........................................................................
12.2.6
Cautions for Using Basic Timer 0 ................................................................................
12.3
BASIC TIMER 1 ...............................................................................................................................
12.3.1
Overview of Basic Timer 1............................................................................................
12.3.2
Clock Selection Block ....................................................................................................
12.3.3
Flip-Flop and BTM1CY Flag ..........................................................................................
12.3.4
Time Interval Error in Basic Timer 1 ...........................................................................
12.4
BASIC TIMER 2 ...............................................................................................................................
12.4.1
Overview of Basic Timer 2............................................................................................
12.4.2
Clock Selection Block ....................................................................................................
12.4.3
Example of Using Basic Timer 2 ..................................................................................
126
128
128
128
129
130
131
134
140
140
141
142
142
143
143
144
145