This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

When updating the PWM Duty Value ?

Do 1/256, 1/512 or other different microstop stepper motor driver using PWM, assuming I am using the PWM cycle is 500KHz (each cycle = 2uS), and each cycle = 9 Bit.
When an external pulse came the command to drive rotation step,
I drive Internal PWM should have to wait for the end of the entire cycle of the current switch to a PWM DUTY value (if the old value of DUTY 5, the next DUTY value is 6)?
Or immediately switch to a PWM DUTY value?
My question is ..........
If the receiver to turn the step command such as the whole end of the cycle before switching to a PWM DUTY value, it will cause a delay ..
But immediately received rotation step command to switch a PWM DUTY values, however, may cause a malfunction step angle (the current test results do occur)
What do I do it correctly?

  • Hello,

    I am not quite sure about your question. If it refers to the update of PWM signals, here is my answer.

    1,the new data,e.g. duty cycle, switch frequncy, can be reseived at any time.

    2,I do the update of these new information at a certain "counter time". which means, only when my counter for PWM counts to 0 again. (this counter counts from 0 to max then to 0)  

    3,your concern about the delay, according of my understanding should not be a big problem.

    Plz correct me, if something is wrong or missunderstanded.

    best regards,

    Long