BASIC FUNCTIONS OF BATTERY MANAGEMENT SYSTEM BMS