msCAN BUS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

msCAN BUS

735 次查看
boriszviagin
Contributor I

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

标签 (1)
0 项奖励
回复
1 回复

510 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

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."

CAN.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复