873
Voltage Comparator
Chapter 27
Preliminary User’s Manual U17566EE1V2UM00
27.2 Voltage Comparator Registers
The Voltage Comparator is controlled by means of the following registers:
(1)
VCCTLn - Voltage Comparator n control register
The 8-bit VCCTLn register controls whether the Voltage Comparator is
operating or is in stand-by mode. Further it specifies whether an interrupt is
generated when V
CMPn
rises above or falls below V
LVI
or any at of both
transitions.
Access
This register can be read/written in 8-bit or 1-bit units.
Address
<base>
Initial Value
00
H
. This register is cleared by any reset.
Table 27-1
Voltage Comparator registers overview
Register name
Shortcut
Address
Voltage Comparator n control register
VCCTLn
<base>
Voltage Comparator n status register
VCSTRn
<base> + 2
H
Table 27-2
Base addresses of Voltage Comparator instances
Instance number
Base address
0
FFFF FF10
H
1
FFFF FF14
H
7
6
5
4
3
2
1
0
VCEn
0
0
0
0
0
ESn1
ESn0
R/W
R
R
R
R
R
R/W
R/W
Table 27-3
VCCTLn register contents
Bit position
Bit name
Function
7
VCEn
Enable Voltage Comparator
0: stand-by (VCSTRn.VCFn = 1, VCMPO0 = high level)
1: Operating
1 to 0
ESn[1:0]
VCMPO0 edge selection for interrupt
ESn1
ESn0
Operation
0
0
falling edge
0
1
rising edge
1
0
reserved
1
1
both edges
electronic components distributor