You're sure that "int" is a 16-bit type in your C compiler ? Isn't there a better way to code delays (like some built-in "delay" routines) on your C compiler then to code your own software loops ? They will of course have different timings depending on how fast you "run" your PIC. Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist