R01UH0136EJ0210 Rev.2.10
Page 64 of 800
Jul 31, 2012
M16C/64A Group
7. Voltage Detector
7.2.2
Voltage Detector Operation Enable Register (VCR2)
Set the PRC3 bit in the PRCR register to 1 (write enabled) before rewriting this register.
This register does not change at voltage monitor 1 reset, voltage monitor 2 reset, oscillator stop detect
reset, watchdog timer reset, or software reset.
VC25 (Voltage detector 0 enable bit) (b5)
To use voltage monitor 0 reset, set the VC25 bit to 1 (voltage detector 0 enabled). After changing the
VC25 bit to 1, the detector starts operating when the td(E-A) elapses.
VC26 (Voltage detector 1 enable bit) (b6)
Voltage detector 1 is enabled when the VW12E bit in the VWCE register is 1 (voltage monitors 1 and 2
enabled) and the VC26 bit is 1 (voltage detector 1 enabled). Set bits VW12E and VC26 to 1 under the
following conditions:
•
When using voltage monitor 1 interrupt/reset
•
When using bits VW1C2 and VW1C3 in the VW1C register
After changing this bit from 0 to 1, the detector will start operating after td(E-A) elapses.
VC27 (Voltage detector 2 enable bit) (b7)
Voltage detector 2 is enabled when the VW12E bit in the VWCE register is set to 1 (voltage monitors 1
and 2 enabled) and the VC27 bit is 1 (voltage detector 2 enabled). Set bits VW12E and VC27 to 1
under the following conditions:
•
When using voltage monitor 2 interrupt/reset
•
When using the VC13 bit in the VCR1 register
•
When using the VW2C2 bit in the VW2C register
After changing this bit from 0 to 1, the detector will start operating after td(E-A) elapses.
b7
0
0
0
0
b6 b5 b4
b1
b2
b3
Voltage Detector Operation Enable Register
Symbol
VCR2
Address
001Ah
Bit Symbol
Bit Name
RW
Reset Value
0000 0000b
(1)
0010 0000b
(2)
b0
Function
RW
VC25
Voltage detector 0 enable bit
0 : Voltage detector 0 disabled
1 : Voltage detector 0 enabled
—
(b3-b0)
RW
Reserved bits
Set to 0
—
(b4)
RW
VC26
Voltage detector 1 enable bit
0 : Voltage detector 1 disabled
1 : Voltage detector 1 enabled
RW
VC27
Voltage detector 2 enable bit
0 : Voltage detector 2 disabled
1 : Voltage detector 2 enabled
RW
Notes:
1. This is the reset value when the LVDAS bit of address OFS1 is 1 during hardware reset
2. This is the reset value after voltage monitor 0 reset, power-on reset, and when the LVDAS bit of address
OFS1 is 0 during hardware reset.
Reserved bits
Set to 0
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...