<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IR thermometer complications</title><link>/members-area/personalblogs/b/blog/posts/ir-thermometer-complications</link><description>Hello, For the last week, I&amp;#39;ve been trying to get working a prototype of an IR thermometer, based on MLX90614 . I ordered a DCC version, which means a 3 V power supply, medical accuracy (0,5 centigrade in 0 to 50 centigrade area), gradient compen...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: IR thermometer complications</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/ir-thermometer-complications</link><pubDate>Thu, 08 Mar 2018 11:34:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8684ec1a-09c9-4781-b335-5898d730fac4</guid><dc:creator>koudelad</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I would just like to post an update in case anyone stumbles upon this post.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I didn&amp;#39;t get an additional answer from Melexis nor their distributor, but I found an application note that is not available &lt;a class="jive-link-external-small" href="https://www.melexis.com/en/product/MLX90614/Digital-Plug-Play-Infrared-Thermometer-TO-Can" rel="nofollow ugc noopener" target="_blank"&gt;on the official Melexis site&lt;/a&gt; (no idea why). It describes the details of the communication in more depth than the datasheet: &lt;a class="jive-link-external-small" href="https://www.pololu.com/product/1061/resources" rel="nofollow ugc noopener" target="_blank" title="https://www.pololu.com/product/1061/resources"&gt;https://www.pololu.com/product/1061/resources&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It confirms what has been written above, the PEC is computed always from all the bits on the data bus (excluding the start, repeated start and stop bits).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What also helped me a lot: there is an application report from TI, &lt;a class="jive-link-external-small" href="http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&amp;amp;tabId=1502&amp;amp;literatureNumber=slaa249a&amp;amp;docCategoryId=1&amp;amp;familyId=911" rel="nofollow ugc noopener" target="_blank"&gt;SLAA249 Implementing SMBus Using MSP430 Hardware I2C&lt;/a&gt;, which also contains firmware examples for MSP430. I used a PSoC 4 and the adjustments made to the SW implementation of the CRC8 calculation is really cosmetic.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I implemented the functions in the Visual Studio, tested and debugged and then ported to the PSoC in order to save time spend debugging.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;David&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4160&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: IR thermometer complications</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/ir-thermometer-complications</link><pubDate>Mon, 22 Jan 2018 12:40:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8684ec1a-09c9-4781-b335-5898d730fac4</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi David,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think it&amp;#39;s worth asking Melexis for example code. They take into account the address and the command bytes too, as far as I can tell. So, the PEC should include those bytes too (I could be wrong).&lt;/p&gt;&lt;p&gt;Anyway, I tried for about 10 minutes too, and didn&amp;#39;t get very far (I could get the correct PEC for one of the sequences in the datasheet, but for the wrong reasons, and it fails for the other sequences).&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4160&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>