4 interrupt servicing operations – NEC uPD78056Y User Manual

Page 497

Advertising
background image

497

CHAPTER 21 INTERRUPT AND TEST FUNCTIONS

21.4 Interrupt Servicing Operations

21.4.1 Non-maskable interrupt request acknowledge operation

A non-maskable interrupt request is unconditionally acknowledged even if in an interrupt request acknowledge

disable state. It does not undergo interrupt priority control and has highest priority over all other interrupt requests.

If a non-maskable interrupt request is acknowledged, the contents of acknowledged interrupt is saved in the stacks,

program status word (PSW) and program counter (PC), in that order, the IE and ISP flags are reset to 0, and the vector

table contents are loaded into PC and branched.

A new non-maskable interrupt request generated during execution of a non-maskable interrupt servicing program

is acknowledged after the current execution of the non-maskable interrupt servicing program is terminated (following

RETI instruction execution) and one main routine instruction is executed. If a new non-maskable interrupt request

is generated twice or more during non-maskable interrupt service program execution, only one non-maskable interrupt

request is acknowledged after termination of the non-maskable interrupt service program execution.

Figure 21-10 shows the flowchart from generation of non-maskable interrupt request to acknowledgment, Figure

21-11 shows non-maskable interrupt request acknowledge timing, and Figure 21-12 shows acknowledge operation

when multiple non-maskable interrupt requests are generated.

Advertising