You're calling either Delay10TCYx() or Delay100TCYx(). One "works", the other doesn't. It would seem the problem is in the Delay100TCYx() function - that's the code we need to see. It's also interesting that the first one is called with a value of 255. The maximum value an 8-bit variable can hold... Boundary conditions are always "interesting". -Denny --=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 .