beautypg.com

4 halt function – NEC PD17062 User Manual

Page 156

background image

156

µ

PD17062

13.4 HALT FUNCTION

The halt function stops the operation of the CPU clock by executing the HALT h instruction.

When the HALT h instruction is executed, the program stops at this instruction and rests there until the

halt state is released.

In the halt state, the current drain in the device is reduced by the amount required by the CPU to operate.

The halt state can be released using the timer carry FF, interrupt, and key entry.

The operand h of the HALT h instruction specifies a condition (timer carry FF, interrupt, or key entry) to

release the halt state.

The HALT h instruction is always effective regardless of the input level at the CE pin.

Sections 13.4.1 to 13.4.5 explain the halt state and halt release conditions.

13.4.1 Halt State

The CPU is entirely at a stop in the halt state.

In the halt state, the program completely stops at the HALT h instruction.

In the halt state, however, the peripheral hardware continues operating as it did before execution of the

HALT h instruction.