English
Language : 

MC68HC705J2 Datasheet, PDF (29/82 Pages) Freescale Semiconductor, Inc – member of the low-cost
Freescale Semiconductor, Inc.
4.3.2 WAIT Mode
The WAIT instruction puts the MCU in an intermediate power-consumption mode.
1
In WAIT mode, the following events occur:
• All CPU clocks stop.
2
• The CPU clears the interrupt mask in the condition code register, enabling
3
external interrupts and timer interrupts.
The WAIT instruction does not affect any other registers or any I/O lines. The timer
4
and COP timer remain active in WAIT mode.
The following conditions bring the MCU out of WAIT mode:
5
• A timer interrupt. If a real-time interrupt or a timer overflow interrupt occurs
6
during WAIT mode, the MCU loads the program counter with the contents of
locations $0FF8 and $0FF9, the locations of the vector address of the timer
interrupt service routine.
7
• An external interrupt. An external interrupt automatically loads the program
counter with the contents of locations $0FFA and $0FFB, the locations of the
8
vector address of the external interrupt service routine.
9
• A COP timer reset. A timeout of the COP timer during WAIT mode resets
the MCU. The programmer can enable real-time interrupts so the MCU can
periodically exit WAIT mode to reset the COP timer.
10
• A reset signal on the RESET pin during WAIT mode resets the MCU.
11
A COP timer reset or a reset signal on the RESET pin automatically loads the
program counter with the contents of locations $0FFE and $0FFF, the locations of
12
the vector address of the reset service routine.
Figure 4-3 shows the sequence of events caused by the WAIT instruction.
13
14
15
16
17
18
19
20
CENTRAL PROCESSOR UNIT
Rev. 2
4-7
For More Information On This Product,
Go to: www.freescale.com