Is there a quick way to divide a 16-bit number by 257 or does it just look as though there should be ? The Code Generator http://www.piclist.com/techref/piclist/codegen/constdivmul.htm seems to be unable to do this at 16 bits. I hoped it would produce something that could be further optimised. All that's needed is INT(16-bit / 257), the remainder can be found by * and - after the division. I've tried a few simple shift/subtract ideas, and full 16-bit division is still an option if necessary - just wondering if there's a simple logical solution -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body