SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
FILE: can_ex3_external_transmit.c
This example initializes CAN module A and CAN module B for external communication. CAN-A module is setup to transmit incrementing data for "n" number of times to the CAN-B module, where "n" is the value of TXCOUNT. CAN-B module is setup to trigger an interrupt service routine (ISR) when data is received. An error flag will be set if the transmitted data doesn't match the received data.
Before running this example, please run the can_config_c28x example from the c28x folder. It will initialize the clock, configure the GPIOs and allocate CAN A and CAN B to CM.
Both CAN modules on the device need to be connected to each other via CAN transceivers.
Hardware Required
External Connections
Watch Variables