MB95630H Series
MN702-00009-2v0-E
FUJITSU SEMICONDUCTOR LIMITED
75
CHAPTER 5 INTERRUPTS
5.1 Interrupts
5.1.2
Interrupt Processing
When an interrupt request is made by a peripheral function, the interrupt
controller notifies the CPU of the interrupt level of that interrupt request. When
the CPU is ready to accept interrupts, it halts the program it is executing and
executes an interrupt service routine.
■
Interrupt Processing
The procedure for processing an interrupt is as follows: the generation of an interrupt source in a
peripheral function, the execution of the main program, the setting of the interrupt request flag bit,
the checking of the interrupt request enable bit, the determination of the interrupt level (ILR0 to
ILR5 and CCR:IL[1:0]), the checking for interrupt requests of the same interrupt level made
simultaneously, and the checking of the interrupt enable flag (CCR:I).
Figure 5.1-1 shows the interrupt processing.
Figure 5.1-1 Interrupt Processing
Interrupt
from peripheral
resource?
Peripheral
resource interrupt request
output enabled?
Determine interrupt priority and
transfer interrupt level to CPU
Compare interrupt level
with IL bit in PS
START
Execute main program
Restore PC and PS
Initialize peripheral resources
Interrupt level higher
than IL value?
I flag = 1?
Clear interrupt request
Execute interrupt processing
RETI
Update IL in PS
PC
←
interrupt vector
Save PC and PS to stack
Level comp
a
ra
tor
Interrupt
controller
AND
Interrupt request
flag
Interrupt request
enabled
Condition code register (CCR)
Comparator
Check
CPU
RAM
Intern
a
l d
a
ta
bus
I
IL
Release from stop mode
Release from sleep mode
Release from time-base
timer mode or watch mode
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(3)
(4)
(5)
(6)
(7)
NO
NO
NO
NO
YES
YES
YES
YES
Interrupt service routine
Each peripheral resource
Содержание 8FX
Страница 2: ......
Страница 4: ......
Страница 8: ...iv ...
Страница 17: ...xiii A 3 Bit Manipulation Instructions SETB CLRB 621 A 4 F2 MC 8FX Instructions 622 A 5 Instruction Map 625 ...
Страница 18: ...xiv ...
Страница 22: ...xviii ...
Страница 108: ...MB95630H Series 86 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 2v0 E CHAPTER 6 I O PORT 6 2 Configuration and Operations ...
Страница 284: ...MB95630H Series 262 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 2v0 E CHAPTER 14 LIN UART 14 8 Notes on Using LIN UART ...
Страница 648: ...MB95630H Series 626 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 2v0 E APPENDIX A Instruction Overview A 5 Instruction Map ...
Страница 650: ......