<?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>ADC Interrupt not starting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11219/adc-interrupt-not-starting</link><description>I am programming with mbed, and i am trying to start the adc-task via ppi and timer cc events.
another ppi channel is used to toogle the LED. 
 I am using the nRF51822 on the RedBearLabs BLE NANO. 
 After 2 seconds (start of cc[1] event) thw while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 09 Jan 2016 04:52:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11219/adc-interrupt-not-starting" /><item><title>RE: ADC Interrupt not starting</title><link>https://devzone.nordicsemi.com/thread/42082?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2016 04:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be52f58-5454-470f-9fc8-a0ec5ade7fec</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;You have to declare C linkage to &lt;code&gt;ADC_IRQHandler()&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif
void ADC_IRQHandler(void)
{
    NRF_ADC-&amp;gt;EVENTS_END = 0;
    adc_sample = NRF_ADC -&amp;gt; RESULT;
    adc_flag = 1;
}
#ifdef __cplusplus
}
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Interrupt not starting</title><link>https://devzone.nordicsemi.com/thread/42079?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2016 01:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703f14f6-664c-439c-b268-7f89ad2d2dee</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Hit break in your debugger and see where you are. I also suspect that pc.printf() is what&amp;#39;s actually hanging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Interrupt not starting</title><link>https://devzone.nordicsemi.com/thread/42080?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 16:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2f83355-3947-4407-8629-e8da069740ae</guid><dc:creator>JD Janssen</dc:creator><description>&lt;p&gt;pc.fprint is using the mbed function to sent the string via series to the pc. After 2 seconds the chips stops sending &amp;quot;l&amp;quot; to the pc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Interrupt not starting</title><link>https://devzone.nordicsemi.com/thread/42081?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 16:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06619ea-460a-42ba-aa18-b3c9d47a27db</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I don&amp;#39;t see anything wrong. Tried to run it in keil without the pc.printf, mbed.h, changed &amp;lt;nrf.h&amp;gt; to &amp;quot;nrf.h&amp;quot; and &amp;quot;nrf_delay.c&amp;quot; to &amp;quot;nrf_delay.h&amp;quot;. I also added toggling of a led inside &lt;code&gt;if (adc_flag == 1){...}&lt;/code&gt; and it blinked every 2 seconds. Maybe the problem is with the pc.printf(..)? How do you know it&amp;#39;s not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>