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.

TMS320F28035: Asynchronous ePWM configuration for Hysteresis Current Control

Part Number: TMS320F28035


Dear TI members,

I want to implement a hysteresis current control (HCC) method for a 3ph inverter in synchronism with the grid, and I was wondering if there is any example of this kind of application available. More specifically, I want my ePWMAx signals to turn on when ref_current - sensed_current < -band, and off when ref_current-sensed_current > band. The most similar mode that I found was the "Controlling a Peak Current Mode Controlled Buck Module" (page 305 in TMS320F2803x manual); however, this is not exactly HCC because it only triggers the ePWM off when a maximum threshold is reached, as can be seen in the figure below:

If there isn't any example of HCC available, I wanted to ask the following:

1) In this example model, DCAEVT2 forces ePWM1A to turn off based on the comparator output. Would it be possible to add a second DCAEVT to force ePWM1A to turn on also based on the comparator output? I do see the possibility of using more than one DCAEVT signal, but my confusion is related to how an asynchronous system based only on the comparator would behave under the timebase TBCTR. The way this example is designed ePWM1A will turn on whenever TBCTR reaches 300. How could I configure my ePWM to turn on/off based solely on the comparator output, but in a way that the interruption routine is called at a predetermined sampling frequency rate? Any feedback in this matter is appreciated!

Thank you,

Victor

  • Hi Victor,

    We don't have a reference design using hysteresis control. For the peak current mode control, we also have another reference design just for your reference which is phase-shifted full bridge DC/DC converter. 

    Which device are you using? f2803x or f28004x. The new f28004x has the latest Comparator module which will be easier to implement the hysteresis control using window comparator. But f2803x might be also possible to implement, I need to check on this. I will also give your more information on PWM settings once I know which device you are using. Thanks.

    Regards,

    Chen

  • Dear Chen,

    My device is a f2803x. Information about the ePWM settings would be very helpful! I believe it is possible since the device has 3 comparator signals, but I am unsure how to properly set the entire configuration yet.

    Thank you for your assistance,

    Victor

  • Hi Victor,

    Sorry for the late reply. You can use the two comparators and DCAEVT1/2.force to realize it. You can disable the action when PWM counter hits zero. If you would like to sync with the PWM, you have to use the cycle by cycle trip in tripzone module. If you do not want to sync with the PWM, you have just use the DCAEVT1/2 directly but the switching frequency can be very high in some circumstances.

    Regards,
    Chen