<?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>TX gain control when using nrf5340 + nrf21540.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100750/tx-gain-control-when-using-nrf5340-nrf21540</link><description>Hello. 
 I am developing a product using nrf5340 + nrf21540. The NCS version we are currently using for development is 2.3.0. 
 configuration settings are below. 
 
 CONFIG_BT_LL_SOFTDEVICE =y 
 
 CONFIG_MPSL_FEM =y 
 
 CONFIG_BT_CTLR_TX_PWR_ANTENNA </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2023 11:28:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100750/tx-gain-control-when-using-nrf5340-nrf21540" /><item><title>RE: TX gain control when using nrf5340 + nrf21540.</title><link>https://devzone.nordicsemi.com/thread/430987?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 11:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83843b6-abb9-45bf-b7df-0fa304baef22</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Can you read over the answers in &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98922/nrf21540-spi-gain-dynamic-control"&gt;nRF21540 SPI Gain Dynamic Control&lt;/a&gt;&amp;nbsp;and see if you still have the same questions after that?&lt;/p&gt;
&lt;p&gt;If you do still have questions, it would be useful if you list &amp;quot;expected TX power&amp;quot; and &amp;quot;measured TX power&amp;quot; outputs.&lt;/p&gt;
&lt;p&gt;Edit: &lt;br /&gt;Also, can you send me your build/zephyr/zephyr.dts file?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX gain control when using nrf5340 + nrf21540.</title><link>https://devzone.nordicsemi.com/thread/430855?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 00:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b325f64-9ecb-453b-a17e-e0dfaa53c1bb</guid><dc:creator>Noah_iR</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;When I read &amp;quot;NRF_RADIO-&amp;gt;TXPOWER&amp;quot; register in decimal, it will appear as below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;1. CONFIG_BT_CTLR_TX_PWR_ANTENNA=0........ TXPOWER : 244&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2. CONFIG_BT_CTLR_TX_PWR_ANTENNA=5........ TXPOWER : 251&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;3. CONFIG_BT_CTLR_TX_PWR_ANTENNA=10........ TXPOWER : 0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;4. CONFIG_BT_CTLR_TX_PWR_ANTENNA=15........ TXPOWER : 0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This value is output the same whether I set the mode pin to ACTIVE_HIGH or ACTIVE_LOW in the dts setting of the nrf21540 FEM.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Of course, depending on the mode pin setting, there is a difference of about 10db when measured with Tektroxix&amp;#39;s Spectrum Analyzer.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Based on the results measured so far, it seems that the library fixes the gain of FEM to a specific value(10db for nrf21540) and lower SoC&amp;#39;s TX gain based on that value.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX gain control when using nrf5340 + nrf21540.</title><link>https://devzone.nordicsemi.com/thread/430692?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 10:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44315549-8ffc-455c-a3e6-ac84af05f19a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But when I measured it with an spectral analyzer, there was a difference of about 13db.[/quote]
&lt;p&gt;How much did you measure? &lt;/p&gt;
&lt;p&gt;Can you read out the output power from the nRF5340?&lt;/p&gt;
&lt;p&gt;You can do this by reading the &lt;span&gt;&lt;span dir="ltr"&gt;TXPOWER&lt;/span&gt;&lt;/span&gt; register.&lt;br /&gt;This can for example be done while debugging.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686653558456v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686653548562v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>