• 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 » Other Analog & Touch » Temperature Sensors » Temperature Sensors Forum » TMP102 Issues
Share
Temperature Sensors
  • Forum
  • Files
  • E2E Wiki
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 3 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 4 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 10 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

TMP102 Issues

This question is answered
Charlie39929
Posted by Charlie39929
on Jan 18 2010 12:44 PM
Prodigy20 points

Hi,

          I'm trying to integrate the TMP 102 sensor with my Wiring microcontroller.  So far I have been able to write to the senor however I am having issues when reading.  For instance when I attempt to read from the temperature register:  I send a start condition, write to the slave address with the RW bit low, get the proper ACK, write the pointer for the temperature address, get the proper ack, send stop condition.  Then for the second transmission I send the start condition, send the slave address with the RW bit high and then the trouble comes when trying to read the ACK and data that follows.  For the 9th clock pulse, when the clock goes high, the SDA reads low, but when the clock goes low after that and for all remaining clock pulses the SDA reads high.  Am I doing something wrong? Timing? 3.3v versus a wiring 5v? 

Regards,

Charlie

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Ren S
    Posted by Ren S
    on Jan 18 2010 13:21 PM
    Prodigy520 points

    Can you give some more details on your "3.3v versus a wiring 5v?" comment?

     

    As far as timing goes, there are the upper limits of 400khz and 3.4mhz in high speed mode. The lower limit is set by the 30ms bus timeout. Make sure you are not generating an unintentional start or stop condition with your edges.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Hann
    Posted by Matt Hann
    on Jan 18 2010 13:35 PM
    Verified Answer
    Verified by Matt Hann
    Expert7120 points

    Charlie,

     

    Communication with temp sensors is one of the most common of the problems that users encounter.  And yes, my first guess is that it would be faulty timing.  If you post scope photos of the clock and data lines during this erroneous transmission we might be able to make a more specific recommendation on how to fix this problem.

    Matt

    TMP102 communication timing
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Charlie39929
    Posted by Charlie39929
    on Jan 18 2010 16:48 PM
    Prodigy20 points

    Ren,

          Well I'm not exactly sure whether I'm hiting either the upper or lower limits.  I apologize, I'm new to programming with microcontrollers but am a seasoned verteran of java and have some c under my belt too.  First of all if you're interested this is the board I'm using it to communicate with: http://www.wiring.org.co/hardware/ and it describes that hardware details better than I could.  As far as the 3.3 vs 5v comment I made, the main microcontroller board takes power in via usb and then has broken out pins where it outputs 5 volts.  I took that output and put a 3.3 voltage regulator between it and the sensor.  I only mentioned it though because it probably operates on two different logic levels of what each considers high versus low.

    I am puzzled though on how I could be writing fine and it acknoledges but when it comes to reading, after the 3rd frame when the 9th high clock pulse goes low everything on the sda line is high, which indicates to me an idle bus.

    I don't have an o-scope available to provide what the data flow actually is? Is there some way I could assist you in providing more information?

    Regards,

    Charlie (P.S.  I complement you all on the respose time, it was fantastic)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ren S
    Posted by Ren S
    on Jan 19 2010 09:43 AM
    Verified Answer
    Verified by Matt Hann
    Prodigy520 points

    I understand now what you're trying to do with the supply voltage. This is a weird setup that should be avoided, but I can't say I feel qualified to tell you definitively that it will or will not work. Is there a reason why you have to use TMP102? We have similar devices which can tolerate 5V, such as TMP75.

     

    I am puzzled though on how I could be writing fine and it acknoledges but when it comes to reading, after the 3rd frame when the 9th high clock pulse goes low everything on the sda line is high, which indicates to me an idle bus.

    The ACK could be bogus. There's no error checking to I2C; it just means the data line was low during that clock cycle. Without an o-scope, it's impossible to know what's really going on.

    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