Just change your define to all uppercase and no = sign..
define ADC_BITS 10
Without the correct define, PBP is still using 8-bits, and all you see are the top 2 bits when it's right justified (0-3).
Just change your define to all uppercase and no = sign..
define ADC_BITS 10
Without the correct define, PBP is still using 8-bits, and all you see are the top 2 bits when it's right justified (0-3).
Last edited by Darrel Taylor; - 1st September 2012 at 17:02.
DT
Bookmarks