Martin, I implemented similar code and did not see the issue. I then began updating my code to be as similar to yours as possible. In doing so I realized you are clocking the ePWM at 200MHz, can you confirm this is correct? Please note that this device only has a 100MHz PWM module. When overclocking the PWM by 2 times the maximum frequency race conditions, similar to what you are seeing, are to be expected. Please update the EPWMCLKDIV bit of the PERCLKDIVSEL register to be equal to 1 and this problem should go away. This is the default upon reset, and we have added a few notes and cautions in the TRM to try and avoid this confusion. Finally the Datasheet will list the frequency maximum of the PWM at 100MHz. If you absolutely need a 200MHz PWM TMS320F28388D is an option. Regards, Cody
↧