Low Voltage Detection Interrupt - Renesas M16C FAMILY series Hardware Manual

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

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

5.5.1 Low Voltage Detection Interrupt

If the D40 bit in the D4INT register is set to "1" (low voltge detection interrupt enabled), a low voltage
detection interrupt request is generated when voltage applied to the V
The low voltage detection interrupt shares the same interrupt vector with watchdog timer interrupt and
oscillation stop, re-oscillation detection interrupt.
Set the D41 bit in the D4INT register to "1" (enabled) to use the low voltage detection interrupt to exit stop
mode, set the D41 bit in the D4INT register to 1 (enable).
The D42 bit in the D4INT register is set to "1" (above or below Vdet4 detected) as soon as voltage applied
to the V
pin goes above or below Vdet4 due to the voltage change. When the D42 bit setting changes
CC
"0" to "1", a low voltage detection interrupt is generated. Set the D42 bit to 0 (not detected) by program.
However, when the D41 bit is set to 1 and the microcomputer is in stop mode, a low voltage detection
interrupt request is generated, regardless of the D42 bit setting, if voltage applies to the V
detected to rise above or drop below Vdet4. The microcomputer then exits stop mode.
Table 5.2 shows how a low voltage detection interrupt request is generated.
Bits DF1 and DF0 in the D4INT register determine sampling period that detects voltage applied to the
V
pin rises above or drops below Vdet4. Table 5.3 shows sampling periods.
CC
Table 5.2 Low Voltage Detection Interrupt Request Generation Conditions
Operation Mode
VC27 bit
Normal
operation
mode(1)
Wait mode
(2)
Stop mode
(2)
NOTES:
1. The status except the wait mode and stop mode is handled as the normal mode. (Refer to 7. Clock generating circuit)
2. Refer to 5.5.2 Limitations on stop mode and 5.5.3 Limitations on wait mode.
3. An interrupt request for voltage reduction is generated a sampling time after the value of the VC13 bit has changed.
Refer to the Figure 5.9 for details.
Table 5.3 Sampling Clock Periods
CPU
clock
DF1 to DF0=00
(MHz)
(CPU clock divided by 8)
16
3.0
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
D40 bit
1
1
Sampling clock (µs)
DF1 to DF0=01
(CPU clock divided by 16)
6.0
page 38
f o
3
8
5
D41 bit
D42 bit
0 to 1
0 to 1
1
DF1 to DF0=10
(CPU clock divided by 32)
12.0
pin is above or below Vdet4.
CC
CM02 bit
VC13 bit
(3)
0 to 1
(3)
1 to 0
0 to 1
(3)
0
1 to 0
(3)
1
0 to 1
0
0 to 1
– : "0"or "1"
DF1 to DF0=11
(CPU clock divided by 64)
24.0
5. Reset
pin is
CC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents