Part Number: TMS320F280025C
Tool/software:
Hello CLB expert,
I want to continuously reduce the duty cycle of 2 PWMs (same frequency 200kHz and duty cycle, phase offset 180°) as long as error happens (CMPSS3.CTRIPOUTH= high) as the diagram below

As long as the error there, the duty cycles are continued reduced by x% until LIMIT.
I'm thinking about a solution:
- Using CLB counter to count from TBCTR=0 to TBCTR=CMPA to get the current duty.
- Then reduce it by an amount with HLC instructions.
- Then either update PWM.CMPA directly using HLC or
- put it in to SPI RX Buffer and a DMA linked with SPIRX/CLB Interrupt will update PWM.CMPA.
Do you think it is doable and could you please help me to improve it as well as implement HLC instructions?
Thank you and regards
Quy