<?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>SAADC always returns 0 value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59974/saadc-always-returns-0-value</link><description>Whichever input channel I select, I always get a value close to zero. Here is my test code using VDD as the input source: 
 
 
 
 In this case, RTT reports that the value is &amp;#39;2&amp;#39;. This is the case for any input channel I select.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2020 17:33:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59974/saadc-always-returns-0-value" /><item><title>RE: SAADC always returns 0 value</title><link>https://devzone.nordicsemi.com/thread/244125?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 17:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c83876-3193-414f-abbd-c268184ddc74</guid><dc:creator>nick_haman</dc:creator><description>&lt;p&gt;That did the trick.&amp;nbsp; Thank you.&amp;nbsp; What is the difference between the nrf and nrfx libraries?&amp;nbsp; All the examples that I&amp;#39;ve seen reference the nrf drivers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC always returns 0 value</title><link>https://devzone.nordicsemi.com/thread/244012?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 08:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fad3cc3-6934-49e8-b720-c5e4a5118a41</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nrfx_saadc driver does not support passing NULL as the argument to the config parameter to the init function. If you build in debug config (with symbol DEBUG_NRF defined), you will &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.1/drivers/src/nrfx_saadc.c#L205"&gt;get an assert from this code&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfx_saadc_config_t saadc_config = NRFX_SAADC_DEFAULT_CONFIG;
uint32_t err = nrfx_saadc_init(&amp;amp;saadc_config, saadc_handler);
APP_ERROR_CHECK(err);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>