<?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>nRf51822 SPI Slave not working properly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5348/nrf51822-spi-slave-not-working-properly</link><description>Hi All, 
 I am facing a strange problem. The scenario is that nRF51822 is acting as SPI SLave while MSP430 is acting as SPI Master. Using the SPI slave example as an app I&amp;#39;m configuring nRF as Slave. And running an App on MSP to send a byte on MOSI line</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Feb 2015 12:22:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5348/nrf51822-spi-slave-not-working-properly" /><item><title>RE: nRf51822 SPI Slave not working properly</title><link>https://devzone.nordicsemi.com/thread/18685?ContentTypeID=1</link><pubDate>Sun, 08 Feb 2015 12:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a906e7a-30f3-46e8-a867-17ff28b65ec3</guid><dc:creator>Daniel Tralamazza</dc:creator><description>&lt;p&gt;I ran into similar issues, the 7100 ns delay is the key here. Make sure you have the proper delay between chip select and clock. Ofc both need the same mode, in my case mode1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRf51822 SPI Slave not working properly</title><link>https://devzone.nordicsemi.com/thread/18683?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 12:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54960db-b4ff-4b89-806f-cc2c30793da8</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Thank you for you feedback Brajesh. That is very interesting. Perhaps the CPOL and/or CPHA configuration is different on nRF51 and MSP430 for the different modes?  But, I am glad you found a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRf51822 SPI Slave not working properly</title><link>https://devzone.nordicsemi.com/thread/18682?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2015 04:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ffb08f-e553-421f-a0b1-3e3d993321cd</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;Thanks Stefan, Iv got it solved by a workaround. I checked the received data by using UART and strangely it 1 but left shifted data of what is actually sent by MSP(SPI Master). I&amp;#39;v checked probably there is some issue with TI&amp;#39;s MSP regarding the same. And it worked correctly when i changed SPI Mode of Slave (BLE) from Mode_0 to Mode_1 (while SPI Master is still operating on Mode_0). Ideally both should have same but in may case it worked when i keep two different modes here. Do you have a proper reason for this, why it worked like that ?&lt;/p&gt;
&lt;p&gt;Thanks :)&lt;/p&gt;
&lt;p&gt;Brajesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRf51822 SPI Slave not working properly</title><link>https://devzone.nordicsemi.com/thread/18684?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2015 10:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01698d16-57f5-42c8-a03a-6c0702f78142</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What nRF51 hardware/kit are you using and what nRF51 SDK version?&lt;/li&gt;
&lt;li&gt;Make sure the settings are the same for CPHA and CPOL for the nRF51 and MSP430.&lt;/li&gt;
&lt;li&gt;Try to add a delay on the MSP430 side after setting CSN line low but before clocking out data.&lt;/li&gt;
&lt;li&gt;The nRF51 SPI slave needs 7.1 us delay.&lt;/li&gt;
&lt;li&gt;What happens if you change the SPI clock speed of the SPI master. Does that change anything? The nRF51 SPI slave can only handle 2Mbps speed.&lt;/li&gt;
&lt;li&gt;If you monitor the MOSI line with a logical analyzer or scope, do you see faulty data there or the correct data?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>