CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

12 bit resolution using a pic

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

12 bit resolution using a pic
PostPosted: Wed Jun 21, 2006 3:29 pm     Reply with quote

Is it possible to achieve 12 bit resolution using 4 offset analog inputs using a pic. Is it possible to offset each input by 1/4 of its 10 bit resolution then use code to determine what it actually is.

Or use one input as a reference AD then use another with varing charge times so the capacitor is not fully charged and extrapolate the AD value.

I'm just curious if anybody has tried this something like this with good results.
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Wed Jun 21, 2006 3:52 pm     Reply with quote

A few days ago SherpaDoug had mentioned this method in the other thread http://www.ccsinfo.com/forum/viewtopic.php?t=27261.

My personal oppinion is that this fractional bit offset method is not worth it. To make 4 offset signals, you'll need 4 opamps (quad opamp: 14 pins, about $3) plus qite a few discretes. On the other hand, if you have I2C or SPI bus in your system, you can add a 12-bit A/D, which requires minimum descretes, in an 8-pin package for $5-$7.
butterfly



Joined: 04 Jun 2006
Posts: 35

View user's profile Send private message

PostPosted: Thu Jun 22, 2006 1:10 am     Reply with quote

PIC HAS 10 BÝT RESOLUTIONS BUT WE CAN USE IT 12 BIT RESOLUTION. BUT YOUR SYSSEM NOISE IS IMPORTANT TOO. LOOK UP HE LINK

http://archive.chipcenter.com/TestandMeasurement/tn033.html

GOOD LUCK
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Jun 23, 2006 8:01 pm     Reply with quote

If you already have an amp in the circuit that has offset capability, like maybe an instrumentation amp, then the offset method does not require any additional amps. Just make an R2R ladder of cheap resistors to drive the reference pin of the instrumentation amp.
The technique is not useful very often, but it is cheap. The biggest problem is that the A/D is probably not linear to 1/4 lsb.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group