pic16f1789 adc resolution

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Maverick
Posts: 69
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:58 am
Has thanked: 27 times
Been thanked: 8 times

pic16f1789 adc resolution

Post by Maverick »

Hi
I am using a PIC16F1789 which has a 12 bit a-d. this works fine in the simulator using a slider pot DISPLAY READS 0 - 4095 over a 0 -5 V range. when I use a programmed chip in my test rig it's defaulting to 8 bit not 12bit which is giving incorrect readings. please advise if this is a bug or is there a simple workaround.
Attachments
A-D_TEST.fcfx
(12.42 KiB) Downloaded 276 times

medelec35
Matrix Staff
Posts: 2089
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 646 times
Been thanked: 704 times

Re: pic16f1789 adc resolution

Post by medelec35 »

Hi
Thank you for the great spot.
I have found and fixed the problem.
If you want to try the fix out, just copy and paste:

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC
into windows explorer.
After adding the attached file to the above folder, if Flowcode is already running then you will need to reload your project.
You can do that by clicking on the reload icon at the top, next to the save icon.
If Flowcode is closed you can just open it as normal.
The fix will be added to the update system tomorrow.


Can you let me know how you get on please?
Attachments
16F1789.fcdx
(22.53 KiB) Downloaded 268 times
Martin

Maverick
Posts: 69
Joined: Wed Dec 02, 2020 10:58 am
Has thanked: 27 times
Been thanked: 8 times

Re: pic16f1789 adc resolution

Post by Maverick »

HI Martin
thanks for prompt response, mod works fine

medelec35
Matrix Staff
Posts: 2089
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 646 times
Been thanked: 704 times

Re: pic16f1789 adc resolution

Post by medelec35 »

That's great.
Thanks for letting me know.
Martin

Post Reply