<?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>Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15692/does-setting-a-pin-to-be-twi-scl-or-sda-enable-its-pullup</link><description>I have the nRF52 dev kit, and I hooked up pin 13 to SDA and pin 18 to SCL on an I2C device. There are no external pullups on the SDA or SCL lines. 
 However, the TWIM module appears to happily communicating with the slave. So does setting an IO to be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Aug 2016 00:26:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15692/does-setting-a-pin-to-be-twi-scl-or-sda-enable-its-pullup" /><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59932?ContentTypeID=1</link><pubDate>Sun, 21 Aug 2016 00:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1fc84f-e727-4f02-a650-d91072ef6265</guid><dc:creator>motlib</dc:creator><description>&lt;p&gt;In the product specification (version 3.0), you can find in section 28.2 for master mode configuration and also table 258, that you need to configure the pull-up resistors for SDA and SCL in the GPIO peripheral manually. The TWI unit will &lt;strong&gt;not&lt;/strong&gt; do this automatically.&lt;/p&gt;
&lt;p&gt;You need to configure the pins, before enabling the TWI, so that there can no glitches occur on these pins, which might confuse the connected TWI slaves.&lt;/p&gt;
&lt;p&gt;Perhaps one of your slaves has a tendency to float its pins high, so acting as a weak pullup (BTST...). But this is no reliable communication. Perhaps even attaching a scope disturbs the line levels enough to make communication fail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59931?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 20:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af36174-f869-45cf-9908-05958c1f5cd5</guid><dc:creator>CurtisHx</dc:creator><description>&lt;p&gt;Are you talking about the driver source code or the nRF52 Product Specification?  Because the product specification does say that you have to manually configure the pins when you turn the MCU off.  But I don&amp;#39;t care about turning the MCU off.  I want to know: Are the internal pull ups automatically enabled when you set an IO as SDA or SCL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59930?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 20:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e787c4-259f-4dd6-9d27-617c7bd4c74e</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;The comment in the Nordic driver implies that they set the gpio conf so that the pins will be in a valid state when the MCU is powered off&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59929?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 17:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cd9d084-e69d-4e4f-830f-1ca53cf92736</guid><dc:creator>CurtisHx</dc:creator><description>&lt;p&gt;Nope.  Nothing is explicitly setting the GPIO registers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59928?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 17:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:653b766f-3c72-4cbe-8adf-8dabc0dd50d0</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;to be clear, are you setting NRF_GPIO-&amp;gt;PIN_CNF ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59927?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 11:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607dded1-04dc-46bb-b354-ea377c8ba90f</guid><dc:creator>CurtisHx</dc:creator><description>&lt;p&gt;Forgot to note that I&amp;#39;m writing a driver for the I2C module and going directly after the hardware registers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59925?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 11:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02fc1981-824a-4428-b0a8-1636bff4a6ac</guid><dc:creator>CurtisHx</dc:creator><description>&lt;p&gt;@milanez No Softdevice.  I&amp;#39;ve been bare-metal programming&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59924?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2016 23:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa506bf-9ed9-4768-8640-8501f627d4ff</guid><dc:creator>milanez</dc:creator><description>&lt;p&gt;Hy, what your softdevice version ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does setting a pin to be TWI SCL or SDA enable its pullup?</title><link>https://devzone.nordicsemi.com/thread/59926?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2016 22:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:199b314c-3e2c-4241-82f8-7f3479f615f5</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;If you&amp;#39;re using the driver it does enable the pull ups.  See nrf_drv_twi.c line 44.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>