Part Number: LAUNCHXL-F280039C
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE, TMS320F280037C
The setup has PWM1A externally connected to GPIO23 and also to an oscilloscope. Sysconfig values are set as: EPWM Timebase -120 CMPA 30, 60, 90; ECAP1: Capture Stop - event2 Event1 - rising Event 2 - falling No Counter Reset CCS 20.3.0 debug register values: ECCTL0 - 76h, ECCTL1 - 8344h, ECCTL2 - 92h
The PWM output looks as expected on the scope. Regardless of the value of CMPA (30, 60, 90) the eCap result stays the same (Cap2 - Cap1 = 121). As noted, scope results are correct and reflect the changes. Other frequences and duty cycles have been tried with the (ecap2 - ecap1) always equaling a 50% duty cycle. This was verified in runs using event3 and clock resetting.
The goal is to establish code to read duty cycle data accurately. Note: this is not an interconnection issue as the (Cap2 - Cap1) value changes proportionally with frequency changes, which are confirmed by the scope.
