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?