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.

TMDX570LC43HDK: Choose between ETPWM and (N2Het pwm) for a variable delay on a FreeRTOS implementation

Part Number: TMDX570LC43HDK
Other Parts Discussed in Thread: HALCOGEN

What is the difference between ETPWM and (N2Het pwm)

I think that both are hardware implementation that doesn't involve cpu processing,

so basically I can say that ETPWM is strictly oriented to pwm so I can easily create any pwm behaviour from Halcogen,

with (N2Het pwm) black box I'vent this complete control of the features but I can program assembler with the white box and maybe obtain same results.

What about resolution?

It seems to me that ETPWM could be the best solution to produce a variable delay between 10us and 40ms in steps of 10us to be changed at runtime.

Thanks

Antonio

  • Antonio,

    The N2HET is a very versatile timer as it is programmable. It can be used to generate a variety of waveforms as output, it can do edge detection, pulse count, emulation of various communication protocols, and many more capabilities. Its code can be self changing by loading different opcodes as a result of some outside influence, it has its own dedicated DMA like peripheral in the HTU to move data in and out of HET RAM, it has the ability to have decision paths to control program flow and skip instructions.

    The ePWM module is more traditional in that the CPU is used to set it up and modify it during runtime. It is based on simple logic using a fixed state machine with register configuration. In general, it is less capable/versatile than the N2HET but also easier to use because it is dedicated to the one task of generating a PWM.

    I am uncertain how the timing would be setup in the ePWM module because I haven't looked specifically at this configuration. There may be limitations since the ETPWM setup is based on clock values and prescalars which may limit its granularity and ability to reach the exact values you are requiring.