<?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>By default internal pull-up resistors for TWI SCL &amp;amp; SDA pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19425/by-default-internal-pull-up-resistors-for-twi-scl-sda-pins</link><description>Why are the SCL and SDA pins by default (nRF SDK 11.0, nrf_drv_twi.c: 44-57) configured to use the internal pull-ups?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2017 15:52:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19425/by-default-internal-pull-up-resistors-for-twi-scl-sda-pins" /><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75453?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 15:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef4edc2-7202-4a2e-8b37-bba0fb98aa6b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Relevant: &lt;a href="https://devzone.nordicsemi.com/question/61466/does-nrf51-has-optional-internal-pullup-resistors-on-some-pins/?answer=61530#post-id-61530"&gt;Resistors vs speed&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75450?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 12:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d22f66d6-b9f0-47ea-9aa3-2077ae84f99f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;There are no consequences in your case (as you might have figured out ;) ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75454?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 12:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:413a023e-6e8a-4a8a-9d33-3d2143a5dfb4</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;At 100 KHz internal pull ups will be fine. At 400 KHz the speed may become slower (depends on the total capacitance and resistance of the line) if only the internal pull up on the nRF is used, this is at least what we have seen if you connect the one nRF as TWI master and one nRF as TWI slave and only have internal pull up on one of the pins (the clock line became around 250 Khz or so). If internal pull up is enabled on both the master and slave, 400 KHz should work just fine. I will update my answer to be more precise.&lt;/p&gt;
&lt;p&gt;Internal pull up something totally separate than the TWI peripheral. You can see the internal pull ups as a &amp;quot;hack&amp;quot; you can use to remove the external pull ups (and hence save board space and BOM).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75449?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 12:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74dca7ab-403d-4de7-ad56-d4bc9f7f9d4c</guid><dc:creator>raccoon</dc:creator><description>&lt;p&gt;I was successful in disabling the internal pull-ups (&lt;a href="https://devzone.nordicsemi.com/question/1937/twi-pull-up-enabledisable/"&gt;following this post&lt;/a&gt;). I was just wondering what are the consequences I will face, since Nordic must have a reason for enabling them by default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75452?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 12:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaf27929-7704-42b8-b081-9af8d274f1db</guid><dc:creator>raccoon</dc:creator><description>&lt;p&gt;Maybe I need to clarify things. Since we have external pull-ups for the SDA and SCL lines (I understand that the internals are not an option) why would you want to also have the internal pull-ups enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75448?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 10:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b8ca3b0-309a-40d6-99c0-43534d08d15e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You want the option to turn on/off pull ups in the TWI configuration? This was added to the TWI slave driver. I can discuss internally if this should also be added to the TWI master driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75451?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 10:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a8762e-58bd-4adb-89b9-59df125fe721</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;@rushin: That is correct. However the internal pull ups (13Kohm) may be too weak to work for all configurations. Together with the pin capacitance (4pF) you will start having problems for TWI frequency of 400KHz. The lines will be skewed. At 100KHz it will work fine.&lt;/p&gt;
&lt;p&gt;Generally, the pull up resistance on TWI is around 4.7K. If you have internal pull up resistors on the slave also it should work fine in most cases (13/2 = 6.5Kohm).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: By default internal pull-up resistors for TWI SCL &amp; SDA pins</title><link>https://devzone.nordicsemi.com/thread/75455?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 07:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d97a41a9-bbe2-452f-8354-b382d1fa8ae7</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;For I2C, SCL and SDA pin requires pull up. so it is configured to use internal pull ups. so you don&amp;#39;t require external pull ups&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>