<?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>Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121678/interfacing-nrf21540-with-nrf52832-using-nrf-connect-sdk</link><description>Hello Team, 
 I am currently working with the nRF52832 and using the nRF Connect SDK ( NCS) with toolchain version 2.9.1. I would like to interface the nRF21540 RF Front- End Module with the nRF52832. 
 However, based on the documentation, I could not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Aug 2025 10:05:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121678/interfacing-nrf21540-with-nrf52832-using-nrf-connect-sdk" /><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/545897?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 10:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d47dc4-775a-4ecb-82e5-62109092cea0</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Embel_Tech,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That&amp;#39;s really good to know. NCS is just much better recommended than trying to make it work in nRF5 SDK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will close this case now then. Please feel free to reopen it if you need anything.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/545855?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 05:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd9e43f-d2c4-4552-ab2e-9e8de8e4cc38</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hello Hieu,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thank you for the clarification. We&amp;#39;ll proceed with NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/545715?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 21:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d944a1-7bd0-410d-ab0b-45418d2159ca</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;HelloEmbel_Tech,&lt;/p&gt;
&lt;p&gt;First of all, I would like to emphasize again that we do not recommend implementing your own nRF21540 FEM control on the nRF5 SDK, because full support for it is available in the nRF Connect SDK. This implementing job is not trivial; and you seem to show interest in the GPIO + SPI control method, which is even more complicated that the GPIO only control that you already are attempting.&lt;/p&gt;
[quote user="Embel_Tech"]If any &lt;strong&gt;SDK APIs or examples&lt;/strong&gt; are available for implementing this functionality.[/quote]
&lt;p&gt;As mentioned in my last reply, there are no support for using the nRF21540 with BLE in the nRF5 SDK. That means no API and no examples.&lt;/p&gt;
&lt;p&gt;We strongly recommend you use the nRF Connect SDK (NCS) for this.&lt;/p&gt;
[quote user="Embel_Tech"]Whether dynamic TX gain adjustments (on a per-packet basis or based on RSSI feedback) are supported using these registers.[/quote]
&lt;p&gt;I don&amp;#39;t have the answer for this. However, could you please first consider the recommendation to switch to NCS?&lt;/p&gt;
&lt;p&gt;I can raise an internal inquiry if you for some reason are bound to the nRF5 SDK.&lt;/p&gt;
[quote user="Embel_Tech"] Could you please confirm the &lt;strong&gt;exact time required&lt;/strong&gt; for the nRF52833 to switch between &lt;strong&gt;RX and TX gain modes&lt;/strong&gt; (and vice versa) in this type of BLE communication scenario?[/quote]
&lt;p&gt;This is clearly mentioned in the Operational States section of the datasheet, as I have explained in my last reply.&lt;/p&gt;
[quote user="Embel_Tech"]&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt; Additionally, we would like to understand the correct method for configuring and using the &lt;strong&gt;CONFREG0, CONFREG1, CONFREG2, and CONFREG3&lt;/strong&gt; registers to control or adjust the &lt;strong&gt;TX gain&lt;/strong&gt; during operation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;  While we have reviewed the available documentation, the usage of these registers for setting different TX gain values remains unclear.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;First, we need to keep in mind that the nRF21540 supports two control method. 1. GPIO. 2. GPIO + SPI.&lt;/p&gt;
&lt;p&gt;The registers are only relevant in the 2nd control method, GPIO + SPI.&lt;/p&gt;
[quote user="Embel_Tech"]The &lt;strong&gt;purpose and function&lt;/strong&gt; of each CONFREG (0–3) in the context of TX gain configuration.[/quote]
&lt;p&gt;In GPIO + SPI mode, writing to the TX_EN or RX_EN bit of the CONFREG registers replace setting the TX_EN or RX_EN pin in GPIO mode.&lt;/p&gt;
&lt;p&gt;Other than this,the features that the registers served are explained in the Device control and the SPI interface section of &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf21540/page/chapters/about/about.html"&gt;the datasheet&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/545293?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 05:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3178d03d-0dd5-4f05-97e1-dc2c0bbfbddc</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Hello Hieu,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;We are&amp;nbsp;developed a BLE-based application using a custom board built around the nRF52833 SoC, operating in the &lt;strong data-start="421" data-end="437"&gt;central role&lt;/strong&gt; for our final product.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="462" data-end="842"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; In our implementation, the central scans for BLE peripheral devices and initiates a connection only when a specific custom service UUID is detected in the advertising packet. Upon successful connection, the central performs service and characteristic discovery. Once discovery is complete, the central sends a data request command by subscribing to the appropriate characteristic.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="844" data-end="1103"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;Following a successful subscription, the peripheral transmits up to &lt;strong data-start="912" data-end="927"&gt;1KB of data&lt;/strong&gt;. After verifying that all data has been received, the central writes back the current epoch time to the peripheral, which triggers the peripheral to send the next data update.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1105" data-end="1353"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; This process involves &lt;strong data-start="1127" data-end="1158"&gt;bidirectional communication&lt;/strong&gt; within a short interval, requiring the radio to switch from &lt;strong data-start="1219" data-end="1231"&gt;RX to TX&lt;/strong&gt; (for sending subscription/write commands) and from &lt;strong data-start="1283" data-end="1295"&gt;TX to RX&lt;/strong&gt; (for receiving data) in quick succession&amp;mdash;twice per cycle.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1355" data-end="1543"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;strong data-start="1355" data-end="1369"&gt;Our query:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; Could you please confirm the &lt;strong data-start="1399" data-end="1422"&gt;exact time required&lt;/strong&gt; for the nRF52833 to switch between &lt;strong data-start="1458" data-end="1482"&gt;RX and TX gain modes&lt;/strong&gt; (and vice versa) in this type of BLE communication scenario?&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1545" data-end="1689"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;This information is critical for optimizing our communication timing and ensuring reliable data exchange between central and peripheral devices.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1545" data-end="1689"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="434" data-end="636"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;Additionally, we would like to understand the correct method for configuring and using the &lt;strong data-start="525" data-end="571"&gt;CONFREG0, CONFREG1, CONFREG2, and CONFREG3&lt;/strong&gt; registers to control or adjust the &lt;strong data-start="607" data-end="618"&gt;TX gain&lt;/strong&gt; during operation.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="638" data-end="834"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; While we have reviewed the available documentation, the usage of these registers for setting different TX gain values remains unclear. We would appreciate your support in confirming the following:&lt;/span&gt;&lt;/p&gt;
&lt;ol data-start="836" data-end="1412"&gt;
&lt;li data-start="836" data-end="930"&gt;
&lt;p data-start="839" data-end="930"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The &lt;strong data-start="843" data-end="867"&gt;purpose and function&lt;/strong&gt; of each CONFREG (0&amp;ndash;3) in the context of TX gain configuration.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="931" data-end="1023"&gt;
&lt;p data-start="934" data-end="1023"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The &lt;strong data-start="938" data-end="959"&gt;correct procedure&lt;/strong&gt; to write or map different TX gain values using these registers.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1024" data-end="1200"&gt;
&lt;p data-start="1027" data-end="1200"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Any relevant &lt;strong data-start="1040" data-end="1100"&gt;timing, constraints, or hardware-specific considerations&lt;/strong&gt; when switching gain levels during active communication (e.g., before or after transmission events).&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1201" data-end="1326"&gt;
&lt;p data-start="1204" data-end="1326"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Whether dynamic TX gain adjustments (on a per-packet basis or based on RSSI feedback) are supported using these registers.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1327" data-end="1412"&gt;
&lt;p data-start="1330" data-end="1412"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;If any &lt;strong data-start="1337" data-end="1361"&gt;SDK APIs or examples&lt;/strong&gt; are available for implementing this functionality.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="1691" data-end="1772"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1691" data-end="1772"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;Please let us know if any additional technical details are required from our end.&lt;/span&gt;&lt;/p&gt;
&lt;p data-start="1774" data-end="1801"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;Thank you for your support.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/545101?ContentTypeID=1</link><pubDate>Sat, 09 Aug 2025 19:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25a1013-8bfe-49e5-a643-5a9ed25960b4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Embel_Tech,&lt;/p&gt;
[quote user="Embel_Tech"]&lt;p&gt;&amp;nbsp;2]&amp;nbsp; &amp;nbsp;We are using active scanning and nrf52833 will initiates the connection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Any guidance on proper usage or required sequence for activating RX/TX gain using GPIOs would be appreciated.&lt;/p&gt;[/quote]
&lt;p&gt;You have to remember that the nRF21540 FEM has RX and TX modes.&amp;nbsp;&lt;br /&gt;Each mode has to be enabled appropriately when the antenna is transmitting or receiving. Refer to:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf21540/page/chapters/device_control/doc/operating_state.html"&gt;Operational states&lt;/a&gt;.&lt;br /&gt;Note here that &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;when the&amp;nbsp;nRF21540 is in RX mode, TX path is disabled, and vice versa&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;This means that if the&amp;nbsp;nRF21540 is locked in RX mode,&amp;nbsp;transmit will not work normally.&lt;/p&gt;
&lt;p&gt;Another thing to consider is,&amp;nbsp;the mode has to be enabled well before the antenna start to transmit or receive, because transitioning between modes isn&amp;#39;t instant. Refer to:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf21540/page/chapters/device_control/doc/state_transition_timing.html"&gt;State transition timing&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the device both transmits and receives,&amp;nbsp;the full range extending effect is only achieved when the modes are switched properly. &lt;br /&gt;A scanner both transmits and receives if it is performing active scanning. &lt;br /&gt;A central&amp;nbsp;always both transmits and receives.&lt;/p&gt;
&lt;p&gt;Therefore,&lt;/p&gt;
[quote user="Embel_Tech"]&lt;div&gt;&lt;div dir="ltr"&gt;&lt;code&gt;&lt;span&gt;nrf_gpio_cfg_output(TXEN_PIN);       &lt;span&gt;// P0.03 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(RXEN_PIN);       &lt;span&gt;// P0.28 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(PDN_PIN);        &lt;span&gt;// P0.20 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(MODE_PIN);       &lt;span&gt;// P0.29 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(ANT_SEL_PIN);    &lt;span&gt;// P0.02 defined as output pin&lt;/span&gt;

