12bit ADC in dsPIC?
Moderator: Benj
-
- Posts: 94
- Joined: Wed Jul 29, 2009 5:15 pm
- Has thanked: 6 times
- Been thanked: 8 times
- Contact:
12bit ADC in dsPIC?
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?
-
- 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?
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. Not tried on hardware yet.
For people using PIC, there are also some of PIC devices that use 12 bit.
Martin
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. Not tried on hardware yet.
For people using PIC, there are also some of PIC devices that use 12 bit.
Martin
Martin