Hi All,
Just a question about DEFINEs.
In Darrel's code, I can see
What does it mean?Code:DEFINE ADC_BITS 16 '10 BIT A/D CONVERSION RESULT
I'm using a 12F683 that can only do a 10 bits resolution son what do I not understand? Why 16?
Hi All,
Just a question about DEFINEs.
In Darrel's code, I can see
What does it mean?Code:DEFINE ADC_BITS 16 '10 BIT A/D CONVERSION RESULT
I'm using a 12F683 that can only do a 10 bits resolution son what do I not understand? Why 16?
Roger
Well my friend if you read carefully you would notice that Darell uses a method called 'Oversampling technique' to increase the resolution by software trick.
more info at : http://www.darreltaylor.com/DT_Analog/
So the actual hardware used is the onboard f683 10bit but with 'oversampling' by software you can archive 16 bit resolution result with speed penalty as a drawback.
By using define you can use 10 to 16 bit 'sampling' with the most common use be the 12 bit sampling as a matter of speed.
Have a nice day my friend!
Bookmarks