<?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>Read/Write Bit in SPI communications. How to.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30426/read-write-bit-in-spi-communications-how-to</link><description>I&amp;#39;m trying to connect with SPI interface. I&amp;#39;ve some little problems to understand about how technically do it, 
 I found this code on the web: 
 
 
 Just to understand how it works. Does this code write or read data to slave ? 
 As I understand this code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2018 14:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30426/read-write-bit-in-spi-communications-how-to" /><item><title>RE: Read/Write Bit in SPI communications. How to.</title><link>https://devzone.nordicsemi.com/thread/121687?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 14:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2013bc5c-7b25-4c29-8d3b-581da8036a87</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;External flash memory often use SPI, and they are usually (always) act as the slave. However, the communication protocol on how to communicate with these varies between the different flash memories. You must find the communication protocol in the datasheet of your flash memory.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read/Write Bit in SPI communications. How to.</title><link>https://devzone.nordicsemi.com/thread/121573?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 18:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4157360c-9048-4e70-8bb0-ae8ef5b3eb32</guid><dc:creator>Claudio Ferraro</dc:creator><description>&lt;p&gt;Thank You for pointing me to the right direction . Anyway in the nordic examples I&amp;#39;ve only a transfer method with an input / output array. As an SPI Slave I&amp;#39;ve an SPI Serial Flash Memory 16Mbit. What should I do if I want to write to a certain address of the SPI Memory ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read/Write Bit in SPI communications. How to.</title><link>https://devzone.nordicsemi.com/thread/120730?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 15:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981a4243-9995-4240-8324-412edb53b3ea</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not sure where you found that code. Are you sure you are not mixing SPI up with I2C/TWI? SPI does not use addresses like TWI. If you want to look into our SPI library, you should check out the examples found in the sdk:&lt;/p&gt;
&lt;p&gt;SDK14.2.0\examples\peripheral\spi&lt;/p&gt;
&lt;p&gt;You can try it together with the SPI slave example, located in:&lt;/p&gt;
&lt;p&gt;SDK14.2.0\examples\peripheral\spis&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>