Comments on: Analog to Digital Converter (ADC) in PIC Microcontroller https://electrosome.com/analog-to-digital-converter-pic/ You Inspire.....We Create..... Tue, 12 May 2020 12:07:28 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: OJIEAGA OKOGUA https://electrosome.com/analog-to-digital-converter-pic/#comments/9654 Tue, 12 May 2020 12:07:28 +0000 https://electrosome.com/?p=1635#comment-9654 Hello Mr George.Thanks for this information. please i am trying to program pic16f886 adc to read 6 sensors from port a.From the datasheet, i read that the GO_Done bit should not be in the same instruction in ADCON0. Please i need your help to configure ADCON0. Or will it automatically configure? I am using Mikroc pro for pic.Thanks

]]>
By: Sanathoi Sagolsem https://electrosome.com/analog-to-digital-converter-pic/#comments/6954 Thu, 07 Dec 2017 01:38:00 +0000 https://electrosome.com/?p=1635#comment-6954 Hi Ligo, great work. But, I doubt the TRISC should be 0x3C not 0x3F as you have used RC0 and RC1 as output pin.

]]>
By: yogesh https://electrosome.com/analog-to-digital-converter-pic/#comments/6887 Mon, 02 Oct 2017 06:26:00 +0000 https://electrosome.com/?p=1635#comment-6887 hi,

with the above code PORTB pins all are high without giving any input voltage to AN1…i m not understanding why…?

]]>
By: dgod https://electrosome.com/analog-to-digital-converter-pic/#comments/6864 Tue, 05 Sep 2017 16:04:00 +0000 https://electrosome.com/?p=1635#comment-6864 want to on the led sequentially

pls help

]]>
By: Ligo George https://electrosome.com/analog-to-digital-converter-pic/#comments/6502 Sun, 27 Nov 2016 08:59:00 +0000 https://electrosome.com/?p=1635#comment-6502 In reply to Vikaar Hamaayun.

First thing ADC value is not a float.. it is a 10bit number…. ranges from 0 to 1023.

]]>
By: Vikaar Hamaayun https://electrosome.com/analog-to-digital-converter-pic/#comments/6442 Mon, 31 Oct 2016 13:57:00 +0000 https://electrosome.com/?p=1635#comment-6442 In reply to Vikaar Hamaayun.

know i am getting a error in the follow statement
error = setpoint – actual_value;
when i compile it . it does that fine but when running in ic it creates a problem and all the variables are in float

]]>
By: Vikaar Hamaayun https://electrosome.com/analog-to-digital-converter-pic/#comments/6441 Mon, 31 Oct 2016 13:40:00 +0000 https://electrosome.com/?p=1635#comment-6441 In reply to Vikaar Hamaayun.

AAAaaaaa i have solved the problem . Thank you thou

]]>
By: Vikaar Hamaayun https://electrosome.com/analog-to-digital-converter-pic/#comments/6440 Mon, 31 Oct 2016 13:31:00 +0000 https://electrosome.com/?p=1635#comment-6440 Hello . I am reading analogue value from adc module but when i display it on lcd the value comes different

actual_value = ADC_Read(1);
LCD_Out(2, 1, “+V = “);
FloatToStr(actual_value, vartxt);
LCD_Out(2, 6, vartxt);

can you please help me regarding it

Regards
Waqar Hamayun

]]>
By: Ligo George https://electrosome.com/analog-to-digital-converter-pic/#comments/6376 Thu, 22 Sep 2016 13:58:00 +0000 https://electrosome.com/?p=1635#comment-6376 In reply to Shreya Sood.

a1 = ADC_Read(0);
a2 = ADC_Read(1);
a3 = ADC_Read(2);

]]>
By: Shreya Sood https://electrosome.com/analog-to-digital-converter-pic/#comments/6365 Sat, 17 Sep 2016 19:50:00 +0000 https://electrosome.com/?p=1635#comment-6365 In reply to Ligo George.

Sir could you please elaborate how to do this?

]]>