Quote Originally Posted by HankMcSpank View Post
Comp1 Interrupt routine...
store timer 1 count to a Variable "X"
reset timer 1


Comp2 Interrupt routine...
store timer 1 count to a Variable "y"
reset timer 1
First I would combine these as Paul suggested. ASM provided in my above post.

..... would it be possible to at least get me started?
Of course! we will!
Re the ISR - how would that be triggered?
triggering is easy, just have to turn on PIE's and GIE.

Off the top of my head, there is some homework to be done. I am not sure how to share variables between ASM and PBP. I don't have my manual with me at work, but I do remember seeing it. Thats needs to be found. While you are reading it, see if says anything about needing to stack PBP stuff when entering ISR. Pic will take care of the important stuff, but what about bank select and such.

Re the ISR content - what ASM would that entail?
Thats the easy part

Edit: Also, are there any suitable tools that can help me work out what's going on inside the PIC - I'm thinking along the lines of simulating in step time (vs real time) & seeing what's going on wrt registers.
Do you use MPLAB? If so, I like the mplab sim in under debuggers. it's not real robust, but it will allow you to set things like the input pin, step through the program and watch reg's. I don't know if it works with PBP. Beyond that, hardware solutions start with something like ICD. and higher in the money scale.