Large battery packs composed of Lithium-Ion cells are continuously gaining in importance due to their applications in Electric Vehicles (EVs) and smart energy grids. To ensure maximum lifetime, safety and performance of the battery pack, complex embedded system architectures consisting of sensors, power electronics and microcontrollers are integrated into the pack as Battery Management System (BMS).Active cell balancing is a recently developed method that reduces losses by reducing the hardware components and providing more software control. This also makes the system simpler and easier to design. This method uses a matrix switching circuit which provides the capability to add or remove a cell from a pack during charging and discharging.