Part Number:BQ27421-G1
I am trying to read the Opconfig (and DesignCapacity()) using extended commands, like so:
//write extended command to chip control
Send( 0xaa (write chip address), 0x00 (control reg), 0x3B (op config extended subcmd), 0x3A (opconfig extended subcmd2))
//write control address to set up for read
Send(0xaa (write chip address), 0x00 (control reg))
//write read instruction to chip
Send( 0xab (read chip address))
//now read opconfig from control
Get(readopconfigLO, readopconfigHI)
And the data I always get back, whether sending opcodes for OpConfig or DesignCapacity, is 0x0421 - which is DEVICE_TYPE.
Clearly I've missed something in the 5 or 6 datasheets/appnotes describing comms with the device.
Is there any chance of a clear instruction of what bytes I should be sending via I2C to access OpConfig through extended commands?
Any working snippet will do! Much appreciated.