ADVANCED CHARGE ALGORITHM APPLICATION NOTE