beautypg.com

Chapter 14 standby function – NEC PD78214 User Manual

Page 410

background image

381

Chapter 14 Standby Function

14

(2) Release by a maskable interrupt request

Only maskable interrupts with 0 in the interrupt mask flag can be used to release HALT mode. If the interrupt
priority status flag (ISP) is set to 0 (only high-priority interrupts are enabled), only interrupts with 0 in the
priority designation flag (high priority) can release HALT mode. Macro services are, however, executed
regardless of their priorities (an interrupt to be generated at the end of each macro service is subject to priority
control).

Once HALT mode has been released, processing branches to the interrupt handling program if the interrupt
request enable flag (IE) is set to 1. If the IE flag is set to 0, processing is resumed from the instruction
subsequent to that which specified HALT mode.

When a macro service is requested, HALT mode is temporarily released to execute the macro service. After
the macro service is executed, HALT mode is resumed. Once the macro service has been executed the
specified number of times, subsequent operations depend on the IE flag, ISP flag, and priority designation
flag.

Table 14-3 Release of HALT Mode by a Maskable Interrupt Request

Executing the macro service

When the end conditions are satisfied, a vectored interrupt

is handled.

When the end conditions are not satisfied, HALT mode is

resumed.

Macro service

request

Executing the instruction at the next address (holding the

interrupt request)

Executing the macro service

When the end conditions are satisfied, the instruction at the

next address is executed.

When the end conditions are not satisfied, HALT mode is

resumed.

Executing the macro service then resuming HALT mode

0

0

0

0

0

1

1

1

0

0

Ч

Ч

0

Ч

0

Ч

1

Ч

Ч

1

Ч

1

0

Ч

Continuing HALT mode

Handling a vectored interrupt

Maskable

vectored interrupt

request

0

0

0

0

0

1

Ч

1

Ч

1

0

Ч

1

1

0

0

Ч

Ч

0

Ч

0

Ч

1

Ч

Releasing source

MK

××

PR

××

IE

ISP

Operation

Continuing HALT mode

Remark MK

×× : Interrupt mask flag

PR

×× : Priority designation flag

IE

: Interrupt request enable flag

ISP

: Interrupt priority status flag

(3) Release by RESET input

The program is resumed from the reset vector address in the same way as for an ordinary reset operation,
except that the contents of internal RAM are the same as those existing immediately before entering HALT
mode.

This manual is related to the following products: