
R8C/14 Group, R8C/15 Group 6. Voltage Detection Circuit
Rev.2.10 Jan 19, 2006 Page 33 of 253
REJ09B0164-0210
6.3 Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset
Table 6.3 lists the Setting Procedure of Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset
Associated Bit. Figure 6.8 shows the Operating Example of Voltage Monitor 2 Interrupt and Voltage
Monitor 2 Reset. When using the 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).
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), procedures 3, 4 and 5 can be executed simultaneously
(with 1 instruction).
Table 6.3 Setting Procedure of Voltage Monitor 2 Interrupt and Voltage Monitor 2 Reset
Associated Bit
Procedure
When Using Digital Filter When Not Using Digital Filter
Voltage Monitor 2
Interrupt
Voltage Monitor 2
Reset
Voltage Monitor 2
Interrupt
Voltage Monitor 2
Reset
1 Set the VCA27 bit in the VCA2 register to “1” (voltage detection 2 circuit enabled)
2 Wait for td(E-A)
3
(2)
Select the sampling clock of the digital filter
by the VW2F0 to VW2F1 bits in the VW2C
register
Select the timing of the interrupt and reset
request by the VW2C7 bit in the VW2C
register
(1)
4
(2)
Set the VW2C1 bit in the VW2C register to
“0” (digital filter enabled)
Set the VW2C1 bit in the VW2C register to
“1” (digital filter disabled)
5
(2)
Set the VW2C6 bit in
the VW2C register to
“0” (voltage monitor 2
interrupt mode)
Set the VW2C6 bit in
the VW2C register to
“1” (voltage monitor 2
reset mode)
Set the VW2C6 bit in
the VW2C register to
“0” (voltage monitor 2
interrupt mode)
Set the VW2C6 bit in
the VW2C register to
“1” (voltage monitor 2
reset 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 the sampling clock of the digital filter
x 4 cycles
− (no wait time)
9 Set the VW2C0 bit in the VW2C register to “1” (enables voltage monitor 2 interrupt / reset)
Komentáře k této Příručce