> I need to implement the following equation in a 16F876. > RESULT = (255 / A) * B > A and B are bytes (each have possible values of 01 to FF) > RESULT is a word (unsigned) for a timer routine counter. You probably want to do the multiply first to maintain your precision. Does mean having a 16 bit result that you then divide by 8 bit, but as the multiply is a 7 bit shift plus an add, it will not take long. There should be a suitable divide routine in the FAQ. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu