Skip to main content
deleted 26 characters in body; edited title
Source Link
JRE
  • 73.6k
  • 10
  • 112
  • 195

Output of inbuiltthe built in ADC in PIC 18F4520

I am trying to use inbuiltthe built in ADC of a PIC 18F4520.

The input is a voltage signal byfrom an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values offrom the ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When) When the output seems to be 65 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble.

As I intend to measure temperature via the output of this analog sensor, the fluctuating ADC output is causing trouble.

What can be the reason and please provide itsa solution also.?

Also, isIs there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage bit VCFG0 to VDD i.e. 5 V. and VCFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ? I am also confused that if I had set the reference voltage bit VCFG0 to VDD i.e. 5 V. and VCFG1 to VSS i.e. 0, will my ADC be able to measure 5.2 or any voltage above 5 V?

Output of inbuilt ADC in PIC 18F4520

I am trying to use inbuilt ADC of PIC 18F4520.

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output seems to be 65 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide its solution also.

Also, is there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage bit VCFG0 to VDD i.e. 5 V. and VCFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ?

Output of the built in ADC in PIC 18F4520

I am trying to use the built in ADC of a PIC 18F4520.

The input is a voltage signal from an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

I am getting fluctuating values from the ADC output (I checked the ADC output by printing the result with 4 seven segment display unit.) When the output seems to be 65 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation.

As I intend to measure temperature via the output of this analog sensor, the fluctuating ADC output is causing trouble.

What can be the reason and a solution?

Is there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage bit VCFG0 to VDD i.e. 5 V. and VCFG1 to VSS i.e. 0, will my ADC be able to measure 5.2 or any voltage above 5 V?

added 9 characters in body
Source Link

I am trying to use inbuilt ADC of PIC 18F4520.

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output is 60seems to be 65 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide its solution also.

Also, is there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage VFG0bit VCFG0 to VDD i.e. 5 V. and VFG1VCFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ?

I am trying to use inbuilt ADC of PIC 18F4520.

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output is 60 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide its solution also.

Also, is there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage VFG0 to VDD i.e. 5 V. and VFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ?

I am trying to use inbuilt ADC of PIC 18F4520.

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output seems to be 65 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide its solution also.

Also, is there a way to know the output that 10 bit ADC will show for a particular input?

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage bit VCFG0 to VDD i.e. 5 V. and VCFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ?

Added link to (my best belief of) the source of the included content closely adapted from elsewhere. The post's author is required to include source links for copied / adapted content, as explained in site rule: https://electronics.stackexchange.com/help/referencing
Source Link
SamGibson
  • 18.3k
  • 5
  • 41
  • 63

I am trying to use in builtinbuilt ADC of PIC 18F4520. The

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature. Now

Now, iI am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output is 60 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As iI intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide it'sits solution also. Also

Also, is there a way to know the output that 10 bit ADC will show for a particular input?   

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if iI had set the reference voltage VFG0 to VDD i.e. 5 V. and VFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ? Please answer, thanks in advance.

I am trying to use in built ADC of PIC 18F4520. The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature. Now, i am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output is 60 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As i intend to measure temperature via the output of this analog sensor the fluctuation in ADC output is causing trouble. What can be the reason and please provide it's solution also. Also, is there a way to know the output that 10 bit ADC will show for a particular input?  The image gives the ADCON 1 register details.

I am also confused that if i had set the reference voltage VFG0 to VDD i.e. 5 V. and VFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ? Please answer, thanks in advance.

I am trying to use inbuilt ADC of PIC 18F4520.

The input is a voltage signal by an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature.

Now, I am getting fluctuating values of ADC output (I checked the ADC output by printing the result with 4 seven segment display unit). When the output is 60 it fluctuates between 60-70. I am unable to understand the cause of this fluctuation. As I intend to measure temperature via the output of this analog sensor, the fluctuation in ADC output is causing trouble. What can be the reason and please provide its solution also.

Also, is there a way to know the output that 10 bit ADC will show for a particular input? 

The image gives the ADCON 1 register details.

Image source: Microchip - PIC18F2420/2520/4420/4520 Data Sheet

I am also confused that if I had set the reference voltage VFG0 to VDD i.e. 5 V. and VFG1 to VSS i.e. 0 . So will my ADC be able to measure 5.2 or any voltage above 5 V ?

Source Link
Loading