Other Parts Discussed in Thread: BQ27320, BQSTUDIO,
i test other subcommand ,get the value alway is 0x0000 ,what is the problem ? there have somebody to help me thanks!
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.
first to thanks to your response :
this link i have get but i also can not get the infomation example (send subcommad (0X0001) to get the value 0x0220) , the stand command is ok !only the subcommand is can not get the infomation,so what is the problem ,can you help me?
Hi,
Please refer to this appication note http://www.ti.com/lit/an/slua467b/slua467b.pdf and attached image clipped by I2C sniffer.
The communication of bq27520 is the same with bq27320. I think the key point is the SR(Repeat START) of read package. Not just read from this command.
i have done according to you give me the information ,but can not get device_number_id(0x0220);
It's a bit different for the bq27220 See
.
If you want to set design capacity to 4043mAh (=0x0FCB), you have to execute the following sequence:
1. Enter CFG_UPDATE mode
2. Write the address AND the parameter data to 0x3E+ (auto increment)
3. Calculate the check sum: 0xFF - (sum of address and data) OR 0xFF
4. Write the check sum to 0x60 and the total length of (address + parameter data + check sum + length) to 0x61
5. Exit CFG_UPDATE mode
w aa 00 90 00 #CFG_UPDATE
w aa 3e 9f 92 0f cb # design capacity = 0x0FCB
w aa 60 f4 06 # 0x9F + 0x92 + 0x0F + 0xCB = 0x020B. 0x020B OR 0xFF = 0x0B. CS = 0xFF - 0x0B = 0xF4; 2 bytes address, 2 bytes data, 1 byte check sum, 1 byte length = 6
w aa 00 92 00 #EXIT_CFG_UPDATE
thanks for your response!
i also can not modify the design capisacty according to you tell me information