Hi Jos,

The problem is in the ADC library. Apparently the 18F4431 has a different way 
of selecting the ADC channel that I have never seen before.

I made a quick fix and added the channel selection for your PIC but to the 
attached ADC library did not test this so you should give it a try. The code I 
added could be simplified but that is something that could be done later.

So place the attached ADC library in the directory of your program recompile it 
and let me know if it works.

Thanks.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens jos smans 
<[email protected]>
Verzonden: dinsdag 9 april 2024 16:56
Aan: jallib <[email protected]>
Onderwerp: [jallib] Greenhouse

Good day, i have a problem with a program to make   automatic my greenhouse. 
With pic 18f4455,  it  works fine, but not with pic 18f4431.I think its a adc 
fault but i am not sure.
Can someone help me? thanks
--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/eaae0d75-efe1-4bdc-b6ce-ca87db6dd560n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/eaae0d75-efe1-4bdc-b6ce-ca87db6dd560n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB1637171120AC6BA343AB4AFFE6072%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.

Attachment: adc.jal
Description: adc.jal

Reply via email to