SPNA245 September 2020 TM4C1290NCPDT , TM4C1290NCPDT , TM4C1290NCZAD , TM4C1290NCZAD , TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1297NCZAD , TM4C1297NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129CNCPDT , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
This example is the only one of these examples that can be run on the Launchpad without a CAN transceiver or a CAN network. When in loopback mode, the CAN module is allowed to receive the message it transmits if an additional mailbox is configured to receive that message. Also in loopback mode the module ignores the absence of an acknowledge bit. The CAN TX pin is active and can be viewed on an oscilloscope or logic analyzer. A CAN frame from this example is shown below with the missing acknowledge bit circled in red.
The message that is sent is a 4 byte message that contains an incrementing pattern. The value sent and the message received are echoed out the UART. In this example the CAN0 baud rate is 125000 and the UART2 baud rate is 115200.
This example uses the following interrupt handlers. To use this example in your own application you must add this interrupt handler to your vector table.