![](http://datasheet.mmic.net.cn/30000/M30280M8V-XXXHP_datasheet_2358818/M30280M8V-XXXHP_69.png)
7. Clock Generation Circuits
page 49
0
9
3
f
o
7
0
2
,
0
3
.r
a
M
0
1
.
1
.
v
e
R
0
1
0
-
7
8
2
0
B
9
0
J
E
R
).
r
e
v
-
V
/.
r
e
v
-
T
(
p
u
o
r
G
8
2
/
C
6
1
M
Table 7.6 Interrupts to Exit Wait Mode
Interrupt
CM02 = 0
CM02 = 1
_______
NMI interrupt
Available
Serial I/O interrupt
Available when internal and external
Available when external clock is used
clocks are used
Multi-master I2C interrupt
Available
Do not used
Key input interrupt
Available
A/D conversion interrupt
Available in one-shot or single sweep
Do not use
mode
Timer A interrupt
Available in all modes
Available in event counter mode or when
Timer B interrupt
count source is fC32
Timer S interrupt
Available in all modes
Do not use
_______
INT interrupt
Available
7.6.2.3 Pin Status During Wait Mode
Table 7.5
lists pin status during wait mode.
Table 7.5 Pin Status in Wait Mode
Pin
Status
I/O ports
Maintains status immediately before entering wait mode
When fC selected Outputs clock
CLKOUT
Outputs the clock when the CM02 bit in the CM0 register is set
When f1, f8, f32
to 0 (peripheral clock does not stop in wait mode
selected
Maintains state immediately before entering stop mode when the CM02
bit is set to 1 (peripheral clock stops in wait mode)
To use peripheral function interrupts to exit wait mode, set the followings before executing the WAIT
instruction.
1. Set the interrupt priority level to the bits ILVL2 to ILVL0 in the interrupt control register of the periph-
eral function interrupts that are used to exit wait mode. Also, set bits ILVL2 to ILVL0 of all peripheral
function interrupts that are not used to exit wait mode to 0002 (interrupt disabled).
2. Set the I flag to 1.
3. Operate the peripheral functions that are used to exit wait mode.
When the peripheral function interrupts are used to exit wait mode, an interrupt routine is executed
after an interrupt request is generated and the CPU is clocked.
The CPU clock used when exiting wait mode by a peripheral function interrupt is the same CPU clock
that is used when executing the WAIT instruction.
7.6.2.4 Exiting Wait Mode
______
The MCU exits from wait mode by a hardware reset, NMI interrupt, or peripheral function interrupt.
______
If wait mode is exited by a hardware reset or NMI interrupt, set the peripheral function interrupt priority
bits ILVL2 to ILVL0 to 0002 (interrupts disabled) before executing the WAIT instruction.
The CM02 bit affects the peripheral function interrupts. If the CM02 bit is 0 (peripheral function clocks
not turned off during wait mode), all peripheral function interrupts can be used to exit wait mode. If the
CM02 bit is 1 (peripheral function clock stops during wait mode), the peripheral functions using the
peripheral function clock stops operating, so that only the peripheral functions clocked by external sig-
nals can be used to exit wait mode.
Table 7.6
lists the interrupts to exit wait mode.