<?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 does not work when I disable UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20625/adc-does-not-work-when-i-disable-uart</link><description>Here is my question. 
 I always disable uart after I send data. 
 NRF_UART0-&amp;gt;TASKS_STOPTX = 1;
NRF_UART0-&amp;gt;ENABLE = UART_ENABLE_ENABLE_Disabled;
 
 this was write in the function of: 
 
 uart_event_handler 
 
 and in the case of APP_UART_TX_EMPTY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2017 05:37:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20625/adc-does-not-work-when-i-disable-uart" /><item><title>RE: ADC does not work when I disable UART</title><link>https://devzone.nordicsemi.com/thread/80392?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 05:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:921e090f-7396-4fd4-9b82-d905538f0b63</guid><dc:creator>copperface</dc:creator><description>&lt;p&gt;I have solve this problem by add nrf_delay_ms(1) after I start ADC&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t temp = 0;
ovc_adc_on();

NRF_ADC-&amp;gt;TASKS_START = 1;
nrf_delay_ms(1);// need time to initial ADC
while( (NRF_ADC-&amp;gt;BUSY) ) {
}

temp = NRF_ADC-&amp;gt;RESULT;
NRF_ADC-&amp;gt;TASKS_STOP = 1;
ovc_adc_off();f();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>