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.

TMS320F280049: how to ensure completion of the previous transmission before initiating the next transmission, with multiple mailboxes used?

Part Number: TMS320F280049


My customer wants to check how to ensure completion of the previous transmission before initiating the next transmission, with multiple mailboxes used.

I found the previous response from Hareesh, that TXOK bit in the CANES register can be used. So what about multiple mailboxes that are transmitting? Thank you.

请使用手机"扫一扫"x

  • Hi Aki,

    :Looking into this.  will let you know if there are other options for polling when next transmission is possible when sending multiple mailboxes.

    Regards,

    Joseph

  • Hi Aki,

    There are two other registers that can be polled.  First one is CAN_TXRQ_X[3:0].  Bit 0 of this register, when set means that there are pending transmissions on message objects 1 to 8, bit 1 when set means that there are pending transmissions on message objects 9 to 16, bit 2 for message objects 17 to 24 and bit 3 for message objects 25 to 32.  Second register is CAN_TXRQ_21.  It is a 32-bit register and each bit position represents the transmit status of each message object where bit 0 is for mailbox 1, bit 1 is for mailbox 2 … bit 31 is for mailbox 32.  If bit value is 0, then there is no pending transmission on the corresponding message object.  If bit value is 1, then transmission is ongoing/pending for the corresponding mailbox.

    Description of these two are also available in the registers section of the DCAN chapter in TRM.

    Hope this helps.

    Regards,

    Joseph

  • Joseph,

    Thank you for the detailed explanation. It is clear now!