![IXYS zilog Z51F6412 Manual Download Page 51](http://html1.mh-extra.com/html/ixys/zilog-z51f6412/zilog-z51f6412_manual_2098946051.webp)
Z51F6412
Product Specification
PS030302-0212
P R E L I M I N A R Y
48
10.7 Multi Interrupt
If two requests of different priority levels are received simultaneously, the request of higher priority
level is serviced. If requests of the interrupt are received at the same time simultaneously, an interrupt
polling sequence determines by hardware which request is serviced. However, multiple processing
through software for special features is possible.
Following example is shown to service INT0 routine during INT1 routine in Figure 10-5. In this
example, INT0 interrupt priority is higher than INT1 interrupt priority. If some interrupt is lower than
INT1 priority, it can’t service its interrupt routine.
Example) Software Multi Interrupt:
INT1: MOV IE, #01H ; Enable INT0 only
MOV IE1, #00H ; Disable others
SETB EA ; Enable global interrupt (necessary for multi interrupt)
:
MOV IE, #03FH ; Enable all Interrupts
MOV IE1, #03FH
RETI
Main Program
Service
Occur
INT1 Interrupt
INT1 ISR
Enable INT0
Disable others
EA
Occur
INT0 Interrupt
INT0 ISR
RETI
RETI
Enable INT0
Enable others
Figure 10-5 Execution of Multi Interrupt