Datasheet

2011-2013 Microchip Technology Inc. DS30001037C-page 171
PIC24F16KL402 FAMILY
21.0 COMPARATOR VOLTAGE
REFERENCE
21.1 Configuring the Comparator
Voltage Reference
The comparator voltage reference module is controlled
through the CVRCON register (Register 21-1). The
comparator voltage reference provides a range of
output voltages, with 32 distinct levels.
The comparator voltage reference supply voltage can
come from either V
DD and VSS, or the external VREF+
and V
REF-. The voltage source is selected by the
CVRSS bit (CVRCON<5>).
The settling time of the comparator voltage reference
must be considered when changing the CV
REF output.
FIGURE 21-1: COMPARATOR VOLTAGE REFERENCE BLOCK DIAGRAM
Note: This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. For more information on the
Comparator Voltage Reference, refer to the
“dsPIC33/PIC24 Family Reference Man-
ual”, “Comparator Voltage Reference
Module” (DS39709).
32-to-1 MUX
CVR<3:0>
8R
R
CVREN
CVRSS = 0
AV
DD
VREF+
CVRSS = 1
8R
CVRSS = 0
V
REF-
CVRSS = 1
R
R
R
R
R
R
32 Steps
CV
REF
AVSS