hi, can anyone help me in the protocol format for writng in eeprom gas gauge (BQ2060A).I have attached afile check whether this prptocol format is correct.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I would expect it to be:
start - bq2060 adress(0x16) - manufacturers access(0x01) - eeprom access (0x06) (0x06) - stop
start - 24LC01 adress(0xA0) - start writing at beginning of EEPROM memory (0x00) - eeprom data ..... [nack to stop sending data] - stop [ see Microchip website for 24LC01 datasheet ]
start - bq2060 adress(0x16) - stop
But I am not getting results.
I am having trouble with this as well. The only way I have found so far to program the EEPROM is to connect the Battery gas gauge I2C lines to the EV2200 board found in the BQ2060A Eval Kit and use TI's software to program. But theoretically you should be able to do this without the TI Board and software. If anybody can tell me how to do this is would be very much appreciated.
Hi Nicholas Yunker
Do you have a digital osciloscope, or beter a logic analizer. Maybe you can record the SMB communication while uploading to the EEPROM. Maybe we can reverse engineer the protocol.
Ronowald Verschuren
Ronowald,
I do have a PC based Logic Analyzer, but I'm not sure how that is going to help. Besides, right now I'm having a bigger problem. I am finding that after a while (a "while" is a different amount of time each time) of reading 4x and writing 3x per second from a PIC microprocessor and the battery gas gauge my I2C bus locks up (this also doesn't happen on every unit). I can't tell what seems to be locking up the bus. It almost looks like something is holding the bus low and not releasing it and allowing the master to do something else.
Nick