<?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 IRQ loss when too fast....how to use latch?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57715/gpiote-irq-loss-when-too-fast-how-to-use-latch</link><description>Hello everyone, 
 
 I am working on a project where I need to interface an NFC reader (trf7970a from TI) to an NRF52840. 
 I got everything working fine, but I have a major issue in reading a tag, essentially because from what I see on the logic analyzer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Feb 2020 14:51:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57715/gpiote-irq-loss-when-too-fast-how-to-use-latch" /><item><title>RE: GPIOTE IRQ loss when too fast....how to use latch?</title><link>https://devzone.nordicsemi.com/thread/234460?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 14:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc05ae3-84ef-43b1-be89-631b139165d7</guid><dc:creator>lbe</dc:creator><description>&lt;p&gt;Hello Hakon, thanks for your answer.&lt;/p&gt;
&lt;p&gt;I am using nrfx_gpiote and SDK 15.0, but it turned out that the problem I had was not related to the latch but to an error somewhere else in the code (wrong timings).&lt;/p&gt;
&lt;p&gt;Thanks in any case for your suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE IRQ loss when too fast....how to use latch?</title><link>https://devzone.nordicsemi.com/thread/234021?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 14:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1d0943-5ef3-4cb6-a1a6-09090453daab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using nrfx_gpiote or nrf_gpiote? Which SDK are you using?&lt;/p&gt;
&lt;p&gt;nrfx_gpiote.c was recently updated with LATCH support:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_gpiote.c#L655"&gt;https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_gpiote.c#L655&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suspect the easiest way is to update to the latest nrfx version, unless you want to use a GPIOTE IN channel instead (by setting .hi_accuracy = true in your nrf_drv_gpiote_in_config_t my_button variable).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is how you&amp;nbsp;update nrfx&amp;nbsp;to v2.1 in SDK v16:&lt;/p&gt;
&lt;p&gt;1. Go to sdk_16\modules and rename &amp;quot;nrfx&amp;quot; to &amp;quot;nrfx_old&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Clone the repo (&lt;a href="https://github.com/NordicSemiconductor/nrfx"&gt;https://github.com/NordicSemiconductor/nrfx&lt;/a&gt;) to the same directory&lt;/p&gt;
&lt;p&gt;3. The API introduced a interrupt level as an input to nrfx_gpiote_init, where you have to pass a interrupt level (between 0 and 7) to the init, for instance: nrf_drv_gpiote_init(&lt;span&gt;APP_IRQ_PRIORITY_LOWEST&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>