English
Language : 

M16C29 Datasheet, PDF (85/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
7. Clock Generation Circuit
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
I/O ports
CLKOUT
When fC selected
When f1, f8, f32 selected
Status
Retains status before wait mode
Does not stop
Does not stop when the CM02 bit is set to 0
Retains status before wait mode when the CM02 bit is set to 1
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.
Table 7.6 Interrupts to Exit Wait Mode
Interrupt
NMI interrupt
Serial I/O interrupt
Multi-master I2C interrupt
Key input interrupt
A/D conversion interrupt
Timer A interrupt
Timer B interrupt
Timer S interrupt
_______
INT interrupt
CAN0 wake_up interrupt
CM02 = 0
Available
Available when internal and external
clocks are used
Available
Available
Available in one-shot or single sweep
mode
Available in all modes
Available in all modes
Available
Available in CAN sleep mode
CM02 = 1
Available
Available when external clock is used
Do not used
Available
Do not use
Available in event counter mode or when
count source is fC32
Do not use
Available
Available in CAN sleep 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.
Rev. 1.12 Mar.30, 2007
REJ09B0101-0112
page 61 of 458