R01UH0136EJ0210 Rev.2.10
Page 70 of 800
Jul 31, 2012
M16C/64A Group
7. Voltage Detector
7.2.7
Voltage Monitor 2 Control Register (VW2C)
Set the PRC3 bit in the PRCR register to 1 (write enabled) before rewriting the VW2C register.
Bits VW2C2 and VW2C3 do not change at voltage monitor 1 reset, voltage monitor 2 reset, oscillator
stop detect reset, watchdog timer reset, or software reset.
When rewriting the VW2C register (excluding the VW2C3 bit), the VW2C2 bit may become 1. Set the
VW2C2 bit to 0 after rewriting the VW2C register.
VW2C0 (Voltage monitor 2 interrupt/reset enable bit) (b0)
The VW2C0 bit is enabled when the VW12E bit in the VWCE register is 1 (voltage monitors 1 and 2
enabled) and the VC27 bit in the VCR2 register is 1 (voltage detector 2 enabled). Set the VW2C0 bit to
0 (disabled) when the VC27 bit is 0 (voltage detector 2 disabled).
VW2C1 (Voltage monitor 2 digital filter disable mode select bit) (b1)
After using the voltage monitor 2 interrupt to exit stop mode, to use it again to exit stop mode, set the
VW2C1 bit to 0 first and then to 1.
b7 b6 b5 b4
b1
b2
b3
Voltage Monitor 2 Control Register
Symbol
VW2C
Address
002Ch
Bit Symbol
Bit Name
RW
Reset Value
b0
Function
RW
VW2C2
Voltage change detection
flag
0 : Not detected
1 : Vdet2 passage detected
VW2C3
Watchdog timer detection
flag
0 : Not detected
1 : Watchdog timer underflow detected
VW2F0
VW2F1
Voltage monitor 2 mode
select bit
0 : Voltage monitor 2 interrupt at Vdet2 passage
1 : Voltage monitor 2 reset at Vdet2 passage
Sampling clock select bit
b5 b4
0 0 : fOCO-S divided by 1
0 1 : fOCO-S divided by 2
1 0 : fOCO-S divided by 4
1 1 : fOCO-S divided by 8
VW2C6
RW
RW
RW
VW2C0
RW
Voltage monitor 2 interrupt/
reset enable bit
0 : Disabled
1 : Enabled
VW2C1
RW
Voltage monitor 2 digital filter
disable mode select bit
0 : Digital filter enabled
1 : Digital filter disabled
Voltage monitor 2 interrupt/
reset generation condition
select bit
VW2C7
RW
1000 0X10b
0: When VCC1 reaches or goes
above Vdet2
1: When VCC1 reaches or goes
below Vdet2
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...