PIC_Lecture 13 : Embedded C program for ADC of PIC18FXX | Using ADC Module of PIC Microcontroller

preview_player
Показать описание
For the theory of 8051 and PIC microcontroller refer to the following blog:

For MSP430 refer to the following blog:

To learn Computer languages and Microcontrollers click the link:
Рекомендации по теме
Комментарии
Автор

Thank you so much. It helped me to clear all doubt regarding ADC in PIC18f Uc

dbanerjee
Автор

void main(void)
{
unsigned int Ch_result;
TRISA = 0xFF /* set all A ports as input */
ADCON1 = 0x00; /* Vrefs +/- are set to VDD/VSS and configure all pins as analog */
ADCON2 =0x92; /* right justified, 4Tad and Fosc/32. */
ADRESH=0;
ADRESL=0;

while(1)
{
// Select Channel 0, Go=0, ADON =1
ADCON0bits.GO=1; // providing Start of Conversion Signal =1

while (ADCON0bits.GO ==1 ); // Wait for end of conversion

Ch_result = ADRES; // store 10 bit result ADRESH-ADRESL
// register in variable Ch_result

}
}

bit
Автор

Thanks for the video!

But how can we modify the code so that the program reads the inputs of 4 sensors and displays its digital
one-to-one representation Thank you

NMPVevoOfficial
Автор

Mam Make a video on interrupt pic microcontroller plz

Achintya
Автор

How do we monitor the 13 channels ADC at once if we can connect the 13 channels at once

jboyreal
join shbcf.ru