> I have a problem trying to understood which is the best way > for computing the: > > value + 1/2 LSB, where > value is an 8 bit unsigned integer I don't understand the question. There is no way to express 1/2 LBS in an integer. To do that you need at least one fraction bit. I assume you mean how to convert an 8 bit integer to some representation so that the value is 1/2 original LSB higher? If the original value uses all 8 bits, then the new representation will require at least one more bit. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.