<?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>count the number of gpio changes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51822/count-the-number-of-gpio-changes</link><description>Probably, I am having a problem with finding the proper query phrase. 
 I have a sensor (Hall-type sensor) that generates pulses, and I need to count the total number of pulses and update this number in some GATT property. 
 I&amp;#39;m looking for a tutorial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2019 11:14:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51822/count-the-number-of-gpio-changes" /><item><title>RE: count the number of gpio changes</title><link>https://devzone.nordicsemi.com/thread/208642?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 11:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae65b262-518d-4f71-80c1-f6d2d86c1398</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi puff,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend using the GPIO port event and tie that to the&amp;nbsp;&lt;span&gt;TASKS_COUNT of a TIMER peripheral in counter mode using&amp;nbsp;the PPI peripheral. See the&amp;nbsp;&lt;a title="Timer Example" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/nrf_dev_timer_example.html?cp=4_0_8_4_5_38"&gt;Timer Example&lt;/a&gt;,&amp;nbsp;&lt;a title="Timer HAL and driver" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__nrf__timer.html?cp=4_0_8_6_6_24"&gt;Timer HAL and driver&lt;/a&gt;,&amp;nbsp;&lt;a title="GPIOTE abstraction and driver" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__nrf__gpiote.html?cp=4_0_8_6_6_4"&gt;GPIOTE abstraction and driver&lt;/a&gt;, and&amp;nbsp;&lt;a title="PPI HAL and driver" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__nrf__ppi.html?cp=4_0_8_6_6_15"&gt;PPI HAL and driver&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>