<?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>Can i use a pin change interrupt to count the number of pulses in a pwm signal in nrf51xx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24741/can-i-use-a-pin-change-interrupt-to-count-the-number-of-pulses-in-a-pwm-signal-in-nrf51xx</link><description>I JUST NEED TO KNOW NUMBER OF ON PULSES PRESENT IN THE PWM OUTPUT CAN I USE PIN CHANGE INTERRUPT TO COUNT THE NUMBER OF ON PULSES OR SOME OTHER METHOD IS AVAILABLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Aug 2017 14:26:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24741/can-i-use-a-pin-change-interrupt-to-count-the-number-of-pulses-in-a-pwm-signal-in-nrf51xx" /><item><title>RE: Can i use a pin change interrupt to count the number of pulses in a pwm signal in nrf51xx</title><link>https://devzone.nordicsemi.com/thread/97437?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 14:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da99428-d733-41eb-b657-c185e5c3b0e2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;If I were you I would look into using Timer/Counters, PPI channels, and GPIO Tasks and Events (GPIOTE). Using PPI channels you can configure the Timer/Counter to count positive and/or negative edges on a GPIO. That way everything works autonomously and you don&amp;#39;t have to use interrupts and processing power on each PWM period. Instead you can configure the timer to trigger an interrupt every 100 pulses for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>