124
CHAPTER 5 INTERRUPT CONTROLLER
■
NMI (Non Maskable Interrupt)
NMIs have the highest priority among the interrupt sources handled by this module.
An NMI is therefore always selected even whenever it is generated at the same time as another interrupt
source.
●
When an NMI occurs, the interrupt controller passes the following items of information to the CPU:
Interrupt level
: 15 (01111
B
)
Interrupt number: 15 (0001111
B
)
●
NMI detection
NMIs are set and detected by the external interrupt/NMI controller module. This module only generates an
interrupt level, interrupt number, and MHALTI in response to an NMI request.
●
Suppressing DMA transfer upon NMI request
When an NMI request occurs, the MHALTI bit in the HRCL register is set to "1", suppressing DMA
transfer. To permit DMA transfer, clear the MHALTI bit to "0" at the end of the NMI routine.
■
Hold Request Cancel Request
When a high-priority interrupt needs to be serviced when the CPU has been put on hold (during DMA
transfer), it is necessary to request the hold request issuer to cancel the hold request. Use the HRCL
register to set the interrupt level as the reference level for generating the hold request cancel request.
●
Conditions for generating a hold request cancel request
A hold request cancel request is issued to the DMAC when an interrupt source of a higher interrupt level
than that set in the HRCL register occurs.
Interrupt level set in the HRCL register > Interrupt level after priority evaluation
→
Cancel request
generated
Interrupt level set in the HRCL register
≤
Interrupt level after priority evaluation
→
No cancel request
Once issued, the cancel request remains in effect until the interrupt source causing that request is cleared,
accordingly leaving DMA transfer prevented from being executed. Therefore, be sure to clear the relevant
interrupt source. When an NMI is used, the MHALTI bit in the HRCL register is "1" and thus the cancel
request is in effect.
●
Interrupt levels available
The HRCL register accepts a value from "10000
B
" to "11111
B
" like the ICR register.
If the HRCL register is set to "11111
B
", a cancel request is generated for every level of interrupt. If it is set
to "10000
B
", a cancel request is generated for NMIs only.
Table 5.3-2 lists the interrupt levels for which a hold request cancel request is generated.
Summary of Contents for FR60Lite
Page 3: ......
Page 5: ......
Page 115: ...100 CHAPTER 3 CPU AND CONTROL UNITS ...
Page 127: ...112 CHAPTER 4 I O PORTS ...
Page 143: ...128 CHAPTER 5 INTERRUPT CONTROLLER ...
Page 155: ...140 CHAPTER 6 EXTERNAL INTERRUPT AND NMI CONTROLLER ...
Page 197: ...182 CHAPTER 9 PPG Programmable Pulse Generator ...
Page 337: ...322 CHAPTER 13 UART ...
Page 417: ...402 CHAPTER 16 DMAC DMA Controller ...
Page 445: ...430 CHAPTER 17 FLASH MEMORY ...
Page 451: ...436 CHAPTER 18 SERIAL PROGRAMMING CONNECTION ...
Page 493: ...478 APPENDIX F Precautions on Handling ...
Page 494: ...479 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 507: ...492 INDEX ...
Page 509: ......