12bit ADC in dsPIC?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
beambase
Posts: 94
Joined: Wed Jul 29, 2009 5:15 pm
Has thanked: 6 times
Been thanked: 8 times
Contact:

12bit ADC in dsPIC?

Post by beambase »

Iam using the dsPIC version of FC and doing a project on a 30F6012A. The 30F6012A has a 12 bit resoltion ADC but the standard ADC component will only use 10 bits. Is there a way to get the ADC component to work with all 12 bits?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: 12bit ADC in dsPIC?

Post by medelec35 »

Hi beambase,
If you use ReadAsInt, then if 10 bit then Maximum value would be 2y(10)-1 = 1023.
If 12 bit then maximum value should be 2y(12)-1=4095
Which is what I get in the simulation.
Read 12bit ADC.png
(52.78 KiB) Downloaded 1144 times
Not tried on hardware yet.

For people using PIC, there are also some of PIC devices that use 12 bit.

Martin
Martin

Post Reply