<?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>Using a PWM as an interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51069/using-a-pwm-as-an-interrupt</link><description>Hello there, 
 So we are working with a sensor that needs to receive a pulsed voltage, so we are using a PWM signal from our nrf51-DK applied to a transistor based circuit. We need to take an analog read when the PWM signal is high, so I am trying to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Aug 2019 12:53:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51069/using-a-pwm-as-an-interrupt" /><item><title>RE: Using a PWM as an interrupt</title><link>https://devzone.nordicsemi.com/thread/204508?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 12:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c779ce8-3093-4a89-be74-56925ccf0172</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are you using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/lib_pwm.html?cp=5_5_9_3_21"&gt;PWM library&lt;/a&gt; or the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/hardware_driver_pwm.html?cp=5_5_9_2_10"&gt;PWM&lt;/a&gt; peripheral?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Is the program failing first once you feed the signal back to the nRF, or are you able to drive the sensor with the PWM signal successfully and it fails when you feed it back into the nRF?&lt;/li&gt;
&lt;li&gt;Are you using GPIOTE? Could you share your project?&lt;/li&gt;
&lt;li&gt;And what exactly do you mean by failing? Is the program asserting somewhere? Any error codes returned from any functions? Have you tried &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;debugging &lt;/a&gt;your application?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>