• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Power Management » Battery Management » Battery Management - Gas Gauge Forum » Example I2C code for the BQ27510
Share
Battery Management
  • Forums
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Example I2C code for the BQ27510

Example I2C code for the BQ27510

  • bluehash
    Posted by bluehash
    on Mar 05 2009 09:03 AM
    Intellectual810 points

    Hi,

    Is there any example code for the BQ27510 guage for I2C communication?.

    We have a custom board not the eval board.

     

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • queirarard
    Posted by queirarard
    on Mar 09 2009 11:24 AM
    Intellectual615 points

    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

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeV
    Posted by MikeV
    on Mar 09 2009 17:58 PM
    Intellectual1855 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bluehash
    Posted by bluehash
    on Mar 09 2009 18:42 PM
    Intellectual810 points

    Thanks for verifying.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • latha rv
    Posted by latha rv
    on Apr 30 2009 06:36 AM
    Prodigy60 points

    Hi Mike

         I am using dq27510 gauge

       I didn't know what is the procedure to communicate with dq27510 device using i2c in linux

    plz guid me

    Thanks for advance

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeV
    Posted by MikeV
    on Apr 30 2009 10:47 AM
    Intellectual1855 points

    Latha,

    We do not have any specific sourcecode or guidance to implemnent I2C in linux. Developing for I2C is microprocessor dependent and varies for different platforms.

     

    Michael

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • latha rv
    Posted by latha rv
    on May 02 2009 00:19 AM
    Prodigy60 points

    Hi Mike

            I want the procedure to initiate the bq27510 .(i.e) what is the command flow to initiate the bq27510

    Thanks for your replay

     

    Latha       

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MikeV
    Posted by MikeV
    on May 04 2009 09:20 AM
    Intellectual1855 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bluehash
    Posted by bluehash
    on May 04 2009 09:37 AM
    Intellectual810 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • latha rv
    Posted by latha rv
    on May 07 2009 05:09 AM
    Prodigy60 points

    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

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bluehash
    Posted by bluehash
    on May 07 2009 08:36 AM
    Intellectual810 points

    If you are trying to put the "Golden File" in, all TI has released is the 3 page flowchart on pg 147 in SLUA449B. Follow the chart and you should be able to program it.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • latha rv
    Posted by latha rv
    on May 08 2009 00:27 AM
    Prodigy60 points

    Thanks for your information :)

    Regards

    Latha

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bluehash
    Posted by bluehash
    on May 08 2009 00:43 AM
    Intellectual810 points

    Just a warning. Make sure you have the evaluation board. If you erase the IF and then not able to reprogram the chip, it's essentially bricked. Make sure you save the .senc file so you can recover it.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • latha rv
    Posted by latha rv
    on May 08 2009 09:08 AM
    Prodigy60 points

    We are unable to locate the SLUA449B.pdf from the TI site

    Plz share the link for the SLUA449B.pdf

     

    Regards

    Latha

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • nancy!
    Posted by nancy!
    on May 08 2009 09:12 AM
    Intellectual2765 points

    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

    It is not the strongest of the species that survives, nor the most intelligent that survives.  It is the one that is the most adaptable to change. - Charles Darwin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use