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.

测试CAN接收时,读取了CanaRegs.CAN_INT.bit.INT0ID总是等于0x8000

Part Number: TMS320F280039C

您好,

    请教一个CAN的问题。

     我目前在测试280039C的CAN收发功能,程序没有开接收中断,通过轮询的方式查询CanRegs.CAN_NDAT_21,但是在初始化有使能以下中断:

CAN_enableInterrupt(CAN_BASE, CAN_INT_IE0 | CAN_INT_ERROR |CAN_INT_STATUS);

     在判断CanRegs.CAN_NDAT_21之后,程序会读取CanaRegs.CAN_INT.bit.INT0ID的值,但是它一直是0x8000,而不是1-32.

     我勾了CANH和CANL之间的高低电平是分别是0V,2V,看起来电平也没问题。

      我想问一下问什么CanaRegs.CAN_INT.bit.INT0ID的值会一直是0x8000?

      有什么办法可以解决,可以正常读取到邮箱号?