Hi all,
I'm working on an ongoing project using the PIC16F1779 MCU.
I intend to use its ADC peripheral, and I have a question regarding its configuration.
In the ADC Component Macro properties window, I see a resolution of 12 bits, and the ADC result I receive also appears to reflect a 12-bit resolution. However, according to the datasheet, this MCU only has a 10-bit ADC.
The value returned by the converter seems realistic when interpreted as a 12-bit result.
Is this expected behavior, or is something misconfigured?
Regards,
Sasi
PIC16F1779 – ADC shows 12-bit resolution, but datasheet says 10-bit
-
Sasi
- Posts: 134
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 12:11 pm
- Has thanked: 43 times
- Been thanked: 15 times
-
medelec35
- Matrix Staff
- Posts: 2167
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 662 times
- Been thanked: 731 times
Re: PIC16F1779 – ADC shows 12-bit resolution, but datasheet says 10-bit
Hello
Sorry for the delay, this post slipped through the net.
Many thanks for letting us know.
It's a very easy fix.
The number of ADC bits is set within the Microcontroller.fcdx file.
I have updated the fcdx files for you.
If you browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.
You can then place the updated fcdx files.
I will check other target devices and change the bits if they also look wrong.
Sorry for the delay, this post slipped through the net.
Many thanks for letting us know.
It's a very easy fix.
The number of ADC bits is set within the Microcontroller.fcdx file.
I have updated the fcdx files for you.
If you browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.
Code: Select all
%ProgramData%\MatrixTSL\FlowcodeV10\FCD\PIC\I will check other target devices and change the bits if they also look wrong.
- Attachments
-
- 16F1779.fcdx
- (24.7 KiB) Downloaded 7 times
-
- 16LF1779.fcdx
- (24.28 KiB) Downloaded 6 times
Martin