Voltage Monitor 2 Interrupt And Voltage Monitor 2 Reset - Renesas R8C/18 Series Hardware Manual

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
7.3

Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset

Table 7.3 lists the Setting Procedure of Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset
Associated Bits. Figure 7.9 shows an Operating Example of Voltage Monitor 2 Interrupt and Voltage
Monitor 2 Reset. To use voltage monitor 2 interrupt or voltage monitor 2 reset to exit stop mode, set the
VW2C1 bit in the VW2C register to 1 (digital filter disabled).
Table 7.3
Setting Procedure of Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset
Associated Bits
Step
Voltage Monitor 2
1
Set the VCA27 bit in the VCA2 register to 1 (voltage detection 2 circuit enabled).
2
Wait for td(E-A)
Select the sampling clock of the digital filter
(2)
by bits VW2F0 to VW2F1 in the VW2C
3
register.
Set the VW2C1 bit in the VW2C register to 0
(2)
4
(digital filter enabled).
(2)
Set the VW2C6 bit in
5
the VW2C register to
0 (voltage monitor 2
interrupt mode).
6
Set the VW2C2 bit in the VW2C register to 0 (passing of Vdet2 is not detected).
7
Set the CM14 bit in the CM1 register to 0
(low-speed on-chip oscillator on).
8
Wait for 4 cycles of the sampling clock of the
digital filter.
9
Set the VW2C0 bit in the VW2C register to 1 (voltage monitor 2 interrupt/reset enabled).
NOTES:
1. Set the VW2C7 bit to 1 (when VCC reaches Vdet2 or below) for the voltage monitor 2 reset.
2. When the VW2C0 bit is set to 0 (disabled), steps 3, 4 and 5 can be executed simultaneously (with 1
instruction).
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
When Using Digital Filter
Voltage Monitor 2
Interrupt
Set the VW2C6 bit in
the VW2C register to
1 (voltage monitor 2
reset mode).
Page 49 of 233
When Not Using Digital Filter
Voltage Monitor 2
Reset
Interrupt
Select the timing of the interrupt and reset
request by the VW2C7 bit in the VW2C
(1)
register
Set the VW2C1 bit in the VW2C register to 1
(digital filter disabled).
Set the VW2C6 bit in
the VW2C register to
0 (voltage monitor 2
interrupt mode).
− (No wait time)
7. Voltage Detection Circuit
Voltage Monitor 2
Reset
.
Set the VW2C6 bit in
the VW2C register to
1 (voltage monitor 2
reset mode).

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents