CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CAN RX interrupts stop after transmission.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ferrumvir



Joined: 01 Feb 2006
Posts: 64
Location: England

View user's profile Send private message Visit poster's website

CAN RX interrupts stop after transmission.
PostPosted: Mon Jul 23, 2007 10:34 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group