Stop Mode - Renesas M16C Series Hardware Manual

16-bit microcopmuter
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

R8C/11 Group

6.4.3 Stop Mode

In stop mode, all oscillator circuits are turned off, so are the CPU clock and the peripheral function
clocks. Therefore, the CPU and the peripheral functions clocked by these clocks stop operating. The
least amount of power is consumed in this mode. If the voltage applied to Vcc pin is V
internal RAM is retained.
However, the peripheral functions clocked by external signals keep operating. The following interrupts
can be used to exit stop mode.
• Key interrupt
______
______
• INT0 to INT2 interrupts (INT0 can be used only when there is no filter.)
• INT3 interrupt (INT3 can be used when there is no filter and Timer C output compare mode (the
TCC13 bit in the TCC1 register is set to "1"))
• Timer X interrupt (when counting external pulses in event counter mode)
• Timer Y interrupt (when counting inputs from CNTR1 pin in timer mode)
• Serial interface interrupt (when external clock is selected)
• Voltage detection interrupt
• Entering Stop Mode
The microcomputer is placed into stop mode by setting the CM10 bit of CM1 register to "1" (all clocks
turned off). At the same time, the CM06 bit of CM0 register is set to "1" (divide-by-8 mode) and the
CM15 bit of CM10 register is set to "1" (main clock oscillator circuit drive capability high).
Before entering stop mode, set the OCD1 to OCD0 bits to "00
disable).
• Pin Status in Stop Mode
The status before wait mode is retained.
However, the X
pin). The P4
• Exiting Stop Mode
The microcomputer is moved out of stop mode by a hardware reset or peripheral function interrupt.
When using a hardware reset to exit stop mode, set the ILVL2 to ILVL0 bits for the peripheral function
interrupts to "000
When using a peripheral function interrupt to exit stop mode, set up the following before setting the
CM10 bit to "1".
1. In the ILVL2 to ILVL0 bits in the interrupt control register, set the interrupt priority level of the
peripheral function interrupt to be used to exit stop mode.
Also, for all of the peripheral function interrupts not used to exit stop mode, set the ILVL2 to ILVL0
bits to "000
2. Set the I flag to "1".
3. Enable the peripheral function whose interrupt is to be used to exit stop mode.
In this case, when an interrupt request is generated and the CPU clock is thereby turned on, an
interrupt sequence is executed.
The main clock divided by 8 of the clock which is used right before stop mode is used for the CPU
clock when exiting stop mode by a peripheral function interrupt.
Rev.1.20
Jan 27, 2006
REJ09B0062-0120
______
(P4
) pin is held "H" when the CM13 bit in the CM1 register is set to "1" (X
OUT
7
(X
) is in input state when the CM13 bit is set to "0" (input port P4
7
OUT
" (interrupts disabled) before setting the CM10 bit to "1".
2
".
2
page 40 of 204
6.4 Power Control
RAM
" (oscillation stop detection function
2
, P4
6
or more, the
-X
IN
OUT
).
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/11 seriesR8c/tiny series

Table of Contents