
Explore the ADC library for MikroC, initialize the ADC, read a channel, and convert analog inputs to digital values with proper channel mapping.
Explain how to initialize the adc with adc_init routines in MikroC for pic microcontrollers, outlining necessary clock settings and configurations to enable adc operation.
Explain how the ADC_Get_Sample() routine reads an analog value from a specified adc channel and returns a 10- or 12-bit unsigned value, after initializing and configuring the MCU's adc.
Explore how to use adc_read() routines in mikroC for pic microcontrollers, configure the adc channel, and read a 10- or 12-bit unsigned value from the specified channel.
Create an example for the ADC module part 1 in MikroC for the PIC microcontroller, incorporating digital input references.
Create an example for the adc module using MikroC on a pic microcontroller, as part 2 of the series.
Create an example for the ADC module using MikroC on a PIC microcontroller, showing how to read a channel and display the converted value.
Create an example for the ADC module using MikroC on a PIC microcontroller, focusing on resistor connections.
Create an example for the adc module in MikroC for the PIC microcontroller, completing part 5 of the series.
Create an example for the adc module using MikroC on a PIC microcontroller, detailing input connections, clock considerations, and routine adjustments.
Learn how to configure the adc input on a picmicro controller using mikroC, select channel one via rb1, and complete the note.
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