<?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>SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62139/saadc-sampling-value-problem</link><description>Hi,I have a problem.I used three channels of ADC sampling in the project.If I connect the ADC port directly to GND,the ADC value of the sample is not equal to 0.But if I change another board and download the same program, the ADC value will be 0.Is this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jun 2020 06:50:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62139/saadc-sampling-value-problem" /><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253926?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 06:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5f8e24-cffd-4a9e-8df2-291bc3da2924</guid><dc:creator>Vitamin</dc:creator><description>&lt;p&gt;Yes.If I running CALIBRATEOFFSET after the SAADC initialization,the voltage I measured with NRF52832 is equal 0.&lt;span&gt;The problem is solved.Thanks a lot.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253703?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 08:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c651cf-1a96-4af6-b52d-c6d57aa002fa</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;From&amp;nbsp;&lt;a title="Digital output" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=4_2_0_36_2#saadc_digital_output"&gt;Digital output&lt;/a&gt;: &lt;br /&gt;&amp;quot;The result generated by the ADC will deviate from the expected due DC errors like offset, gain, differential non-linearity (DNL), and integral non-linearity (INL). See&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#unique_1874651084"&gt;Electrical specification&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for details on these parameters. The result can also vary due to AC errors like non-linearities in the GAIN block, settling errors due to high source impedance and sampling jitter. For battery measurement the DC errors are most noticeable.&lt;/p&gt;
&lt;p&gt;The ADC has a wide selection of gains controlled in the GAIN field of the CH[n].CONFIG register. If CH[n].CONFIG.REFSEL=0, the input range of the ADC core is nominally ±0.6 V differential and the input must be scaled accordingly.&lt;/p&gt;
&lt;p&gt;The ADC has a temperature dependent offset. If the ADC is to operate over a large temperature range, we recommend running CALIBRATEOFFSET at regular intervals, a CALIBRATEDONE event will be fired when the calibration is complete&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Try running&amp;nbsp;the automatic offset calibration on the two PCBs and&amp;nbsp;compare the results of your new measurements.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253665?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 02:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0764a563-12fb-48f3-9de2-20851feb8f80</guid><dc:creator>Vitamin</dc:creator><description>&lt;p&gt;1.&lt;span&gt;I mean the voltage I measured with NRF52832 is not equal to 0,but when I measured with the voltmeter, the voltmeter show&lt;/span&gt;&lt;span&gt;&amp;nbsp;0V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.I connected the ADC port to GND, and the data measured by simulation was 7.03125 mV.I only use SWD prot and AIN5 with connected &amp;nbsp;GND.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&lt;span class="tgt"&gt;I mean the voltage measured by two custom PCBS is different.&lt;/span&gt;&lt;span class="tgt"&gt;They have the same design and code.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253443?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 08:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d19326-47ff-42a9-a794-95f9345efd94</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Vitamin"]The voltage detected by NRF52832 is not 0.[/quote]
&lt;p&gt;What is it?&amp;nbsp;&lt;/p&gt;
[quote user="Vitamin"]As you said, ESD diodes protect ADC ports, so I measure the voltage from the diode to GND at 0.3V?[/quote]
&lt;p&gt;It should be a ~0.5V drop between GND and pin, and VDD and pin. You need to remove the light sensor when measuring btw.&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Vitamin"]What surprises me is that the two plates behave differently.[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by plates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253396?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 00:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da033441-f350-4c51-b93c-f0e1ddbe8bfa</guid><dc:creator>Vitamin</dc:creator><description>&lt;p&gt;Custom PCB.&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt highlight"&gt;At the beginning, the ADC port is connected to the light sensor, and a black cloth is used to cover the light sensor. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt highlight"&gt;The analog voltage of the light sensor will reach 0V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;The voltage detected by NRF52832 is not 0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;I used the voltmeter again, and the voltmeter said 0V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;That&amp;#39;s why I have this problem.&lt;/span&gt;&lt;span class="tgt"&gt;A different board would not present this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;As you said, ESD diodes protect ADC ports, so I measure the voltage from the diode to GND at 0.3V?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;What surprises me is that the two plates behave differently.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sampling value problem</title><link>https://devzone.nordicsemi.com/thread/253188?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 08:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b7b0813-1345-4c5e-ac7a-f5d630ba6439</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Is this on a DK or custom PCB?&lt;br /&gt;&lt;br /&gt;My first guess is either a burnt ESD protection diode in the gpio, the failure mode is usually a short to VDD or GND, depending on which of the two diodes blew.&lt;br /&gt;&lt;br /&gt;If it is a custom PCB It could be a bad solder joint.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>