I am trying this following program :-run a DC motor (using PWM command) with speed "1" and wait 5 seconds then run with speed "2" and wait for 5 seconds then the motor stops .The problem is that the motor stays in a loop : starts turning about 1 sec...