<?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>nRF52-DK / TWI does not send anything</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58925/nrf52-dk-twi-does-not-send-anything</link><description>I have some problems with the TWI (I2C) and it seems that TWI1 does not send anything. I have managed to create a simple example to recreate the issue. I am using TWI1 instead of TWI0, because I will need the other instance ID for the UART. I am using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Mar 2020 09:50:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58925/nrf52-dk-twi-does-not-send-anything" /><item><title>RE: nRF52-DK / TWI does not send anything</title><link>https://devzone.nordicsemi.com/thread/239481?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2020 09:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8071744-5cfe-40c0-81e8-12bdabead735</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;This is indeed a sensor issue. I have tested the source code with another sensor and it sends an ACK successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK / TWI does not send anything</title><link>https://devzone.nordicsemi.com/thread/239298?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 10:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd0a8f8a-61e5-448c-b71a-5f1d5d830efc</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;It seems that the problem was caused by too long wires. I tested with really short wires and the I2C bus became active.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, there is still another problem. It seems that the hold time is very short, only about 0.5us. As a consequence, the sensor does not read the address correctly and it does not send an acknowledge. I tested the sensor with another MCU and the sensor worked fine. In this case, the&amp;nbsp;hold time was about 2.5us.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, it seems that the issue is more related to the sensor than the MCU, because the I2C standard indeed indicates that the SDA must remain stable only when the SCL is high. I would still like to check if it is possible to adjust the TWI in any way to solve this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK / TWI does not send anything</title><link>https://devzone.nordicsemi.com/thread/239100?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e40b5ed3-5164-4351-8dcc-555519c018f7</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;I have also tested to set the pins manually in the beginning of i2c_init(). I have tried both with and without internal pullup resistors. The board has been connected to a digital temperature sensor (I2C). The temperature sensor has also pullup resistors (10K).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_cfg_input(I2C_SCL_PIN,NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_input(I2C_SDA_PIN,NRF_GPIO_PIN_PULLUP); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_cfg_input(I2C_SCL_PIN,NRF_GPIO_PIN_NOPULL); 
nrf_gpio_cfg_input(I2C_SDA_PIN,NRF_GPIO_PIN_NOPULL); &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>