
R8C/14 Group, R8C/15 Group 9. Clock Generation Circuit
Rev.2.10 Jan 19, 2006 Page 50 of 253
REJ09B0164-0210
9.4.2.4 Exiting Wait Mode
The microcomputer exits wait mode by a hardware reset or peripheral function interrupt. When using
a hardware reset to exit wait mode, set the ILVL2 to ILVL0 bits for the peripheral function interrupts to
“000b” (interrupts disabled) before executing the WAIT instruction.
The peripheral function interrupts are affected by the CM02 bit. When the CM02 bit is set to “0”
(peripheral function clock does not stop in wait mode), all peripheral function interrupts can be used
to exit wait mode. When the CM02 bit is set to “1” (peripheral function clock stops in wait mode), the
peripheral functions using the peripheral function clock stop operating and the peripheral functions
operated by external signals can be used to exit wait mode.
Table 9.3 lists Interrupts to Exit Wait Mode and Usage Conditions.
When using a peripheral function interrupt to exit wait mode, set up the following before executing
the WAIT instruction.
(1) Set the interrupt priority level to the ILVL2 to ILVL0 bits in the interrupt control register of the
peripheral function interrupts to use for exiting wait mode. Set the ILVL2 to ILVL0 bits of the
peripheral function interrupts not to use for exiting wait mode to “000b” (disables interrupt).
(2) Set the I flag to “1”.
(3) Operate the peripheral function to use for exiting wait mode.
When an interrupt request is generated and the CPU clock supply is started if exiting by the
peripheral function interrupt, an interrupt sequence is executed.
The CPU clock, when exiting wait mode by a peripheral function interrupt, is the same clock as the
CPU clock when the WAIT instruction is executed.
Table 9.3 Interrupts to Exit Wait Mode and Usage Conditions
Interrupt CM02=0 CM02=1
Serial Interface Interrupt Usable when operating with
internal or external clock
Usable when operating with external
clock
SSU Interrupt Usable in all modes −(Do not use)
Key Input Interrupt Usable Usable
A/D Conversion Interrupt Usable in one-shot mode −(Do not use)
Timer X Interrupt Usable in all modes Usable in event counter mode
Timer Z Interrupt Usable in all modes −(Do not use)
Timer C Interrupt Usable in all modes −(Do not use)
INT
Interrupt
Usable
Usable (INT0 and INT3 can be used if
there is no filter.
Voltage Monitor 2 Interrupt Usable Usable
Oscillation Stop Detection
Interrupt
Usable −(Do not use)
Watchdog Timer Interrupt Usable in count source protect
mode
Usable in count source protect mode
Komentáře k této Příručce