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.

TMS320F28075: CAN communication - Bus heavy

Part Number: TMS320F28075
Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I am trying to use the example code given in control suite for developing CAN communication

C:\ti\controlSUITE\device_support\F2807x\v180\F2807x_examples_Cpu1\can_loopback

I want to change the code to communicate with a PC using P-Can.  Is there any example code available for this. I tried with the above existing code. I am not able to figure out.

I tried commenting the below 2 lines to remove loop back and enable normal mode. 

// Enable test mode and select external loopback
HWREG(CANA_BASE + CAN_O_CTL) |= CAN_CTL_TEST;
HWREG(CANA_BASE + CAN_O_TEST) = CAN_TEST_EXL;

Regards,

Sugantha 

  • We don't have any specific examples for that. For PC adapters, normally you have to configure the bit rate to match the bus and make sure that the adapter will acknowledge packets.

    To modify the example, you do need to comment out those two lines of code. You can also remove the call to CANMessageGet() and the data checks in the main loop.