<?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>nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82894/nrf21540-tx-gain-configure</link><description>Hello, 
 I use ST&amp;#39;s mcu + Atmel radio IC + nRF21540 as the FEM. Use Atmel radio IC&amp;#39;s IO to control the TX_EN and RX_EN pins for nRF21540 automatically. 
 I want to change the nRF21540 Tx gain, but not use the default value. I only configure the nRF21540</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Dec 2021 10:06:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82894/nrf21540-tx-gain-configure" /><item><title>RE: nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/thread/344296?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 10:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4227071-678b-4a84-946f-c4b73b4f5f03</guid><dc:creator>lshlin</dc:creator><description>&lt;p&gt;In 5.1: &amp;quot;When PDN is set to 1, the device is activated and&lt;br /&gt;enters Program state. All registers will contain reset values when the device enters Program state.&amp;quot;&amp;nbsp; The PDN pin&amp;nbsp;&lt;em&gt;&lt;span class="skip"&gt;equivalently&amp;nbsp; power down + reset register functions.&amp;nbsp;Ididn&amp;#39;trealizethat regs will reset even not lost power.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/thread/344268?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 09:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1e004ab-887d-407c-9e9f-ac0932ab9337</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think&amp;nbsp;figures 2 to 6 and table 4 describe operation states? It&amp;#39;s only in program state that it is possible to configure the nRF21540 and set to other states.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/thread/344258?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 08:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2439a741-96b0-46c7-b792-d208f1030da4</guid><dc:creator>lshlin</dc:creator><description>&lt;p&gt;Sorry, my mistake, after configure the TX gain of confreg0, I set the PDN pin to 0 and then set to 1 again, so all the regs reset to default value.&lt;/p&gt;
&lt;p&gt;My configure TX gain is valid now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/thread/344176?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 14:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d677ad1e-c25f-49b0-99ac-4800e41c00c7</guid><dc:creator>lshlin</dc:creator><description>&lt;p&gt;Thanks! Yes, I write the TX gain, MODE and TX_EN bits of&amp;nbsp;&lt;span&gt;NRF21540_REG_CONFREG0 at the same time in face.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In other word if set TX_EN bit to 1 and the TX_EN pin 1, the user TX gain in CONFREG0 is valid, else if clear TX_EN bit to 0 and the TX_EN pin 1, the user TX gain seem invalid?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to configure different&amp;nbsp;TX gain and use the TX_EN, RX_EN pins to switch the TX/RX state (It&amp;#39;s fast enough). How to configure the REG0~REG3 to let it work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 Tx Gain Configure</title><link>https://devzone.nordicsemi.com/thread/344117?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 10:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc07d44b-3ddf-46f8-a31c-d6b88e07d6ae</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]&lt;p&gt;If I set the&amp;nbsp;&lt;span&gt;NRF21540_REG_CONFREG0&amp;#39;s TX_EN bit to 1 when write TX gain, the user TX gain is valid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can I use like this?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This is inline with the description in the product specification:&lt;br /&gt;&amp;quot;The Gain word can be set in the same SPI write cycle as TX is enabled from the Program state&amp;quot;&lt;br /&gt;Ref:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF21540_PS_v1.0.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF21540_PS_v1.0.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>