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.

BQ27Z561: how to enable INT on RSOC change

Part Number: BQ27Z561
Other Parts Discussed in Thread: BQSTUDIO

Hi,

I'm trying to config the BQ27Z561 from host MCU firmware to enable the INT pin so that the host MCU get interrupts when RSOC changes by 1%.

I used this sequence over I2C to write to the data flash to make the configuration change. But I don't see anything on the INT line.

W 55 3E 84 44 0C         // set 0x4483=0x0C, I also tried 0x04

W 55 60 2B 05               // checksum 0x2B and length 0x05

W 55 3E 84 44 R 55 0C // read it back, verify it's 0x0C

W 55 3E 91 44 01         // set 0x4491=0x01

W 55 60 29 05              // checksum and length

W55 3E 91 44 R 55 01 // read back

This BQ27Z561 device is already mounted on our board so I have not used the BqStudio on it nor do I have the kit. For now I only want it to report some numbers and generate INT on RSOC change. Is there anything else I need to do to make it happen?

Another thing I noticed when I read back the register, it doesn't include the 'CMD' bytes as the reference doc says, ie instead getting 'R55 84 44 0C' I just get 'R55 0C'. Is that normal?

Also, whether I switch the INT polarity to high-active or low-active, the INT line stays low.

Is there any introductory documents regarding steps to get the fuel gauge chip to work in an application?

Thanks,

Chris

  • Hi Chris,

    Has the gauge device on your board been properly configured?

    For example,  you need to select a proper ChemID to fit the battery in your system.  Also, the learning cycle needs to be done before the gauge device can provide an accurate state of charge prediction.

    Andy

  • Andy,

    No, I have not done much configuration of the gauge device. This is the very initial attempt to communicate with the device just to see if I can read and write some registers over the I2C interface. I thought turning on the INT would be an easy test and probably is independent of other things. Right now I can periodically (once  every few seconds) poll the device and get the RSOC reading. I understand it won't accurate at all but it does go up and down when it's charging or discharging. I expect the INT line to toggle when RSOC changes but it does not.

    If this depends on proper gauge configurations, can you tell me what are the minimally needed configurations? Where can I find the chemical IDs? I understand it won't be very accurate without the learning cycle but it's ok for now for me to get started.

    About the learning cycle, if I don't need high accuracy can I skip the learning? Is that possible to select a generic battery profile? (of course I will configure parameters like design capacity, voltage, current etc)

    Is there any document/training materials that can guide me through the process? It's not very clear to me what are the necessary steps to get the gauge device to work. The reference manual isn't very helpful.

    Thanks,

    Chris