SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
FILE: can_ex5_transmit_receive.c
This example shows the basic setup of CAN to transmit or receive messages on the CAN bus with a specific Message ID. The CAN Controller is configured according to the selection of the define.
When the TRANSMIT define is selected, the CAN Controller acts as a Transmitter and sends data to the second CAN Controller connected externally.If TRANMSIT is not defined the CAN Controller acts as a Receiver and waits for message to be transmitted by the External CAN Controller. Refer to Programming Examples and Debug Strategies for the DCAN Module for useful information about this example
CAN modules on the device need to be connected to via CAN transceivers.
Hardware Required
External Connections
Watch Variables Transmit \Configuration