<?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>[nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10141/nrf51422-spi-slave-solution</link><description>Hello, 
 I&amp;#39;m using an external chip that decodes my RF transmission and outputs the data on two pins DAT, and CLK (data and clock). Currently I&amp;#39;m reading the data with GPIOTE, and was thinking about using SPI to collect the output. 
 SPI Slave uses</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2015 11:39:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10141/nrf51422-spi-slave-solution" /><item><title>RE: [nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/thread/37610?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 11:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b89a6c67-5b60-42e2-877b-e2da0a03af06</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;If you can do that it would definitely be the best ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/thread/37609?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 13:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeea88dd-5b02-4f0a-87c8-a99339b6f37b</guid><dc:creator>wizath</dc:creator><description>&lt;p&gt;Thanks for answer, the easiest way will be to change the master side transmission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/thread/37608?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 12:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3667235-f771-4d4c-90b2-82208f33e57f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;The SPI is 8 bits only unfortunately. In other words you have to find some way to clock in the last 6 bits (so you get at least 16 bits in total), otherwise the data won&amp;#39;t be written into the RX buffer. Theoretically you could do this from the nRF51 as well, and use another additional pin to feed clocks into the SPI, but you would have to find some way to switch between feeding the clock from the SPI master or the nRF51.
If you can add 6 additional clock pulses on the master side that should be easier to implement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/thread/37607?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 16:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4715d4-54ef-456f-b96e-78781528c9d6</guid><dc:creator>wizath</dc:creator><description>&lt;p&gt;Thanks for answer, now I&amp;#39;m using two shorted pins and it works.&lt;/p&gt;
&lt;p&gt;But there is my next question. I&amp;#39;m using spi_slave example from Keil, and trying to read ~10 bits. The issue is that the SPI amountrx reg always shows 1, so the remaining 2 got lost? Is there any way to capture all the transmission? My buffers are uint8_t arrays.&lt;/p&gt;
&lt;p&gt;The chip select pin is toggled about 1ms after the end of transmission.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1185.TEK00001.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF51422] SPI Slave solution</title><link>https://devzone.nordicsemi.com/thread/37606?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 14:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43c72aa0-b075-4019-8010-afc1ba8fb6f4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Unfortunately there is no way to manually start an SPI slave transaction without the physical chip select line.&lt;br /&gt;
The most direct way to do this would be to connect a different GPIO to CSN physically, and set/clear the output pin from your software.&lt;/p&gt;
&lt;p&gt;This could be automated through the task/event system by using a GPIOTE channel to control the output pin.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>