<?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>GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103906/gpiote-interrupts-fail-while-using-mesh</link><description>Hello everyone, 
 I&amp;#39;m trying to make some experiments with nRF52840 and i will explain a bit what i need to do. I have a device connected to a board&amp;#39;s pin which is sending PWM waves at a certain time. I need to measure the time between every state change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2023 07:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103906/gpiote-interrupts-fail-while-using-mesh" /><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/450738?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 07:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7578e7-597d-4f5a-960b-45a8b02cde46</guid><dc:creator>ivangh24</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;First of all, sorry for the wait, I have been working on my project and have managed to achieve my goal without the need to use another microcontroller. Thank you very much for&amp;nbsp;your help.&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446846?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 11:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057e7680-cd01-4c6a-a31a-71be67300b4f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Okey, then I don&amp;#39;t see how you realistically will be able to measure every high and low period no. You could potentially consider using the nRF5340 instead, where the radio runs in a different core than the application.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446818?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 09:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41ceb08-73b0-47f9-91c4-573b5d2370b2</guid><dc:creator>ivangh24</dc:creator><description>&lt;p&gt;We are talking in terms of&amp;nbsp;150-300 microseconds. At the time the gpiote transition events occur, some are missed due to bluetooth interruptions and all measurements are wrong.&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446815?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 09:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fac3d9b-d1ea-4409-9475-10d907edabaf</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;span&gt;What is the duration of the high and low periods?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446810?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 09:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94d937d-5fe4-4c99-8ed3-774a23f90a25</guid><dc:creator>ivangh24</dc:creator><description>&lt;p&gt;That&amp;#39;s exactly what I need. I have to save each duration of high and low periods without using cpu. This is the reason why I thought about having gpio + ppi + timer and saving this data with dma. I don&amp;#39;t know if this is possible somehow.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446808?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 09:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231e85f9-b9dd-4f86-adca-ec7643b10c20</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;What is the duration of the high and low periods? Do you need to measure every high and low period or can you skip some periods (for instance skip every other period)?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446763?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 06:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7715004-9268-4da6-9a0f-b8f598e465f8</guid><dc:creator>ivangh24</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;First of all, thanks for your reply.&amp;nbsp;I&amp;#39;ll say it straight out,&amp;nbsp;I need to measure the time between low to high and high to low edges of a incoming PWM wave and save it without taking cpu time (as little time as possible because bluetooth mesh has more priority). Is there any way this can be possible?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE interrupts fail while using mesh</title><link>https://devzone.nordicsemi.com/thread/446642?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 11:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e85d74b6-329a-46f1-992f-f1ecc78cb2c1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Not sure I understand what you want to do here, but you can find examples of low level nrfx driver here:&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src"&gt;https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One feature I would like to mention that may not be shown, is that most of the driver api support preparing transfers (e.g. by using&amp;nbsp;NRFX_TWIM_FLAG_HOLD_XFER flag when calling&amp;nbsp;nrfx_twim_xfer()), then to start a transfer you can for instance read out the task register (e.g. calling&amp;nbsp;nrfx_twim_start_task_address_get()) and then connect this task to an ppi channel that should start the transfer from an event directly (e.g. gpiote IN event).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>