This paper describes how to realize the control and management of the charging and discharging of lithium batteries base on the advanced power management and singlechips technique in the would. The system structure charts are given, and the system function are explained.