Hi team,
The waveform seen by the customer through the oscilloscope is inconsistent with the configured parameters.
The data he wrote in the PWMG_PERIOD register is 1000, the data written in the three-phase duty cycle registers A, B, and C are all 100, and the data written in the PWMG_CTRL register is 0x05a0. The 20KHZ square wave generated by DSP on the PWM_SYNC pin. Use the up-counting mode as written in the manual, PWM_PRD_OUT = FSYS /FPWM, FSYS=20MHZ. The customer's understanding is that FPWM should be 20KHZ. However, the actual output of the three phases A, B, and C seen with an oscilloscope is a waveform with a duty cycle of 10% (with error) and a frequency of 10KHZ. When changing the counting mode to up-down mode, the situation is still the same. Please help to explain the reason for this phenomenon.
In addition, clock synchronization has been configured, why does the output waveform still have an error of 2%, and the duty cycle of the waveform actually measured by the oscilloscope is %8.2?
Regards,
Annie