Acceptance Filtering MSCAN

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

Acceptance Filtering MSCAN

Jump to solution
689 Views
Kartoon67
Contributor III

Hi,

 

I’m using the microprocessor MC9S12XF512MLM and i try to send and receive a CAN frame. But in the example FREESCALE, i can just receive by interrupte the ID 0x6C700000.

 

For my application, i want to receive all CAN frame with their ID.

 

/* Acceptance FiltersCAN0IDAC = 0x10;CAN0IDAR0 = 0xFF;CAN0IDMR0 = 0xFF;CAN0IDAR1 = 0xFF;CAN0IDMR1 =0xFF;CAN0IDAR2 =0xFF;CAN0IDMR2 =0xFF;CAN0IDAR3 = 0xFF;CAN0IDMR3 = 0xFF;CAN0IDAR4 = 0xFF;CAN0IDMR4 =0xFF;CAN0IDAR5 = 0xFF;CAN0IDMR5 = 0xFF;CAN0IDAR6 = 0xFF;CAN0IDMR6 = 0xFF;CAN0IDAR7 = 0xFF;CAN0IDMR7 = 0xFF;

 

 

I have doing that, is that correct?

 


 

Regards,

Labels (1)
0 Kudos
Reply
1 Solution
322 Views
kef
Specialist I

       ID 0x6C700000.

 

This number is not the CAN ID. Extended CAN ID has 29bits. Your number won't fit.

  

Yes, setting all bits in CANxIDMRn registers will make filter accepting all identifiers.

View solution in original post

0 Kudos
Reply
1 Reply
323 Views
kef
Specialist I

       ID 0x6C700000.

 

This number is not the CAN ID. Extended CAN ID has 29bits. Your number won't fit.

  

Yes, setting all bits in CANxIDMRn registers will make filter accepting all identifiers.

0 Kudos
Reply