Forgive me for digging up an old thread, but this really interests me.
I've also a stash of 16f1828s and the auto context register saving intrigues/appeals to me ... my ultimate goal is getting in/out of a timer based interrupt as fast as possible - ie miniscule overhead (the interrupt rate will be happening at about 50khz)....the thought of learning assembly is quite a hurdle, but this seems like this could be a way of easing myself into it...ie my main code can be picbasic with the interrupt being a little bit of assembly.
But I'm lost!
How do I set up an interupt, so that when say timer1 overflows it jumps to an assembly type interrupt in my code (all my interrupts to date have been using DT's most excellent interupt routine, but if I'm understanding correctly that way adds some overhead which could be avoided with these new type PICs?)...in the example above it wasn't clear to me how that ASM part was called/found by the PIC/program.
Bookmarks