<?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>ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations</link><description>Hi All! 
 Hope you all are doing well! 
 I am using nrf52833DK, NCS version 2.3.0, and VSCODE studio as an IDE. I am integrating the tlv493D sensor with nrf52833. 
 The issue I am facing is that 
 I have two sets of sensors available , address of both</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jul 2023 14:45:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations" /><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/436806?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 14:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a5bfd3-d4e1-4416-927e-88b8c2e78916</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/436708?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 10:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f86d45e-d90c-44e5-b3ad-fabdca23c551</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m happy that you found the culprit,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/436556?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 17:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53703cb-20ec-446f-ac4a-e650fe093e8b</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Jared!&lt;/p&gt;
&lt;p&gt;Thank you so much for the help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations/436171"]it seems like this fix has already been included in NCS v2.3.0,[/quote]
&lt;p&gt;Yes, you are right. The issue was not regarding the&amp;nbsp;&lt;span&gt;S0D1/ open drain&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote userid="101087" url="~/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations/435749"]I just checked it ,&amp;nbsp;It works only with shield2go sensor but not with adafruit.[/quote]
&lt;p&gt;&amp;nbsp; TLV493D HW version was the issue because the same code should work for both types of shields as both have the same sensor apparently but in reality, they both have different types.&lt;/p&gt;
&lt;p&gt;Again Thank you very much for the support!&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Muhammad Usman&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/436171?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:22:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0379585-05b9-4011-9ab1-269529ebfbf9</guid><dc:creator>Jared</dc:creator><description>[quote user="Muhammad Usman"]&lt;blockquote&gt;&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations/435740"&gt;Jared said:&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The alternative is to configure the pins to S0D1&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;
&lt;p&gt;i tried this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89942/invalid-i2c-pin-configuration-pinctrl-in-ncs-v2-0-0"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/89942/invalid-i2c-pin-configuration-pinctrl-in-ncs-v2-0-0&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As mentioned in the above link&lt;/p&gt;[/quote]
&lt;p&gt;Good catch, it seems like this fix has already been included in NCS v2.3.0,&lt;/p&gt;
&lt;p&gt;Without doing any of the modifications that I suggested in my previous reply,&lt;/p&gt;
&lt;p&gt;can you read out the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=5_2_0_19_2_9#register.PIN_CNF-0"&gt;PIN_CNF[n]&lt;/a&gt;&amp;nbsp;registers for the SDA and the SCL pin?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/435749?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 13:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eda05ca-b195-40c2-9ff3-0efd5e04d8d4</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Jared!&lt;/p&gt;
&lt;p&gt;Thank you so much for the response!&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations/435740"]The alternative is to configure the pins to S0D1[/quote]
&lt;p&gt;i tried this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89942/invalid-i2c-pin-configuration-pinctrl-in-ncs-v2-0-0"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/89942/invalid-i2c-pin-configuration-pinctrl-in-ncs-v2-0-0&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As mentioned in the above link&lt;/p&gt;
&lt;p&gt;&amp;quot;When the chip has a slightly weaker drive strength than nRF52, the logic threshold might be on the edge and the system may work in an unpredictable manner&amp;quot;&lt;/p&gt;
&lt;p&gt;but the results are the same :(.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/101716/ncs-2-3-0-i2c-pins-open-drain-configurations/435740"]Could you double check the return value from the&amp;nbsp;i2c_burst_read_dt() and see if it returns an error code? I agree that accordingly to the specification, a read operation should have the 8th bit as high,[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I just checked it ,&amp;nbsp;It works only with shield2go sensor but not with adafruit.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Muhammad Usman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs 2.3.0 i2c pins open drain configurations</title><link>https://devzone.nordicsemi.com/thread/435740?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 12:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50fff053-c093-4135-ab4e-b911aacd62e3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]can anybody tell me how to set the i2c pins as an open drain? because this is the only option left.&amp;nbsp;[/quote]
&lt;p&gt;The alternative is to configure the pins to S0D1 which mean that it will be standard drive on logic low and disconnected (effectively floating) when it&amp;#39;s logic high. The TWIM pins are configured during the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/98d6f433313a3d8dcf08dce25e744617b45aa913/drivers/src/nrfx_twim.c#L244"&gt;initialization of the driver here&lt;/a&gt;, you can use the same nrfx gpio functions to re-configure them. &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/twim.html?cp=5_1_0_5_28_5#concept_x2r_gxp_xr"&gt;However, note that the pins are configured like this for a reason,&lt;/a&gt; I can&amp;#39;t guarantee that this will work without any issues if configured S0D1, as I haven&amp;#39;t tested it myself,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;ul&gt;&lt;li&gt;&lt;span&gt;If you go through the 3 oscilloscope images then the 8th bit is high (for read ) from esp32 but low from nrf52833 (should be&amp;nbsp;high&amp;nbsp;for read but still reading )&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;is it any option to send 8th bit as high (read)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Could you double check the return value from the&amp;nbsp;i2c_burst_read_dt() and see if it returns an error code? I agree that accordingly to the specification, a read operation should have the 8th bit as high,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>