<?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 count pulse with nrf51822 : revisited</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5939/how-to-count-pulse-with-nrf51822-revisited</link><description>I am trying to implement the pulse counting mentioned in a previous post of the same name, but the code is eluding me. I am using the heart rate service example with new code shown below. Tomorrow I will instrument the code more, but I could use some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Aug 2017 06:53:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5939/how-to-count-pulse-with-nrf51822-revisited" /><item><title>RE: how to count pulse with nrf51822 : revisited</title><link>https://devzone.nordicsemi.com/thread/20686?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 06:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80336ac5-2e91-407d-8759-91fb8cc01ec7</guid><dc:creator>Thiru</dc:creator><description>&lt;p&gt;can&amp;#39;t we assign the GPOI pin to counter so that when ever change happen in the pin counter will increment.&lt;/p&gt;
&lt;p&gt;instead of using PPI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to count pulse with nrf51822 : revisited</title><link>https://devzone.nordicsemi.com/thread/20687?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2015 15:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de90884a-5cd7-47ac-b7ad-55dca9abbc75</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Henry&lt;/p&gt;
&lt;p&gt;Thank you for your question. Sorry for my late response.&lt;/p&gt;
&lt;p&gt;I have updated the thread you are probably referring to, &lt;a href="https://devzone.nordicsemi.com/question/30801/how-to-count-pulse-with-nrf51822/?answer=31087#post-id-31087"&gt;see here&lt;/a&gt;, but you are correct, the input signal can also be detected with GPIOTE. You seem to be on the right track.&lt;/p&gt;
&lt;p&gt;I see you enable three PPI channels but you only use one.&lt;/p&gt;
&lt;p&gt;I think it is not necessary to configure the PWM_INPUT_PIN_NUMBER twice as input. It should be sufficient to configure it only as sense input, as done in &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples/blob/master/system-on-wakeup-on-gpio/main.c"&gt;this example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>