<?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>nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43547/nrf52832-adc-differential-mode-configuration</link><description>Hi, 
 we are using nRF52832 ADC in differential mode. We have two channels connected, where other is presenting reference voltage 1,65V and other is +/-1,15V on top of that. 
 How should we configure the ADC? 
 Inputs are now configured as differential</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Feb 2019 09:08:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43547/nrf52832-adc-differential-mode-configuration" /><item><title>RE: nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/thread/170531?ContentTypeID=1</link><pubDate>Tue, 12 Feb 2019 09:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1776cf66-0108-4a26-8f0e-8e3690c31ebd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You have several options here, you may use VDD as reference and sample the two signals individually and calculate the difference, or sample the two signal as one differential signal. If you don&amp;#39;t want to use VDD as reference, then you can use internal 0.6V as reference instead, but then you should enable 1/6 gain setting to make sure&amp;nbsp;the measurement are below internal &amp;lt;0.6V reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/thread/170468?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 21:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79bf9026-b2e4-480c-aa91-ee96c1e9ec2b</guid><dc:creator>kmalmiv16</dc:creator><description>&lt;p&gt;VDD is 3,3V, regulated.&lt;/p&gt;
&lt;p&gt;Rgds,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -KM-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/thread/170465?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 20:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55768d27-3687-4fb9-aa32-3be90b48c4da</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think I understand, what voltage is VDD here?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/thread/170464?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 20:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aed97c83-a2aa-4960-896e-7f65dad5e6e4</guid><dc:creator>kmalmiv16</dc:creator><description>&lt;p&gt;Thanks Kenneth, this was good addition.&lt;/p&gt;
&lt;p&gt;I will check the acquisition time!&lt;/p&gt;
&lt;p&gt;We cannot use&amp;nbsp; 3 channels, as we only have two signals.&lt;/p&gt;
&lt;p&gt;And actually it is not pure differential signal, it is difference between two &amp;quot;floating&amp;quot; signals we are measuring with ADC.&lt;/p&gt;
&lt;p&gt;This means that other is &amp;quot;fixed&amp;quot; 1.65V and other varies between 0,5V...2,8V. These two signals we should sample and report the difference.&lt;/p&gt;
&lt;p&gt;Do you recommend to do it in sequence of two SE-samples?&lt;/p&gt;
&lt;p&gt;If we do it in differential mode, does ADC internally report the difference of two signals as a result?&lt;/p&gt;
&lt;p&gt;Rgds,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -KM-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 ADC differential mode configuration</title><link>https://devzone.nordicsemi.com/thread/170354?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 12:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f97f9ab-41ea-4c50-80ff-4e5699e8a777</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest to start with the saadc example in the SDK:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/nrf_dev_saadc_example"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/nrf_dev_saadc_example&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To change between single ended and differential you only need to use a difference macro when you init the channel(s):&lt;br /&gt;NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(PIN_P) vs.&lt;br /&gt;NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL(PIN_P,&amp;nbsp;PIN_N).&lt;/p&gt;
&lt;p&gt;In your case I suggest to setup 3 channels, the third channel is the reference voltage (this may also be differential). There are a some advantages by also sampling the reference voltage, you will reduce gain and offset errors in the saadc by directly comparing digital value of the analog input signal(s) vs. analog input reference voltage measurement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can enable all 3 channel with oversampling, burst, and scan. Then when you start sampling you will get an event when all 3 measurements are done.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recommend to use 10us&amp;nbsp;acquisition time or more due to these Errata&amp;#39;s:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_74.html?cp=2_1_1_0_1_14"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_74.html?cp=2_1_1_0_1_14&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_150.html?cp=2_1_1_0_1_40"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_150.html?cp=2_1_1_0_1_40&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>