Voltage Detection Interrupt - Renesas M16C Series Hardware Manual

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

Advertisement

R8C/11 Group

5.4.1 Voltage Detection Interrupt

Figure 5.13 shows the block diagram of voltage detection interrupt generation circuit.
Refer to 5.4.2, "Exiting Stop Mode on a Voltage Detection Circuit" for Getting out of stop mode due to
the 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 normal operation mode and wait
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 D46 bit in the D4INT register is set "0" (voltage detection interrupt selected)
To use the digital filter (D41 bit in the D4INT register is set to "0"), set the CM14 bit in the CM1 register
to "0" (low-speed on-chip oscillator). Figure 5.14 shows an operation example of voltage detection
interrupt generation circuit.
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.2 lists the voltage detection interrupt request generation conditions.
It takes 4 cycles of sampling clock until the D42 bit is set to "1" since the voltage which inputs to
Vcc pin passes Vdet.
It is possible to set the sampling clock detecting that the voltage applied to the V
through Vdet with the DF0 to DF1 bitsf0.3337 0 TD(1)Tj/Ftsf0.3337 0 TD72 1 m.
1
5 TD8415 0 TDF1 1 Tf1.82hage50f29985(415 0 Tf9nterrupt request anTjw-8.rupt reqcycles1.5 h79nter728 -1.5 h3f9n2 0 TD4.ruptT interr
Rev.1.20
Jan 27, 2006
REJ09B0062-0120
pin is up or down.
CC
page 26 of 204
pin rises to Vdet or more
CC
pin has passed
CC

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/11 seriesR8c/tiny series

Table of Contents