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.

DC to CAN Interface with a Hercules LaunchPad TMS 570

Other Parts Discussed in Thread: HALCOGEN

Hello,

I want to build a DC to CAN Interface with a Hercules LaunchPad TMS 570.

The analog input signals from a sensor are connected with ADIN0 and ADIN1.

Now I want to change this analog signals into CAN Messages.

Do you have a simple Code in CCS and the Settings in HalCoGen for me?

Thank You!

Thomas

  • Hi Thomas,

    you can refer to the following examples for ADC and CAN configuration from Halcogen.

    >:\ti\Hercules\HALCoGen\v0x.xx.xx\help\TMS570LS31x.chm

    Please refer to example_adcDisplay.c and example_canCommunication.c linkes under examples section.

    There are detailed step by step process available on the above mentioned help file. Use that as reference and you can ignore few items that are not relevant like ignore the GIO and SCI settings(from example_adcDisplay.c) as well as ADC is configured to trigger on GIO pin, instead you can trigger that using software as well.

    This could be a good start point for you.
  • Hi Thomas,

    Can we close this thread ?