RESETS, INTERRUPTS, AND LOW POWER MODES
MOTOROLA
TECHNICAL DATA
9-17
9
NOTE:
During reset, PSEL3, PSEL2, PSEL1, and PSEL0 are initialized to 0:1:0:1 which corresponds to “Reserved (de-
fault to IRQ)” being the highest priority I-bit-related interrupt source.
9.3 Low-Power Modes
The MCU contains two programmable low power consumption modes; WAIT and
STOP. These two instructions are discussed below. Table 9-7 summarizes the activity
on all pins of the MCU for all operating conditions.
9.3.1 WAIT Instruction
The WAI instruction puts the MCU in a low power consumption mode, keeping the os-
cillator running. Upon execution of a WAI instruction, the machine state is stacked and
program execution stops. The wait state can be exited only by an unmasked interrupt
or RESET. If the I bit is set (interrupts masked) and the COP is disabled, the timer sys-
tem will be turned off to additionally reduce power consumption. The amount of power
savings is application dependent and depends upon circuitry connected to the MCU
pins as well as which subsystems (i.e., timer, SPI, SCI) are active when the WAIT
mode is entered. Turning off the A/D subsystem by clearing ADPU further reduces
WAIT mode current.
9.3.2 STOP Instruction
The STOP instruction places the MCU in its lowest power consumption mode provided
the S bit in the condition code register is clear. If the S bit is set, the STOP mode is
disabled and STOP instructions are treated as NOPs (no operation). In the STOP
mode, all clocks including the internal oscillator are stopped causing all internal pro-
cessing to be halted. Recovery from the STOP mode may be accomplished by RE-
SET, XIRQ, or an unmasked IRQ. When the XIRQ is used, the MCU exits from the
STOP mode regardless of the state of the X bit in the condition code register; however,
Table 9-6 Highest Priority I Interrupt versus PSEL[3:0]
PSEL3
PSEL2
PSEL1
PSEL0
Interrupt Source Promoted
0000
Timer Overflow
0001
Pulse Accumulator Overflow
0010
Pulse Accumulator Input Edge
0011
SPI Serial Transfer Complete
0100
SCI Serial System
0101
Reserved (Default to IRQ)
0110
IRQ (External Pin or Parallel l/O)
0111
Real Time Interrupt
1000
Timer Input Capture 1
1001
Timer Input Capture 2
1010
Timer Input Capture 3
1011
Timer Output Compare 1
1100
Timer Output Compare 2
1101
Timer Output Compare 3
1110
Timer Output Compare 4
1111
Timer Output Compare 5
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.