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.
pic16f1789 adc resolution
-
- Posts: 69
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:58 am
- Has thanked: 27 times
- Been thanked: 8 times
-
- Matrix Staff
- Posts: 2089
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 646 times
- Been thanked: 704 times
Re: pic16f1789 adc resolution
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: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?
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
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