<?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>Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92461/connection-of-nrf21540-via-spi-interface-only</link><description>Hello everyone! 
 Please tell me if I can connect nRF21540 to a microcontroller using only 4 SPI pins (SCK, MOSI, MISO, CSN) and control it completely? At the same time I want to leave MODE, RX_EN, ANT_SEL, TX_EN, PDN pins unconnected. 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 13:12:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92461/connection-of-nrf21540-via-spi-interface-only" /><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388792?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 13:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca72b52-68ac-441a-8ab4-fcfa26855a76</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thank you very much, Bendik!&lt;/p&gt;
&lt;p&gt;You helped me a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388785?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173caf74-82ca-4349-ba93-df21796ef3e2</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Due to &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF21540_Rev2/ERR/nRF21540/Rev2/latest/anomaly_540_13.html?cp=7_0_1_0_1_3"&gt;errata 13&lt;/a&gt;, all the input pins need to be pulled low during power down state. But the CSN pin needs to be high when not in power down, in order to not need a MCU GPIO pin for the CSN pin it can be tied together with the PDN pin.&lt;/p&gt;
&lt;p&gt;The MISO, MOSI and SCK pins can be grounded when not using SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388768?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fbc6860-fb92-44d7-bd2f-e163a53e921e</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Great. Thanks for the help.&lt;br /&gt;Do the SPI pins have to be grounded?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388763?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30ff5600-9e41-482d-bd1c-2b5a689cfb43</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Using only GPIO is possible and supported in the nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;With only the GPIO interface only 2 different TX gain settings can be used, by default these are 10 and 20 dB.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf21540/chapters/device_control/doc/tx_power_control.html?cp=7_0_0_4_3"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf21540/chapters/device_control/doc/tx_power_control.html?cp=7_0_0_4_3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If only one antenna is used the ANT_SEL pin does not have to connected to the MCU, and can be grounded directly, this will default to always use the ANT1 pin. This brings the minimum number of MCU pins needed down to 4, MODE, RX_EN, TX_EN and PDN.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388746?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 11:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234878e5-8315-4d17-826d-c57039d3f8ba</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thanks for the answer!&lt;br /&gt;What if you do the opposite, connect only the MODE, RX_EN, ANT_SEL, TX_EN, PDN pins to the microcontroller, and leave the SPI pins unconnected? Is it possible to do it this way? I need to connect the nRF21540 to the microcontroller with as few pins as possible, but the software implementation should not be too complicated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection of nRF21540 via SPI interface only</title><link>https://devzone.nordicsemi.com/thread/388690?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 08:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdee8920-6ad5-4805-a824-0058e717f660</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF21540 can almost be fully controlled with only the SPI interface. The PDN pin is needed to control the power down, this can&amp;#39;t be controlled using the SPI interface. MODE, RX_EN, TX_EN and ANT_SEL must all be connected to ground when not used.&lt;/p&gt;
&lt;p&gt;Our SDKs does not have support for controlling the nRF21540 using SPI only, so you would have to implement this feature yourself.&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>