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,
There's one configure of HRPWM, to check with you.
PWM5 and PWM6 are:
1) High resolution, CMPA, CMPB, TBPRD
2) Shadowed
3) PWM6 is linked to PWM5, CMPA, CMPB, TBPRD and GLDCTL2.
4) Global load
In PWM5, there's the configure GLDCTL2[OSHTLD]=1. What about PWM6? Do we need to set GLDCTL2[OSHTLD]=1?
During customer's test, we found that, when the LLC load was heavy, PWM6A output is not correct, there were no pulses output from the pin, for more than 1ms. If we don't use global load, there's no issue. The duty is between 3 and TBPRD-3. Up-down mode is used.
What could be the issue?
Thanks a lot.
Br, Jordan
Jordan,
If the ePWM6 GLDCTL2 is linked to ePWM5 GLDCTL2, then no you do not need to set the ePWM6Regs.GLDCTL2.OSHTLD to anything because it is using the linked one!
Nima
Nima,
Got it with many thanks.
Customer is going to use CMPA, CMPB and PRD as high resolution, with global reload and ePWM6 linked to ePWM5.
Some issues left, like HRPWM is not ouput.
Do we have a demo on this kind of configuration?
Br, Jordan
You can use Global load mode with HR PWM. As you have in the code above, you can use CMPxHR and TBPRDHR using global load. I'm not sure why that configuration was not working. Are you sure this is a global load issue? can you see the values updated without the HR?