View previous topic :: View next topic |
Author |
Message |
jma_1
Joined: 08 Feb 2005 Posts: 147 Location: Wisconsin
|
CAN rx filter mask |
Posted: Fri Oct 20, 2006 10:38 am |
|
|
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
|
|
Posted: Fri Oct 20, 2006 11:58 am |
|
|
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
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. |
|
|
|