nrf_gpio_pin_clear(TXEN_PIN);        &lt;span&gt;// TXEN inactive (TX gain disabled)&lt;/span&gt;
nrf_gpio_pin_set(RXEN_PIN);          &lt;span&gt;// RXEN active (RX gain enabled)&lt;/span&gt;
nrf_gpio_pin_set(PDN_PIN);           &lt;span&gt;// Power up nRF21540 (enabled for RX gain)&lt;/span&gt;
nrf_gpio_pin_clear(MODE_PIN);        &lt;span&gt;// MODE low (TX gain = +20 dB)&lt;/span&gt;
nrf_gpio_pin_clear(ANT_SEL_PIN);     &lt;span&gt;// ANT_SEL low (ANT1 selected)&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;We would like to confirm:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;a] Is this the correct way to enable the nRF21540 in GPIO control mode&lt;/strong&gt;, particularly for enabling RX gain operation?&lt;/p&gt;[/quote]
&lt;p&gt;If the goal is to enable only RX mode with the LNA, then yes, that is OK. &lt;br /&gt;It keeps the&amp;nbsp;nRF21540 forever&amp;nbsp;powered-on and in RX mode, so&amp;nbsp;the FEM will consume a lot&amp;nbsp;of power, but it will work.&lt;/p&gt;
&lt;p&gt;However, if the goal is to&amp;nbsp;extend the range, then no, this is not correct.&lt;/p&gt;
&lt;p&gt;This setup works at most with passive scanning only, no connection.&amp;nbsp;&lt;br /&gt;As you are planning to use active scanning and connection, this will not work.&lt;/p&gt;
[quote user="Embel_Tech"]b] Is it &lt;strong&gt;mandatory or recommended to use the official libraries or FEM support in the SDK&lt;/strong&gt; for proper operation, if yes provide correct way to enable nrf21540, or is GPIO-only control sufficient for basic functionality?&amp;nbsp;[/quote]
&lt;p&gt;The nRF21540 control implementation must be able to track radio activity precisely and enable the&amp;nbsp;TX or RX mode &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;at least&lt;/span&gt; early enough&lt;/em&gt; before the antenna starts transmitting/receiving&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the reason why official libraries are not mandatory, but highly recommended.&lt;/p&gt;
&lt;p&gt;There is no nRF21540 support on the nRF5 SDK, however.&amp;nbsp;It&amp;nbsp;is only available on NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/544898?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2025 09:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83eeab85-c8aa-42c7-9f5d-92835d4cdcd7</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hello Hieu,&lt;/p&gt;
&lt;p data-start="167" data-end="411"&gt;1]&lt;/p&gt;
&lt;p data-start="167" data-end="411"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;We are using the &lt;strong data-start="184" data-end="196"&gt;nRF52833&lt;/strong&gt; as a scanner in our final product. Product development has been completed, with the exception of &lt;strong data-start="294" data-end="335"&gt;range extender (nRF21540) interfacing&lt;/strong&gt;. As of now, we are using the &lt;strong data-start="365" data-end="385"&gt;nRF5 SDK v17.1.0&lt;/strong&gt; for firmware development and for nRF52833 Support.&lt;/p&gt;
&lt;p data-start="413" data-end="643"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;For the nRF21540 range extender integration, we are currently &lt;strong data-start="475" data-end="516"&gt;not using any built-in library or API&lt;/strong&gt; support. Instead, we are testing the basic GPIO-based control manually. The GPIOs have been defined and configured as follows:&lt;/p&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary select-none rounded-t-2xl"&gt;&lt;/div&gt;
&lt;div class="sticky top-9"&gt;
&lt;div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="whitespace-pre! language-c"&gt;&lt;span&gt;nrf_gpio_cfg_output(TXEN_PIN);       &lt;span class="hljs-comment"&gt;// P0.03 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(RXEN_PIN);       &lt;span class="hljs-comment"&gt;// P0.28 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(PDN_PIN);        &lt;span class="hljs-comment"&gt;// P0.20 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(MODE_PIN);       &lt;span class="hljs-comment"&gt;// P0.29 defined as output pin&lt;/span&gt;
nrf_gpio_cfg_output(ANT_SEL_PIN);    &lt;span class="hljs-comment"&gt;// P0.02 defined as output pin&lt;/span&gt;

