The function of capacitor grounding switch