The Complete ADC conversion Library Course In PIC

Posted By: naag

The Complete ADC conversion Library Course In PIC
MP4 | Video: AVC 1280x720 | Audio: AAC 44KHz 2ch | Duration: 32M | Lec: 6 | 331 MB
Genre: eLearning | Language: English

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

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

ADC_Get_Sample

unsigned ADC_Get_Sample(unsigned short channel);

Returns 10 or 12-bit unsigned value read from the specified channel (MCU dependent).