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 Expert,
I did the test for HRPWM with the demo from C2000ware,
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f28002x\examples\hrpwm
I only do a little modification for the below use compCount_test to set duty cycle,
HRPWM_setCounterCompareValue(ePWM[i], HRPWM_COUNTER_COMPARE_A, compCount_test);
I use scope to measure the duty cycle of pwm output, below are the relationship between compCount_test value and duty cycle.
we can see that when compCount_test=10240, CMPAHR = 0, then the duty cycle is 59.1%, which is smaller than both that when compCount_test=10239 and compCount_test=10300,
it does not make sense to have this value.
anything wrong for this? I post the code here for reproduce the issue.
CMPAHR = 0 is not a valid config. Please always set from 1 to 0xFF.
Also have AUTOCONV enabled.