<?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>nRF9151 NTN COEX2 + MAGPIO inconsistent timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128762/nrf9151-ntn-coex2-magpio-inconsistent-timing</link><description>Hi, 
 We&amp;#39;re testing NTN functionality with the nRF9151 and have noticed something weird with the timings of MAGPIO and COEX2. We use COEX2 to control the power domain for our RF front end, and have the following settings 
 AT%SHORTSWVER %SHORTSWVER: nrf9151</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jul 2026 10:50:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128762/nrf9151-ntn-coex2-magpio-inconsistent-timing" /><item><title>RE: nRF9151 NTN COEX2 + MAGPIO inconsistent timing</title><link>https://devzone.nordicsemi.com/thread/569686?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2026 10:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b329e8c7-ef3b-4731-9a3c-b065ffc301c1</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed report and captures. I got a explanation and confirmation from the R&amp;amp;D that&amp;nbsp;this behavior is expected and here&amp;#39;s the explanation.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right that COEX2 is behaving correctly and as documented. The part that looks odd is MAGPIO, and it comes down to how its pin state is handled. A MAGPIO pin needs two things to actually go high, it has to be told to go high (an internal OUT register set to 1), and it has to have power (an LDO that&amp;#39;s only on while the RF domain is on).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On the first RF activity after boot, MAGPIO has never been programmed (OUT = 0). When you start RF, the pin gets power immediately, but MAGPIO is only set to 1 later at the moment RF actually starts RX. That later step is the ~1 ms difference, so MAGPIO rises after COEX2, as you expect.&lt;/li&gt;
&lt;li&gt;When you stop RF (XRFTEST=0,0), MAGPIO&amp;#39;s OUT is not cleared, it stays at 1 but the RF/LDO power is removed, so the pin voltage drops to 0.&lt;/li&gt;
&lt;li&gt;Then when you send the next XRFTEST command, the OUT register already still is ‘1&amp;#39;. The reason you then see the MAGPIO going ‘1’ earlier than expected, is because it happens at the moment when the LDO is powered up. That happens a bit earlier than the COEX2 rise. It’s not very well documented, i give you that. &lt;strong&gt;MAGPIO is intended mainly for antenna tuning, so we guarantee its state being right when RF is enabled and frequency is as configured&lt;/strong&gt;, but not otherwise.&amp;nbsp;You can also configure state ‘0’ to MAGPIO and we didn’t want to make assumptions about what should be the state in off.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So the seen behavior is expected, but agreeably a bit confusing. If you want a reference for the RF start that doesn’t suffer from this, please configure COEX0 pin instead of MAGPIO (using AT%XCOEX0).&lt;/p&gt;
&lt;p&gt;Then you might wonder why don’t the COEX0 and COEX2 pins have the same behavior. The reason is that the COEX pin state, including the OUT, is reset when RF is powered down with XRFTEST=0,0. So they always start with OUT=&amp;#39;0&amp;#39;. But MAGPIO is a “modem-application” GPIO, whose state is not reset at RF domain power-down, only the LDO powering is removed.&lt;/p&gt;
&lt;p&gt;One extra note that there&amp;#39;s a special case for GPS / band 24, where XRFTEST=0,0 does clear MAGPIO&amp;#39;s OUT back to 0. Like if you give command AT%XRFTEST=0,1,24,15750,-80,0 (24 = GPS band, and 1575 MHz).&amp;nbsp;Therefore with the next XRFTEST you should not see the swapping of order if MAGPIO and COEX2. To confirm we are talking about the same thing:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;boot&amp;gt;

AT%XMAGPIO=&amp;lt;your config&amp;gt;

AT%XRFTEST=0,1,255,15379,-80,0   (MAGPIO and COEX2 order as expected)

AT%XRFTEST=0,0

AT%XRFTEST=0,1,24,15750,-80,0  (the GPS RX) 

AT%XRFTEST=0,0 (this now clears MAGPIO OUT register)

AT%XRFTEST=0,1,255,15379,-80,0   (MAGPIO and COEX2 order still as expected).&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So in short COEX2 is fine, the MAGPIO ordering is expected (its last state isn&amp;#39;t cleared between RF sessions), and COEX0 is the recommended pin if you want a reliable RF-start reference. I hope it helps.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151 NTN COEX2 + MAGPIO inconsistent timing</title><link>https://devzone.nordicsemi.com/thread/569590?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2026 13:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d33b74-bd13-4762-844d-44ac078e86f9</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to update you that some of our resources are out of office due to summer vacations so we are really sorry for delay in our response. Your case has already been forwarded internally and I will keep you updated as soon as I hear back. Appreciate your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151 NTN COEX2 + MAGPIO inconsistent timing</title><link>https://devzone.nordicsemi.com/thread/569360?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2026 16:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c517c6e-b1bf-4eca-a8af-d695a89f9f0e</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed report and the scope captures. I&amp;#39;m looking into the COEX2 / MAGPIO timing behavior you&amp;#39;re seeing on the nRF9151 NTN and checking a couple of points internally. I&amp;#39;ll get back to you soon with an update.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>