Page 1 of 1

pic16f1789 adc resolution

Posted: Tue Nov 01, 2022 4:06 pm
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.

Re: pic16f1789 adc resolution

Posted: Tue Nov 01, 2022 6:25 pm
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?

Re: pic16f1789 adc resolution

Posted: Wed Nov 02, 2022 10:23 am
by Maverick
HI Martin
thanks for prompt response, mod works fine

Re: pic16f1789 adc resolution

Posted: Wed Nov 02, 2022 11:53 am
by medelec35
That's great.
Thanks for letting me know.