<?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>TWI: change SCL and SDA directly?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13692/twi-change-scl-and-sda-directly</link><description>I am using the nRF52 Preview kit (PCA 10036 board) and SDK 0.9.2. Up to this point, I have been able to do everything I want with TWI using the hardware driver. This time I need to do something which is strange, at least to me. 
 I am working with an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 May 2016 22:25:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13692/twi-change-scl-and-sda-directly" /><item><title>RE: TWI: change SCL and SDA directly?</title><link>https://devzone.nordicsemi.com/thread/52327?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 22:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc2f3c1-1e6e-4071-8383-fc47146b42df</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Hello again RK, you seem to respond to most of my questions.  Thanks for your help.&lt;/p&gt;
&lt;p&gt;I consulted Sections 18 (GPIO) and 47 (TWI) of the nRF52832 hardware specification. Section 47.2 mentions two registers, PSELSCL and PSELSDA, which are associated with connecting the TWI to GPIO.  When you write, &amp;quot;write 0xffffffff to the two pin registers to disconnect them,&amp;quot; are these the two registers you meant?  I guess I would read the contents of these registers, store their values, then overwrite with 0xFFFFFFFF, then perform my sleep-and-wake procedure, and finally restore the register values.&lt;/p&gt;
&lt;p&gt;Alternately, I guess I could also call nrf_drv_twi_uninit().  Shouldn&amp;#39;t that release the GPIO lines from TWI hardware control? Next, I would perform my sleep-and-wake procedure, then call nrf_drv_twi_init().  Is that a better or worse procedure than the above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI: change SCL and SDA directly?</title><link>https://devzone.nordicsemi.com/thread/52326?ContentTypeID=1</link><pubDate>Sat, 07 May 2016 01:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4723b67c-ea3d-4efb-b5c0-c5d75759fa56</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Just wait until the TWI is finished, write 0xffffffff to the two pin registers to disconnect them, write the GPIO pins yourself with a simple delay to generate the reset you want, then put the pins back in the registers again. No need to be fancy about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>