
Originally Posted by
Darrel Taylor
I don't think I'd be listening to that guy too much.
If you are using a chip with more than 2K of program memory,PBP automatically inserts code to do the context saving. It uses the wsave, ssave and psave variables. Why? I don't know. But it does.
In the process of saving the context, it also changes the W and STATUS registers. So if you try to save and restore it with different variables, you're only saving the changed values. Then the real values never get restored.
This will send PBP to the Funny Farm. Or at least the person trying to figure it out.
So, lose the saving portion of the interrupt handler, then change the restore section to what's shown in the manual.
HTH,
Allright! I already had my doubts about that! I changed it back right away and it works just as great! Thanks! 
I fixed the problem with the "resonating signal". Turned out I used a wrong capacitor so the signal sticked in the forbidden area too long...
Back to newbie class for me I guess, haha.
Now comes the real challenge, 3 time measurements at the same time with 3 different start/stop buttons. All working on interrupts... Wish me luck! 
Cheers,
William
------------
Oh Noes...
------------
Bookmarks