Datasheet
2009-2016 Microchip Technology Inc. DS60001156J-page 329
PIC32MX5XX/6XX/7XX
REGISTER 27-1: CVRCON: COMPARATOR VOLTAGE REFERENCE CONTROL REGISTER
Bit
Range
Bit
31/23/15/7
Bit
30/22/14/6
Bit
29/21/13/5
Bit
28/20/12/4
Bit
27/19/11/3
Bit
26/18/10/2
Bit
25/17/9/1
Bit
24/16/8/0
31:24
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
23:16
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
15:8
R/W-0 U-0 U-0 U-0 U-0 R/W-0 R/W-0 R/W-1
ON
(1)
— — — — VREFSEL
(2)
BGSEL<1:0>
(2)
7:0
U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
— CVROE CVRR CVRSS CVR<3:0>
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 31-16 Unimplemented: Read as ‘0’
bit 15 ON: Comparator Voltage Reference On bit
(1)
Setting or clearing this bit does not affect the other bits in this register.
1 = Module is enabled
0 = Module is disabled and does not consume current
bit 14-11 Unimplemented: Read as ‘0’
bit 10 VREFSEL: Voltage Reference Select bit
(2)
1 =CV
REF
= V
REF
+
0 =CV
REF
is generated by the resistor network
bit 9-8 BGSEL<1:0>: Band Gap Reference Source bits
(2)
11 =IV
REF
= V
REF
+
10 =Reserved
01 =IV
REF
= 0.6V (nominal, default)
00 =IV
REF
= 1.2V (nominal)
bit 7 Unimplemented: Read as ‘0’
bit 6 CVROE: CV
REFOUT
Enable bit
1 = Voltage level is output on CV
REFOUT
pin
0 = Voltage level is disconnected from CV
REFOUT
pin
bit 5 CVRR: CV
REF
Range Selection bit
1 = 0 to 0.625 CV
RSRC
, with CV
RSRC
/24 step size
0 = 0.25 CV
RSRC
to 0.719 CV
RSRC
, with CV
RSRC
/32 step size
bit 4 CVRSS: CV
REF
Source Selection bit
1 = Comparator voltage reference source, CV
RSRC
= (V
REF
+) – (V
REF
-)
0 = Comparator voltage reference source, CV
RSRC
= AV
DD
– AV
SS
bit 3-0 CVR<3:0>: CV
REF
Value Selection 0 CVR<3:0> 15 bits
When CVRR = 1:
CV
REF
= (CVR<3:0>/24) (CV
RSRC
)
When CVRR = 0:
CV
REF
=1/4 (CV
RSRC
) + (CVR<3:0>/32) (CV
RSRC
)
Note 1: When using the 1:1 PBCLK divisor, the user’s software should not read/write the peripheral’s SFRs in the
SYSCLK cycle immediately following the instruction that clears the module’s ON bit.
2: These bits are not available on PIC32MX575/675/775/795 devices. On these devices, the reset value for
CVRON is ‘0000’.










