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

adc resolution

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



Joined: 04 Jun 2006
Posts: 35

View user's profile Send private message

adc resolution
PostPosted: Wed Aug 23, 2006 5:43 am     Reply with quote

pic can only get analog date 10 bit. i want to use over simpling and over avaraging.. I found a way using nyquist theory.. i use adc module like:
#device adc=10

for over avaraging can i use like that:

#device adc=12

thanks for help
SherpaDoug



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

View user's profile Send private message

PostPosted: Wed Aug 23, 2006 7:48 am     Reply with quote

You will have to roll your own oversampling and averaging. To get 2 more bits you need 16 samples IF there is GAUSSIAN RANDOM noise. In practice I find this works poorly because the noise is often not quite random and never really gaussian.
However it is easy enough to try, just sum 16 samples and divide by 4 and see what you get.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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

links
PostPosted: Wed Aug 23, 2006 12:46 pm     Reply with quote

The oversampling issues have been discussed in some detail here:
http://www.ccsinfo.com/forum/viewtopic.php?t=24375

Here are some technical notes give a good overview of dithering and oversampling. Although you might have seen them already.
http://archive.chipcenter.com/TestandMeasurement/tn033.html
http://archive.chipcenter.com/TestandMeasurement/tn034.html
http://archive.chipcenter.com/TestandMeasurement/tn035.html
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