English
Language : 

M16C30P_07 Datasheet, PDF (72/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
9. Clock Generating Circuit
9.4.3.3 Exiting Stop Mode
Stop mode is exited by a hardware reset, NMI interrupt or peripheral function interrupt.
When the hardware reset or NMI interrupt is used to exit wait mode, set all ILVL2 to ILVL0 bits in the interrupt
control registers for the peripheral function interrupt to “000b” (interrupt disabled) before setting the CM10 bit
to “1”.
When the peripheral function interrupt is used to exit stop mode, set the CM10 bit to “1” after the following
settings are completed.
(1) Set the ILVL2 to ILVL0 bits in the interrupt control registers to decide the peripheral priority level of
the peripheral function interrupt.
Set the interrupt priority levels of the interrupts, not being used to exit stop mode, to “0” by setting the
all ILVL2 to ILVL0 bits to “000b”
(2) Set the I flag to “1”.
(3) Start operation of peripheral function being used to exit wait mode.
When exiting stop mode by the peripheral function interrupt, the interrupt routine is performed when an
interrupt request is generated and the CPU clock is supplied again.
When stop mode is exited by the peripheral function interrupt or NMI interrupt, the CPU clock source is as
follows, in accordance with the CPU clock source setting before the microcomputer had entered stop mode.
• When the sub clock is the CPU clock before entering stop mode : Sub clock
• When the main clock is the CPU clock source before entering stop mode : Main clock divided by 8
Rev.1.22 Mar 29, 2007 Page 56 of 291
REJ09B0179-0122