• 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 » write to bq20z70 df
Share
Battery Management
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

write to bq20z70 df

This question is not answered
ming xin
Posted by ming xin
on Aug 15 2011 04:06 AM
Prodigy105 points

Hi all,

     I have some problem in Accessing bq20z70's Data Flash .it is pass  to write Less than 32 bytes,it is fail to write more than 32 byte . for example,To write the value of Term Voltage to a value of 8.7 V the following sequence is used.

· Write Subclass ID
– SMB Slave Address (0x16)
– SMB CMD 0x77 with 0x0050 as data

delay 100us


· Write Subclass

– SMB Slave Address (0x16)
– SMB CMD 0x78 with 32 bytes of data

SMBD&SMBC are normal

delay 100us

– SMB CMD 0x79 with 32 bytes of data

SMBD&SMBC is abnormal,no 32 bytes of data.

what is the matter?how should i process it??thanks, look forward your reply.

write to bq20z70 df
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Jackie Hui
    Posted by Jackie Hui
    on Aug 15 2011 14:05 PM
    Expert3855 points

    The command CAN return up to 32 bytes of data.

    If the subclass has less than 32 bytes, the read command will only return the data length of that particular subclass.

    BQ20Z45 BQ20Z70 bq3060 bq20z60 bq20z75 bq20z95 bq20z90 bq20z40 data flash read write
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ming xin
    Posted by ming xin
    on Aug 15 2011 20:31 PM
    Prodigy105 points

    SLUU250A–June 2006–Revised June 2006:

    page 78

    Read complete Gas Gauging-IT Cfg subclass (SubclassID = 80) into RAM:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data (=80 decimal)
    · Read Subclass (2 blocks are needed as its over 32 bytes long)
    – SMBSlave Address (0x16)
    – SMB CMD 0x78 receiving 32 bytes of data
    – SMB CMD 0x79 receiving 32 bytes of data

    Write the complete subclass back to the bq20z70:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data
    · Write Subclass
    – SMB Slave Address (0x17)
    – SMB CMD 0x78 with 32 bytes of data
    – SMB CMD 0x79 with 32 bytes of data

    the commands which are red marked should exchange?

    When i read DF, the following sequence is used,Datas are correct.

    Read complete Gas Gauging-IT Cfg subclass (SubclassID = 80) into RAM:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data (=80 decimal)
    · Read Subclass (2 blocks are needed as its over 32 bytes long)
    – SMBSlave Address (0x17)
    – SMB CMD 0x78 receiving 32 bytes of data
    – SMB CMD 0x79 receiving 32 bytes of data

    I want to know how to write DF subclass ,whose data are more than 32 bytes.what is the following sequence?include the delay.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ming xin
    Posted by ming xin
    on Aug 19 2011 03:18 AM
    Prodigy105 points

    who can answer for me!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • SW5307
    Posted by SW5307
    on Aug 19 2011 03:30 AM
    Intellectual785 points

    You actually quoted it in your post: To write first 32 bytes, you use 0x78. For the 2nd page (next 32 bytes), use 0x79... and so on.

    Write the complete subclass back to the bq20z70:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data
    · Write Subclass
    – SMB Slave Address (0x17)
    – SMB CMD 0x78 with 32 bytes of data
    – SMB CMD 0x79 with 32 bytes of data

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ming xin
    Posted by ming xin
    on Aug 21 2011 20:49 PM
    Prodigy105 points

    The address 0x17 is SLA_R,is it right?it should not be used SLA_W 0x16?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jackie Hui
    Posted by Jackie Hui
    on Aug 22 2011 17:01 PM
    Expert3855 points
    SMBus made simple v6.pdf

    Part of the device address (bit 0) is a read/write bit. The device address is 0x16. Depends on if it is a read/write, the device address change between 0x16 and 0x17.

    Basically, you will send 0x17 as the device address after re-start in SMBus read write and read block protocols. See the attached SMBus document.

     

     

    BQ20Z45 BQ20Z70 bq3060 bq20z60 bq20z75 bq20z95 bq20z90 bq20z40 data flash read write
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ming xin
    Posted by ming xin
    on Aug 22 2011 20:41 PM
    Prodigy105 points

    Write the complete subclass (SubclassID = 0)back to the bq20z70:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data

    delay_us(10)

    · Write Subclass
    – SMB Slave Address (0x16)
    – SMB CMD 0x78 with 32 bytes of data

    data can be  writed

     

    Write the complete subclass (SubclassID = 80)back to the bq20z70:
    · Write Subclass ID
    – SMB Slave Address (0x16)
    – SMB CMD 0x77 with 0x0050 as data

    delay_us(10)

    · Write Subclass
    – SMB Slave Address (0x16)
    – SMB CMD 0x78 with 32 bytes of data

    – SMB Slave Address (0x16)
    – SMB CMD 0x79 with 32 bytes of data

    data can not be  writed.my following sequence is right?

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
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