PWM controllers regulate battery charging