<?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 vs ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84381/saadc-vs-adc</link><description>Good afternoon, 
 
 I noticed in the nrfx driver folders there are two differente implementations for ADC: &amp;quot;nrfx_adc.c&amp;quot; and &amp;quot;nrfx_saadc.c&amp;quot; 
 What is the difference? Why two different implementations? Are they for different peripherals? 
 I am using nrf52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Feb 2022 08:34:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84381/saadc-vs-adc" /><item><title>RE: SAADC vs ADC</title><link>https://devzone.nordicsemi.com/thread/351241?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 08:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f906426a-b516-472e-8f36-25c2983518f0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Are they for different peripherals?[/quote]
&lt;p&gt;Yes, and the differentiation here is made with the HAS_HW_NRF_ADC or&amp;nbsp;HAS_HW_NRF_SAADC defines for the respective SoC.&lt;/p&gt;
[quote user=""]I am using nrf52 so I presume I should use SAADC. Could you elaborate a little bit on this?[/quote]
&lt;p&gt;Correct - if you go into&amp;nbsp;\v1.8.0\zephyr\dts\arm\nordic\YOUR_SOC you will see which peripherals it has got, and which drivers are compatible with that peripheral. For the nRF52840 for example, it has:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;..
    compatible = &amp;quot;nordic,nrf-saadc&amp;quot;;
..&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;While if you check an older nrf device, such as the nrf51822 it will have this instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;..
    compatible = &amp;quot;nordic,nrf-adc&amp;quot;;
..&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>