Datasheet
PIC24FJ128GC010 FAMILY
DS30009312B-page 388 2012-2013 Microchip Technology Inc.
REGISTER 31-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 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CVREN CVROE CVRSS CVR4 CVR3 CVR2 CVR1 CVR0
bit 7 bit 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 15-11 Unimplemented: Read as ‘0’
bit 10 CVREFP: Comparator Voltage Reference Select bit (valid only when CREF is ‘1’)
1 =V
REF+ is used as a reference voltage to the comparators
0 = The CVRx (5-bit DAC) within this module provides the reference voltage to the comparators
bit 9-8 CVREFM<1:0>: Comparator Voltage Band Gap Reference Source Select bits
(valid only when CCH<1:0> = 11)
00 = Band gap voltage is provided as an input to the comparators
01 = Band gap voltage, divided by two, is provided as an input to the comparators
10 = Reserved
11 =VREF+ pin is provided as an input to the comparators
bit 7 CVREN: Comparator Voltage Reference Enable bit
1 =CVREF circuit is powered on
0 =CV
REF circuit is powered down
bit 6 CVROE: Comparator VREF Output Enable bit
1 =CVREF voltage level is output on the CVREF pin
0 =CV
REF voltage level is disconnected from the CVREF pin
bit 5 CVRSS: Comparator VREF Source Selection bit
1 = Comparator reference source, CVRSRC = VREF+ – VREF-
0 = Comparator reference source, CV
RSRC = AVDD – AVSS
bit 4-0 CVR<4:0>: Comparator VREF Value Selection bits
CV
REF = (CVR<4:0>/32) (CVRSRC)