874
Chapter 27
Voltage Comparator
Preliminary User’s Manual U17566EE1V2UM00
Caution
If the voltage comparator input level V
CMPn
is below the reference voltage V
LVI
an INTVCn interrupt is generated under both following conditions:
• The comparator is enabled (VCCTLn.VCEn = 0
→
1) and falling or both
edges are specified (VCCTLn.VCEn = 00
B
or 11
B
).
• The comparator is disabled (VCCTLn.VCEn = 1
→
0) and rising or both
edges are specified (VCCTLn.VCEn = 01
B
or 11
B
).
(2)
VCSTRn - Voltage Comparator n status register
The 8-bit VCSTRn register reflects the result of the voltage comparison.
Access
This register is read-only, in 8-bit or 1-bit units.
Address
<base> + 2
H
Initial Value
01
H
. This register is cleared by any reset.
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
VCFn
R
R
R
R
R
R
R
R
Table 27-4
VCSTRn register contents
Bit position
Bit name
Function
0
VCFn
Voltage Comparator status flag
0: Input voltage is below reference voltage.
1: Input voltage is above reference voltage.
electronic components distributor