Russ Hensel wrote: > There are no intentional interrupts, interrupt routine is just a > return. I have not done > anything to intentionally enable or disable interrupts. In that case, they're disabled. (Unless you've done something *un*intentionally to enable them, like missing a banksel or writing to a wild pointer.) > I have stripped > the code down > to straight line thru it with not button presses, just some blinks then > infinite loop of stepping: > still erratic. Weird. You said you'd tried the 'gotcha' list, but I just have to check - are all pins tied to something? Are you sourcing or sinking more current than the individual pins or the entire chip can handle? Have you scoped the power supply, especially during turn-on? Could we see the schematic? Or better yet, board layout and/or photo? I'm not sure I understood what you were saying about simulation - it works OK in the simulator as far as you can tell? Which simulator? -- Timothy J. Weber http://timothyweber.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist