<?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>Issues w/ SPI communication using both NRF21540 and IMU slaves simultaneously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102985/issues-w-spi-communication-using-both-nrf21540-and-imu-slaves-simultaneously</link><description>Hi all, We are designing a board that is controlled by a NRF52832 and that will use a NRF21540 (FEM) to enhance our bluetooth signal. 
 We are controlling our FEM using SPI along with another SPI slave, an IMU. 
 SPI communication works fine when using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Aug 2023 15:22:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102985/issues-w-spi-communication-using-both-nrf21540-and-imu-slaves-simultaneously" /><item><title>RE: Issues w/ SPI communication using both NRF21540 and IMU slaves simultaneously</title><link>https://devzone.nordicsemi.com/thread/443028?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 15:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ec8d0f9-3402-49de-8cf8-f2297654306b</guid><dc:creator>Machado94</dc:creator><description>&lt;p&gt;Hi, &lt;br /&gt;I&amp;#39;m observing the following behaviour with the logic analyzer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;FEM CSn is allways Low except for small periods (maybe when it&amp;#39;s not on PDN), image 1&lt;/li&gt;
&lt;li&gt;FEM can succesfully write SPI data within those periods, image 2&lt;/li&gt;
&lt;li&gt;Since FEM_CSn is pulled low most of the time, when the IMU_CSn is enabled the SPI enabled is immeadiatly pulled back up, since the&amp;nbsp;&lt;span&gt;FEM_CS, image 3&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Therefore, only the FEM can communicate via SPI, the IMU is unable to communicate.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Follows attached illustrative images of the described behaviour.&lt;br /&gt;&lt;br /&gt;Image 1:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692890458863v6.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Image 2:&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2023_2D00_08_2D00_24-15_2D00_40_2D00_18.png_2D00_640x480.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Image 3&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692889856131v3.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Pedro&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues w/ SPI communication using both NRF21540 and IMU slaves simultaneously</title><link>https://devzone.nordicsemi.com/thread/442543?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 12:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae45465a-1a21-48f9-a3c6-eca29009e39b</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By default the CS pin for the nRF21540 will be pulled low with the PDN pin, this is part of the workaround for errata 13.&lt;/p&gt;
&lt;p&gt;The main reason for recommending not sharing the SPI bus is due to spikes on the MISO line from the nRF21540 when it the PDN pin is toggled. It should be possible to share the SPI bus as long as no SPI communication is taking place as the nRF21540 is woken up from sleep.&lt;/p&gt;
&lt;p&gt;What kind of issue are you seeing? Can you attach a logic analyzer to the SPI and the nRF21540 GPIO lines?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>