AN INNOVATIVE CONTROL OF THE CHARGING AND DISCHARGING FOR THE BATTERY