Battery Management System Reference Design