Team,
In the F28335 HRPWM documentation SPRUG02, it stated specifically that the SFO_MepDis_V5() cannot be used on an ePWM channel while the HRPWM capabilities are enabled for that channel. However, in the SFO_V5 example in SPRC530 the following code was shown:
for(i=1;i<PWM_CH;i++)
{
// Enable HRPWM logic for channel prior to calibration
(*ePWM[i]).HRCNFG.bit.EDGMODE = 1;
// returns "0" when cal. incomplete for channel
while ( SFO_MepDis_V5(i) == SFO_INCOMPLETE );
}
As the above code shows, the HRPWM logic was enabled for each channel *BEFORE* SFO_MepDis_V5() was called. Appendix A of the document shows this same code without the HRPWM logic being enabled. Which method is correct, the example code or the documentation?
Regards,
Tim Love