<?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>GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122184/gps-1pps-on-nrf9151-dk</link><description>Hello, my application requires very precise timing to trigger an action on the edge of the GPS time. I just need to get this time once in a while to synchronize the system, and afterwards, I can trigger a timer interrupt every 1s following the event of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jun 2025 17:34:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122184/gps-1pps-on-nrf9151-dk" /><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/540926?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 17:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a4f2cb-9023-44be-964f-065a87da8740</guid><dc:creator>Yun531</dc:creator><description>&lt;p&gt;I figured out the solution from this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95725/nrf9160-coex-pins-pull-down-resistor/405176"&gt;forum post&lt;/a&gt;. I need an external pull-down resistor on the COEX1 pin (or any COEX pins that I&amp;#39;m planning to use).&lt;/p&gt;
&lt;p&gt;I wish the document could indicate this better. From the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9151/page/ip/radio_lte/doc/gnss_coext_if.html"&gt;document&lt;/a&gt;, I thought that only the COEX2 pin needs an external pull down resistor.&lt;/p&gt;
&lt;p&gt;Also, for anyone having a simlar use case, if using the 1 time pulse mode and single fix operation. I need to wait for a certain time (I wait for 100 ms) before disable 1PPS. If I disable 1PPS immediately after a fix (in&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;NRF_MODEM_GNSS_EVT_FIX), the pulse will not be generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/540779?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 21:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431b6926-eccd-4cec-b104-6ddd1d7f46c8</guid><dc:creator>Yun531</dc:creator><description>&lt;p&gt;I tried to enable 1PPS but I have no luck so far.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I followed one of the sample from Nordic Cellular IoT Course (Lesson 6 Exercise 1) to enable GPS only. I use the same code as this &lt;a href="https://github.com/NordicDeveloperAcademy/cell-fund/blob/main/l6/l6_e1_sol/src/main.c"&gt;exercise&lt;/a&gt;, and I added 1 PPS:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* 1PPS pulse on COEX1 */
struct nrf_modem_gnss_1pps_config config = {
    .pulse_interval = 120,
    .pulse_width = 500,
    .apply_start_time = false
};

/* In main right before nrf_modem_gnss_start */
err = nrf_modem_gnss_1pps_enable(&amp;amp;config);
if (err != 0) {
    LOG_ERR(&amp;quot;Failed to enable 1 PPS, error %d&amp;quot;, err);
    return -1;
}

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I attached the main.c file here as well.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0310.main.c"&gt;devzone.nordicsemi.com/.../0310.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m able to get a fix from GPS, but the COEX1 pin is not pulsing. I open the board configurator and enable this option:&lt;br /&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/Screenshot-2025_2D00_06_2D00_27-at-2.22.48_2F20_PM.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then I connect the COEX1 pin from the nRF9151 DK to the oscilloscope, and there is no pulse. I don&amp;#39;t know what I&amp;#39;m supposed to do to make the COEX1 pin to start pulsing. Any suggestions or help would be greatly appreciated. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/540259?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 05:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb89401-c3e5-459a-a574-d5ff089d4568</guid><dc:creator>Yun531</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If there is no&amp;nbsp;sample for using the COEX1, is there any sample or general guide on how to enable and disable LTE manually?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently working through the&amp;nbsp;Cellular IoT Fundamentals course and so far, the exercises for LTE and GNSS to be active at the same time is enable GNSS when the LTE is in power saving mode (Lesson 6 exercise 2). My SIM does not support PSM or eDRX, and here&amp;#39;s a note from the lesson:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If your network operator and/or SIM card does not support either PSM nor eDRX, you will have to manually deactivate and activate the modem when wanting to use the GNSS in your application. There is a workaround, by giving the GNSS priority over LTE events to help get a fix. This is not recommended, as it interferes with LTE operations.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Could you help me with this? Especially, there is a &amp;quot;keep alive&amp;quot; while true loop in main, I&amp;#39;m unsure on how to manually deactivate/activate the modem in conjunction with this loop.&lt;/p&gt;
&lt;p&gt;If helpful, here are the links that I refered to:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-6-cellular-fundamentals/topic/lesson-6-exercise-2/"&gt;GNSS Lesson 6 Exercise&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/539361?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 10:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba2a2a9-11e3-474f-a1d3-47588eab859c</guid><dc:creator>Hakon</dc:creator><description>[quote user="Yun531"]Since the document said this is an output pin, I can wire it back to the GPIO and treat it as an interrupt? Is there a way for the DK to automatically know this without any additional wiring (such as enabling some Kconfig option)?[/quote]
&lt;p&gt;Yes, you can use GPIO pin on your host MCU and configure an interrupt to know when activity occurs. That seems like the best option as far as I am concerned.&lt;/p&gt;
[quote user="Yun531"]Is there a way for the DK to automatically know this without any additional wiring (such as enabling some Kconfig option)?[/quote]
&lt;p&gt;I don&amp;#39;t know how that would be possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/539076?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 14:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:756ec8df-76e5-4011-8237-4fd0c8071a0d</guid><dc:creator>Yun531</dc:creator><description>&lt;p&gt;Hi Hakon, thank you for your response. These are the sources I linked in my original question&amp;nbsp;as well. My confusion is how to use the COEX1 pin? Since the document said this is an output pin, I can wire it back to the GPIO and treat it as an interrupt? Is there a way for the DK to automatically know this without any additional wiring (such as enabling some Kconfig option)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS 1PPS on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/538825?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 13:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bead86b-b592-4e86-9efa-e19d905ebdd8</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;it should be possible to enable this on the nrf9151. Check out &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_modem/doc/gnss_interface.html#1pps"&gt;this part of the documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;1PPS can be accessed on the COEX1 pin on the nrf9151, P24 pin2 on the DK. You should read the details about the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9151/page/ip/radio_lte/doc/gnss_coext_if.html"&gt;COEX interface&lt;/a&gt;. Also, importantly make sure that LTE is disabled during 1PPS operation on COEX1.&lt;/p&gt;
&lt;p&gt;I was unfortunately not able to find a proper sample for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>