This paper describes the problem of choosing the algorithm of Li-ion batteries in the portable devices. The results of researches that had a goal to determine the optimal algorithm and its parameters are given. The recommendations about usage of the pulse-based algorithm of charging the Li-ion batteries are made.