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.

TMS320F280049C: Haw to modify C2000Ware example to replace OST with CBC ?

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hello ,

Since In the example

\C2000Ware_4_03_00_00\driverlib\f28004x\examples\cmpss\cmpss_ex1_asynch.c

Only One Shot Trip action is considered, the Cycle By Cycle is completely missing

Related to this a question was asked in

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1181145/tms320f280049c-cmpss-ramp-generator?tisearch=e2e-sitesearch&keymatch=RAMP%20CMPSS#

I consider the answer incomplete and please answer following question for clarification:

Please provide the complete code of cmpss_ex1_asynch.c, modified to replace OST with CBC since CBC is linked with DCBEVT2 and not DCBEVT1.

Also please include the modified example with RAMP on CMPSS in the next oficial release of C2000Ware

extract from cmpss_ex1_asynch.c

  //
    // Enable DCB as OST
    //
    EPWM_enableTripZoneSignals(EPWM8_BASE, EPWM_TZ_SIGNAL_DCBEVT1);

    //
    // Configure the DCB path to be unfiltered and asynchronous
    //
    EPWM_setDigitalCompareEventSource(EPWM8_BASE,
                                      EPWM_DC_MODULE_B,
                                      EPWM_DC_EVENT_1,
                                      EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL);

Thanks,

Andrei