<?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>Read a values of anolg input ( nRF52840, S140 )</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38123/read-a-values-of-anolg-input-nrf52840-s140</link><description>Hi, I&amp;#39;m using an nRF52840 S140 card. I&amp;#39;m currently on saadc code, I want to be able to retrieve values from an analog input, but I have questions about this. 
 -&amp;gt; When I do not short-circuit the p0.02 a VCC and GND I get a value ranging from 18 to 21</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Sep 2018 18:31:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38123/read-a-values-of-anolg-input-nrf52840-s140" /><item><title>RE: Read a values of anolg input ( nRF52840, S140 )</title><link>https://devzone.nordicsemi.com/thread/147050?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 18:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0881143a-15f5-422c-8014-a3635fa094cf</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I should add that the reason you don&amp;#39;t see a fullscale reading when connected to vdd is due to both the prescaler and the saadc reference. Normal the saadc uses an internal reference so the ref voltage doesn&amp;#39;t vary with vdd. This is an issue in battery operated designs. However, in the config register you can choose vdd as the reference if you choose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read a values of anolg input ( nRF52840, S140 )</title><link>https://devzone.nordicsemi.com/thread/147049?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 18:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f6f3f97-d8d1-4799-9dba-c82a2c3add04</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;When you short to ground you will see the dc offset of the saadc. All adc&amp;#39;s have some offset. There is a cal process in the documentation that will reduce the offset. The reason it fluctuates a little is because the quant noise floor is random. This is why most adc designs throw away the bottom 1 or 2 bits.&lt;/p&gt;
&lt;p&gt;The max number when connected to nrf_vdd is determined by the prescaler value and the bit width of the sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For your analog generator, you need to have the max frequency of the generator inside the nyquist window of the saadc. This is basic sampling theory and would be useful to familiarize yourself with. When this is not true, since the input of an saadc is switched capacitive you will only see the mean value which for an ac signal is zero. Or in this case a couple of quanta.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>