MPC5748G CANFD

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

MPC5748G CANFD

935 次查看
tony_huang
Contributor III

Hi,

      My team is using mpc5748g canfd interrupt module,and I  initialized can1 channel for canfd function.  

My code enters the can receive interrupt and need distiguish can2.0 or canfd messages, because the length

of them are different. 

     Here my questions,how can  I  distiguish can2.0 or canfd messages? I don't think 

the MB[0].CS.B.BRS registers is the good choice.

QQ图片20170502173300.jpg

QQ图片20170502174037.jpg

0 项奖励
回复
2 回复数

716 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

Both the EDL and BRS bits of MB Control word are set based on received message. Thus EDL distinguishes between CAN format and CAN FD format frames and BRS defines whether the bit rate is switched inside a CAN FD format frame.

BR, Petr

0 项奖励
回复

716 次查看
tony_huang
Contributor III

Thank you, I'll try.

0 项奖励
回复