How to set the ID filter mask in MPC5604P

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set the ID filter mask in MPC5604P

371 Views
NCBird
Contributor I

CAN_0.MCR.B.BCC=1;

CAN_0.BUF[5].ID.B.STD_ID = 0x22F;

CAN_0.RXGMASK.R = 0x1FFFFFF0;

these are my set in the function of ID filter mask.

I want to receive from 220 to 22F.

How is the ID filter mask work? How to set the ID filter mask in MPC5604P?

0 Kudos
Reply
1 Reply

359 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if BCC bit is set then Individual masking registers are used instead of global one. So in this case config RXIMR5. Or clear BCC and use global register you have.
Moreover if standard ID is to be received, mask has to be shifted by 18bits left. So for example use
RXIMR5 = 0x7F0<<18;

BR, Petr

0 Kudos
Reply