Z8
®
CPU
User Manual
UM001604-0108
Interrupts
95
Interrupts
Z8
®
CPU allows 6 different interrupts from a variety of sources; up to four external inputs,
the on-chip Counter/Timer(s), software, and serial I/O peripherals. These interrupts can be
masked and their priorities are set by using the Interrupt Mask and the Interrupt Priority
Registers. All six interrupts can be globally disabled by resetting the master Interrupt
Enable, bit 7 in the Interrupt Mask Register, with a Disable Interrupt (DI) instruction.
Interrupts are globally enabled by setting bit 7 with an Enable Interrupt (EI) instruction.
There are three interrupt control registers: the Interrupt Request Register (IRQ), the Inter-
rupt Mask register (IMR), and the Interrupt Priority Register (IPR).
displays
addresses and identifiers for the interrupt control registers.
displays
the block diagram illustrating the Interrupt Mask and Interrupt Priority logic. The Z8 fam-
ily supports both vectored and polled interrupt handling.
Figure 90. Interrupt Control Registers
Register
HEX
7
Interrupt Mask
Interrupt Request
Interrupt Priority
Identifier
FBh
FAh
F9h
IMR
IRQ
IPR