On 10/2/05, Wouter van Ooijen wrote: > Part II of my most stupid [PIC] mistakes. > > I am trying to read an ADXL two-axis accelerometer. It outputs 2.5V +/- > 0.3V, so to increase the A/D resolution I use 2.0 as -ref and 3.0 as > +ref. But I only got either 000 or 3FF as A/D reading. I was totally > flabbergasted, untill I re-checked which pin is -ref and which +ref. I > had of course switched the pins. Still have doubts that you have the entire 10 bit resolution. I think not. In fact I'm sure. :) cheers, Vasile -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist