My first thought was the oscillator was running at two different frequencies, but if the serial port stuff keeps working, it rules out that idea. I like Ruben's suggestion much better. In effect the delay is governed by an uninitialized memory byte, if he's right. That matches up nicely with all the other symptoms. The last time we chatted I was working with 16F877's. I have since used many of the 18F series and am currently doing our first PIC32 based project. Come back more often! How the heck do you use a telescope on a sailboat anyway? Barry -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist