
2-20
CPU
(Example of pre-processing by the interrupt handler)
1.
The registers are saved.
The saved registers are those used by the interrupt handler.
2.
The interrupt group analysis is executed.
2.1 The interrupt acknowledge sequence is executed.
Interrupt acknowledge consists of reading out the interrupt accept group register (IAGR) to obtain the group
number of the interrupt group with the highest priority among the specified interrupt levels.
2.2 The leading address of the interrupt handler for each level is generated.
2.3 Control is transferred to the interrupt handler for each level.
3.
When there are multiple factors within the same group, the interrupt control register (GnICR) is read out to
designate the factor.
* In case of non-maskable interrupts, the factor is specified by accessing the NMICR directly without accessing
the IAGR.
4.
Control is transferred to the interrupt handler for each factor.
Note that because this microcontroller uses a store buffer when writing data via the bus controller, it is necessary,
when releasing the interrupt factor, to read the appropriate register immediately after clearing the interrupt
factor in order to wait for the factor in the GnICR to be cleared completely.
(Example of post-processing by the interrupt handler)
5.
The registers are restored.
The restored registers are those saved by the pre-processing.
6.
The RTI instruction is executed and control returns to the program before the interrupt.
Fig. 2-5-5 shows the interrupt sequence flow. (when not accepting nested interrupts)
The numbers in the figure correspond to the numbers of processing performed by the interrupt handler in the
previous section.
Fig. 2-5-5 Interrupt Sequence Flow
Interrupt processing
and interrupt request
cancel
Program
Handler (pre-processing)
Interrupt
max. 11 Cycles
Interrupt processing by hardware
RTI
Interrupt
handler
Handler (post-processing)
1
2
3
4
5
6
Processing for each level
Processing for each group
Processing for
each factor
3 Cycles
Содержание MN103001G/F01K
Страница 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 7: ...14 A D Converter 15 I O Ports 16 Internal Flash Memory 17 Ordering Mask ROM Appendix 14 15 16 17 ...
Страница 8: ......
Страница 9: ...Table of Contents List of Figures and Tables 0 ...
Страница 26: ...xviii ...
Страница 27: ...1 0 1 General Specifications ...
Страница 35: ...2 CPU 2 ...
Страница 57: ...3 Extension Instruction Specifications 3 ...
Страница 96: ...Extension Instruction Specifications 3 40 ...
Страница 97: ...4 Memory Modes 3 4 ...
Страница 102: ...Memory Modes 4 6 ...
Страница 103: ...5 Operating Mode 5 ...
Страница 107: ...6 Clock Generator 6 13 ...
Страница 111: ...7 Internal Memory 7 ...
Страница 114: ...Internal Memory 7 4 ...
Страница 115: ...8 Bus Controller BC 8 ...
Страница 189: ...9 Interrupt Controller 9 ...
Страница 220: ...Interrupt Controller 9 32 ...
Страница 221: ...10 8 bit Timers 9 10 ...
Страница 254: ...8 bit Timers 10 34 ...
Страница 255: ...11 16 bit Timers 11 ...
Страница 292: ...16 bit Timers 11 38 ...
Страница 293: ...12 Watchdog Timer 11 12 ...
Страница 302: ...Watchdog Timer 12 10 ...
Страница 303: ...13 Serial Interface 13 ...
Страница 354: ...Serial Interface 13 52 ...
Страница 355: ...14 A D Converter 14 ...
Страница 367: ...15 I O Ports 15 ...
Страница 431: ...16 Internal Flash Memory 16 ...
Страница 439: ...17 17 Ordering Mask ROM ...
Страница 442: ...Ordering Mask ROM 17 4 ...
Страница 443: ...Appendix ...