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.
Hi,
The issue that I'm seeing is that when the CMPAHR register gets a value of 0xFFxx, the PWM shuts off.
Any value below FF works.
I'm wondering if this is a limitation for the HRPWM or if my configuration is missing something.
This is some info on my system:
I'm switching the PWM at 220Khz with a Sys Clock of 90Mhz.
Thus my period is 409.
The output of my compensator is a floating point.
I multiply that output * 409 * 65279 and load it into the EPwm1Regs.CMPA.all register.
Hi,
I would no expect the PWM to shut off because of writing a certain value into CMPAHR.
What is the CMPA value? and the AQCTL settings for PWM generation?
Have you turned on AUTOCONV bit?
Also, what is the HRMSTEP value? Have you called the SFO calibration routine?
-Bharathi.