The charging protocol depends on the size and type of the battery being charged. Some battery types have high tolerance for overcharging and can be recharged by connection to a constant voltage source or a constant current source; simple chargers of this type require manual disconnection at the end of the charge cycle, or may have a timer to cut off charging current at a fixed time. Other battery types cannot withstand long high-rate over-charging; the charger may have temperature or voltage sensing circuits and a microprocessor controller to adjust the charging current, determine thestate of charge, and cut off at the end of charge