• 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 » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » Document for CC2533 I2C code.
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Document for CC2533 I2C code.

Document for CC2533 I2C code.

This question has suggested answer(s)
Bomi Shim
Posted by Bomi Shim
on Aug 13 2012 13:50 PM
Prodigy200 points

Hi.

I downloaded code from http://e2e.ti.com/support/low_power_rf/f/538/t/172539.aspx this page.

But I cannot find any document for CC2533 I2C code.

This code has 3 major function.

HalI2CInit, HalI2CRead, and HalI2CWrite.

I already have manual for HAL code but it has been updated.

Updated one has different function that's why I try to find old version for those 3 major function.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • greenja
    Posted by greenja
    on Aug 13 2012 19:24 PM
    Guru11640 points

    Hello Bomi,

    You can find some documentation on the I2C in the HAL diver API found here:

    http://e2e.ti.com/cfs-file.ashx/__key/CommunityServer-Discussions-Components-Files/155/8117.HAL-Driver-API.pdf#page35

    There is also a thread that discusses the I2C here:

    http://e2e.ti.com/support/low_power_rf/f/538/t/172539.aspx

    You can also find the files and a modified file that allows you to access  chips that require the reseeding of the address, needed for EPROM  and I/O expanders here:

    http://e2e.ti.com/support/low_power_rf/f/158/t/140917.aspx.

    The CC254x and CC253x are similar if not identical in the implementation of I2C.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bomi Shim
    Posted by Bomi Shim
    on Aug 15 2012 14:55 PM
    Prodigy200 points

    Hi greenja.

    Those links are about <HalI2CReceive> and <HalI2Csend>.

    What I want is the document about <halI2Cread> and <halI2Cwrite>.

    Can I get those documents?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • greenja
    Posted by greenja
    on Aug 15 2012 16:24 PM
    Suggested Answer
    Guru11640 points

    Hello Bomi,

    The best info I can give you is from the file located in this posting:

    http://e2e.ti.com/support/low_power_rf/f/538/t/172539.aspx

    It contains the following functions:

    i2cLen_t HalI2CRead(i2cLen_t len, uint8 *pBuf);
    i2cLen_t HalI2CWrite(i2cLen_t len, uint8 *pBuf);

    There isn't a lot going on in either of those functions since most of the work is done through hardware.  If you want to get an understanding of what is being done, then the software examples that I posted explain exactly what the hardware version does.  That is because I2C has to follow that protocol no matter how it is implemented.

    In section 20 of the CC253x/CC254x guide everything about the I2C is explained.  The <halI2Cread> and <halI2Cwrite> are broken down in the I2C ...Receiver Mode and I2C ...Transmitter Mode parts of the guide:

    http://www.ti.com/lit/ug/swru191c/swru191c.pdf

    If you need any more clarification or understanding of how the I2C works you may want to find the original I2C Guide from Philips (NXP).  If your code isn't working, then perhaps you can post it.

    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