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.

TMS320F280049: TIDM-02002 : Ramp Generator?

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Hello,

I'm porting the code to F2837XD so I'm examining every line.

In the file:

C:\ti\c2000\C2000Ware_DigitalPower_SDK_4_01_00_00\solutions\tidm_02002\f28004x\drivers\source\clllc_hal.c

on lines 740 and 941, there is the following code:

Fullscreen
1
2
3
EALLOW;
HWREGH(CLLLC_ISEC_TANK_CMPSS_BASE + CMPSS_O_COMPDACCTL) |= 0x1E;
EDIS;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I think it t sets the RAMPSOURCE field in COMPDACCTL to 15. As far as I know this design does not use the Ramp Generator so I'm wondering what this is for.

Does this code have any purpose please?

Thank you.

  • This is configuring the syncper source PWM to one that is out of range ensuring that the ramp cannot be started accidentally.

    Regards,
    Cody 

  • Thanks for the reply Cody.

    It gave me the clue I needed although I'm pretty sure it's nothing to do with the ramp since it's completely disconnected.

    Instead the out-of range value is to disable EPWMSYNCPER from resetting the filter latches. In F280049, EPWMSYNCPER OR EPWMBLANK can reset the filter latches but only the latter is desired so the former is disabled.

    What confused me is that the EPWM blanking feature is not available to the CMPSS in the F2837xD so didn't appear in the F2837xD CMPSS block diagram. I guess for my port I will have to bypass the SR flip-flop latch.