This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28075:CANB无法正常接收数据

Guru**** 2390755 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1290992/tms320f28075-canb

器件型号:TMS320F28075

函数原型:

void can_setupMessageObject (uint32_t base、      Uint32_t Objid、      uint32_t msgid、
                          CAN_MsgFrameType 帧、   CAN_MsgObjType msgType、  uint32_t msgIDMask、  
                          uint32_t flags、   uint16_t msgLen);

下面代码能否准确实现msgID (0x1A000008)的中断接收

obj设置:

CAN_setupMessageObject (CANB_BASE、   RX_MSG_OBJ_ID0、      0x1A000008、
                       CAN_MSG_FRAME_EXT、   CAN_MSG_OBJ_TYPE_RX、      0x1FFFFFFF、
                       CAN_MSG_OBJ_RX_INT_ENABLE | CAN_MSG_OBJ_USE_ID_FILTER、8);

中断读取:CAN_readMessage (CANB_BASE、RX_MSG_OBJ_ID0、rxMsgDataB);