Here's another one for your list of things to check : make sure you don't have an interrupt enabled for something that can be triggered by an external source that gets routed to someplace silly. Are you using the internal watchdog? If so, maybe the loop is a watchdog reset - again, would be good to check the reset source on powerup. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist