<?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>simple example of SPI + S110 (on SDK 8.x) ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6896/simple-example-of-spi-s110-on-sdk-8-x</link><description>Hello, 
 I wrote a firmware for my project, based on the UART over BLE example, so using the softdevice, establishing connections, etc. It works. 
 I&amp;#39;d now like to use a sensor connected via SPI. I have looked at the spi_master_with_spi_slave example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 May 2015 10:32:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6896/simple-example-of-spi-s110-on-sdk-8-x" /><item><title>RE: simple example of SPI + S110 (on SDK 8.x) ?</title><link>https://devzone.nordicsemi.com/thread/24307?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 10:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c835986-251f-4934-97c7-c4a2c0f40670</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have accepted RK&amp;#39;s answer as you have not responded and his answer is convincing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: simple example of SPI + S110 (on SDK 8.x) ?</title><link>https://devzone.nordicsemi.com/thread/24308?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 02:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6104ce4-36fb-4ae1-8a47-17bf51bdb0a7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The SPI master works fine with the softdevice. I think all Nordic&amp;#39;s library code works fine with the softdevice.&lt;/p&gt;
&lt;p&gt;while() loops don&amp;#39;t block the softdevice, it runs on interrupts so your while loop just gets interrupted when it needs service and returns to it later, so it&amp;#39;s not a problem. It may not be the most efficient way to do it, but it won&amp;#39;t block.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget to initialize the spi master with an available IRQ priority, you can&amp;#39;t use 0 or 2, you need to use 1 or 3, there are defines for those, &amp;quot;APP_IRQ_PRIORITY_HIGH&amp;quot; and &amp;quot;APP_IRQ_PRIORITY_LOW&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>