Hi,
Is there any example code for the BQ27510 guage for I2C communication?.
We have a custom board not the eval board.
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.
I've made some progress.
Could the tools group verify the following subcommand values for me, even if they are close. I do not have an eval board with me and I'm using the bq27510 guage. If they are worng, what are they supposed to read?
DEVICE_TYPE [0x0001] 0x510
FW_VERSION [0x0002] 0x111
HW_VERSION [0x0003] 0xb4
The commands that you have shown are returning expected values. If your purpose is to confirm your I2C implementation I would say that it is working right.
Latha,
What kind of initialization are you referring to?
Setting up a bq27510 is done by using the evaluation software. The bqEasy section of the evaluation software guides you through the setup that eventually has you doing a learning cycle so that a data flash image can be created which would then be loaded into all bq27510 devices that go through your production line.
Latha,
Maybe the following doc will help you get started with the command format:
http://focus.ti.com.cn/cn/lit/an/slua467a/slua467a.pdf
The doc has examples on how to send and receive commands and sub-command replies.
If you are using uClinux, then you must make sure you have your I2C device in /dev
Hi
I can able to communicate with bq275410 device using i2c but now i want to read the data from data flash memory. But i read the 32 byte data using DataFlashBlock() cmd
I want the procedure to write and read the data to the data flash (accessing data flash)
plz guid me
Thanks for your information
Hi Latha,
There is a new version of that document online. Please try this http://focus.ti.com/lit/an/slua449c/slua449c.pdf
Regards,
Nancy
Hi Nancy
Thanks for your information,
But i am not using the evm software, I'm creating the driver in embedded linux, so i want the command flow to set the battery profile in dq27510 and also i want to know how to write data to data flash . So plz help me. It is verry urgent.
Regards
Latha
Hi queirarard ,
Can you pls share the code to read cell voltage in BQ27510 ?
Thanks
We now have an app note with sample C code for the MSP430 to demonstrate communication with our single-cell fuel gauges (using I2C and HDQ).
It also has examples for communicating with our authentication ICs (using HDQ and SDQ).
You can find it in the Application Notes section of the product folders on ti.com.
Here is a direct link:
MSP430 Microcontroller Software for Handheld Fuel Gauge & Battery Authentication
It has examples for:
bq26100
bq26150
bq27000
bq27010
bq27200
bq27210
bq27500
bq27505
bq27510
bq27541
Hi Mike,
Iam also using bq27510 with the customised board. I dont have EV2300 to use the evaluation software.Please suggest me how can i start or use bq27510 without Ev2300. Please send me if you have any code for I2C communication of BQ27510 with MSP430.
I know iam replying after two years. but please do reply me and help me in resolving this.
Hi,
Iam using BQ27510 with customised board and dont have EV2300 use the evaluation software. Can you please share code how to start up with the fuel guage IC to read battery capacity using I2C with MSP430 controller.
thanks in advance.
Hi Deepu,
The link in my post above from May 13 has the sample code you are asking for.
Hi,
I am trying to look into the example code. But the below link does not appear to be valid.
SP430 Microcontroller Software for Handheld Fuel Gauge & Battery Authentication
can you please let me know the working location to access the example code.
Regards,
Radhibhas
May I ask how to send sub command to B!27510?
unsigned char write_cmd[2]= {0} ;
write_cmd[0] = 0x00 ;
write_cmd[1] = subcmd ;
ret = I2Csendcmd(slaveaddress,,write_cmd,2) ;
EX: for deviceid. subcmd is 1. the command I sent out is
write_cmd[0] = 0x00 ;
write_cmd[1] = 0x01;
does make sense?