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.

TMS570LS3137: GPIO vs N2HET

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello,

I want to ask your advice about an implementation choice. I have to generate a periodic signal with a specific but constant duty cycle.

Is it easier to use N2HET module or GPIO module ?

Thankk you,

Thierry

  • Hello Thierry,

    Easier is somewhat of a vague term in this context. For sure, it is simpler to code a GPIO to toggle, but you would also need to use the RTI timer to get a controlled/fixed pulse out. You would also, utilize much more device resources to achieve your goal so the efficiency would suffer.

    The NHET, on the other hand can be tricky to learn how to program and use as it is very versatile. However, if you are using it for a simple PWM output with a fixed duty cycle, the HalCoGen tool has a simple interface to generate a simple PWM output. This makes the task easy and minimizes the device resources it takes to drive the PWM since the HET operates autonmously from the CPU once you load and start the program execution in the NHET module.

    If you have installed the HalCoGen tools in the default directory, there is a PWM example located at C:\ti\Hercules\HALCoGen\v04.06.00\examples\TMS570LS31x_21x\example_hetPwm.c
  • Hello Chuck,

    Many thanks for your answer, it is accurate and complete.

    Regards,
    Thierry