Thanks for all of your responses. I still have not resolved the issue, but I have eliminated some possibilities: 1. Renaming delay_1_msec did not solve the problem, so I don't think this function was already defined. 2. Making the count variable local instead of global didn't solve the problem. I get the feeling that there is something I omitted that intermittently causes problems (much like the RA4=0 issue in the other thread - omitting this command was a mistake even though another program worked without it). Maybe my way of creating a delay is inferior and needs to be replaced with something better. -- Jason Hsu http://www.jasonhsu.com/swrwatt.html http://www.jasonhsu.com/swrwatt-c.txt http://www.jasonhsu.com/swrwatt-asm.txt -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist