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

  Рет қаралды 16,261

Study Microcontrollers

Study Microcontrollers

Күн бұрын

For the theory of 8051 and PIC microcontroller refer to the following blog:
kkwtemicrocont...
For MSP430 refer to the following blog:
learncontrolle...
To learn Computer languages and Microcontrollers click the link:
sites.google.c...

Пікірлер: 10
@dbanerjee2467
@dbanerjee2467 2 жыл бұрын
Thank you so much. It helped me to clear all doubt regarding ADC in PIC18f Uc
@2bit661
@2bit661 3 жыл бұрын
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) { ADCON0=0b00000001; // 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 } }
@fermanshahflash3303
@fermanshahflash3303 Жыл бұрын
Thankyou very muchh :')))))))))))))))
@NMPVevoOfficial
@NMPVevoOfficial Жыл бұрын
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
@shahrukhp3355
@shahrukhp3355 3 жыл бұрын
Thanks mam
@Achintya7185
@Achintya7185 3 жыл бұрын
Mam Make a video on interrupt pic microcontroller plz
@jboy4real
@jboy4real 3 жыл бұрын
How do we monitor the 13 channels ADC at once if we can connect the 13 channels at once
@lawalumardaura
@lawalumardaura 3 жыл бұрын
Use TDMA
@2bit661
@2bit661 3 жыл бұрын
I don't know about this chip, but on similar chips the ADC is multiplexed, meaning all the channels use the one ADC. But, Tight Man, maybe you know something I don't.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 15 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 16 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 9 МЛН
PIC_lecture 9: Interfacing of LCD with PIC Microcontroller | Embedded C program
17:38
How to get source code onto a PIC microcontroller
11:21
FriendlyWire
Рет қаралды 88 М.
How to use an ADC (embedded example in C)
14:56
Jacob Sorber
Рет қаралды 29 М.
How to use a microcontroller's analog to digital converter
10:33
FriendlyWire
Рет қаралды 20 М.
HOW TRANSISTORS RUN CODE?
14:28
Core Dumped
Рет қаралды 401 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 15 МЛН