ADC on 16F18426
-
- Posts: 3
- http://meble-kuchenne.info.pl
- Joined: Fri Feb 12, 2021 3:29 pm
- Been thanked: 1 time
ADC on 16F18426
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 124 times
- 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
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.
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
-
- Matrix Staff
- Posts: 1726
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 438 times
- Been thanked: 602 times
Re: ADC on 16F18426
These two settings in your confguration look incorrect, can you check these settings,
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 3
- Joined: Fri Feb 12, 2021 3:29 pm
- Been thanked: 1 time
Re: ADC on 16F18426
Hi Ben , Hi erasmus,
Thank's both ...find here under the correct setting...
Thank's both ...find here under the correct setting...
- Attachments
-
- 16F18426.jpg (131.04 KiB) Viewed 2164 times