James Newton wrote: > How about a "Reciprocal" under a maximum value like an extension of > http://www.piclist.com/techref/microchip/math/div/recip32k-ng.htm > followed by a multiplication by constant > http://www.piclist.com/techref/piclist/codegen/constdivmul.htm ? James: If the crystal were changed from 4 MHz to 64 * 1024 * 1024 4 MHz * ---------------- = 4.474 MHz, 60 * 1000 * 1000 then the second half of your solution (multiply by constant 60,000,000) could be replaced by a 26-bit left shift (which is really just a 2-bit left shift with a "virtual" 24-bit left shift). -Andy === Andrew Warren --- aiw@cypress.com === Staff Systems Engineer, IPD === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body