Usage Notes; Conflict Between Interrupt Generation And Disabling - Renesas H8SX/1650 Hardware Manual

Renesas 32-bit cisc microcomputer h8sx family / h8sx/1600 series
Table of Contents

Advertisement

5.8

Usage Notes

5.8.1

Conflict between Interrupt Generation and Disabling

When an interrupt enable bit is cleared to 0 to mask the interrupt, the masking becomes effective
after execution of the instruction.
When an interrupt enable bit is cleared to 0 by an instruction such as BCLR or MOV, if an
interrupt is generated during execution of the instruction, the interrupt concerned will still be
enabled on completion of the instruction, and so interrupt exception handling for that interrupt will
be executed on completion of the instruction. However, if there is an interrupt request with priority
over that interrupt, interrupt exception handling will be executed for the interrupt with priority,
and another interrupt will be ignored. The same also applies when an interrupt source flag is
cleared to 0. Figure 5.7 shows an example in which the TCIEV bit in TIER of the TPU is cleared
to 0. The above conflict will not occur if an enable bit or interrupt source flag is cleared to 0 while
the interrupt is masked.
Internal
address bus
Internal
write signal
TCIEV
TCFV
TCIV
interrupt signal
Figure 5.7 Conflict between Interrupt Generation and Disabling
If an interrupt is generated immediately before rewriting the DTC enable bit, both DTC activation
and CPU interrupt exception handling are executed. To rewrite the DTC enable bit, execute this
while the corresponding interrupt request is not generated.
TIER_0 write cycle by CPU
TIER_0 address
Section 5 Interrupt Controller
TCIV exception handling
Rev.2.00 Jun. 28, 2007 Page 117 of 666
REJ09B0311-0200

Advertisement

Table of Contents
loading

This manual is also suitable for:

R5s61650cH8sx/1650c

Table of Contents