<?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>Disabling ADC and sending Some data taken from ADC to other function.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16918/disabling-adc-and-sending-some-data-taken-from-adc-to-other-function</link><description>Hi,
i am disabling ppi channel so that my adc should stop working(i am taking data from 3-axis accelerometer), this process i am doing by pressing button(bsp_event_handler) and after disabling i am sending some data to other function. Some time it stuck</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2016 12:02:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16918/disabling-adc-and-sending-some-data-taken-from-adc-to-other-function" /><item><title>RE: Disabling ADC and sending Some data taken from ADC to other function.</title><link>https://devzone.nordicsemi.com/thread/64845?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 12:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b21be2-d8f7-4c1c-a37a-f11e18a51183</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;That should work just fine. How are you enabling the ppi again? If I understood you correctly this was the problem? You should go into debug mode and check where the code is &amp;quot;stuck&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling ADC and sending Some data taken from ADC to other function.</title><link>https://devzone.nordicsemi.com/thread/64844?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 08:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bb6f53-d406-41fc-8d6d-37b8be26039c</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;Hi, sorry for sending late reply,this button handling is done is bsp_event_handler.And i am Not using app_button to register button pushes.&lt;/p&gt;
&lt;p&gt;In bsp_event handler for the case BSP_EVENT_KEY_2:
nrf_drv_ppi_channel_disable(m_ppi_channel);
this disables the adc.&lt;/p&gt;
&lt;p&gt;Ques:did i have to register these button pushes to be handled in button event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling ADC and sending Some data taken from ADC to other function.</title><link>https://devzone.nordicsemi.com/thread/64843?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 14:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92843ffd-542d-4c26-bfca-7548a21c8864</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Enabling and disabling the PPI to turn on and off sampling is fine. I can&amp;#39;t figure out what is wrong from the information have given. Could you add the code that sets up the PPI and the code that disables/enables the PPI? Add the code to your question. Are you using app_button to register button pushes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>