PIC16F1788/9 ADC Resolution

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
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

Flowcode v10 PIC16F1788/9 ADC Resolution

Post by simon-sandtcontrols »

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

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

Post by Steve-Matrix »

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.

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

Post by simon-sandtcontrols »

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.

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

Post by BenR »

Hi Simon,

Hopefully resolved for you now via the library updates.

Let us know how you're getting on.

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

Post by simon-sandtcontrols »

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.

Post Reply