520
CHAPTER 22 INTERRUPT FUNCTIONS
Figure 22-16. Multiple Interrupt Example (1/2)
Example 1. Two multiple interrupts generated
During interrupt INTxx servicing, two interrupt requests, INTyy and INTzz are acknowledged, and
a multiple interrupt is generated. An EI instruction is issued before each interrupt request
acknowledge, and the interrupt request acknowledge enable state is set.
Example 2. Multiple interrupt is not generated by priority control
The interrupt request INTyy generated during interrupt INTxx servicing is not acknowledged
because the interrupt priority is lower than that of INTxx, and a multiple interrupt is not generated.
INTyy request is retained and acknowledged after execution of 1 instruction execution of the main
processing.
PR = 0 : Higher priority level
PR = 1 : Lower priority level
IE = 0 : Interrupt request acknowledge disable
Main Processing
EI
INTxx
(PR = 1)
INTyy
(PR = 0)
IE = 0
EI
RETI
INTxx
Servicing
INTzz
(PR = 0)
IE = 0
EI
RETI
INTyy
Servicing
IE = 0
RETI
INTzz
Servicing
Main Processing
INTxx
Servicing
INTyy
Servicing
INTxx
(PR = 0)
1 Instruction
Execution
IE = 0
INTyy
(PR = 1)
EI
IE = 0
EI
RETI
RETI
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...