I'm working on developing an automated test program for a battery pack that uses the BQ2060 as a fuel gauge. The test specification from the customer requires reading and writing to the EEPROM. I know it's possible to access the EEPROM through the SMBUS, because the EV2200-60 software package does just that.
What I'm looking for is the SMBus commands that read and write to the EEPROM. I expect there's a command that, when followed by a hex word, will read from or write to the address specified by the hex word. Something like this:
writesmbusword(byval ySubcommand as Byte, yMSdata as byte, yLSdata as byte)
where ySubcommand is the SMBus command and MSdata and LSdata are the most significant and least significant bits that in this case would spell out the address of the data in the EEPROM I'm looking for. The function would return whatever's located at the address. I've had no luck in locating what the value of Subcommand should be in any of the datasheets or application notes I've read.
Does anyone have any code for writing to or reading from the EEPROM?