<?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 Snippet cannot follow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61591/saadc-snippet-cannot-follow</link><description>I tried implementing 
 https://github.com/andenore/NordicSnippets/blob/master/examples/temp/main.c 
 But i get 2.6V without connecting any of the Analog pins. 
 
 
 Exactly which pin is it designed for? 
 and why is it reading 2.6V with no input on pinA0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 May 2020 14:50:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61591/saadc-snippet-cannot-follow" /><item><title>RE: SAADC Snippet cannot follow</title><link>https://devzone.nordicsemi.com/thread/252019?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 14:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a3eae9e-070d-448c-b687-0933e939f0d2</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Thank you very much. That is helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Snippet cannot follow</title><link>https://devzone.nordicsemi.com/thread/251144?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 15:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd8ec79d-a217-4763-9bc3-88a62e2da781</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  NRF_SAADC-&amp;gt;CH[0].PSELP = PSELP_AnalogInput0 &amp;lt;&amp;lt; SAADC_CH_PSELP_PSELP_Pos;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Snippet cannot follow</title><link>https://devzone.nordicsemi.com/thread/251133?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 11:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e7dc83c-32e3-41ac-9046-eae9f818141c</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Yes, sorry for the mistake.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you tell me how to read from pin A0, using this code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Snippet cannot follow</title><link>https://devzone.nordicsemi.com/thread/250905?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 10:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c1cf536-b7c0-4044-8b0e-6eaf533c63db</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;It is true as @hmolesworth&amp;nbsp;says, if you look at the lines of code he shared you will see that the SAADC channel measures the VDD using single-ended input.&amp;nbsp;&lt;br /&gt;Let me know if anything still should be unclear!&lt;br /&gt;&lt;br /&gt;As a side note, it seems the link you meant to post is the&amp;nbsp;&lt;a href="https://github.com/andenore/NordicSnippets/blob/master/examples/saadc/main.c"&gt;SAADC sample&lt;/a&gt;, not the TEMP sensor sample which you linked in your ticket.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;br /&gt;&lt;br /&gt;P.S&amp;nbsp;Thank you @hmolesworth for your swift reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Snippet cannot follow</title><link>https://devzone.nordicsemi.com/thread/250817?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 20:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91807d82-1353-4b28-b94a-af96a06ef2ed</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;That code is not reading pin A0; See this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  // Configure the SAADC channel with VDD as positive input, no negative input(single ended).
  NRF_SAADC-&amp;gt;CH[0].PSELP = SAADC_CH_PSELP_PSELP_VDD &amp;lt;&amp;lt; SAADC_CH_PSELP_PSELP_Pos;
  NRF_SAADC-&amp;gt;CH[0].PSELN = SAADC_CH_PSELN_PSELN_NC &amp;lt;&amp;lt; SAADC_CH_PSELN_PSELN_Pos;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This information will help:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Analog positive and negative input channels have strange numbering:
//  PSELP_NC           0UL  Not connected
//  PSELP_AnalogInput0 1UL  AIN0
//  PSELP_AnalogInput1 2UL  AIN1
//  PSELP_AnalogInput2 3UL  AIN2
//  PSELP_AnalogInput3 4UL  AIN3
//  PSELP_AnalogInput4 5UL  AIN4
//  PSELP_AnalogInput5 6UL  AIN5
//  PSELP_AnalogInput6 7UL  AIN6
//  PSELP_AnalogInput7 8UL  AIN7
//  PSELP_VDD          9UL  VDD&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>