Other Parts Discussed in Thread: BQSTUDIO
I just want to tell if my bq27742-G1 is alive on my board or not so naturally I think to try to read the hardware revision but it is a little bit confusing to me. For instance why are there two command ids on a read only register?
Can you give me an example of what I'd have to do to read this value?
Would my I2C accesses be something like:
write | ||||||||
Start | Address | CMD | Sub cmd | sub cmd | Stop | wait | ||
S | 0x55Wr | 0x00 | 0x01 | 0x00 | SP | 66us | ||
read | From Gauge | |||||||
Start | Address | CMD | restart | Address | LSB | MSB | Stop | wait |
S | 0x55Wr | 0x00 | SR | 0x55Rd | 0x42 | 0x07 | SP | 66us |
Thank you