<?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>Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7174/interrupt-doesnt-occur-while-using-adc-with-esb-protocol</link><description>Hello everyone,
I am using ADC functionality with NRF51822 and its working fine, Interrupt is raising when ever i give input to Analog Pin. Communication protocol i use is bluetooth. But recently i switched to ESB protocol and when i had the same ADC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jun 2015 06:17:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7174/interrupt-doesnt-occur-while-using-adc-with-esb-protocol" /><item><title>RE: Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/25354?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 06:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d52d22d-83b6-452a-a3ad-3bdec02e0c57</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi trk
I am still not sure what you mean by &amp;quot;normal sd timer functions&amp;quot;. Can you please clarify, perhaps with a code snippet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/25353?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 07:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0951b4a-330d-4706-b657-2bdd644a3176</guid><dc:creator>trk</dc:creator><description>&lt;p&gt;Thanks for reply Stefan, I said like normal timer functions interrupt isn&amp;#39;t popping when I use esb.
So I use rtc timer function. I am just curious about why normal sd timer functions are not working.
And can you help me with the other question I posted regarding data rate in Esb. I have high importance of that task. I am sure you can help me with that
Thanks
Raghav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/25352?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 06:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe81f237-6873-448d-8e92-a76e29dc9fe2</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi trk.&lt;/p&gt;
&lt;p&gt;I do not quickly realize why the RTC is not working when you use ESB. In the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00139.html"&gt;ESB documentation&lt;/a&gt;, I don&amp;#39;t see that ESB uses RTC. So the RTC interrupt is working when you do not use ESB? Can you try to use another RTC peripheral, if that helps, i.e. if you have tried RTC0, try now to use RTC1 instead.&lt;/p&gt;
&lt;p&gt;A suggestion: Perhaps you would like to use a PPI channel between RTC event and ADC start task as done in &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/rtc0-triggering-adc-sample/main.c"&gt;this example&lt;/a&gt;? Then you will have almost no delay between RTC event and ADC starting to sample, and you will not need the CPU to process the RTC interrupt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/25351?ContentTypeID=1</link><pubDate>Thu, 28 May 2015 23:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9487bba0-d05f-4845-a5cf-f135821feb88</guid><dc:creator>trk</dc:creator><description>&lt;p&gt;Thanks that helps.
I use RTC clock as timer to start ADC timer. But when i use timer functions why Timer interrupt isnt working when we use ESB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt doesnt occur while using ADC with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/25350?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 11:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d19c1de-7545-4e40-874e-7b70b8cd32ce</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I suspect that this has something to do with how to set the ADC interrupt or something with interrupt priorities. How do you set your ADC interrupt priority. Usually when you set the ADC interrupt with the softdevice, you do that with sd_* function, which is a softdevice function, like done in &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/adc-example-with-softdevice/main.c"&gt;this example&lt;/a&gt; in the adc_init function. When you do not use the softdevice (also when you use ESB) you should set the ADC interrupt like done in &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/rtc0-triggering-adc-sample/main.c"&gt;this example&lt;/a&gt; in the adc_init function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>