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.

BQ25619: BQ25619 SLAVE ADDRESS AND SAMPLE CODE

Part Number: BQ25619
Other Parts Discussed in Thread: BQSTUDIO, BQ27426

Hi,

Am Currently working on BQ25619 battery charge case ,am trying to communicate with battery through i2c ,as mentioned in datasheet the i2c slave address for BQ25619 Is 6Ah .

1.My First query is there any change in address when we are writing/reading through I2C ,for example,In these way( 6A << 1),is these Correct way to write slave address or could you tell me the correct I2C slave address for writing and reading the registers

2.If possible Plz provide me with a sample code or reference code etc..

  • suraj,

    1.My First query is there any change in address when we are writing/reading through I2C ,for example,In these way( 6A << 1),is these Correct way to write slave address or could you tell me the correct I2C slave address for writing and reading the registers

    The I2C address is fixed to 0x6a. This address is used for both read and write operations.

    2.If possible Plz provide me with a sample code or reference code etc..

    We do not have MCU reference code, but we do have a Linux driver available at the link below.

     

    Best Regards,

    Ricardo

  • Hi everyone,

    thanks for the reply given ,

    The I2C address is fixed to 0x6a. This address is used for both read and write operations

    1.for the answer replied above i have small doubt regarding address while reading slave address for second time in below image mentioned in BQ25619 datasheet ,i have seen after 7bit slave address 8th bit is set for reading(1) so at that time my slave address will missmatch with BQ25619,so i need to change the i2c address while reading or not ....

    2.Below am using i2c write/read functions to establish I2C communication,but  the am not getting acknowledgement from slave,the code is getting struct in while loop,as completion flag is not getting true and am using multiple slaves in my board but with different addresss is it the problem.....

    am trying to read charge control register(0x07) so that i can get status of that register by LPI2C_ReadAccelRegs function ,so that i can confirm the BQ25619 has Communicating with my Target Board.

    below are the write read functions am using currently

    -> LPI2C_WriteAccelReg(BOARD_ACCEL_I2C_BASEADDR, 0x6A, 0x07, data );

    -> LPI2C_ReadAccelRegs(BOARD_ACCEL_I2C_BASEADDR, 0x6A,  0x07 , arr , 2);

    So Plz could you help me to come out of these problems..

      

    thanks in advance

    suraj.N

  • suraj,

    I have just tried it with a logic analyzer and the Figure 22 is correct. I have attached my captures and verified the address on BQStudio as well. It is 0x6a, always.

    Please check your pullup rail voltage and pullup resistors to verify the I2C hardware.

    Best Regards,

    Ricardo

  • thanks 

    Hi Ricardo

    Currently am working On BQ27426 fuel guage ,i have an issue with i2c address,is I2C address is 0xAA  or 0x55(1010101) according to BQ27426 datasheet,

    can you tell me the sequence for How to read and write commands using I2C  protocol ,

    is there any register to wake-up IC from IDLE mode.

    can you share me a peice of sample code for configuring I2C protocol if possible

    thanks in advance

    suraj.N 

  • Suraj,

    I am transferring this ticket to the fuel gauge team for their comments on the BQ27426.

    Best Regards,

    Ricardo

  • Hello Suraj,

    There's also some example code for gauges here: www.ti.com/.../BQ27XXXSW-LINUX

    Sincerely,

    Wyatt Keller