1 What is the VREF Peripheral Library (PLIB)?

The Voltage Reference (VREF) peripheral provides control registers for the voltage reference sources used by several peripherals. The user can select the reference voltages for the Analog-to-Digital Converter (ADC), Digital-to-Analog Converter (DAC), and Analog Comparator (AC) modules by writing to the appropriate registers in the VREF peripheral.