<?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 gives different results for nrfx and nrf_drv</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62398/saadc-gives-different-results-for-nrfx-and-nrf_drv</link><description>Hello all, 
 
 I have been testing the SAADC example from the peripheral directory. 
 The goal is to acquire a single sample from SAADC using nrf_drv_saadc_sample_convert () function. 
 I read over the internet and heard from that nrf_drv will be depricated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jun 2020 13:50:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62398/saadc-gives-different-results-for-nrfx-and-nrf_drv" /><item><title>RE: SAADC gives different results for nrfx and nrf_drv</title><link>https://devzone.nordicsemi.com/thread/254289?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 13:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:457e6669-eddd-4735-bb72-9010a98a157b</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;Thanks Jorgen! It works now..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC gives different results for nrfx and nrf_drv</title><link>https://devzone.nordicsemi.com/thread/254267?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 13:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0606b72-865e-40d9-b8be-bbd91e225b65</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.0/drivers/src/nrfx_saadc.c#L205"&gt;nrfx_saadc_init&lt;/a&gt; does not allow you to pass NULL to the config-argument. To get similar behavior to nrf_drv_saad_init, you need to pass a pointer to a config-struct that is initialized with the default config:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfx_saadc_config_t saadc_config = NRFX_SAADC_DEFAULT_CONFIG;
ret_code_t err_code = nrfx_saadc_init(&amp;amp;saadc_config, saadc_event_handler);&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>