<?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 nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6483/twi-on-nrf51-dk-nrf51422-with-s110</link><description>Hi all, 
 I&amp;#39;m trying to get TWI working on the nRF51 DK but it&amp;#39;s not working.
I used the twi_hw_master_sd.c file so softdevice use should not be a problem.
When I debug the code it gets stuck at the twi_master_transfer(0x58,dataW,2,true); line 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 May 2015 11:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6483/twi-on-nrf51-dk-nrf51422-with-s110" /><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22632?ContentTypeID=1</link><pubDate>Wed, 27 May 2015 11:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7029302-3da2-4998-b040-1d7ca2beee8d</guid><dc:creator>Faizan</dc:creator><description>&lt;p&gt;U refers to unsigned constant.  Its a good practice to define the unsigned constant with U as suffix.  This tells the compilers to store it as unsigned value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22630?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 03:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d00aa731-c3fe-44b6-bc94-67be8b7c550a</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;I works like a &amp;quot;type cast&amp;quot; to an &amp;quot;unsigned int&amp;quot; constant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22631?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2015 23:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ff4480-7a4a-4831-86ec-b56cb46cd2df</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;#39;U&amp;#39; is C-syntax for an unsigned constant. So 24U means 24.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22628?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2015 17:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44e65293-6470-407b-bce5-5353f246181f</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;Please post your code/hw info so we can try to help you (initialization, main loop, schematics for the board, etc).  I&amp;#39;ve used the TWI with nRF51822 without any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22627?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2015 17:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c35d822e-5f38-46b8-92cf-1a0f7586818e</guid><dc:creator>Max C.</dc:creator><description>&lt;p&gt;You haven&amp;#39;t written so much details on the code you used to make TWI working so it is a bit hard to say something;&lt;/p&gt;
&lt;p&gt;Do you have initialized the TWI peripheral (IO lines, speed, etc..)?
Do you have configured the pull-up for that lines (check if the board has pull-up resistors on that lines)?
Do you set the tasks properly to start the communication on the bus (TASKS_STARTTX when writing, TASKS_STARTRX when reading)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI on nRF51 DK (nRf51422) with s110</title><link>https://devzone.nordicsemi.com/thread/22629?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2015 07:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdf7922-59ab-4b1f-84f2-c764eadbff08</guid><dc:creator>Nerdwolf</dc:creator><description>&lt;p&gt;I finally got it to work. I was very confused by another topic answer stating that 24U and 25U was hexadecimal for pin P18 and P19. So i was using the wrong pins :). Can anyone clarify why the &amp;#39;U&amp;#39; in the twi pin declaration has been added ( and thus my confusion). E.g: with spi there is no &amp;#39;U&amp;#39; in the pin declaration. But in both cases there is just refered to the physical pin number for example P0.01,P0.24,..?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>