Datasheet
PIC32MX5XX/6XX/7XX
DS60001156H-page 336 2009-2013 Microchip Technology Inc.
26.1 Control Register
REGISTER 26-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 =CVREF = VREF+
0 =CVREF is generated by the resistor network
bit 9-8 BGSEL<1:0>: Band Gap Reference Source bits
(2)
11 =IVREF = VREF+
10 = Reserved
01 =IVREF = 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.67 CVRSRC, with CVRSRC/24 step size
0 = 0.25 CV
RSRC to 0.75 CVRSRC, with CVRSRC/32 step size
bit 4 CVRSS: CVREF Source Selection bit
1 = Comparator voltage reference source, CV
RSRC = (VREF+) – (VREF-)
0 = Comparator voltage reference source, CV
RSRC = AVDD – AVSS
bit 3-0 CVR<3:0>: CVREF 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)
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’.