PIC24FJ64GA104 FAMILY
REGISTER 23-1: CVRCON: COMPARATOR VOLTAGE REFERENCE CONTROL REGISTER
U-0
—
U-0
—
U-0
—
U-0
—
U-0
—
R/W-0
R/W-0
R/W-0
CVREFP
CVREFM1
CVREFM0
bit 15
bit 8
R/W-0
R/W-0
R/W-0
CVRR
R/W-0
R/W-0
CVR3
R/W-0
CVR2
R/W-0
CVR1
R/W-0
CVR0
CVREN
CVROE
CVRSS
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
-n = Value at POR
bit 15-11
bit 10
Unimplemented: Read as ‘0’
CVREFP: CVREF+ Reference Output Select bit
1= Use VREF+ input pin as CVREF+ reference output to comparators
0= Use comparator voltage reference module’s generated output as CVREF+ reference output to
comparators
bit 9-8
CVREFM<1:0>: CVREF- Reference Output Select bits
11= Use VREF+ input pin as CVREF- reference output to comparators
10= Use VBG/6 as CVREF- reference output to comparators
01= Use VBG as CVREF- reference output to comparators
00= Use VBG/2 as CVREF- reference output to comparators
bit 7
bit 6
bit 5
bit 4
bit 3-0
CVREN: Comparator Voltage Reference Enable bit
1= CVREF circuit is powered on
0= CVREF circuit is powered down
CVROE: Comparator VREF Output Enable bit
1= CVREF voltage level is output on CVREF pin
0= CVREF voltage level is disconnected from CVREF pin
CVRR: Comparator VREF Range Selection bit
1= CVRSRC range should be 0 to 0.625 CVRSRC with CVRSRC/24 step size
0= CVRSRC range should be 0.25 to 0.719 CVRSRC with CVRSRC/32 step size
CVRSS: Comparator VREF Source Selection bit
1= Comparator reference source, CVRSRC = VREF+ – VREF-
0= Comparator reference source, CVRSRC = AVDD – AVSS
CVR<3:0>: Comparator VREF Value Selection (0 CVR<3:0> 15) bits
When CVRR = 1:
CVREF = (CVR<3:0>/24) (CVRSRC)
When CVRR = 0:
CVREF = 1/4 (CVRSRC) + (CVR<3:0>/32) (CVRSRC)
DS39951C-page 234
2010 Microchip Technology Inc.