z80189 ZiLOG Semiconductor, z80189 Datasheet - Page 85

no-image

z80189

Manufacturer Part Number
z80189
Description
Z80180, Z8s180, Z8l180 Mpu Operation
Manufacturer
ZiLOG Semiconductor
Datasheet
70
UM005003-0703
Z8018x
Family MPU User Manual
Table 8.
TRAP Interrupt
The Z8X180 generates a non-maskable (not affected by the state of IEF1)
TRAP interrupt when an undefined Op Code fetch occurs. This feature
can be used to increase software reliability, implement an extended
instruction set, or both. TRAP may occur during Op Code fetch cycles
and also if an undefined Op Code is fetched during the interrupt
acknowledge cycle for INT0 when Mode 0 is used.
When a TRAP interrupt occurs the Z8X180 operates as follows:
1. The TRAP bit in the Interrupt TRAP/Control (ITC) register is set to
2. The current PC (Program Counter) value, reflecting location of the
3. The Z8X180 vectors to logical address 0. Note that if logical address
The state of the UFO (Undefined Fetch Object) bit in ITC allows TRAP
manipulation software to correctly adjust the stacked PC, depending on
whether the second or third byte of the Op Code generated the TRAP. If
UFO is
CPU
Operation
DI
LD A, I
LID A, R
undefined Op Code, is saved on the stack.
0000H
as for RESET. In this case, testing the TRAP bit in ITC reveals
whether the restart at physical address
RESET or TRAP.
0
, the starting address of the invalid instruction is equal to the
State of IEF1 and IEF2 (Continued)
is mapped to physical address
IEF1
0
not affected not affected Transfers the contents of IEF1 to
not affected not affected Transfers the contents of IEF1 to
IEF2
0
00000H
REMARKS
P/V
P/V
00000H
. the vector is the same
was caused by
1
.

Related parts for z80189