Hi All,
I wonder if you can help, please. I have been working on a project I need a 12bit ADC for. I have chosen the PIC 16F1788 for the job and built the hardware. I have just gone to start programming it and discovered that Flowcode's ADC properties for that IC are showing the ADC resolution is fixed at 10 bit. I have been back to the datasheet and it is quite certain that it has 12Bit ADC's. I have checked the PIC16F1789 and that shows the same.
Is this that Flowcode can't work to 12bit ADC resolution or is it an error in the configuration files for these IC's please?
Many Thanks.
Simon
PIC16F1788/9 ADC Resolution
-
simon-sandtcontrols
- Posts: 52
- http://meble-kuchenne.info.pl
- Joined: Sun Mar 21, 2021 3:56 pm
- Has thanked: 5 times
- Been thanked: 8 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1759
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 256 times
- Been thanked: 410 times
Re: PIC16F1788/9 ADC Resolution
Thanks for reporting this. I wonder if it is related to this post:
https://www.flowcode.co.uk/forums/viewtopic.php?t=1505
Anyway, we'll have a look and get this fixed.
https://www.flowcode.co.uk/forums/viewtopic.php?t=1505
Anyway, we'll have a look and get this fixed.
-
simon-sandtcontrols
- Posts: 52
- Joined: Sun Mar 21, 2021 3:56 pm
- Has thanked: 5 times
- Been thanked: 8 times
Re: PIC16F1788/9 ADC Resolution
Thanks Steve,
I think it's slightly different symptoms. I can't change the resolution from 10bit in the ADC properties, it's greyed out. I haven't tried simulating it or compiling it.
Simon.
I think it's slightly different symptoms. I can't change the resolution from 10bit in the ADC properties, it's greyed out. I haven't tried simulating it or compiling it.
Simon.
-
BenR
- Matrix Staff
- Posts: 2132
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 568 times
- Been thanked: 752 times
Re: PIC16F1788/9 ADC Resolution
Hi Simon,
Hopefully resolved for you now via the library updates.
Let us know how you're getting on.
Hopefully resolved for you now via the library updates.
Let us know how you're getting on.
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
-
simon-sandtcontrols
- Posts: 52
- Joined: Sun Mar 21, 2021 3:56 pm
- Has thanked: 5 times
- Been thanked: 8 times
Re: PIC16F1788/9 ADC Resolution
Hi Steve,
I have just done the update, it's now fixed at 12bit resolution, it's fine for what I want, but is that correct it can't be changed between 10 & 12?
I haven't finished the program for it yet. I will update when I load it into the IC.
Thanks.
Simon.
I have just done the update, it's now fixed at 12bit resolution, it's fine for what I want, but is that correct it can't be changed between 10 & 12?
I haven't finished the program for it yet. I will update when I load it into the IC.
Thanks.
Simon.