199
CHAPTER 6 INTERRUPT AND TEST FUNCTIONS
Examples 1. To use both INTBT and INT4 as having the higher priority and give priority to INT4
DI
SKTCLR IRQ4 ; IRQ4 = 1 ?
BR VSUBBT
Processing routine
EI of INT4
RETI
VSUBBT: CLR1 IRQBT
Processing routine
of INTBT
EI
RETI
2. To use both INTBT and INT4 as having the lower priority and give priority to INT4
SKTCLR IRQ4 ; IRQ4 = 1 ?
BR VSUBBT
Processing routine
of INT4
RETI
VSUBBT: CLR1 IRQBT
Processing routine
of INTBT
RETI
*
*
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.