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 CCS Technical Support

CAN rx filter mask

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



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

CAN rx filter mask
PostPosted: Fri Oct 20, 2006 10:38 am     Reply with quote

Greetings,

I thought I would point this out in case anyone has made the same blunder I did.

The argument 'CAN_MASK_ACCEPT_ALL' in the can_set_id() function is the value zero. Per the data sheet on PIC's w/ CAN, this means that all messages will be received and you cannot associate a filter with a buffer. I spent quite a bit of time verifying this due to my inability to read the data sheet. :-)

Cheers,
JMA
sjbaxter



Joined: 26 Jan 2006
Posts: 141
Location: Cheshire, UK

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

PostPosted: Fri Oct 20, 2006 11:58 am     Reply with quote

jma_1,

This is a good point. I have been meaning to write a simple VB or c# app that you can enter a list of ID's that you want to recieve and then get it to give you the MASK and/or specific FILTERs that you need to set. Maybe that'll give me something to do this weekend Very Happy

If you leave it as accept all, and you have a fairly active bus, the PIC soon becomes unresponsive as it tries to service all the RX interrupts.
_________________
Regards,
Simon.
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