English
Language : 

Z380 Datasheet, PDF (80/115 Pages) Zilog, Inc. – MICROPROCESSOR
ZILOG
Interrupt Control
The Z380 MPU’s flags and registers associated with inter-
rupt processing are listed in Table 4. As discussed in the
CPU Architecture section, some of the registers reside in
MICROPROCESSOR
the on-chip I/O address space and can be accessed only
with reserved on-chip I/O instructions.
Table 3. Interrupt Flags and Registers
Names
Mnemonics
Access Methods
Interrupt Enable Flags
Interrupt Register
Interrupt Register Extension
Interrupt Enable Register
Assigned Vectors Base Register
Trap and Break Register
IEF1, IEF2
I
Iz
IER
AVBR
TRPBK
EI and DI instructions
LD I,A and LD A,I instructions
LD I,HL and LD HL,I instructions
(accessing both Iz and I)
On-chip I/O instructions, addr
00000017H, EI and DI instructions
On-chip I/O instructions, addr
00000018H
On-chip I/O instructions, addr
00000019H
IEF1, IEF2
IEF1 controls the overall enabling and disabling of all on-
chip peripheral and external maskable interrupt requests.
If IEF1 is at logic 0, all such interrupts are disabled. The
purpose of IEF2 is to correctly manage the occurrence of
/NMI. When /NMI is acknowledged, the state of IEF1 is
copied to IEF2 and then IEF1 is cleared to logic 0. At the
end of the /NMI interrupt service routine, execution of the
Return From Nonmaskable Interrupt instruction, RETN,
automatically copies the state of IEF2 back to IEF1. This is
a means to restore the interrupt enable condition existing
before the occurrence of /NMI. Table 5 summarizes the
states of IEF1 and IEF2 resulting from various operations.
Operation
/RESET
Trap
/NMI
RETN
/INT3-/INT0
RETI
RET
EI
DI
LD A,I or LD R,I
LD HL,I
Note:
NC = No Change
Table 4. Operation Effects on IEF1 and IEF2
IEF1
IEF2
Comments
0
0
0
IEF2
0
NC
NC
1
0
NC
NC
0
0
IEF1
NC
0
NC
NC
1
0
NC
NC
Inhibits all interrupts except Trap and /NMI.
Disables interrupt nesting.
IEF1 value copied to IEF2, then IEF1 is cleared.
Returns from /NMI service routine.
Disables interrupt nesting.
Returns from service routine, Z80 I/O device.
Returns from service routine, non-Z80 I/O device.
IEF2 value is copied to P/V Flag.
I, I Extend
The 8-bit Interrupt Register and the 16-bit Interrupt
Register Extension are cleared during reset.
PS010001-0301