English
Language : 

M16C62P_06 Datasheet, PDF (112/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
10. Clock Generation Circuit
10.4.2.4 Exiting Wait Mode
The microcomputer is moved out of wait mode by a hardware reset, NMI interrupt, low voltage detection
interrupt or peripheral function interrupt.
If the microcomputer is to be moved out of exit wait mode by a hardware reset, NMI interrupt or low voltage
detection interrupt, set the peripheral function interrupt priority ILVL2 to ILVL0 bits to “000b” (interrupts
disabled) before executing the WAIT instruction.
The peripheral function interrupts are affected by the CM02 bit. If CM02 bit is “0” (peripheral function clocks
not turned off during wait mode), peripheral function interrupts can be used to exit wait mode. If CM02 bit is
“1” (peripheral function clocks turned off during wait mode), the peripheral functions using the peripheral
function clocks stop operating, so that only the peripheral functions clocked by external signals can be used to
exit wait mode.
Table 10.5 Interrupts to Exit Wait Mode and Use Conditions
Interrupt
CM02=0
CM02=1
NMI Interrupt
Can be used
Can be used
Serial Interface
Interrupt
Can be used when operating with
internal or external clock
Can be used when operating with
external clock
Key Input Interrupt Can be used
Can be used
A/D Conversion
Interrupt
Can be used in one-shot mode or
single sweep mode
−(Do not use)
Timer A Interrupt
Timer B Interrupt
Can be used in all modes
Can be used in event counter mode or
when the count source is fC32
INT Interrupt
Can be used
Can be used
Low Voltage Detection Can be used
Interrupt
Can be used
Table 10.5 lists the Interrupts to Exit Wait Mode and Use Conditions.
If the microcomputer is to be moved out of wait mode by a peripheral function interrupt, set up the following
before executing the WAIT instruction.
(1) Set the ILVL2 to ILVL0 bits in the interrupt control register, for peripheral function interrupts used to
exit wait mode.
The ILVL2 to ILVL0 bits in all other interrupt control registers, for peripheral function interrupts not
used to exit wait mode, are set to “000b” (interrupt disable).
(2) Set the I flag to “1”.
(3) Start operating the peripheral functions used to exit wait mode.
When the peripheral function interrupt is used, an interrupt routine is performed as soon as an interrupt
request is acknowledged and the CPU clock is supplied again.
When the microcomputer exits wait mode by the peripheral function interrupt, the CPU clock is the same clock
as the CPU clock executing the WAIT instruction.
Rev.2.41 Jan 10, 2006 Page 97 of 390
REJ09B0185-0241