Page 1 of 1

12bit ADC in dsPIC?

Posted: Fri Feb 10, 2012 3:50 pm
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?

Re: 12bit ADC in dsPIC?

Posted: Fri Feb 10, 2012 5:09 pm
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