<?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>How to measure elapsed time between GPIOTE events?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14707/how-to-measure-elapsed-time-between-gpiote-events</link><description>I am using GPIOTE to response to transitions in some GPIO pins. This code is added to the BLE UART example code (ble_app_uart_c with S120) from SDK 10. The code is already working. 
 The next thing I want to do is measuring the elapsed time between the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jun 2016 11:57:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14707/how-to-measure-elapsed-time-between-gpiote-events" /><item><title>RE: How to measure elapsed time between GPIOTE events?</title><link>https://devzone.nordicsemi.com/thread/56109?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2016 11:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29035448-78cc-4ecf-bf66-4a7274033d52</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;application timer tutorial&lt;/a&gt;. You can configure a timer to start on the GPIOTE event, then you read the timer at the next GPIOTE event. If you want this to happen repeatedly you can take the difference between two consecutive events. The application timer should provide sufficient accuracy, if you find that it is too low you can use the HFCLK for timing, at the cost of higher current consumption.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>