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. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist