Other Parts Discussed in Thread: C2000WARE
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.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/171/hrpwm_5F00_ex4_5F00_duty_5F00_updown_5F00_sfo.7z