Inverter battery charging chip