generator for motor pulses