<?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>nRF51 SPI strange activity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50510/nrf51-spi-strange-activity</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Aug 2019 09:43:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50510/nrf51-spi-strange-activity" /><item><title>RE: nRF51 SPI strange activity</title><link>https://devzone.nordicsemi.com/thread/202078?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 09:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5ce60b-9ce8-442d-b553-d32fdc589692</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;Thank you ovrebekk so much for everything you said, it is very interesting. I have to point out that I have been using a regular PCA10028 board for tests. Not custom hardware. Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 SPI strange activity</title><link>https://devzone.nordicsemi.com/thread/202062?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 08:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00da5c6c-4e63-4441-9fdd-2c83ebe94837</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the signals of the two SPI buses are relatively close together there will be some capacitive coupling between the two, and activity on one bus can affect the other.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When the chip select line is de-asserted (high) the bus is not being driven by either the master or slave, which means the lines are floating. When they are floating they are easily influenced by interference, which is probably why they appear to follow nearby signals.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you assert chip select then the lines will be pulled either by the master or the slave, and they will be much more robust to interference.&amp;nbsp;&lt;/p&gt;
[quote user="astella"]Further I think that chip select is lasting too long in respect to the clock activity. Is there a way to modify this behaviour?[/quote]
&lt;p&gt;This is probably caused by&amp;nbsp;some delays in the driver. The chip select line is not controlled by the SPI hardware, and&amp;nbsp;is handled by the software in the driver itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can control chip select from the application if you want, but&amp;nbsp;I doubt this will be much quicker unless you set up the GPIOTE module to connect the pin directly to the SPI events over PPI.&amp;nbsp;&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><item><title>RE: nRF51 SPI strange activity</title><link>https://devzone.nordicsemi.com/thread/201814?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 10:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83f1451-a94f-4e61-9a7d-4ec8a2034bc6</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/un_5F00_solo_5F00_spi.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/l_5F00_altro_5F00_spi.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/insieme.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I used&amp;nbsp;C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\spi standard example in order to activate 2 SPI masters&lt;/p&gt;
&lt;p&gt;and send data inside a trial super loop.&lt;/p&gt;
&lt;p&gt;The strange thing is that clock activity on a SPI master seems to create activity on the mosi of the other master.&lt;/p&gt;
&lt;p&gt;Is this something that should not happen. Am I wrong? Is it a hw problem? A library problem? Or just my analyzer not working properly?&lt;/p&gt;
&lt;p&gt;Further I think that chip select is lasting too long in respect to the clock activity. Is there a way to modify this behaviour?&lt;/p&gt;
&lt;p&gt;Thanks Nordic for your attention and your work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>