R01UH0092EJ0110 Rev.1.10
Page 71 of 807
Jul 31, 2012
M16C/64C Group
7. Voltage Detector
VW2C2 (Voltage change detection flag) (b2)
The VW2C2 bit is enabled when the VC27 bit in the VCR2 register is 1 (voltage detector 2 enabled).
This bit does not change even if set to 1.
Condition to become 0:
•
Writing this bit to 0
Condition to become 1:
•
Refer to the following table.
VW2C6 (Voltage monitor 2 mode select bit) (b6)
The VW2C6 bit is enabled when the VW2C0 bit is 1 (voltage monitor 2 interrupt/reset enabled).
VW2C7 (Voltage monitor 2 interrupt/reset generation condition select bit) (b7)
The voltage monitor 2 interrupt/reset generation condition can be selected by the VW2C7 bit when the
VW2C6 bit is 0 (voltage monitor 2 interrupt at Vdet2 passage) and the VW2C1 bit is 1 (digital filter
disabled).
When the VW2C6 bit is 1 (voltage monitor 2 reset at Vdet2 passage), set the VW2C7 bit to 1 (when
VCC1 reaches Vdet2 or below). (Do not set the VW2C7 bit to 0.)
When the VW2C1 bit is 0 (digital filter enabled), regardless of the VW2C7 bit setting, the voltage
monitor 2 interrupt is generated when VCC1 reaches Vdet2 or above, and also when VCC1 reaches
Vdet2 or below.
Table 7.5
Conditions Under Which the VW2C2 Bit Becomes 1
Bit Setting
(1)
Conditions under Which the VW2C2 Bit Becomes 1
VW2C1
VW2C6
VW2C7
0
0
0 or 1
The VC13 bit changes from 0 to 1 or from 1 to 0.
1
1
The VC13 bit changes from 1 to 0.
1
0
0
The VC13 bit changes from 0 to 1.
1
The VC13 bit changes from 1 to 0.
1
1
The VC13 bit changes from 1 to 0.
VC13 bit: Bit in the VCR1 register
Note:
1.
Only set the values listed above.
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...