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!