Generating pulses having essentially a finite slope or stepped portions having triangular shape having sawtooth shape