<?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>TWI communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52841/twi-communication</link><description>Hi Guys, 
 I am using Si7021 I2C temperature sensor and I want to read the temperature value using nrf52840-DK. I connected the sensor to the 27,26 pin. 
 I wanted to read the sensor value. 
 Here is the initialization 
 
 Here is the read function, </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Oct 2019 04:42:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52841/twi-communication" /><item><title>RE: TWI communication</title><link>https://devzone.nordicsemi.com/thread/213288?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 04:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:800239d9-6da5-4702-8a4a-f8eba1851368</guid><dc:creator>Vibhu</dc:creator><description>&lt;p&gt;Thank You So Much awneil.&lt;/p&gt;
&lt;p&gt;It seems there should be some delay between the transmit and receive command which I have posted and making the last parameter true as you suggested did the trick.&lt;/p&gt;
&lt;p&gt;Now it is working.&lt;/p&gt;
&lt;p&gt;Thank You &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI communication</title><link>https://devzone.nordicsemi.com/thread/213130?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 08:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abaa0217-d115-4b04-9d13-3c139b371043</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Documentation for&amp;nbsp;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga6c83eac2d358bc8fb5b53c53f22506b6"&gt;nrf_drv_twi_tx&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga6c83eac2d358bc8fb5b53c53f22506b6"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga6c83eac2d358bc8fb5b53c53f22506b6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;no_stop&lt;/strong&gt; parameter can be used to disable the STOP condition - ie, to give you a repeated START on the next transaction.&lt;/p&gt;
&lt;p&gt;Also take a look at&amp;nbsp;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga44215084d42d6a29aa4044c3c2792fc0"&gt;nrf_drv_twi_xfer&lt;/a&gt;&amp;nbsp;- which can do the two transactions for one function call:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga44215084d42d6a29aa4044c3c2792fc0"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__twi.html#ga44215084d42d6a29aa4044c3c2792fc0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1541._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>