3.13 FVR - Fixed Voltage Reference
3.13.1 Introduction
The MPLAB® Code Configurator (MCC) Melody Melody Fixed Voltage Reference Peripheral Library (PLIBs) drivers generates APIs to support FVR-specific peripheral functionality on target MCUs.
The Fixed Voltage Reference (FVR) is a stable voltage reference, independent of VDD, with 1.024V, 2.048V or 4.096V selectable output levels. The FVR output can be configured to supply a reference voltage to analog peripherals such as the Analog-to-Digital Converter (ADC), the Comparator (CMP), and the Digital-to-Analog Converter (DAC).
3.13.2 Supported Device Families
PIC12/16F150x | PIC12/16F157x | PIC12/16F161x |
PIC12/16F184x | PIC12/16LF155x | PIC16F145x |
PIC16F151x | PIC16F152x | PIC16F152xx |
PIC16F153xx | PIC16F170x | PIC16F171x |
PIC16F171xx | PIC16F176x | PIC16F177x |
PIC16F178x | PIC16F180xx | PIC16F181xx |
PIC16F183xx | PIC16F184xx | PIC16F188xx |
PIC16F191xx | PIC16F194x | PIC16LF156x |
PIC16LF190x | PIC18F-K20 | PIC18F-K40 |
PIC18F-K42 | PIC18F-K50 | PIC18F-K83 |
PIC18F-Q10 | PIC18F-Q20 | PIC18F-Q24 |
PIC18F-Q40 | PIC18F-Q41 | PIC18F-Q43 |
PIC18F-Q71 | PIC18F-Q83 | PIC18F-Q84 |
3.13.3 Required Header Files:
#include "mcc_generated_files/fvr/fvr.h"
3.13.4 Module Documentation
3.13.4.1 FVR
This file contains the API prototypes for the FVR module.
3.13.4.1.1 Module description
This file contains the API prototypes for the FVR module.
Functions
void FVR_Initialize (void)
Initializes the FVR module. This is called only once before calling other FVR APIs.
bool FVR_IsOutputReady (void)
Checks if the FVR output is ready.
3.13.4.1.2 Function Documentation
FVR_Initialize()
void FVR_Initialize (void )
Initializes the FVR module. This is called only once before calling other FVR APIs.
|
None. |
FVR_IsOutputReady()
bool FVR_IsOutputReady (void )
Checks if the FVR output is ready.
Initialize the FVR before calling this function. |
|
|
3.13.5 File Documentation
3.13.5.1 source/fvr.c File Reference
This file contains the API implementation for the FVR module.
#include <xc.h> #include "../fvr.h"
3.13.5.1.1 Functions
void FVR_Initialize (void)
Initializes the FVR module. This is called only once before calling other FVR APIs.
bool FVR_IsOutputReady (void)
Checks if the FVR output is ready.
3.13.5.1.2 Detailed Description
This file contains the API implementation for the FVR module.
FVR Generated Driver File.
3.13.5.2 source/fvr.h File Reference
#include <stdbool.h> #include <stdint.h>
3.13.5.2.1 Functions
void FVR_Initialize (void)
Initializes the FVR module. This is called only once before calling other FVR APIs.
bool FVR_IsOutputReady (void)
Checks if the FVR output is ready.
3.13.5.2.2 Detailed Description
FVR Generated Driver API Header File.