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.

TMS320F280039C-Q1: MCAN Tx interrupt

Part Number: TMS320F280039C-Q1

Hello support,

in a MCAN Type 2,

- what’s the aim of register MCAN_TXBTIE and its relationship with MCAN_IE.TCE ?

- What is the relationship with register MCAN_TXBTO and field MCAN_IE.TCE ?

- What happens if MCAN_IE.TCE  is NOT set but some field of MCAN_TXBTIE are set and a transmission is executed ?

Thanks

  • Hello support,

    I already got the reply through an internal TI communication channel.

    I post it here to share with others

    Thanks

    what’s the aim of register MCAN_TXBTIE ?

    Register MCAN_TXBTIE allows the user to enable the interrupts for the desired Tx buffers. Say that the bit is enabled only for buffers 5, 7 and 10. Consequently, an interrupt flag is set (MCAN_IR.TC) on successful transmission from Tx buffers 7 & 10 but not 1, 2 and 3. 

    What is the relationship with register MCAN_TXBTO and field MCAN_IE.TCE

    Register MCAN_TXBTO has bits which are set when transmission occurs in any particular Tx buffer. MCAN_IE.TCE is just Interrupt Enable. When a bit of TXBTO is set, MCAN_IR.TC is set if it was previously cleared (provided MCAN_IE.TCE is set). MCAN_IR.TC needs to be manually reset (by writing 1) before it is set by another bit of TXBTO being set.

    What happens if MCAN_IE.TCE  is NOT set but some field of MCAN_TXBTIE are set and a transmission is executed ?

    If MCAN_IE.TCE is not set, interrupt will not be generated on any transmission completion. TXBTIE only allows to configure what Tx buffers should result in interrupt generation provided that MCAN_IE.TCE is set.