AN 493: I2C Battery Gauge Interface Using Altera MAX Series