Hello,
You are correct you should set the pic to 10 bits:
DEFINE ADC_BITS 10
http://www.darreltaylor.com/DT_Analog/
If you study Darrel's example in the above link, bottom of the article.
You set your oversampling resolution in this line:
ADbits = 12 ; set to 12-bit resolution
Regards
Mark





Bookmarks