EasyManua.ls Logo

ZiLOG Z8 Series User Manual

ZiLOG Z8 Series
261 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #117 background imageLoading...
Page #117 background image
Z8
®
CPU
User Manual
UM001604-0108 Power-Down Modes
110
Power-Down Modes
In addition to the standard RUN mode, the Z8
®
CPU supports two Power-Down modes to
minimize device current consumption. The two modes supported are HALT and STOP.
Halt Mode Operation
HALT mode suspends instruction execution and turns off the internal CPU clock. The on-
chip oscillator circuit remains active so the internal clock continues to run and is applied to
the Counter/Timer(s) and interrupt logic.
To enter HALT mode, it is necessary to first flush the instruction pipeline to avoid sus-
pending execution in mid-instruction. To do this, the application program must execute a
NOP instruction (opcode =
FFh) immediately before the HALT instruction (opcode 7Fh),
that is:
FF NOP ;clear the instruction pipeline
7F HALT ;enter HALT mode
HALT mode is exited by interrupts, either externally or internally generated. Upon com-
pletion of the interrupt service routine, the user program continues from the instruction
after HALT.
HALT mode may also be exited via a POR/RESET activation or a Watch–Dog Timer
(WDT) time-out. (See the product data sheet for WDT availability). In this case, program
execution restarts at the reset restart address
000Ch.
To further reduce power consumption in HALT mode, some Z8 family devices allow
dynamic internal clock scaling. Clock scaling may be accomplished on the fly by repro-
gramming bit 0 and/or bit1 of the Stop Mode Recovery register. See Figure 103 on page
112.
Internal clock scaling directly affects Counter/Timer operation—adjustment of the pres-
caler and downcounter values may be required. To determine the actual HALT mode cur-
rent (I
CC1
) value for the various optional modes available, see the related Z8
device’s
product specification.
Stop Mode Operation
STOP mode provides the lowest possible device standby current. This instruction turns
OFF the on-chip oscillator and internal system clock.
To enter STOP mode, it is necessary to first flush the instruction pipeline to avoid sus-
pending execution in mid-instruction. To do this, the application program must execute a
Note:

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the ZiLOG Z8 Series and is the answer not in the manual?

ZiLOG Z8 Series Specifications

General IconGeneral
BrandZiLOG
ModelZ8 Series
CategoryMicrocontrollers
LanguageEnglish

Summary

Address Space

Z8 CPU Standard Register File

Details the standard register file structure, including I/O, general-purpose, and control registers.

Reset

Reset Pin, Internal POR Operation

Explains the function of the RESET pin and internal Power-On Reset for chip initialization.

Watchdog Timer

Watchdog Timer

Describes the retriggerable one-shot timer that resets the CPU if it reaches its terminal count.

Counters and Timers

Interrupts

Interrupt Sources

Lists interrupt types, sources, and vectors available in the Z8 family processors.

Power-Down Modes

Halt Mode Operation

Explains HALT mode, suspending execution while keeping the oscillator active.

Stop Mode Operation

Details STOP mode for lowest standby current by turning off internal clocks.

Serial Input/Output

SPI Operation

Details SPI usage in master and slave modes, including data transfer and chip select.

External Interface

Instruction Set

Instruction Description

Provides detailed descriptions of Z8 instructions, including syntax, operation, and flags.

Related product manuals