Hello all, played around with interrupts for the first time and I have a question. I'm having a little trouble/curiosity with how ISR are assigned. Here is my interrupt routine(I know I broke some rules here, calling functions from within, etc etc)
Now see where it says _ADCInterrupt? Well, the dsPIC3014 datasheet lists 0x00002E as the IVT for this peripheral. Is it possible to use this address somehow? That way I'm not always dependent on a compiler specific constant? Also, I've searched around in the xc16 datasheet and can't seem to find a list of interrupt constants...
So any explanation would be greatly appreciated, I'm understanding the theory of interrupts so far I just wish I knew more about how they are assigned.
C:
void __attribute__ (( __interrupt__ )) _ADCInterrupt (void)
{
sprintf(data, "%d", ADCBUF0);
IFS0bits.ADIF = 0; // clear interrupt flag
}
So any explanation would be greatly appreciated, I'm understanding the theory of interrupts so far I just wish I knew more about how they are assigned.
Last edited: