SPRUIX1B October 2022 – April 2024 TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137
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