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
Pic12f1840 ADC problem
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Pic12f1840 ADC problem
Hello Soren,
Flowcode v4 or v5?
Flowcode v4 or v5?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 211
- Joined: Tue Feb 19, 2013 9:51 pm
- Has thanked: 72 times
- Been thanked: 177 times
Re: Pic12f1840 ADC problem
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
http://www.matrixmultimedia.com/mmforum ... ror#p27866
Note that there is also an update for PIC_ADC_26.c