<?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>timeout in i2c api in nrf51 dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18255/timeout-in-i2c-api-in-nrf51-dk</link><description>hello! in i2c bus , if i2c slave didn&amp;#39;t give response then what is timeout period ??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2016 14:11:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18255/timeout-in-i2c-api-in-nrf51-dk" /><item><title>RE: timeout in i2c api in nrf51 dk</title><link>https://devzone.nordicsemi.com/thread/70503?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2016 14:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7827d5f-11b6-4084-9c6e-70cdc8e7f071</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If the slave does not respond, the master will read a NACK on the address or the data frame (ANACK or DNACK). Then you will get an event with type &lt;code&gt;NRF_DRV_TWI_EVT_ADDRESS_NACK&lt;/code&gt; or &lt;code&gt;NRF_DRV_TWI_EVT_DATA_NACK&lt;/code&gt; if you are using event handler. If you are not using event handler (using blocking calls), then the rx or tx function will return &lt;code&gt;NRF_ERROR_DRV_TWI_ERR_ANACK&lt;/code&gt; or &lt;code&gt;NRF_ERROR_DRV_TWI_ERR_DNACK&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Also see &lt;a href="https://learn.sparkfun.com/tutorials/i2c#protocol"&gt;this text&lt;/a&gt; about ACK/NACK.&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>