<?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>COUNTING THE NUMBER OF PULSES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24805/counting-the-number-of-pulses</link><description>I am generating a pwm signal in pin no:21 of nordic nrf51422 board. i connect this pin to pin no:24 using a wire in the same board and want to count only rising pulse edges (not frequency). is it needed to use ppi here or only pin change interrupt works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Aug 2017 13:50:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24805/counting-the-number-of-pulses" /><item><title>RE: COUNTING THE NUMBER OF PULSES</title><link>https://devzone.nordicsemi.com/thread/97640?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 13:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee474de7-cfce-45c9-8fd2-ae6da8273aeb</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;PPI is a way to connect two hardware peripherals without involving the CPU core. This allows for faster interaction between the peripherals, and adds autonomy. This way the CPU core can focus on other things (such as maintaining the BLE connection) while the hardware peripherals are working. That way you reduce the amount of CPU time you need to dedicate to the task the peripherals are performing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COUNTING THE NUMBER OF PULSES</title><link>https://devzone.nordicsemi.com/thread/97639?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 13:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9822f7-533c-4553-a45a-c3304487b70e</guid><dc:creator>ANKITTY</dc:creator><description>&lt;p&gt;SO WHY EXACTLY PPI IS USED HERE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COUNTING THE NUMBER OF PULSES</title><link>https://devzone.nordicsemi.com/thread/97638?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 12:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e4e5e46-9619-46f4-9dac-1205e6c35640</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello ANKITTY&lt;/p&gt;
&lt;p&gt;I recommend you look at &lt;a href="https://devzone.nordicsemi.com/question/164313/reading-digital-waveform/"&gt;this post&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In your case you would only need one GPIOTE pin configured to generate an event on LowtoHigh, and connect that to a timer set in count mode via PPI.
You could then use a timer to trigger an interrupt to read out the number of pulses registered per unit time.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>