nrf_gpio_pin_clear(TXEN_PIN);        &lt;span class="hljs-comment"&gt;// TXEN inactive (TX gain disabled)&lt;/span&gt;
nrf_gpio_pin_set(RXEN_PIN);          &lt;span class="hljs-comment"&gt;// RXEN active (RX gain enabled)&lt;/span&gt;
nrf_gpio_pin_set(PDN_PIN);           &lt;span class="hljs-comment"&gt;// Power up nRF21540 (enabled for RX gain)&lt;/span&gt;
nrf_gpio_pin_clear(MODE_PIN);        &lt;span class="hljs-comment"&gt;// MODE low (TX gain = +20 dB)&lt;/span&gt;
nrf_gpio_pin_clear(ANT_SEL_PIN);     &lt;span class="hljs-comment"&gt;// ANT_SEL low (ANT1 selected)&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p data-start="1355" data-end="1380"&gt;We would like to confirm:&lt;/p&gt;
&lt;p data-start="1355" data-end="1380"&gt;&lt;strong data-start="1385" data-end="1456"&gt;a] Is this the correct way to enable the nRF21540 in GPIO control mode&lt;/strong&gt;, particularly for enabling RX gain operation?&lt;/p&gt;
&lt;p data-start="1355" data-end="1380"&gt;b] Is it &lt;strong data-start="1512" data-end="1596"&gt;mandatory or recommended to use the official libraries or FEM support in the SDK&lt;/strong&gt; for proper operation, if yes provide correct way to enable nrf21540, or is GPIO-only control sufficient for basic functionality?&amp;nbsp;&lt;/p&gt;
&lt;p data-start="1680" data-end="1789"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p data-start="1680" data-end="1789"&gt;&amp;nbsp;2]&amp;nbsp; &amp;nbsp;We are using active scanning and nrf52833 will initiates the connection.&lt;/p&gt;
&lt;p data-start="1680" data-end="1789"&gt;&amp;nbsp; &amp;nbsp;Any guidance on proper usage or required sequence for activating RX/TX gain using GPIOs would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/539628?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 21:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cdaa41f-327c-4bc9-a290-96cdb5879455</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Embel_Tech,&lt;/p&gt;
[quote user="Embel_Tech"]Is the interfacing of the nRF21540 with the nRF52832 using nRF5 SDK 15.0.0, as described above, correct? Are we missing any critical hardware or software configurations?[/quote]
&lt;p&gt;Aside from the 4 pins you detailed, have you also pulled &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf21540/page/chapters/hw_layout/pin/doc/frontpage.html"&gt;the other pins&lt;/a&gt; to VDD or GND appropriately?&lt;/p&gt;
&lt;p&gt;Also, is there a reason you changed from using NCS v2.91 to using nRF5 SDK v15.0.0?&lt;/p&gt;
[quote user="Embel_Tech"]What could be the possible reasons or missing steps that might cause the range extender to not function as expected?[/quote]
&lt;p&gt;Are you performing active scanning or passive scanning?&lt;/p&gt;
&lt;p&gt;You use the terms central and peripheral. Is the central device&amp;nbsp;initiating a connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/539348?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 09:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ede6bfc-a600-4191-b14e-b1f8bca939fc</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p data-start="205" data-end="398"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am working with the nRF52832 as a central device using the nRF5 SDK 15.0.0, and we are trying to interface the nRF21540 (EK) board with the nRF52832 specifically for RX gain enhancement only.&lt;/p&gt;
&lt;p data-start="400" data-end="575"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;According to the nRF21540 documentation, the RX gain is fixed at +13 dBm. Since this is a central device, we do not intend to use TX control. for RX gain Our hardware setup is as follows:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;nRF52832 Pin&lt;/th&gt;
&lt;th&gt;nRF21540 EK Pin&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;VDD&lt;/td&gt;
&lt;td&gt;VDD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.03&lt;/td&gt;
&lt;td&gt;RX_EN&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.04&lt;/td&gt;
&lt;td&gt;PDN (P10.2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The antenna is connected to ANT1 on the nRF21540, and the antenna output from the nRF52832 is connected to the TRX input on the nRF21540 EK.&lt;/p&gt;
&lt;p data-start="912" data-end="940"&gt;&lt;strong data-start="912" data-end="940"&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p data-start="912" data-end="940"&gt;&lt;strong data-start="912" data-end="940"&gt;Software Implementation:&lt;/strong&gt;&lt;/p&gt;
&lt;ul data-start="942" data-end="1096"&gt;
&lt;li data-start="942" data-end="1021"&gt;
&lt;p data-start="944" data-end="1021"&gt;Configure RX_EN and PDN GPIOs as outputs and keep them set high continuously. Because the nRF52832 is running in continuous scanning mode as a central device.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="1098" data-end="1120"&gt;&lt;strong data-start="1098" data-end="1120"&gt;Observed Behavior:&lt;/strong&gt;&lt;/p&gt;
&lt;p data-start="1122" data-end="1367"&gt;&amp;nbsp; &amp;nbsp; We tested device advertising at approximately -40 dBm RSSI. When the central and peripheral devices are very close (around 40-50 cm), scanning works successfully. However, when the distance increases slightly, the device is not detected/scanned.&lt;/p&gt;
&lt;p data-start="1369" data-end="1383"&gt;&lt;strong data-start="1369" data-end="1383"&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p data-start="1369" data-end="1383"&gt;&lt;strong data-start="1369" data-end="1383"&gt;Questions:&lt;/strong&gt;&lt;/p&gt;
&lt;ol data-start="1385" data-end="1678"&gt;
&lt;li data-start="1385" data-end="1557"&gt;
&lt;p data-start="1388" data-end="1557"&gt;Is the interfacing of the nRF21540 with the nRF52832 using nRF5 SDK 15.0.0, as described above, correct? Are we missing any critical hardware or software configurations?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1559" data-end="1678"&gt;
&lt;p data-start="1562" data-end="1678"&gt;What could be the possible reasons or missing steps that might cause the range extender to not function as expected?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="1680" data-end="1737"&gt;&lt;/p&gt;
&lt;p data-start="1680" data-end="1737"&gt;Any insights or suggestions would be greatly appreciated.&lt;/p&gt;
&lt;p data-start="1739" data-end="1749"&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/536688?ContentTypeID=1</link><pubDate>Fri, 23 May 2025 05:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27d77825-9688-427a-a521-f100b750ca4b</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Thanks for your response, will check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF21540 with nRF52832 Using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/536639?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 13:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d2e05f-1868-4e83-907e-344032ed2342</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello Embel_Tech,&lt;/p&gt;
&lt;p&gt;Please find documentation on how to work with the nRF21540 FEM here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/device_guides/fem/index.html"&gt;Developing with Front-End Modules&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>