Interrupt handler

Beta Testing discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
extrapilot
Posts: 130
Joined: 28 Nov 2006 17:59

Interrupt handler

#1 Post by extrapilot » 24 Dec 2009 01:45

Hi
For whatever reason, I cannot get any interrupt handler to be called if that interrupt handler is defined in a module other than Main.

For example, if I take the ME sample code for Interrupts- it works fine on my hardware. If I take the interrupt routine out of the Main module and create a TestInterrupt module, include that in the project, and compile it, the interrupt is never called. Since it is an IVT call, I dont know if scope is an issue here, but I tried including the Timer1Int() procedure in the Definitions section- and that was no help.

Thanks for any help-
Regards
R

extrapilot
Posts: 130
Joined: 28 Nov 2006 17:59

#2 Post by extrapilot » 24 Dec 2009 07:37

No idea why, but running an F7 step through the code in ICD mode seems to have tweaked something such that now it will access ISRs in modules. Strange.

That said, Pro does not seem to like interrupt contention yet...

R

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 Beta Testing”