Charge and discharge mechanism of lead-acid battery