<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LM75 race condition in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1160056#M6299</link>
    <description>&lt;P&gt;Working with a LM75B, I2C temperature sensor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation is fairly simple: I read the Temperature data, a 2 byte register. Most of the time, this works fine.&lt;/P&gt;&lt;P&gt;However, when the temperature is around one full degree, the sensor seems to jump up and down a whole degree: that's incidentally the resolution of the first byte of temperature data...&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the register value of the temperature register changes during the read-out of the data!&lt;/P&gt;&lt;P&gt;Now, after some investigating, I acquired the I2C data from the bus. I get these results:&lt;/P&gt;&lt;P&gt;Byte 1 Byte 2 Calculated Temp.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0x00 30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0xe0 31.88 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0x00 30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The real temperature is about 31'C.&lt;/P&gt;&lt;P&gt;Do you have any idea what is going on here and whether this is as intended?&lt;/P&gt;&lt;P&gt;Above are the first 50 samples of sensor 0x49.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unglaublich_0-1601293021871.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126322iAE075AB7936C6AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unglaublich_0-1601293021871.png" alt="unglaublich_0-1601293021871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Typical readout:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unglaublich_1-1601293036625.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126323i610219A0B7F0F74C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unglaublich_1-1601293036625.png" alt="unglaublich_1-1601293036625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:38:44 GMT</pubDate>
    <dc:creator>unglaublich</dc:creator>
    <dc:date>2020-09-28T11:38:44Z</dc:date>
    <item>
      <title>LM75 race condition</title>
      <link>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1160056#M6299</link>
      <description>&lt;P&gt;Working with a LM75B, I2C temperature sensor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation is fairly simple: I read the Temperature data, a 2 byte register. Most of the time, this works fine.&lt;/P&gt;&lt;P&gt;However, when the temperature is around one full degree, the sensor seems to jump up and down a whole degree: that's incidentally the resolution of the first byte of temperature data...&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the register value of the temperature register changes during the read-out of the data!&lt;/P&gt;&lt;P&gt;Now, after some investigating, I acquired the I2C data from the bus. I get these results:&lt;/P&gt;&lt;P&gt;Byte 1 Byte 2 Calculated Temp.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0x00 30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0xe0 31.88 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0xe0 30.88&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1e 0x00 30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x1f 0x00 31.00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The real temperature is about 31'C.&lt;/P&gt;&lt;P&gt;Do you have any idea what is going on here and whether this is as intended?&lt;/P&gt;&lt;P&gt;Above are the first 50 samples of sensor 0x49.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unglaublich_0-1601293021871.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126322iAE075AB7936C6AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unglaublich_0-1601293021871.png" alt="unglaublich_0-1601293021871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Typical readout:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unglaublich_1-1601293036625.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126323i610219A0B7F0F74C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unglaublich_1-1601293036625.png" alt="unglaublich_1-1601293036625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:38:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1160056#M6299</guid>
      <dc:creator>unglaublich</dc:creator>
      <dc:date>2020-09-28T11:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: LM75 race condition</title>
      <link>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1162026#M6303</link>
      <description>&lt;P&gt;Well, my hacky solution for now is to check whether the current value is more than 0.5 deg. C off from the previous value (i.e. in 10ms), if so, I bring the new value back 1.0 deg. C to the previous value.&lt;/P&gt;&lt;P&gt;This solved the problem in all observable situations.&lt;/P&gt;&lt;P&gt;Note that this is a software hack to a hardware issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 19:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1162026#M6303</guid>
      <dc:creator>unglaublich</dc:creator>
      <dc:date>2020-10-01T19:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: LM75 race condition</title>
      <link>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1162341#M6304</link>
      <description>&lt;P&gt;1. read the 16-bit sensor data twice.&lt;/P&gt;&lt;P&gt;2. if the two high bytes are same, take the second data as new value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else read the 16-bit sensor data again and take that one as new value.&lt;/P&gt;&lt;P&gt;3. end of procedure&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:46:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1162341#M6304</guid>
      <dc:creator>microdynamics</dc:creator>
      <dc:date>2020-10-02T15:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: LM75 race condition</title>
      <link>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1202647#M6404</link>
      <description>&lt;P&gt;Same problem seen, also new parts from UK stockist show the same error.&lt;/P&gt;&lt;P&gt;Any known fix?&lt;/P&gt;&lt;P&gt;Not practical to do repeated reads in my application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 22:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/LM75-race-condition/m-p/1202647#M6404</guid>
      <dc:creator>JPT</dc:creator>
      <dc:date>2020-12-21T22:25:09Z</dc:date>
    </item>
  </channel>
</rss>

