Charging and discharging principle of energy storage capacitor