Hi,
I have generated golden image file for my battery from BQ Studio. When i opened .df.fs file, I found for initial commands I2C address is mentioned as AA while starting from Data block, I2C address changes to 16. Please refer below snapshot:
Is this correct?
My MCU I2C driver left shift the given address by 1 bit and then append its LSB for read/write bit as 1 or 0. Currently, I read this address from .df.fs file and discard it. While communicating with BQ27542 chip, I have hardcoded the address as 0x55 which is converted to 0xAA by MCU driver. If I2C address is changing then I have to include new logic to read this address and right shift the same by 1 bit before passing on to my I2C driver for data transfer.
Another question: C: 16 66 00 command in the last line of above image, is to read and compare with given value. So for reading should the I2C address be 17 and for writing 16, considering last bit as 1 for write and 0 for read cycle?
Please confirm.
Thanks,
Pradeep