> > On the other hand, a 1/2 scale right justified A/D reading would be > > 0000 0010 00.00 0000 >=20 > That doesn't make sense. If you are using right justified A/D readings, > then they would be integers. I don't see where the fraction bits are > supposed to come from in this case. Part of the problem that I see (and it doesn't matter if he uses a C compiler or anything else) is that Olin didn't explain himself properly in the first place. His 10.6 is 10 bits of binary mantissa and 6 bits of binary fraction, but his arithmetic is only ever done as adds, subtracts and shifts. But Kerry appears to be thinking of this 10.6 as being like an IEEE 754 or similar floating point representation, and doing math on it as though it is an ordinary decimal number, so doing a divide is not being properly done.=20 In your example Kerry, if the full scale is 1000 0000 00.00 0000, then a 1/2 scale reading is 0100 0000 00.00 0000 i.e. divide by 2, or a 1 bit right shift. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .