Hi Henrik,

I have a mainloop that is executing analog measurements and other "stuff." When the interrupt pin goes low, I want to stop doing whatever my mainloop is checking (non-critical stuff) and goto the receive section for the CAN network. It can be a gosub but I don't know if this would cause the same problem you are describing with the goto. It seems like such a simple concept (if this then that) but I've tried using interrupts before and haven't had any luck. DT's interrupt code made it simple and painless and I was hoping to use that to check hardware or software inputs.

Putting it more simply, when the interrupt pin goes low, I want the 18F4550 to handle the CAN data and if there's no CAN data then stay in the mainloop.

I'm not even sure I need an interrupt because the CAN data is so quick that the weak link seems to be the LCD screen. In other words, the LCD screen seems to take a little longer than the CAN data so as soon as one write cycle is finished there's a ton of CAN data to handle so I don't think the 18F4550 is ever waiting for data. But I wanted to try it to see if there's a difference.