R01UH0136EJ0210 Rev.2.10
Page 122 of 800
Jul 31, 2012
M16C/64A Group
9. Power Control
9.3.3.4
Exiting Wait Mode
The MCU exits wait mode by a reset or interrupt. Table 9.6 lists Resets and Interrupts to Exit Wait
Mode and Conditions for Use.
The peripheral function interrupts are affected by the CM02 bit in the CM0 register. When the CM02
bit is 0 (peripheral function clock f1 does not stop in wait mode), peripheral function interrupts can be
used to exit wait mode. When the CM02 bit is 1 (peripheral function clock f1 stops in wait mode), the
peripheral functions using the peripheral function clock f1 stop operating, so the peripheral functions
activated by external signals and the peripheral function clocks except f1 (fOCO-S, fC, fC32) can be
used to exit wait mode.
fOCO-S is also used for the digital filter in the voltage detector, so the MCU exits wait mode when the
digital filter is disabled or when fOCO-S is supplied.
When the MCU exits wait mode by using an interrupt, an interrupt request is generated, the CPU
clock starts running, and interrupt routine is performed.
When the MCU exits wait mode by an interrupt, the CPU clock is the same CPU clock used while
executing the WAIT instruction.
Table 9.6
Resets and Interrupts to Exit Wait Mode and Conditions for Use
Interrupt, Reset
Conditions for Use
CM02 = 0
CM02 = 1
In
te
rru
p
t
INT
Usable
Usable
Key input
Usable
Usable
Pe
ri
phe
ra
l fu
ncti
on int
errup
t
Timer A,
timer B
Usable in all modes
Usable when fOCO-S or fC32 is supplied and is used
as count source.
Usable when counting external signals in event counter
mode.
Remote control
signal receiver
Usable
Usable when fC is supplied and is used as count
source.
Usable when fOCO-S, or fC32 is supplied and is used
as count source for timer B1 or B2, and timer B1 or B2
underflow is used as count source for remote control
signal receiver.
Serial
interface
Usable in internal clock or
external clock
Usable in external clock
Multi-master
I
2
C-bus interface
Both I
2
C-bus interface interrupt
and SCL/SDA interrupt are usable
SCL/SDA interrupt is usable
CEC function
Usable
Usable when fC is supplied and is used as count
source.
A/D converter
Usable in one-shot mode or single
sweep mode.
Do not use.
Real-time clock
Usable when fC is supplied and is used as count source
Voltage monitor 1,
Voltage monitor 2
Usable when the digital filter is disabled (VW1C1 bit in the VW1C register or the VW2C1 bit
in the VW2C register is 1).
Usable when the digital filter is enabled (VW1C1 bit in the VW1C register or the VW2C1 bit
in the VW2C register is 0) and fOCO-S is supplied (CM14 bit in the CM1 register is 0).
NMI
Usable when the digital filter is disabled (bits NMIDF2 to NMIDF0 in the NMIDF register are
000b)
Reset
Hardware reset
Usable
Voltage monitor 0
reset
Usable
Voltage monitor 1
reset,
Voltage monitor 2
reset
Usable when the digital filter is disabled (VW1C1 bit in the VW1C register or the VW2C1 bit
in the VW2C register is 1).
Usable when the digital filter is enabled (VW1C1 bit in the VW1C register or the VW2C1 bit
in the VW2C register is 0) and fOCO-S is supplied (CM14 bit in the CM1 register is 0).
Watchdog timer
Usable when count source protection mode is enabled (the CSPRO bit in the CSPR
register is 1).
Summary of Contents for M16C/60 Series
Page 853: ...M16C 64A Group R01UH0136EJ0210...