Hello All.
I need to listen for special devices via the can bus.
To begin learning i am use with two KINETIS FRDM boards those communicates one with other.and run demo project .
My main issue how i can set and define the mask identification for listen another device with Extended ID
I would like to receive some advice's for start .
Thank
Hi,
Please check to use MSCAN_CANIDMRn register (MSCAN Identifier Mask Register n of First Bank).
Such as below picture shows how to set related register to filter extended ID ():
To receive standard identifiers in 32-bit filter mode, it is required to program the last three bits (AM[2:0]) in the mask registers CANIDMR3 to "don't care."
For you want to receive all Extended ID CAN frame, it need to set CANIDMR[0~3] registers all to 0xFF.
Wish it helps.
best regards
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------