A pulse width setting apparatus provided with a switching circuit which is switched from one state to the other state upon receipt of a trigger pulse, a counting circuit for counting clock pulses, and a comparator for comparing a count of said counting circuit with a given binary code for determining a pulse width and generating a signal when the count becomes equal to the binary code to thereby restore said switching circuit to the original one state.