<?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>how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22081/how-to-read-slave-address-in-iic-twi</link><description>hello, i am using nrf52 dk .I was testing example twi scanner.I want to read slave address.So i am using twi scanner example but i got error message as follow: 
 TWI:INFO:Transfer type: XFER_RX.
TWI:INFO:Transfer buffers length: primary: 1, secondary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2019 14:10:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22081/how-to-read-slave-address-in-iic-twi" /><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/179801?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 14:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9bab0f-82b3-4d06-8bfd-6968f60cd27e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;My guess would be that in the first image, the TWI master driver is configured in non-blocking mode. This is &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/hardware_driver_twi.html?cp=4_0_0_2_0_17_1#hardware_driver_twi_basic"&gt;from the documentation&lt;/a&gt;: &amp;quot;&lt;em&gt;In&amp;nbsp;&lt;b&gt;non-blocking mode&lt;/b&gt;, the functions&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__twi.html#ga6c83eac2d358bc8fb5b53c53f22506b6"&gt;nrf_drv_twi_tx&lt;/a&gt;,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__twi.html#gab135f4b02e2f7dcd8db59f17063617ff"&gt;nrf_drv_twi_rx&lt;/a&gt;, and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__twi.html#ga44215084d42d6a29aa4044c3c2792fc0"&gt;nrf_drv_twi_xfer&lt;/a&gt;&amp;nbsp;return with&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s212.api.v5.0.0/group__nrf__error.html#ga7e6367efeaac363d8cf024940b4ec123"&gt;NRF_SUCCESS&lt;/a&gt;&lt;/em&gt;&lt;span&gt;&lt;em&gt;immediately after the transfer is set up&lt;/em&gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It sounds strange that you do&amp;nbsp;not see any pulses from the P0.27 pin on the DK. Are you sure you checked the correct pin? Are you using the unmodified firmware from the SDK? Can you test the precompiled hex-file in the example directory?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/179775?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 13:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399bb4cc-1971-4e7b-91fc-80b4ab0cecd9</guid><dc:creator>Yuvaraj V</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also facing the same issue with NO DEVICE WAS FOUND... In addition that the various register addresses are detected. What is happened.&lt;/p&gt;
&lt;p&gt;How i fix the issue. I&amp;#39;m using custom board...&lt;/p&gt;
&lt;p&gt;And in place the oscilloscope CH1 probe in nrf52832 DK pin no P0.27(SCL) but i can&amp;#39;t get a pulse waveform. What is measing...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_215_2900_.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/TWI-Scanner.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Yuvaraj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/126969?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 07:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3fea9ea-6dd5-4a2c-ba11-22438375d367</guid><dc:creator>kvskt</dc:creator><description>&lt;p&gt;Hi, am facing similar issue...can you tell me how you solved it.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86724?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 10:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45f9557-ce6a-43d1-80c2-6184f32acb37</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;how did you solve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86728?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 11:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8854cfda-999f-407e-8ff0-e48de0bb71d8</guid><dc:creator>pavanvulichi</dc:creator><description>&lt;p&gt;thanks for support the issue was sloved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86727?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbfb0d8d-3dbc-49b9-b352-dc1de8f2ec75</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;From the documentation of the TWI driver, the following described the error &lt;code&gt;NRF_ERROR_DRV_TWI_ERR_ANACK&lt;/code&gt;: &lt;em&gt;If NACK received after sending the address in polling mode.&lt;/em&gt; If s NACK (no ACK) is received when the address is sent, this error is thrown. This typically happens if there is an error in the connection or the slave device is not powered. Have you checked the SCL and SDA lines  with a logic analyzer, to see if there is anything happening on the bus?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86726?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 14:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3bfb09f-0b03-4865-b3b9-15485ae96b55</guid><dc:creator>pavanvulichi</dc:creator><description>&lt;p&gt;can you please tell me what factors will effect for &amp;quot;NRF_ERROR_DRV_TWI_ERR_ANACK&amp;quot; error         (i.e., negative acknowledgement error)   &amp;amp; can you give any  suggestions to solve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86730?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 09:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51fc516-6309-4270-8757-958ee2e79e54</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The nRF52832 support a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/recommended_op_conditions.html?cp=2_2_0_5#concept_vng_xls_2q"&gt;supply voltage&lt;/a&gt; (VDD) between 1.7 and 3.6V. &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_2_0_19_3#unique_717482065"&gt;The GPIO logical high and low voltage&lt;/a&gt; for inputs is [0.7xVDD,VDD] and [VSS,0,3xVDD], while output high and output low is [VDD-0.4V,VDD] and [VSS,VSS+0.4V]. This means it will depend on your supply voltage if it works or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86729?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 08:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0adda0-75aa-427f-b881-a5f8312683ca</guid><dc:creator>pavanvulichi</dc:creator><description>&lt;p&gt;I got error message &amp;quot;NRF_ERROR_DRV_TWI_ERR_ANACK&amp;quot; &amp;amp; during scan  I got &amp;quot;No devices found&amp;quot; at the end .I am giving vdd 2.8 volts to the master slave circuit .can you please confirm nrf52 iic can operate at 2.8 volts. I am connecting PCA9536 module as slave &amp;amp; address of that module is 0x41. The operating voltage range of PCA9536 module is 2.3 volts to 5.5 volts, So slave pca9536 will work on 2.8 volts but i want to know will nrf52 i2c work on 2.8 volts &amp;amp; I also wanted to know possible ways to find the reason for &amp;quot;NRF_ERROR_DRV_TWI_ERR_ANACK&amp;quot; error. Can anyone suggest me to debug this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86725?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 09:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b19968-c96a-47f8-bc54-b4208169d54a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The error is expected on all addresses that is not used on the bus. The scanner will check each address and return the address if a device ACK&amp;#39;s the message. Have you checked through the log for an address or do the application return &amp;quot;No devices found&amp;quot; at the end? You can disable logging in the TWI driver by setting &lt;code&gt;#define TWI_CONFIG_LOG_ENABLED 0&lt;/code&gt; in &lt;em&gt;sdk_config.h&lt;/em&gt;. This will make the output of the log more readable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86723?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 14:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57858dbb-c681-4a69-b383-b9b4b2176b9a</guid><dc:creator>pavanvulichi</dc:creator><description>&lt;p&gt;i am connecting the same pins only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read slave address in iic(twi)</title><link>https://devzone.nordicsemi.com/thread/86731?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 09:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:656b4106-64f8-44ff-9f32-6a63c68b3534</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How did you connect the slave device? Did you make sure the SCK and SDA pins are connected to the correct GPIOs on the DK? If you have not changed anything in the SDK or example, the default for PCA10040 (nRF52 DK) is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define ARDUINO_SCL_PIN             27    // SCL signal pin
#define ARDUINO_SDA_PIN             26    // SDA signal pin
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>