• 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 » Interface » Fiber Communication » Fiber Communication Forum » TLK1101E related question
Share
Fiber Communication
  • Forum
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 4 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 5 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 11 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

TLK1101E related question

This question is answered
Harini Ramanujam
Posted by Harini Ramanujam
on Jun 17 2010 22:28 PM
Prodigy630 points

Hi,

Can you please help clarify below issue for a customer?

In setting functions from a uC to communicate through the I2C interface (ONET8501P and TLK1101E), they will each acknowledge their own slave address, but then will hold down SDA line for the following 8 bits. The SDA line is then released for the 9th or acknowledge bit sending a NAK. I am using the same function to shift out both the slave address byte and the register address byte where the problem occurs. I have measured the clock L-H periods, rise-fall times- data and stop time setups etc.. and everything looks well within specs. The SCL is running at 70KHz.

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Alex Davidson
    Posted by Alex Davidson
    on Aug 24 2010 11:00 AM
    Verified Answer
    Verified by Alex Davidson
    Expert4830 points

    I don't understand the question.

    Is this still an issue?

    Alex.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Drew Lundsten
    Posted by Drew Lundsten
    on Feb 15 2011 11:19 AM
    Prodigy50 points

    Alex helpfully clarified for me that the read transaction requres a "dummy write", also known as a repeated start condition, which is not uncommon for directing register reads from slaves. This information is nowhere in the 3-year-old datasheet so I am posting it here on E2E to save someone else the two days it took me to hunt this down.

    If you try to read following the datasheet, which indicates

    "The protocol for a data transmission is as follows:
    1. START command
    2. 7 bit slave address (0001000) followed by an eighth bit which is the data direction bit (R/W). A zero indicates
    a WRITE and a 1 indicates a READ.
    3. 8 bit register address
    4. 8 bit register data word
    5. STOP command"

    you will succeed (with appropriate ACKs) for writes. You can observe success by e.g. seeing the current consumption jump when your device is enabled. Data is MSB-first, like I2C should be.

    If your code is like mine (was at first), reads will ACK the address but NAK the register data word. Your handler should return with error due to the NAK. An example of a failed read from slave 0x10 (left-justified) address 0x02 is here. It appears the slave is returning 0x00 and then NAKing the transaction, but after thinking about it I guess it may just be that the TWI state machine clears its transmit holding register at the end of a transaction, and the new transaction is NAKed, but the TWI still shifts out the THR data causing SDA to be pulled low.

    The fix is to add the repeated start: first write the register you want to read, get ACK for slave address and ACK for register data word, then issue repeated start command (SDA goes low while SCL is high), then read one data byte, getting another ACK for slave address (plus read bit). You, the master, should/must NAK the read transaction to complete the bus cycle.

    Pictorially, this is:

    onet1101 ONET8501P onet onet8501v dummy write two-wire interface repeated start onet1102
    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