Skip to content

Conversation

@jxltom
Copy link
Collaborator

@jxltom jxltom commented Mar 20, 2020

The RXM[1:0] bits (RXBnCTRL[6:5]) set special
Receive modes. Normally, these bits are cleared to ‘00’
to enable reception of all valid messages as determined by the appropriate acceptance filters. In this case, the determination of whether or not to receive
standard or extended messages is determined by the
EXIDE bit (RFXnSIDL[3]) in the Filter n Standard Identifier Low register.

As filters/masks are enabled in reset, then filtering of sid and eid are controlled by EXIDE of RXFnSIDL, as explained in datasheet 4.2.2. By default EXIDE is 0, so extended frames can not be received.

This PR makes MCP2515 able to receive sid and eid at the same time. Specifically, RXF0 is used for RXB0 and RXF1 is used for RXB1. The RXF0 can receive all standard frames and RXF1 can receive all extended frames.

Fixes #13, #23

@jxltom jxltom merged commit 4ab9454 into autowp:master Mar 24, 2020
@jxltom jxltom deleted the support-receive-both-eid-and-sid branch March 24, 2020 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read Extend Frame Format

1 participant