How to match the charger circuit with the battery pack