Get Out Of Stop Mode Due To The Voltage Detection Interrupt - Renesas M16C FAMILY Hardware Manual

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

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group
5.4.2 Exiting Stop Mode on a Voltage Detection Interrupt
A voltage detection interrupt is generated when the input voltage at the V
or drops below Vdet if all of the following conditions hold true in stop mode.
• The VC27 bit in the VCR2 register is set to "1" (voltage detection circuit enabled)
• The D40 bit in the D4INT register is set to "1" (voltage detection interrupt enabled)
• The D41 bit in the D4INT register is set "1" (voltage detection used to get out of stop mode)
• The D46 bit in the D4INT register is set "0" (voltage detection interrupt selected)
To use the voltage detection interrupt , set the CM14 bit in the CM1 register to "0" (low-ring oscillator).
The voltage detection interrupt shares the interrupt vector with the watchdog timer interrupt and oscil-
lation stop detection interrupt.
The D42 bit in the D4INT register becomes "1" when passing through Vdet is detected after the volt-
age inputted to the V
A voltage detection interrupt request is generated when the D42 bit changes state from "0" to "1". The
D42 bit needs to be set to "0" in a program.
Table 5.3 lists the voltage detection interrupt request generation conditions in use to get out of stop
mode.
Table 5.3 Voltage Detection Interrupt Request Generation Conditions in use to get out of
stop mode
Operation mode
VC27 bit
Stop mode
Notes:
1. The status except the wait mode and stop mode is handled as the normal mode. (Refer to Chapter 6, "Clock
Generation Circuit.")
2. Refer to Figure 5.14, "Operation Example of Voltage Detection Interrupt Generation Circuit" for interrupt generation
timing.
Rev.0.91
2003 Sep 08
pin is up or down.
CC
D40 bit
D41 bit
D42 bit
1
1
1
1
page 27 of 184
D46 bit
D47 bit
VC13 bit
From 0 to 1
0
0 or 1
From 1 to 0
5.4 Voltage Detection Circuit
pin rises to Vdet or more
CC
CM14 bit
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents