This application note explains how to use the VIPER20, ST62 µController, and TSM102A to implement a dual Li-Ion battery charger in an SMPS-type battery charger. It features constant current/constant voltage charging, battery type recognition, precision voltage control, temperature and failing battery protection, and end of charge detection.