<?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 on alternate pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14424/twi-on-alternate-pins</link><description>Using this code: 
 ret_code_t error;

nrf_drv_twi_t twi;
twi.reg = {((NRF_TWI_Type *) 0x40003000UL)};
twi.drv_inst_idx = 0;
twi.use_easy_dma = 0;

nrf_drv_twi_config_t twi_config;
twi_config.frequency = NRF_TWI_FREQ_100K;
twi_config.scl = 2;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2016 12:28:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14424/twi-on-alternate-pins" /><item><title>RE: TWI on alternate pins</title><link>https://devzone.nordicsemi.com/thread/55087?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 12:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd29106-7144-4dd6-950e-bcd8de461f79</guid><dc:creator>Alexander Schrab</dc:creator><description>&lt;p&gt;Ok, so I cracked it. I hadn&amp;#39;t shifted the address &amp;gt;&amp;gt; 1 correctly. Why I ever got an answer is beyond me, but now it works reliably over pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on alternate pins</title><link>https://devzone.nordicsemi.com/thread/55086?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 06:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eead04d3-83d4-4011-a4fa-92a827f39727</guid><dc:creator>Alexander Schrab</dc:creator><description>&lt;p&gt;I still cannot make this work reliably, it feels like it works sometimes (I get success back from tx/rx) but I cannot make it work always, either it fails when I switch pin or rearrange the code slightly.&lt;/p&gt;
&lt;p&gt;What is involved in making i2c work through this api? Timing? Pin configuration? Anything besides what is in the code snipped that I need to consider? I am sure nothing else is using those pins...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on alternate pins</title><link>https://devzone.nordicsemi.com/thread/55085?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 14:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab70630e-25a5-4cbd-965e-4c5ec3a769b1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The TWI&amp;#39;s SDA and SCL lines can be mapped to any pin you like. Using pin 2 and 3 should not be a problem. Pin 26 and 27 are just examples pins defined in our SDK to be compatible with Arduino and mbed shields which often has TWI lines on those pins. If the exact same code works when you use pin 26 and 27, but not when you use 2 and 3 there must be something wrong with the hardware. Or maybe you are accidentally using the pins for something else in your code? Pin 2 and 3 are e.g. two of the analog pins often used by the ADC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>