Hi ChadMan,
More than likely, the problem is related to the "Context Saving" in your interrupt routine.
Most often it's caused by saving the registers "Again".
If the PIC has more than 2K of program space then PBP automatically inserts the Context Save routine, then it's up to you to restore them at the end of the interrupt.
So, if you're saving them again with something like this.Then you are overwriting the values that have already been saved. And, when they get restored, PBP get's very confused.Code:myint movwf wsave swapf STATUS, W clrf STATUS movwf ssave movf PCLATH, W movwf psave
If that's the case, simply remove that section, and it should work much better.
HTH,
Darrel




Bookmarks