<?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>Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5687/is-there-no-i2c-twi-peripheral-example-in-the-sdk-documentation</link><description>As I run through the examples for the nRF51 S110 SDK , I&amp;#39;m not seeing anything for communicating with a sensor over I2C. 
 On a secondary note, since I have the option to talk to this sensor over SPI vs I2C, is SPI the recommended route to use for an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2015 21:27:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5687/is-there-no-i2c-twi-peripheral-example-in-the-sdk-documentation" /><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19929?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2015 21:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eba9cda-44fd-4f2b-9d8f-5fec5da5b49d</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;@Stian turns out it was a completely different issue. I had always flashed the softdevice from Keil and for some reason I was getting those errors after adding the TWI library and trying to flash the softdevice. I went back to only flashing the softdevice from nRFgo Studio and voila, no problems. Thanks for your quick response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19928?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2015 16:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c34f268-ceb7-4717-ab38-f3515819b88b</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;Thanks for pointing out that there is a new driver in 8.1, @Stian. I&amp;#39;ll try it out today, and hopefully it will resolve my nrf_delay problem :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19927?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2015 07:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc0bc7cf-6d27-46f7-9990-4bd240d86598</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I agree that it should definitely be a TWI example in the SDK. However, there is a TWI &lt;em&gt;driver&lt;/em&gt; in the SDK8.0 (and a completely new and improved driver in SDK8.1), which has twi_master_init and twi_master_transfer functions, so I wouldn&amp;#39;t say that the TWI support is dropped entirely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19926?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2015 17:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a462b99-92d0-4095-b6c7-fbd54b261421</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;I&amp;#39;m having a lot of trouble using TWI with the S110 softdevice and v8.0 sdk. Specifically, the softdevice cannot find nrf_delay.h. The workaround has been to not include the twi while compiling the softdevice, then include it when compiling application code. I understand there isn&amp;#39;t a need for TWI in the sdk examples since not TWI slave is on the new board, but, it seems like the consequence is inadvertently dropping TWI support entirely...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19925?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2015 07:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac2a93f-e1b9-4db8-9121-7e28a98dbe51</guid><dc:creator>Bouke</dc:creator><description>&lt;p&gt;I can confirm that SPI is more energy efficient than TWI in general.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there no I2C/TWI peripheral example in the SDK documentation?</title><link>https://devzone.nordicsemi.com/thread/19924?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2015 15:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d3be7c-661f-4013-bb92-ad6dd47a6788</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The TWI example was removed in SDK 7 after the introduction of the new development kit, because there was no TWI slave on the board that any TWI master examples could use.&lt;/p&gt;
&lt;p&gt;You can of course use the TWI examples from SDK 6.1.0: &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v6.x.x/doc/6.1.0/s110/html/a00051.html."&gt;developer.nordicsemi.com/.../a00051.html.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It might need some modifications to work with the TWI hardware driver in SDK 8: &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00014.html"&gt;developer.nordicsemi.com/.../a00014.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess the general tradeoffs are number of lines needed and speed. I believe the SPI would require less power because the execution time is lower, but I can not confirm that. The TWI hardware should be as reliable as the SPI hardware, and it will be available in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>