amp-hour counting to internal eeprom