At 09:58 11/05/2001 -0600, Lawrence Lile wrote: >B. Do the math to figure out what bits to stuff at the beginning of the loop >D. Compute all this stuff at compile time This could be done by preprocessor calculations, using #define etc. Once you have the clock speed defined, you can calculate the counter values. >C. use no unneccesary RAM Using inline assembly? ge -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.