2.
IRQaF flag clear and IRQbF flag generation compete (IRQaF flag setting).
(The ISR read needed for IRQaF flag clear was at IRQbF = 0 but in the time taken for ISR
write, IRQbF = 1 was reached.)
In all of the setting conditions 1 to 3 and occurrence conditions 1 and 2 are generated, IRQbF
clears in error during ISR write for occurrence condition 2 and interrupt processing is not carried
out. However, if IRQbF flag reaches 0 between occurrence conditions 1 and 2, IRQbF flag does
not clear in error.
Figure 5-9 IRQnF Flag When Interrupt Processing Is Not Conducted
In this situation, conduct one of the following countermeasures.
Countermeasure 1
When IRQaF flag clears, do not use the bit computation command, read the ISR in bytes. When
IRQaF only is 0 write all other bits as 1 in bytes.
For example, if a = 0
MOV.B @ISR,R0L
MOV.B #HFE,R0L
Read
1
Write
0
Read
1
Write
1
IRQb
Execution
Read
1
Write
0
Read
0
Write
0
Clear in error
Occurrence condition 1
IRQaF
IRQbF
Occurrence condition 2
109
www.DataSheet4U.com