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.

TMS570LC4357: TMS570LC4357

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

What is the Difference between the PWM and the HET when generating code for a PWM signal using halcogen

Does PWM use HET functionality or other way around?

  • Hello,

    HALCoGen can be used to make MCU generate PWM both with ePWM module (chapter 35 of device TRM) and N2HET  module (chapter 23 of device TRM) .

    When N2HET module is used for generating PWM HALCoGen generates and copy HET program in HET memory. HALCoGen gives opportunity to easy generate 8 PWM signals.

    ePWM (enhanced pulse width modulator) module is dedicated module for generating PWM (see Chapter 35 of device TRM). The features supported by the
    ePWM make it especially suitable for digital motor control. APIs generated by HALCoGen for ePWM module are in file etpwm.c (generated when ePWM driver is enabled). Example for generating PWM with ePWM can be found in HALCoGen examples folder (explanation how to use the examples is ih HALCoGen Help-->Help Topics-->Examples).

    Best regards,
    Miro