<?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 configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84732/adc-configuration-for-nrf5340dk-sdk-connect-ses</link><description>I need twoADC channels. I tried to configure using : 
 CONFIG_ADC= y in prj file, 
 &amp;amp;adc{ #io-channel-cells = &amp;lt; 0x2 &amp;gt;; }; in overlay file .. the compile error appears as shown in atteched iamge. 
 Gulzar Singh</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2022 12:15:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84732/adc-configuration-for-nrf5340dk-sdk-connect-ses" /><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/358631?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 12:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a348a7b-8761-4db4-81a9-a3d970c56a15</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Hello Gulzar,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Sorry for the late reply; I was in sick leave.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;How does your overlay file look like?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;/ {&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;zephyr,user {&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;/* adjust channel number according to pinmux in board.dts */&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;, &amp;lt;&amp;amp;adc 1&amp;gt;;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;};&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;};&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;For these channels to be on AN0 and AN1, the above overlay needs to be added.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Best Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/357774?ContentTypeID=1</link><pubDate>Sat, 12 Mar 2022 06:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8ebb0b-2d1a-461b-873c-41702a55f146</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi, I tested the program in the attached file. AN0 and AN1 channels configured to sample two anlaog Inputs. The AN0 channel is sampled very well and the ADC result is avaialbale at index 0 of the buffer. The result of AN1 should be available at index 1 of buffer, but remains zero. Please, have a look at the code. If, you test it with any variable voltage at AN0 and AN1, will be better to verify.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1307.adc.txt"&gt;devzone.nordicsemi.com/.../1307.adc.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354656?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 15:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f17de02-5aa9-4010-bca2-bb67cb5f39f5</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&amp;nbsp;In the adc.h, if&amp;nbsp;#define&amp;nbsp; BUFFER_SIZE 2&amp;nbsp; right or wrong to sample 2 analog channels ? If in future, 3 chhannels are required, may I set&amp;nbsp;#define&amp;nbsp; BUFFER_SIZE 3.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The buffer size should be set to N*number of enabled channels, as SCAN mode will sample each channel subsequently and put the result in the RAM buffer as described here:&amp;nbsp;&lt;/span&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/ps_nrf5340/saadc.html?cp=3_0_0_6_28_4_3#saadc_operationmodes_scan" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/saadc.html?cp=3_0_0_6_28_4_3#saadc_operationmodes_scan" rel="noopener noreferrer" target="_blank"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/saadc.html?cp=3_0_0_6_28_4_3#saadc_operationmodes_scan&lt;/a&gt;&lt;span&gt;. If you set a buffer size that does not match the number of enabled channels, you will miss samples, or samples will be stored in the buffer in non-deterministic order.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;In the main file, I&amp;nbsp;adc instantiated by binding and then, set up channels using&amp;nbsp;&lt;/span&gt;&lt;strong&gt;err = adc_channel_setup()&lt;/strong&gt;&lt;span&gt;&amp;nbsp;.. function.&amp;nbsp;Is it proper way ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yes it is.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3. &amp;#39;&amp;#39;&amp;nbsp;&lt;strong&gt;#if defined (CONFIG_BOARD_BMS_NRF5340_CPUAPP)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;NRF_SAADC-&amp;gt;TASKS_CALIBRATEOFFSET = 1&amp;#39;&amp;#39; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;this task&amp;nbsp;will&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;start&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;span&gt;offset auto-calibration in SAADC peripheral.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.&amp;nbsp;&lt;strong&gt;I wrote two sample functions, as in adc.c. Is this proper way to add to sequence ? If, wrong any where, may you make changes and attached corrected code file ?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is ok. I have added a sample code where 2 channels are used. you can look at this as reference.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_adc.c"&gt;devzone.nordicsemi.com/.../test_5F00_adc.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5.&amp;nbsp;&lt;strong&gt;I called adc sampling functions in repeatitive timer. Is the result of adc from AIN0 and AIN1 be avaialble at same index or at different indices in&amp;nbsp;p_sample_buffer[]&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Indexes will be different if both channels are enabled at once and scan mode are used.&amp;nbsp;p_sample_buffer[] will have different values.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354581?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 13:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e69dc8-04ca-4593-8f69-0619de72d548</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi, I just need answer of three queries as shown in attached image.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/adc_5F00_queries.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354501?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 09:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e698325-20d6-4b22-ace5-4d5f1e629324</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;I mean the project folder which contain build file, configure file, cmakelist text file and source file. like the following screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645609131348v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354472?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 07:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30779afb-7e49-4c00-bf2f-1528681ee972</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi, here is the code in attached file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adc_5F00_prg.txt"&gt;devzone.nordicsemi.com/.../adc_5F00_prg.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354461?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 06:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cbdb03a-10da-4347-9769-af7e9101b2f6</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Gulzar,&lt;/p&gt;
&lt;p&gt;I have started looking at your files. Could you please send me the whole project so I can try to reproduce it?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/354245?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 02:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0e8c725-5e7a-4a78-908c-3e192f4d3b2f</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi, I created an application for testng the sampling of 2 channels on AIN0 and AIN1. The files are attached. I have few doubts.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; In the adc.h, is&amp;nbsp; &lt;strong&gt;#define&amp;nbsp; BUFFER_SIZE 2&lt;/strong&gt;&amp;nbsp; right or wrong to sample 2 analog channels ? If in future, 3 chhannels are required, may I set&amp;nbsp;&lt;strong&gt;#define&amp;nbsp; BUFFER_SIZE 3.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. &lt;/strong&gt;In the main file, I&amp;nbsp;adc instantiated by binding and then, set up channels using&amp;nbsp;&lt;strong&gt;err = adc_channel_setup()&lt;/strong&gt; .. function.&amp;nbsp;Is it proper way ?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; As, I copied the most coe from sample program, what is meaning of following ?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;#if defined (CONFIG_BOARD_BMS_NRF5340_CPUAPP)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; NRF_SAADC-&amp;gt;TASKS_CALIBRATEOFFSET = 1;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; I wrote two sample functions, as in adc.c. Is this proper way to add to sequence ? If, wrong any where, may you make changes and attache corrected code file ?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5.&lt;/strong&gt; I called adc sampling functions in repeatitive timer. Is the result of adc from AIN0 and AIN1 be avaialble at same index or at different indices in&amp;nbsp;&lt;strong&gt;p_sample_buffer[].&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1641.main.txt"&gt;devzone.nordicsemi.com/.../1641.main.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1145.adc.h"&gt;devzone.nordicsemi.com/.../1145.adc.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2625.adc.c"&gt;devzone.nordicsemi.com/.../2625.adc.c&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gulzar Singh&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/353878?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 13:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:293d4146-f516-431e-8bd9-f258d2c22c55</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You have not defined the channel 2 for sampling in your code. You have to do define this.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/353499?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 05:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65c106ce-d772-479f-8f2e-a207d4d23f77</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp; I tried to use ADC code for single channel AIN0 from the following link.&lt;/p&gt;
[quote userid="108933" url="~/f/nordic-q-a/84732/adc-configuration-for-nrf5340dk-sdk-connect-ses/353037#353037"]y0b[/quote]
&lt;p&gt;The code is in attached files (adc.h, adc.c). The device binding fails as shown in attached image.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/adc-bind.png" /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adc.h"&gt;devzone.nordicsemi.com/.../adc.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adc.c"&gt;devzone.nordicsemi.com/.../adc.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/353458?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 18:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17b7256b-a266-4007-858c-4d6b116e4c5e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SAADC supports 8 channels- One cannel per single-ended input and two channels per differential input.&amp;nbsp;So,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;If you want two single-ended inputs- you need to create two separate channel configurations; one for AIN0 and one for AIN1 for instance. It has to be defined from the main.c file. Also if you intend to do periodic sample using PPI or collect the sample as part of interrupt handling like this example I linked before&amp;nbsp;&lt;/span&gt;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/zephyr/reference/peripherals/adc.html?highlight=adc_channel_cfg#c.adc_channel_cfg" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/adc.html?highlight=adc_channel_cfg#c.adc_channel_cfg" rel="noopener noreferrer" target="_blank"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/adc.html?highlight=adc_channel_cfg#c.adc_channel_cfg&lt;/a&gt;&lt;span&gt;&amp;nbsp;; you have to define this in C file.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/353219?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 01:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1eba9f3-6054-421d-92a0-51171bbceeb7</guid><dc:creator>mexco</dc:creator><description>[quote userid="108933" url="~/f/nordic-q-a/84732/adc-configuration-for-nrf5340dk-sdk-connect-ses/353037#353037"]Could you please share your .dts file?&amp;nbsp;[/quote]
&lt;p&gt;Please which .dts file you asking ? Zephyr.dts or elseone ? Zephyr.dts is attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1033.zephyr.dts"&gt;devzone.nordicsemi.com/.../1033.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC configuration for nRF5340DK SDK Connect SES</title><link>https://devzone.nordicsemi.com/thread/353037?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 09:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4bb0fa5-cbb6-4c35-9503-8ccd81d5d61d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Gulzar,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is needed to figure out what should be placed in the devicetree to enable two channels in the SAADC. There may be something wrong with the device tree configuration. nRF5340 has only one SAADC core with 8 input channels mux.&amp;nbsp; Could you please share your .dts file?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Our getting started guide seems to have a section on its own for how to add the ADC peripheral to an example project for example&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b" href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b" href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b" rel="noopener noreferrer" target="_blank"&gt;&lt;/a&gt;You can also check out ADC driver documentation:&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrfx/drivers/adc/index.html?highlight=ad" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/adc/index.html?highlight=ad" rel="noopener noreferrer" target="_blank"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/adc/index.html?highlight=ad&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>