<?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>Measure the duration of a single pulse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80270/measure-the-duration-of-a-single-pulse</link><description>Hi, 
 
 I want to measure the duration of a single pulse using GPIOTE , PPI and a Timer with a NRF52840. 
 My initial idea was to have two capture tasks for the GPIO events NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI and NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO . 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 12:19:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80270/measure-the-duration-of-a-single-pulse" /><item><title>RE: Measure the duration of a single pulse</title><link>https://devzone.nordicsemi.com/thread/332611?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 12:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd94456-6e11-4e69-837e-35fe43bb817e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;In this case we should follow the description in the product specification that states that a pin should only be configured with one gpiote channel at a time. So if the signal are short in time you will either need to use two inputs, or if possible use the toggle event instead:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpiote.html#register.EVENTS_IN-0-7"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpiote.html#register.EVENTS_IN-0-7&lt;/a&gt;&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>