<?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 configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47962/saadc-configuration</link><description>Hello, 
 I am using nrf52840 and I have successfully uploaded the SAADC example. I do not understand why is V(p) = VDD? How can I configure Vp to be equal to voltage that I input to pin AIN0 (P0.02)? The simple example code is in the description. I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 01 Jun 2019 22:20:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47962/saadc-configuration" /><item><title>RE: SAADC configuration</title><link>https://devzone.nordicsemi.com/thread/190373?ContentTypeID=1</link><pubDate>Sat, 01 Jun 2019 22:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed8f2315-8783-4e09-9ff6-d35cfa436c70</guid><dc:creator>JohnnyMcMan</dc:creator><description>&lt;p&gt;Thank you awneli.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC configuration</title><link>https://devzone.nordicsemi.com/thread/190204?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 08:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1a9ec8-6bf8-423a-b451-72ac529795b9</guid><dc:creator>awneil</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/47962/saadc-configuration/190196"]you can also configure it to be VDD in case you want to measure the battery voltage[/quote]
&lt;p&gt;For the avoidance of doubt, that will only work in cases where the battery is directly connected to VDD - not via a regulator!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/johnnymcman"&gt;JohnnyMcMan&lt;/a&gt;:&amp;nbsp;The options for selecting inputs are illustrated in the Product Specification:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ip/saadc/doc/image/block.svg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC configuration</title><link>https://devzone.nordicsemi.com/thread/190196?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 08:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea03e09-015d-43f9-90d5-5428709cf185</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;V(p) is by definition the voltage at the point you measure. That is normally the analog input pin, but you can also configure it to be VDD in case you want to measure the battery voltage. Referring to your code I see you configure the input pin like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  NRF_SAADC-&amp;gt;CH[ANALOGNI_PIN].PSELP = SAADC_CH_PSELP_PSELP_VDD &amp;lt;&amp;lt; SAADC_CH_PSELP_PSELP_Pos; //ocitavas vrednost ulaza na analognom pinu&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This means that you do not hook any of the analog input pins to the SAADC, but instead, you connect the SAADC input to the VDD. So, in this case, VDD = V(p). If you want to measure an analog input pin, you have to specify that pin instead.&lt;/p&gt;
&lt;p&gt;For instance, to measure the voltage on AIN0 (P0.02) you&amp;nbsp;should set it to&amp;nbsp;NRF_SAADC_INPUT_AIN0 (SAADC_CH_PSELP_PSELP_AnalogInput0) instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>