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