Micro processor battery charger with controlled switching for faster charger and with overcharge protection.