English
Language : 

Z86L972 Datasheet, PDF (22/91 Pages) Zilog, Inc. – Low-Voltage Microcontrollers
Z86L972/Z86L973/Z86L974
Low-Voltage Microcontrollers
15
EI Instruction
S
Interrupt Request Register
(IRQ,FAH)
R
Power-On Reset (POR)
Figure 7. Interrupt Block Diagram
Reset
Interrupt requests are stored in the Interrupt Request Register (IRQ), which can
also be used for polling. When an interrupt request is granted, the Z8 enters an
“interrupt machine cycle” that globally disables all other interrupts, saves the pro-
gram counter (the address of the next instruction to be executed) and status flags,
and finally branches to the vector location for the interrupt granted. It is only at this
point that control passes to the interrupt service routine for the specific interrupt.
All six interrupts can be globally disabled by resetting the master Interrupt Enable
(bit 7 of the IMR) with a Disable Interrupts (DI) instruction. Interrupts are globally
enabled by setting the same bit with an Enable Interrupts (EI) instruction.
Descriptions of three interrupt control registers—the Interrupt Request Register,
the Interrupt Mask Register, and the Interrupt Priority Register—are provided in
“Register Summary” on page 47. The Z8 family supports both vectored and polled
interrupt handling.
External Interrupt Sources
External sources involve interrupt request lines P51, P52, and P53 (IRQ2, IRQ0,
and IRQ1, respectively.) IRQ0, IRQ1, and IRQ2 are generated by a transition on
the corresponding port pin. As shown in Figure 8, when the appropriate port pin
(P51, P52, or P53) transitions, the first flip-flop is set. The next two flip-flops syn-
chronize the request to the internal clock and delay it by two internal clock peri-
ods. The output of the most recent flip-flop (IRQ0, IRQ1, or IRQ2) sets the
corresponding Interrupt Request Register bit.
PS010504-1002
PRELIMINARY