<?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>Differential ADC Anomaly on nRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49746/differential-adc-anomaly-on-nrf9160-dk</link><description>Hi, 
 I&amp;#39;m trying to read differential ADC input with inputs configured as: 
 NRF_SAADC_INPUT_AIN1 (P0.014) -&amp;gt; POSITIVE 
 NRF_SAADC_INPUT_AIN2 (P0.015) -&amp;gt; NEGATIVE (differential mode) 
 I&amp;#39;m also using 4x oversampling, gain of 1, +-0.6V reference, 12-bit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jul 2019 07:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49746/differential-adc-anomaly-on-nrf9160-dk" /><item><title>RE: Differential ADC Anomaly on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/198616?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 07:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65bf3a64-ec22-444b-afdc-79275993ac44</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Could you attach your configuration/sample so that I can try this at my end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differential ADC Anomaly on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/198561?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 19:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9fcff1f-6a91-44df-8a92-4d11ae66a6f1</guid><dc:creator>bencra</dc:creator><description>&lt;p&gt;Hi, that has reduced the error to ~25, which is not ideal but usable. I&amp;#39;m still seeing wild oscillations between samples. For example:&lt;/p&gt;
&lt;p&gt;Sample 609: -335&lt;br /&gt;Sample 610: 314&lt;br /&gt;Sample 611: -333&lt;br /&gt;Sample 612: 312&lt;br /&gt;Sample 613: -336&lt;br /&gt;Sample 614: 314&lt;br /&gt;Sample 615: -337&lt;br /&gt;Sample 616: 312&lt;br /&gt;Sample 617: -338&lt;br /&gt;Sample 618: 314&lt;br /&gt;Sample 619: -337&lt;br /&gt;Sample 620: 317&lt;br /&gt;Sample 621: -340&lt;br /&gt;Sample 622: 317&lt;br /&gt;Sample 623: -336&lt;/p&gt;
&lt;p&gt;No matter the sampling parameters, the samples alternate in this way. Is there a reason for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differential ADC Anomaly on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/198444?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 12:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7f0c7f-d0df-41c7-bbac-92c98ca112ec</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The UART1 interface occupies the P0.14 and P0.15 pins by default on the DK, as shown here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/if_connector.html"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/if_connector.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try to use AIN0 and AIN3 (&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/pin.html?cp=2_0_0_9_0"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/pin.html?cp=2_0_0_9_0&lt;/a&gt;) instead and see if these give the expected result?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differential ADC Anomaly on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/198284?ContentTypeID=1</link><pubDate>Sun, 14 Jul 2019 18:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8eaa953-6343-4cdc-b064-aae57388186b</guid><dc:creator>bencra</dc:creator><description>&lt;p&gt;For grounded inputs, for any given sample set (extra_samplings set to 399 - total samples = 400), there seems to be large alternating errors, such as:&lt;/p&gt;
&lt;p&gt;Sample 368: 415&lt;br /&gt;Sample 369: 364&lt;br /&gt;Sample 370: 416&lt;br /&gt;Sample 371: 360&lt;br /&gt;Sample 372: 414&lt;br /&gt;Sample 373: 362&lt;br /&gt;Sample 374: 415&lt;br /&gt;Sample 375: 365&lt;br /&gt;Sample 376: 417&lt;br /&gt;Sample 377: 357&lt;br /&gt;Sample 378: 416&lt;br /&gt;Sample 379: 363&lt;br /&gt;Sample 380: 418&lt;br /&gt;Sample 381: 364&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also struggling to find documentation regarding the correct calibration procedure.&lt;/p&gt;
&lt;p&gt;At current, I&amp;#39;m performing&amp;nbsp;&lt;span&gt;NRF_SAADC_NS-&amp;gt;&lt;/span&gt;&lt;span class="pl-smi"&gt;TASKS_CALIBRATEOFFSET&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span class="pl-c1"&gt;1&lt;/span&gt;&lt;span&gt;; before all sampling.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Considering the invalid result (errata) which comes from settting VDD_GPIO &amp;gt; 2.1V, I&amp;#39;ve changed the VDD_GPIO to 1.8V. The error in the samples now appears to have decreased, and the samples look something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sample 365: 209&lt;br /&gt;Sample 366: 304&lt;br /&gt;Sample 367: 211&lt;br /&gt;Sample 368: 303&lt;br /&gt;Sample 369: 213&lt;br /&gt;Sample 370: 302&lt;br /&gt;Sample 371: 213&lt;br /&gt;Sample 372: 304&lt;br /&gt;Sample 373: 213&lt;br /&gt;Sample 374: 305&lt;br /&gt;Sample 375: 210&lt;br /&gt;Sample 376: 303&lt;br /&gt;Sample 377: 212&lt;br /&gt;Sample 378: 302&lt;br /&gt;Sample 379: 213&lt;br /&gt;Sample 380: 300&lt;br /&gt;&lt;br /&gt;This is still not useful data for my use case.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>