Aha! That points me in the right direction. Thank you very much. Djula Djarmati wrote: > Stephen D. Barnes wrote: > >> I am working with the dsPIC30F2010. This chip is new to me. I have read >> the data sheet..family ref, etc. >> I have configured RE8 as an external interrupt (INT0) on rising edge. >> When the interrupt occurs the the correct >> interrupt flag is set and the chip then goes to what appears to be the >> start of the program. I am using >> the assembly template that Microchip supplies with MPLab. How exactly >> does one create an ISR for the >> dsPIC? In the 16F series it was an ORG
and that's where the >> ISR went. The dsPIC interrupt vector >> table says the address is 0x000014. I'm lost. Any pointers in the right >> direction would be appreciated. >> > > You don't need to mess with interrupt vector table manually, you just > use the predefined interrupt labels from linker script (i.e. p30f2010.gld). > I'm sure an example can be found in Microchip templates somewhere. > > > Example for TMR1 interrupt: > > __T1Interrupt: PUSH.S ;TMR1 INT each 1ms, save context > BCLR IFS0, #T1IF ;Clear TMR1 interrupt flag > > NOP ;Do something useful > > EndIntTMR1: POP.S ;Restore context > RETFIE ;Done > > > Djula > -- *Regards,* *Stephen D. Barnes* -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist