Hi all, I'm trying valiantly to continue with my work on my encoder project, despite now being on the road. Though I definitely pulled out my PICkit3 and test board yesterday and did a bit of debugging at 35,000 feet! My current problem is that a simple math equation doesn't seem to work. It = is: int16_t encper =3D (encval/255) * 100; encval is also an int16_t, and defined elsewhere in the code. I know it is holding a value, as directly after the line of code above, I display both variables on an LCD display. The encval variable increments or decrements along with encoder movement. encper however, remains at 0...always. It shows as 0 in the watch window as well. I am not currently on the latest version of XC8, as the current one seems to be working and I try to avoid Microchip updates until I have to upgrade due to a bad experience many years ago. That said, it might be that I need to update my tools. However before I do that, can anyone else think of a reason why this might not be working? Thanks! Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .