ADC on 16F18426

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Marc-Lepage-AIF
Posts: 3
http://meble-kuchenne.info.pl
Joined: Fri Feb 12, 2021 3:29 pm
Been thanked: 1 time

ADC on 16F18426

Post 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
Attachments
ADC_Try_16F18426.fcfx
(13.34 KiB) Downloaded 120 times

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: ADC on 16F18426

Post 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.
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ADC on 16F18426

Post by BenR »

These two settings in your confguration look incorrect, can you check these settings,
Config.jpg
Config.jpg (47.28 KiB) Viewed 2141 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

Marc-Lepage-AIF
Posts: 3
Joined: Fri Feb 12, 2021 3:29 pm
Been thanked: 1 time

Re: ADC on 16F18426

Post by Marc-Lepage-AIF »

Hi Ben , Hi erasmus,
Thank's both ...find here under the correct setting...
Attachments
16F18426.jpg
16F18426.jpg (131.04 KiB) Viewed 2131 times

Post Reply