الخميس، 20 سبتمبر 2018
السبت، 12 مايو 2018
The Complete ADC conversion Library Course In PIC
بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
The Complete ADC conversion Library Course In PIC
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).
Description The function aquires analog value from the specified channel.
Parameter
channel
represents the channel from which the analog value is to be acquired. Refer to the appropriate datasheet for channel-to-pin mapping.
Parameters
channel
represents the channel from which the analog value is to be acquired.
Requires
- The MCU with built-in ADC module.
- Prior to using this routine, ADC module needs to be initialized. See ADC_Init.
- Before using the function, be sure to configure the appropriate TRISx bits to designate pins as inputs.
Example unsigned adc_value; adc_value = ADC_Get_Sample(2); // read analog value from ADC module channel 2
ADC_Read
Prototype unsigned ADC_Read(unsigned short channel);
Returns 10 or 12-bit unsigned value read from the specified channel (MCU dependent).
Description Initializes PIC’s internal ADC module to work with RC clock. Clock determines the time period necessary for performing AD conversion (min 12TAD).
Parameter
channel
represents the channel from which the analog value is to be acquired. Refer to the appropriate datasheet for channel-to-pin mapping.
Requires
Nothing.
Example unsigned tmp; tmp = ADC_Read(2); // Read analog value from channel 2
Coupon Code for course The Complete ADC conversion Library Course In PIC
الجمعة، 11 مايو 2018
الخميس، 10 مايو 2018
بسم الله الرحمن الرحيم
السلام عليكم ورحمه الله وبركاته
On udemy I will give you a coupon for all my courses if you subscribe to my YouTube channel
https://www.youtube.com/channel/UCNE-NHTEQjK8BGblDQERk5w
For
And then send me a picture proving that you have done a subscription with the activation alarm message sent on the udemy website and then I will reply you within 24 hours to give you the coupon
السلام عليكم ورحمه الله وبركاته
On udemy I will give you a coupon for all my courses if you subscribe to my YouTube channel
https://www.youtube.com/channel/UCNE-NHTEQjK8BGblDQERk5w
For
And then send me a picture proving that you have done a subscription with the activation alarm message sent on the udemy website and then I will reply you within 24 hours to give you the coupon
الأربعاء، 9 مايو 2018
الاشتراك في:
الرسائل (Atom)