<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming TMP102/TMP112 using TWI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9382/programming-tmp102-tmp112-using-twi</link><description>Has anyone had any success setting the configuration register on TMP102/112 temperature sensors via I2C? I&amp;#39;d like to switch the sensor to one-shot mode to further minimise current usage - I&amp;#39;m on a mission to hit 3uA when sleeping and next step is shutdown</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Nov 2015 21:20:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9382/programming-tmp102-tmp112-using-twi" /><item><title>RE: Programming TMP102/TMP112 using TWI</title><link>https://devzone.nordicsemi.com/thread/34635?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 21:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75977ea-2d2b-4b19-95db-491831d1fe7b</guid><dc:creator>Gavin</dc:creator><description>&lt;p&gt;No reply from TI, but can confirm from testing that it is the last bit of the first byte than needs to be set to put it into shutdown mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming TMP102/TMP112 using TWI</title><link>https://devzone.nordicsemi.com/thread/34634?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2015 07:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e1040c-19fc-4e49-9e97-95abe80c9fef</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Oops, my bad. Edited the answer with a link now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming TMP102/TMP112 using TWI</title><link>https://devzone.nordicsemi.com/thread/34633?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2015 19:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb055225-dbb9-46c2-b597-cef760675f94</guid><dc:creator>Gavin</dc:creator><description>&lt;p&gt;Very many thanks, Martin. Very helpful - I think I understand. I agree the datasheet is ambiguous about byte order and have contacted TI to point that out. I will test and post back here when I am confident I know what the answer is.&lt;/p&gt;
&lt;p&gt;By the way, is your first sentence missing a link?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming TMP102/TMP112 using TWI</title><link>https://devzone.nordicsemi.com/thread/34632?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2015 08:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b02297-e440-4598-809f-0d30d29df409</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have posted a basic TWI driver example &lt;a href="https://devzone.nordicsemi.com/question/48894/hardware-twii2c-example/"&gt;here&lt;/a&gt;. It is based on the drivers found in SDK V9.0.0 and simply scans your TWI bus for devices. It does not send any commands or anything like that. I&amp;#39;m afraid I don&amp;#39;t have any TMP sensors to play with so I can&amp;#39;t make a real example for you&lt;/p&gt;
&lt;p&gt;Achieving what you want shouldn&amp;#39;t be that difficult though.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Send a write command to the TMP&amp;#39;s address (addresses specified in Table 4 in the &lt;a href="https://www.google.no/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;sqi=2&amp;amp;ved=0CBwQFjAAahUKEwjhwby-m4_IAhXFEywKHWvRDyA&amp;amp;url=http%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Ftmp102&amp;amp;usg=AFQjCNF5qVXmA-efp--D6Ve1te5ZabWj6g&amp;amp;sig2=jJwoYawTZ-L-SCIgze8Ccg&amp;amp;bvm=bv.103388427,d.bGg"&gt;TMP102 datasheet&lt;/a&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Continue with an memory address byte pointing to the configuration register (should be 0x01 according to Table 7).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Finally transmit two bytes where the last bit (the SD field) in the first byte is set to to shut the device off. I think the datasheet is a little unclear regarding the byte order so it might be the last bit in the last byte.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>