> I agree with all that has been said. But....... > > Because the maximum results is only 7 bits, I would use 9 bits for the > fraction (16355, 1635, 163). And then just divide the high order result > byte by 2. You certainly could. That would give you 8 fraction bits instead of 9 at the cost of two instructions worst case. Probably neither the instructions nor the extra fraction bit make any meaningful difference, so I would go with the 8 fraction bits for simplicity and maintainability. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu