CHAPTER 6. INTERRUPT FUNCTIONS

(4) Interrupt status flag

The interrupt status flag (IST0) is the flag which shows the status of the processing currently being executed by the CPU, and is contained in the PSW.

The interrupt priority control circuit performs interrupt control according to the contents of this flag as shown in Table 6-3.

IST0 cannot be modified by 4-bit handling instructions or bit-handling instructions. IST0 is always set to 1 during interrupt servicing. Therefore, it is not possible to write 0 to IST in the interrupt service routine which would result in multiple interrupt.

After being saved to stack memory together with the rest of the PSW when an interrupt is acknowledged, IST0 is automatically set to 1. When an RETI instruction is executed, the original IST0 value (0) is restored.

A RESET input clears (0) the flag contents.

Table 6-3 IST0 Interrupt Servicing Status

IST0

Executing

CPU Processing

Interrupt Requests of which

After Interrupt

Processing Status

Acknowledgment is Possible

Acknowledgment

 

 

 

 

 

 

 

 

 

 

 

IST0

 

 

 

 

 

0

Status 0

Normal program

Acknowledgment of all interrupts

1

 

 

processing in

possible

 

 

 

progress

 

 

 

 

 

 

 

1

Status 1

Interrupt servicing in

Acknowledgment of all interrupts

 

 

progress

disabled

 

 

 

 

 

 

133

Page 144
Image 144
NEC PD75P402, PD75402A user manual Interrupt status flag, IST0 Interrupt Servicing Status, 133