This article deals with a lithium-ion battery charger using a passivity-based controller (called: the exact tracking error dynamics passive output feedback (ETEDPOFC)), which uses the constant-current constant-voltage (CC-CV) protocol. For this, the charger system consists of 3 phases. The first phase involves designing the dc-dc buck power converter, considering the operating voltage and maximum current the battery can withstand—where the passivity-based control operates in the balance points proposed as a function of the load protocols. The second phase consists of the general PSIM simulation of the system (converter + battery), which uses the Shepherd model to characterize the battery used in the tests. Finally, the third phase shows the implementation based on the system’s TMS320F28335 card DSP, just like the experimental results.