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.

CCS/TMS320F28379D: Question using the Ramp Generator for implementation of a Peak Current Mode Control

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi!

I'm trying to implement a Peak Current Mode Control on a TMS320F28379D and i have a question about the use of the ramp generator of the CMPSS Module. I use the ADC interruption to update my PI values and i also want to update the max value of the ramp generator (RAMPMAXREFS) for every interruption. My question is: Is there a way to update RAMPSTS by software inside an interruption? Or i have to wait for the next EPWMSYNCPER signal to update this value?

Thank you very much!