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.

TM4C1294NCPDT: How to generate CAN interrupt using timers?

Part Number: TM4C1294NCPDT

Hi,

I wanted to develop an application with CAN interrupts and wanted to trigger that interrupt after few milliseconds using a timer for transmit and asynchronous event based interrupt for reception. However, I am not able to find any such provision in CAN controller.

Any help will be appriciated.

Regards,

Apoorv

  • There is no direct connection between the timers and the CAN module (like there is for the ADC). You can configure a timer to give you an interrupt after some time period, or periodically, and then in the timer interrupt routine enable a CAN transmission. Creating an interrupt upon the reception of a CAN frame is more straight forward. You can see an example of this in the file: C:\ti\TivaWare_C_Series-2.1.4.178\examples\peripherals\can\simple_rx.c