ADC Library Interface With PicMicroController (MikroC)
ADC Library
ADC (Analog to Digital Converter) module is available with a number of PIC MCU modules. ADC is an electronic circuit that converts continuous signals to discrete digital numbers. ADC Library provides you a comfortable work with the module.
Library Routines
ADC_Init
ADC_Get_Sample
ADC_Read
ADC_Init
Prototype
void ADC_Init();
Returns
Nothing.
Description
This routine initializes PIC’s internal ADC module to work with RC clock. Clock determines the time period necessary for performing AD conversion (min 12TAD).
Requires
MCU with built-in ADC module.
Example
ADC_Init(); // Initialize ADC module with default settings