1.20.5 Comparator Voltage Reference (CVR)

The CVR peripheral generates voltage reference for the comparator (CMP). This voltage can be selected as positive input of the comparators in the device. This peripheral can also be used independently to generate a configurable voltage and the output can be routed to CVREFOUT pin.

Using The Library

CVR Peripheral library provides API's that can be used to perform below functionalities on the CVR peripheral.

  • Initialize the CVR

  • Turn on and turn off the peripheral

  • Write to the CVR value selection bits (4-bits).

Library Interface

peripheral library provides the following interfaces:

Functions

Name Description
CVR_Initialize Initializes CVR module of the device
CVR_Start Turns on the CVR module of the device
CVR_Stop Turns off the CVR module of the device
CVR_UpdateValue Writes to the CVR value selection bits (4-bits)