Renesas M16C Series User Manual page 285

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
(3) Returning from stop mode
The stop mode can be canceled by hardware reset, or by generating an interrupt request. If an inter-
rupt is to be used to cancel stop mode, that interrupt must first have been enabled and the priority level
of the interrupt not to be used for clearing must be set to level 0 before changing to stop mode.
If an interrupt is used to cancel stop mode, that interrupt routine is processed. If only a hardware reset
and NMI interrupt are used to cancel stop mode, the priority level of all interrupts must be set to level
0 before changing to stop mode.
When changing from high-speed/medium mode to stop mode and at reset, the main clock division
select bit 0 (bit 6 at address 0006
www.DataSheet4U.com
tion mode, the value before stop mode is retained.
(4) Returning form wait mode
The wait mode can be canceled by hardware reset, or by generating an interrupt request. If an inter-
rupt is to be used to cancel wait mode, that interrupt must first have been enabled and the priority level
of the interrupt not to be used for clearing must be set to level 0 before changing to wait mode.
If an interrupt is used to cancel wait mode, the microcomputer selects the clock used when the WAIT
instruction is executed for BCLK and restarts operating in that interrupt routine. If only a hardware
reset or NMI interrupt will be used to cancel wait mode, the priority level of all interrupts must be set to
level 0 before changing to stop mode.
Table 2.16.1 shows the interrupts that can be used for canceling stop mode and wait mode.
(5) BCLK in returning from wait mode or stop mode
(a) Returning from wait mode
The processor immediately returns to the BCLK, which was in use before entering wait mode.
(b) Returning from stop mode
CM06 is set to "1" when the device enters stop mode after selecting the main clock for BCLK. CM17
and CM16 do not change state. In this case, when restored from stop mode, the device starts oper-
ating in divided-by-8 mode.
When the device enters stop mode after selecting the subclock for BCLK, CM06, CM17, CM16, and
CM07 all do not change state. In this case, when restored from stop mode, the device starts operat-
ing in low-speed mode.
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
) is set to "1". When changing from low-speed/low power dissipa-
16
page 276 of 354
2. Power Control

Advertisement

Table of Contents
loading

Table of Contents