<?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 problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119110/adc-problem</link><description>Hi, 
 I&amp;#39;m using nRF52833 DK and SDK v17 to test my applications. 
 I have to use ADC on nRF52811 SoC, and I wanted to develop a demo on nRF52833DK before implementing on nRF52811. 
 I&amp;#39;ve used saadc example in the SDK, and results of the conversion are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2025 09:06:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119110/adc-problem" /><item><title>RE: ADC problem</title><link>https://devzone.nordicsemi.com/thread/524030?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 09:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a497ccd7-2c7c-4110-848a-889872c92f1f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If you connect P0.03 to GND and still get a non-zero ADC result, the input may be floating, double check if the connection is proper.&amp;nbsp;&amp;nbsp;Make sure you&amp;#39;re reading from &lt;strong&gt;P0.03&lt;/strong&gt; if that&amp;#39;s where your test is connected and try to add some delays between samples just for the sanity of the test.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define ADC_INPUT_PIN NRF_SAADC_INPUT_AIN1  // P0.03

void saadc_init(void)
{
   nrf_saadc_channel_config_t channel_config =
        NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_SE(ADC_INPUT_PIN);
   channel_config.gain = NRF_SAADC_GAIN1_6;   // Ensure correct gain
   channel_config.reference = NRF_SAADC_REFERENCE_INTERNAL; // 0.6V ref

   nrfx_saadc_init(NULL, wacon_adcIrqHandler);
   nrfx_saadc_channel_init(0, &amp;amp;channel_config);
}


nrf_delay_us(5); 
nrfx_saadc_sample_convert(0, &amp;amp;adc_val);
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>