Other Parts Discussed in Thread: TCAN4550
Hello, how can I generate the TCAN4550 SendComplete Interrupt? Is there any demo code to reference.
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.
Hello, how can I generate the TCAN4550 SendComplete Interrupt? Is there any demo code to reference.
Hi Zhao,
The MCAN interrupt register contains a bit that describes when a transmission is completed (h0824 [9]): TC. This flag may be polled through SPI or tied to an interrupt line that maps to a GPO to indicate when the controller has completed a transmission.
While the demo code from the device's store page does not contain dedicated functions for line interrupt configuration, all relevant registers are included in the TCAN4x5x_Reg,h header file and may be used by other read/write access functions.
Let me know if you have any more questions.
Regards,
Eric Schott
Hi Eric:
my board don't have GPO1/2 to external MCU,. whether could I get the TC state through nINT port or not? (nINT is a global Interrupt port as the datasheet descriped below)
and how to recognize which message transmit complete? is there a mark? how to use the TX Event FIFO? is there any reference code for the Transmit Complete operation.


Hi Zhao,
I'm looking into this and will get back to you with more info tomorrow.
Regards,
Eric Schott
Hi Zhao,
Our Systems team is running some tests on this for me. Thanks for your patience. I'll give you a update tomorrow.
Regards,
Eric Schott
Zhao,
Thanks for your patience, we are still looking into this.
Regards,
Eric Hackett
Hi Zhao,
Thanks for your patience here.
To get an indication when a TX message is successfully sent, the Transmission Complete (TC) flag in the MCAN interrupt register (h1050) may be used. This interrupt must be enabled in the MCAN Interrupt Enable register (h1054) and the TX Buffer Transmission Interrupt Enable register (h10E0) must be configured to indicate the completion. With these registers configured, a successful buffer transmission will be indicated on the nINT pin to reflect the state of the TC interrupt flag in the MCAN interrupt register.
Let me know if this is sufficient information for your needs or if I can elaborate any further on the requirements.
Regards,
Eric Schott