<?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>[NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26444/nrf52840-spi-and-spis-example</link><description>I am working with SPI and SPIS examples ( sdk version 13). SPI of nrf52 is full duplex. In the example, I can send data from Master board to Slave board then Master board will receive response data from Slave board. if Master board does not send data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2017 13:07:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26444/nrf52840-spi-and-spis-example" /><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104051?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 13:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18711bdf-d08f-432a-876b-6604d1a890f2</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;thanks you. I am going to try your solution right now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104050?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 11:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ce7ad9e-674c-494e-8a50-a3282f2c30db</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;That is correct. You should set this up as a interrupt (trigger a interrupt when the GPIO level changes), so that the master don’t have to check the pin all the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104053?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 08:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac1361e6-d8b8-4a3e-ac1d-8c81da11a2e3</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;I config one pin of Slave board is output ( Pin P0.1). This Pin also connect to Master board as input. If slave board has data to send, It write 0 ( or 1) to Pin 0.1.If master board read Pin0.1 == 0, It know Slave want to send data. Then Master send some dummy byte to Slave to receive response. Am I correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104052?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 08:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ae4a3b-65f0-4adf-9e17-4f22dee0c861</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You can use a GPIO pin for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104049?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 05:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb9535d-11f8-4589-aa7b-10a298d54045</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;Yes. Thanks for your reply! If I &amp;quot; want to get clever and have the slave raise a separate interrupt when it has data it wants to send&amp;quot;, how can I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52840] SPI and SPIS example!</title><link>https://devzone.nordicsemi.com/thread/104048?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 05:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6475a6ce-1405-4fc9-9134-bb491a11859d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No you can&amp;#39;t do that. SPI&amp;#39;s clock is controlled by the master. If it&amp;#39;s not clocking, no data flows, that&amp;#39;s just the basic definition of the protocol.&lt;/p&gt;
&lt;p&gt;The master can clock out null data constantly if it wants to read from the slave and work out if there is valid data, but that&amp;#39;s it, the slave can&amp;#39;t initiate a transfer in SPI. If you want to get clever and have the slave raise a separate interrupt when it has data it wants to send, you could do that, but still the master needs to drive the actual transfer of SPI data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>