<?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>Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78013/strange-i2c-twi-pullup-behaviour-nrf53</link><description>We&amp;#39;re developing on a custom NRF53 board. With the I2C bus disconnected from all peripherals, but with external 10k pullups connected, we get the following waveform when attempring a transaction at 400kHz (yellow SCL, blue SDA): 
 
 It shows the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Aug 2021 07:49:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78013/strange-i2c-twi-pullup-behaviour-nrf53" /><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/323868?ContentTypeID=1</link><pubDate>Sat, 07 Aug 2021 07:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ffb39fd-8caa-4943-a30c-b3a1e21ba817</guid><dc:creator>bsams</dc:creator><description>&lt;p&gt;&lt;span&gt;Hey Jorgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yup, this is on our board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interesting, I assume that is what&amp;#39;s&amp;nbsp;going on, so this issue is probably closed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ben&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/323519?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 11:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bce7a8a-d9ac-4895-87c1-f915d6a13ac0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="bsams"]in some modes the SCL/SDA lines are ties together with 20k[/quote]
&lt;p&gt;Is this a mode on your board, or do you see the nRF5340 tie these lines together?&lt;/p&gt;
[quote user="bsams"]can I check if its because the peripheral is waiting for the line to go high again because it thinks the clock is being stretched[/quote]
&lt;p&gt;Unfortunately, there is no events indicating that a clock stretch is ongoing, and there is also no status-register in the TWIM peripheral that will indicate this. I&amp;#39; not sure how else this could be checked.&lt;/p&gt;
[quote user="bsams"]and then timing out because its limiting the amount of clock stretching allowed[/quote]
&lt;p&gt;As far as I know, there is no timeout/maximum allowed time for clock stretching.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/323193?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 00:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:470fb50e-4653-4b45-b607-643dc1bb0efa</guid><dc:creator>bsams</dc:creator><description>&lt;p&gt;Hey Jorgen,&lt;br /&gt;&lt;br /&gt;I think we&amp;#39;ve found the reason for the strange voltage, it looks like in some modes the SCL/SDA lines are ties together with 20k, so the internal pullups are active but the SCL is being pulled down by the SDA. It doesn&amp;#39;t quite explain the timing change though, can I check if its because the peripheral is waiting for the line to go high again because it thinks the clock is being stretched, and then timing out because its limiting the amount of clock stretching allowed?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/323151?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 14:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56162d51-c5ce-4165-bfda-1c88e567e1de</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="bsams"]Our FW and HW is custom, so it is difficult to port it to the DK.[/quote]
&lt;p&gt;Ok, I still think it would be good to rule out board issues. Do you see the same behavior with I2C/TWI slave(s) connected to the bus?&amp;nbsp;&lt;/p&gt;
[quote user="bsams"]My understanding of the drive strength is that it would affect the fall time, not the rise time?[/quote]
&lt;p&gt;Yes, since it is configured with S0D1 by default (&lt;span&gt;Standard &amp;#39;0&amp;#39;. disconnect &amp;#39;1&amp;#39;&lt;/span&gt;), I believe you are correct that it should not affect rise time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/322968?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 19:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee41d9d1-8e46-407d-b21f-e54dcb92a6ff</guid><dc:creator>bsams</dc:creator><description>&lt;p&gt;Hey Jorgen,&lt;/p&gt;
&lt;p&gt;Our FW and HW is custom, so it is difficult to port it to the DK. My understanding of the drive strength is that it would affect the fall time, not the rise time?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/322609?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 08:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2018360e-c3d7-4663-a3d6-9900bdb25036</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Thanks, yes it looks to be enabled.&lt;/p&gt;
&lt;p&gt;Have you tried running the same firmware on a nRF5340 DK, to see if the signals look the same there?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also try to configure the GPIOs in High Drive (or even Extra high drive for P1.02/P1.03 pins), to see if that resolves the issue.&amp;nbsp;&lt;span&gt;You can use&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/peripherals/gpio.html#c.gpio_pin_configure"&gt;gpio_pin_configure&lt;/a&gt;&lt;code&gt;&lt;span&gt;()&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;and the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/peripherals/gpio.html#c.GPIO_DS_DFLT_LOW"&gt;GPIO drive strength flags&lt;/a&gt;&amp;nbsp;to configure drive strength of the GPIOs in NCS.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/322536?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 18:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48f2aaf4-0329-4067-ba57-ada608f761f7</guid><dc:creator>bsams</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;0x50842A08 and 0x50842A0C registers are both&amp;nbsp;0x0000060c, which we believe means pullups enabled. We are using the normal zephyr nordic drivers.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange I2C/TWI Pullup Behaviour NRF53</title><link>https://devzone.nordicsemi.com/thread/322461?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 12:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8c5a8a-6b8c-4fe3-be44-d028282b7b5d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you read the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpio.html#register.PIN_CNF"&gt;GPIO register configuration&lt;/a&gt; for the pins used with TWI peripheral from the debugger, to make sure that the pull resistors are actually enabled?&lt;/p&gt;
&lt;p&gt;If you are using our drivers, this should be enabled by default, but it would be good to rule out this as the source of the issues.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>