ferrumvir
Joined: 01 Feb 2006 Posts: 64 Location: England
|
CAN RX interrupts stop after transmission. |
Posted: Mon Jul 23, 2007 10:34 am |
|
|
Hi,
I've been using a PIC18F2680 with INT_CANRX0 & INT_CANRX1 interrupts enabled and recieve all the filtered messages fine. Until I perform a transmission, then I recieve nothing.
I've a boolean which I switch to start transmission and after the first transmission the Rx interrupts are never triggered again.
I've re-written the software not to use the RX interrupts (using can_kbhit), and this works fine (messages before and after transmission are recieved) but will have it's own problems when more messages are being recieved, and is therefore not the solution.
I've also tried enable_interrupts imediately after the can_putd command but this has not re-enabled the CAN interrupts.
Global interrupts are still still working because #int_timer1 is still updating?
Any ideas?
Cheers Scott
PS Compiler version 3.249 |
|