Miguel Bombach

Simple interrupts question

Discussion created by Miguel Bombach on Mar 22, 2006
Latest reply on Mar 23, 2006 by bigmac

I think when an interrupt is triggered the cpu goes to a vector table. From this vector table it'll do whatever you tell it to do.

So I guess in the appropriate vector location you'd say

BRA (address of isr)

And at the address of your ISR you just do your code and pop in an RTI at the end.

Now the simple question is... How do you do this in C?:smileyhappy:

Thanks and apologies for the dumb Qs.