<?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>Dynamic changing of the MODE pin on the nrf21540</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109250/dynamic-changing-of-the-mode-pin-on-the-nrf21540</link><description>I would like to be able to change the transmit power on the nrf21540 between its two pre-configured power levels (+20/+10) using the GPIO pin (MODE). 
 The document for the device states the following: 
 - &amp;quot; Note: Gain should not be changed while the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Mar 2024 13:49:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109250/dynamic-changing-of-the-mode-pin-on-the-nrf21540" /><item><title>RE: Dynamic changing of the MODE pin on the nrf21540</title><link>https://devzone.nordicsemi.com/thread/474353?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 13:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e765e8e-84b6-4fbc-9b38-1165f4986dd7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="pquevedo"]sd_ble_gap_tx_power_set(). I don&amp;#39;t think this would be related to the MODE pin on the 21540 though?[/quote]
&lt;p&gt;No, that is correct. I think Ketil&amp;#39;s point was that this is a way that will give you the same result more easily and with less room for error. If you reduce the input power to the FEM by reducing the output power of the nRF using&amp;nbsp;sd_ble_gap_tx_power_set(), this will also reduce the output power from the FEM by the same ammount. So there is no need to do anything with the MODE pin in this case.&lt;/p&gt;
&lt;p&gt;Alternatively, if you want to control the MODE pin, you are free to do that with a GPIO like any other GPIO. As indicated in the product specification, You should never adjust the&amp;nbsp;gain configuration while transmitting, so this shoud be controlled by the nRF that use it and you can use for instance &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notification.html"&gt;radio notifications &lt;/a&gt;in order to know when the radio is active. And if this is initiated by the other BLE seoc, it must signal to the nRF that it should reduce the output power (effectively makign a form of custom coexistance interface).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic changing of the MODE pin on the nrf21540</title><link>https://devzone.nordicsemi.com/thread/473883?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 13:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e717ba58-c785-4ae3-8cc7-24141a1b9861</guid><dc:creator>pquevedo</dc:creator><description>[quote userid="2125" url="~/f/nordic-q-a/109250/dynamic-changing-of-the-mode-pin-on-the-nrf21540/473873"]In what occations would you like to change the MODE pin? [/quote]
&lt;p&gt;We have 2 BLE&amp;nbsp;SoCs on a particular board. One of them is constantly running with the 21540 FEM. The other comes online very rarely and for relatively short periods of time for other reasons. When the other SoC comes online we want to change the 21540 from +20 to +10 until the second chip is done whatever it needs to do.&amp;nbsp;&lt;/p&gt;
[quote userid="2125" url="~/f/nordic-q-a/109250/dynamic-changing-of-the-mode-pin-on-the-nrf21540/473873"] The application can handle this the same way as you set the output power.&amp;nbsp;[/quote]
&lt;p&gt;Can you clarify? Using the nrf5_sdk there is a specific API call to the soft-device to change output power (when not using the 21540 FEM) with no special synchronization required. sd_ble_gap_tx_power_set(). I don&amp;#39;t think this would be related to the MODE pin on the 21540 though?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic changing of the MODE pin on the nrf21540</title><link>https://devzone.nordicsemi.com/thread/473873?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 13:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a7ac56f-2ecc-4a6a-9717-6451aba7f4bc</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;In what occations would you like to change the MODE pin? The application can handle this the same way as you set the output power.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>