PWM frequency is dropping (matlab simulink programming)

Hello guys
When progamming arduino due using simulink I noticed two things taking in consideration that I dont know, are all the dues will perform like the one i have,or it is just a problem with my board only, even though it is a new but clone version.

  1. when programming the due to run pwm only for, example setting 50% duty and program the pwm swtiching frequncey to be 5k or 10k even 50k and more, the Due will work fine and using anlazyer i get what i want.
  2. but when trying to generate a sine wave pwm at 2.5k 5k or 10k switching frequency or more the due will work fine for some time at the requsted switching frequency, but then switch to 1k and keeps the 1k.
    can anyone give an advice about this, is it problem woth my board or there is sort of protection. i attached pictures of the model and the digital analayzer in two cases 1 and 2.


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.