TMS320F2800137: example for CMPSSLITE Synchronous comparator

Part Number: TMS320F2800137
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi experts,

I am looking for example where EPWM trip happen (via CMPSSLITE) when EPWM counter is zero. Please help me with some example. I have tried lots of combination but failed to achieve desired behavior. 

Regards,

Ankit Saxena

  • Hello,

    If you check the "C:\ti\c2000\C2000Ware_6_00_00_00\driverlib\f280013x\examples\epwm" you'll find a couple of examples on how to use the CMPSS to trigger trip zone, while we don't have the exact examples for all possible combinations.

    You can make the CMPSSLITE trigger an ePWM exactly at TBCTR = 0 by routing the comparator to the ePWM digital compare path and then qualifying the DC event with a blanking window that starts at counter-zero. At a high level, configure CMPSS(LITE) threshold/DAC and select CTRIP (H/L) as the digital output, route CTRIP to an ePWM TRIPINx input via the ePWM XBAR and in ePWM DC, select that TRIPINx as the source for DCAH/DCAL (or DCBH/DCBL). Finally, tie the DC event to a Trip Zone action by using DC Event 1/2 (A or B) to generate CBC/OST and define the output action.

    Best Regards,

    Masoud