Capacitor charging voltage waveform