Balanced charging and overcharge protection