hello richard so its possible to stop the pwm after a fixed time? Maybe its a solution, cause the 400 steps (or always multiply of 400) are fixed, i need only to stop the pwm output after the same time of y, its possible to stop the pwm at the exact point from the software?