<?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>I2C/ TWI example for nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110369/i2c-twi-example-for-nrf-connect-sdk</link><description>I am using a I2C based sensor for my project. I referred to the example projects in the nRF Connect SDK as well as online tutorial for this. 
 I have 2 questions on the same. 
 1. My sensor has no default driver available for nRF platform, so can I still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 07:35:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110369/i2c-twi-example-for-nrf-connect-sdk" /><item><title>RE: I2C/ TWI example for nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/479606?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 07:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:005baeb6-336e-471a-9f64-2230d9e3fdd8</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Dessksha&lt;/p&gt;
&lt;p&gt;1. I would recommend having a look at the custom driver section in the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-7-device-driver-model/"&gt;NCS intermediate course&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just to start with, from what I can see in top of your image. You are using NCS 2.5 RC1? I would recommend upgrading to 2.6 or at least 2.5.2 as release candidates are not recommend for development.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you show me your overlay and i2c implementation? As of now I don&amp;#39;t really have much to go with.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;em&gt;Blocking communication means that the MCU stalls until the byte is transferred from the data register. In the code, this is usually implemented as checking of the status bit in the “while” loop. However, this approach might not be applicable for some time-critical applications&lt;/em&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;Note: TX-RX and TX-TX transfers are supported only in non-blocking mode.&lt;/p&gt;
&lt;p&gt;You can read about them &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/twi/driver.html#c.nrfx_twi_xfer"&gt;here&lt;/a&gt;&amp;nbsp;and I honestly don&amp;#39;t think they will be relevant for you&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>