<?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>Questions about nRF52840 ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91757/questions-about-nrf52840-adc</link><description>We are using nRF Connect SDK 1.8.0 with Seggar Embedded and I have a number of questions. 
 1. What is the best Nordic example for ADC on this platform? 
 2. While we have been able to use add_read(), the call add_read_async() doesn&amp;#39;t appear to exist</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Oct 2022 13:23:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91757/questions-about-nrf52840-adc" /><item><title>RE: Questions about nRF52840 ADC</title><link>https://devzone.nordicsemi.com/thread/390278?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 13:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431606b6-75ec-41e6-aaa3-3b5fc7a64137</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Could you share a minimal example that reproduces the issue on a development kit?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about nRF52840 ADC</title><link>https://devzone.nordicsemi.com/thread/390110?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 22:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69d0d97-91d4-4b5a-8422-24f6b59d53a5</guid><dc:creator>ericwelch1</dc:creator><description>&lt;p&gt;When using an apparently unsupported Reference, the error is -21 (which I understand is EINVALID, meaning that the setup isn&amp;#39;t supported)&lt;/p&gt;
&lt;p&gt;We are using a custom board, but the clock and power duplicate the NRF9160_nRF52840 as closely as possible. &amp;nbsp;We have a custom AFE connected to AIN6 and AIN7&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about nRF52840 ADC</title><link>https://devzone.nordicsemi.com/thread/385218?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 09:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8acf9cb6-f8dc-4759-a4fb-5708c9505fb4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]1. What is the best Nordic example for ADC on this platform?[/quote]
&lt;p&gt;I would suggest &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/boards/nrf/battery"&gt;this &lt;/a&gt;one.&amp;nbsp;&lt;/p&gt;
[quote user=""]2. While we have been able to use add_read(), the call add_read_async() doesn&amp;#39;t appear to exist in the 1.8.0 SDK. &amp;nbsp;Why?[/quote]
&lt;p&gt;Strange,&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/peripherals/adc.html?highlight=adc_read_async#c.adc_read_async"&gt; both should be available in NCS v.1.8.0&lt;/a&gt;. Are you getting any specific errors when you try to use it?&lt;/p&gt;
[quote user=""]&lt;p&gt;3. We have experimented with the ADC reference &amp;quot;Internal&amp;quot; and the accessor suggests that this is 600 mV. &amp;nbsp;However, using ADC_REF_VDD_1 or ADC_REF_VDD_1_2 produce errors when adc_read() is called. &amp;nbsp;Why is this?&lt;/p&gt;
&lt;p&gt;prj.conf includes&lt;/p&gt;
&lt;p&gt;# ADC&lt;br /&gt;CONFIG_ADC=y&lt;br /&gt;CONFIG_ADC_NRFX_SAADC=y&lt;/p&gt;
&lt;p&gt;zephyr.dts includes:&lt;/p&gt;
&lt;p&gt;adc: adc@40007000 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-saadc&amp;quot;;&lt;br /&gt; reg = &amp;lt; 0x40007000 0x1000 &amp;gt;;&lt;br /&gt; interrupts = &amp;lt; 0x7 0x1 &amp;gt;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; label = &amp;quot;ADC_0&amp;quot;;&lt;br /&gt; #io-channel-cells = &amp;lt; 0x1 &amp;gt;;&lt;br /&gt; };&lt;/p&gt;[/quote]
&lt;p&gt;Exactly what errors is returned?&amp;nbsp;&lt;/p&gt;
[quote user=""]4.&amp;nbsp;we are using pins AIN6 and AIN7. &amp;nbsp;We always get data, but it is apparently not always &amp;nbsp;related to the voltage on the input pin.[/quote]
&lt;p&gt;Are you using a custom board or the PCA10056 development kit?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>