<?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>How to read out SAADC values with multiple channel enabled?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58173/how-to-read-out-saadc-values-with-multiple-channel-enabled</link><description>Hi Devzone: 
 I have 1 differential pair and 1 single ended pin I want to read, so I wrote code below into saadc_init function: 
 
 In this case AIN4 is the single ended pin and AIN2 and AIN3 are the differential pair . 
 I&amp;#39;m not quite sure how to get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2020 11:29:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58173/how-to-read-out-saadc-values-with-multiple-channel-enabled" /><item><title>RE: How to read out SAADC values with multiple channel enabled?</title><link>https://devzone.nordicsemi.com/thread/235932?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 11:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0b39e1-2777-4d66-9aa9-be641886309f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. Both single-ended and differential sampling will generate a single sample per channel (single-ended is internally differential mode with the negative input connected to GND). You should set it to a multiple of the number of enabled channels. If you want to get the callback after the two channels have been sampled once, you should set the &lt;span&gt;SAMPLES_IN_BUFFER define&lt;/span&gt;&amp;nbsp;to 2.&lt;/p&gt;
&lt;p&gt;2. This depends on what channel you have used for each of the configs. If you used the single-ended config for channel 0, the sample for this will be in&amp;nbsp;&lt;span&gt;p_buffer[0]. The samples are stored in the buffer as described in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_operationmodes_scan"&gt;SAADC peripheral documentation&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>