Generating pulses having essentially a finite slope or stepped portions having stepped portions, e.g. staircase waveform