Page 1 of 1

Pic12f1840 ADC problem

Posted: Mon Jun 03, 2013 4:12 pm
by Soren
Hi

Pic12f1840 give me a random value when i use the read as int, when i use the read as byte everything work perfect.
I have a LM35 temperatur sensor connectet to adc2 an i want to use the read as int because it´s give me a better resolution.
When i look in the C code i can see it´s the adc_23 there is been used,is this the right one?
someone having the same problem?

Soren

Re: Pic12f1840 ADC problem

Posted: Mon Jun 03, 2013 5:25 pm
by Benj
Hello Soren,

Flowcode v4 or v5?

Re: Pic12f1840 ADC problem

Posted: Mon Jun 03, 2013 5:59 pm
by Soren
Hello Ben

sorry i forgot that. V4.5

Soren

Re: Pic12f1840 ADC problem

Posted: Mon Jun 03, 2013 9:38 pm
by Kenrix2
This post might answer your question:

http://www.matrixmultimedia.com/mmforum ... ror#p27866

Note that there is also an update for PIC_ADC_26.c

Re: Pic12f1840 ADC problem

Posted: Tue Jun 04, 2013 10:22 am
by Soren
Thanks Kenrix2.

This works great.

Soren.