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.

TMS320F28379D: Global load function of the EPWM module

Part Number: TMS320F28379D

Tool/software:

Hello,

I have a question regarding the global load function of the EPWM module.

 

Is it possible to clear the GLDCNT counter in the GLDCTL register by software?

 

Is the value of GLDCNT cleared when switching on the global load function (bit GLD in GLDCTL is set to one)?

In this case the counter could be cleared by toggling the GLD bit.

 

 

Thank you very much

 

Ralf

  • Hi Ralf,

    Yes disabling Global load will reset the GLDCNT global load counter to zero.

    May I ask why would you need to reset the counter and based on what input are you planning to reset the counter ?

    Thanks.

  • Hi Prarthan,
    thanks for your answer.

    I have five EPWM units in my system. The first four a used to generate signals for a DAB converter. The last one works we the double frequency and is used to generate freewheeling signal for the converter.

    During operation the working frequency of the system is variable. In order to generator a load strobe signal for the freewheeling channel at the beginning of the main cycle, the internal zero or period events cannot be used, because they run with the double frequency.

    My first idea was to use the counter of the global load function to generate a load strobe every second zero event of the freewheeling timer. But there might be a risk of an unintended phase shift of 180° between the freewheeling time and the other timers. For this reason, my first idea was to initialize the period counter of the global load function in every main cycle.

    I have now found another solution without this problem. I use the EPWMxSYNCI signal from the EPWM timer “above” to generator the load strobe for the freewheeling timer (see picture).



    Up to know this works fine, but I still have to made some further tests.


    Best regards

    Ralf