Mike Hord wrote: > It seems to me something else must be the problem, since the ICD2 > can't know that the code that's currently executing is an interrupt > handler. > > For example, say you have a routine called "buggy". If you put a > branch at memory location 0x004 that says "goto buggy", how is that > different from any other goto or call that sends the program counter > to that subroutine? It's not. > > If your breakpoints aren't working, it's because the code where they > are set isn't executing, not because they're within the interrupt > handler. Ergo, you must not be reaching that code. Probably true, but ICD2 breakpoints don't work immediately after some instructions, particularly ones that modify the program counter. At least that is true with the 30F family. I've never used the ICD2 on a 16 or 18 family PIC. To be really sure, put two NOPs in a row and set a break point on the second one. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics