Page 1 of 1

ADC on 16F18426

Posted: Mon Sep 06, 2021 7:43 pm
by Marc-Lepage-AIF
Hello BEN, Thank's for your help and the update of the library. But sorry the problem is still there , ADC is not implemented ...or maybe I do something wrong...? My prog must take the analog signal on AN2 and send result on com via C0. It's not coming from the electonic as a friend of mine has made a C prog and it works. But i do not want to use any outside prog , all must be done with Flowcode. Could you please have a second look at my problem ? Thank's . Marc

Re: ADC on 16F18426

Posted: Tue Sep 07, 2021 6:36 am
by p.erasmus
Hi,

Are you sure the micro is running (How do you know that )
Did you try just to write a dummy value to the UART and see if your UART coms are working example, write 3,42V ?
also from your FC chart you use a ADC clock of FOSC/28 thats maybe a bit slow I would use 16.

Re: ADC on 16F18426

Posted: Tue Sep 07, 2021 11:12 am
by BenR
These two settings in your confguration look incorrect, can you check these settings,
Config.jpg
Config.jpg (47.28 KiB) Viewed 2185 times
What values are you getting out the UART? If your not getting anything then maybe worth doing a one second flash test.

https://www.flowcode.co.uk/wiki/index.p ... ED_flasher

Re: ADC on 16F18426

Posted: Tue Sep 07, 2021 10:21 pm
by Marc-Lepage-AIF
Hi Ben , Hi erasmus,
Thank's both ...find here under the correct setting...