Fujitsu MB90335 Series Hardware Manual page 84

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
■ Operation of Hardware Interrupt
Figure 3.4-2 shows the operation sequence from generation of a hardware interrupt to completion of
interrupt handling.
Internal bus
(7)
Other peripheral
function
(8)
IL
: Interrupt level set bit of Interrupt control register (ICR)
PS : Processor status
I
: Interrupt enable flag
ILM: Interrupt level mask register
IR : Instruction register
FF : flip - flop
(1) An interrupt cause occurs in a peripheral function.
(2) The peripheral function interrupt enable bit is referred. If it indicates "enable", an interrupt request is
output from the periphery to the interrupt controller.
(3) After receiving the interrupt request, the interrupt controller determines the priorities of the
simultaneously received interrupt requests. Then, the controller sends the ILs associated with the
interrupt requests to the CPU.
(4) The CPU compares the interrupt level requested from the interrupt controller with the interrupt level
mask register (ILM).
(5) If the comparison reveals that the priority is higher than the current interrupt handling level, the contents
of the I flag of the condition code register (CCR) will be checked.
(6) If the check in Item (5) reveals that the I flag indicates "enable", that is, I = 1, control waits for
completion of the currently active instruction. The requested IL is set in the ILM on completion.
(7) The contents of the register are saved before control branches to the interrupt handling routine.
(8) The software in the interrupt handling routine clears the interrupt cause generated at 1 and executes the
RETI instruction to complete the interrupt handling.
CM44-10137-6E
Figure 3.4-2 Operation of Hardware Interrupt
PS, PC
Microcode
2
F
MC-16LX CPU
Peripheral function generated
Interrupt request
Enable FF
AND
Factor FF
(1)
RAM
FUJITSU MICROELECTRONICS LIMITED
PS
I
IR
Check
(6)
(5)
(2)
CHAPTER 3 INTERRUPT
3.4 Hardware Interrupt
ILM
Comparator
(4)
(3)
Level
Interrupt
comparator
level IL
Interrupt controller
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents