Renesas R8C/18 Series Hardware Manual page 80

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
10.4.2.4
Exiting Wait Mode
The MCU exits wait mode by a hardware reset or a peripheral function interrupt. To use a hardware
reset to exit wait mode, set bits ILVL2 to ILVL0 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 10.3 lists Interrupts to Exit Wait Mode and Usage Conditions.
To use a peripheral function interrupt to exit wait mode, set up the following before executing the
WAIT instruction.
(1) Set the interrupt priority level in bits ILVL2 to ILVL0 in the interrupt control registers of the
peripheral function interrupts to be used for exiting wait mode. Set bits ILVL2 to ILVL0 of the
peripheral function interrupts that are not to be used for exiting wait mode to 000b (interrupt
disabled).
(2) Set the I flag to 1.
(3) Operate the peripheral function to be used for exiting wait mode.
When exiting by a peripheral function interrupt, the interrupt sequence is executed when an interrupt
request is generated and the CPU clock supply is started.
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 10.3
Interrupts to Exit Wait Mode and Usage Conditions
Interrupt
Serial interface interrupt
Key input interrupt
Comparator conversion interrupt Usable in one-shot mode
Timer X interrupt
Timer Z interrupt
Timer C interrupt
INT interrupt
Voltage monitor 2 interrupt
Oscillation stop detection
interrupt
Watchdog timer interrupt
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
CM02 = 0
Usable when operating with
internal or external clock
Usable
Usable in all modes
Usable in all modes
Usable in all modes
Usable
Usable
Usable
Usable in count source protect
mode
Page 65 of 233
10. Clock Generation Circuit
CM02 = 1
Usable when operating with
external clock
Usable
(Do not use)
Usable in event counter mode
(Do not use)
(Do not use)
Usable (INT0 and INT3 can be
used if there is no filter.)
Usable
(Do not use)
Usable in count source protect
mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents