Controlling Duty Of Pulse Waveform By Logic