<?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 sample observations decoding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73632/saadc-sample-observations-decoding</link><description>Hi Team 
 
 I have used SAADC sample. When I connect pin 2 with VDD on header P1, output is range of 830-840. 
 What is the range and how can I decode it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Apr 2021 11:58:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73632/saadc-sample-observations-decoding" /><item><title>RE: SAADC sample observations decoding</title><link>https://devzone.nordicsemi.com/thread/303476?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 11:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a6e889e-6d55-41d5-82fd-075a6e8de771</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Jonnavittula sridhar"]I have gone through formula. I am using default config in sample example. 10 bit resolution, gain 1/6, internal reference, single ended.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Thank you for clarifying.&lt;/p&gt;
[quote user="Jonnavittula sridhar"]In the formula if I keep resolution as 10 then I can see some related values. 10 is value id and 1 is value. So we have to use value ID. Is that right?[/quote]
&lt;p&gt;&amp;nbsp;You can configure the resolution (and all other configs) using the provided type for this, in this case&amp;nbsp;nrf_saadc_resolution_t. If you want to change the resolution to 12 bit, for example, you would set it to NRF_SAADC_RESOLUTION_12BIT.&lt;br /&gt;&lt;br /&gt;You should not manipulate the registers simultaneously as you are using the driver, since this may place the driver in an invalid state and break it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sample observations decoding</title><link>https://devzone.nordicsemi.com/thread/303379?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 08:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b04a03e-743a-4213-8539-0adc298c19b3</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;I have gone through formula. I am using default config in sample example. 10 bit resolution, gain 1/6, internal reference, single ended.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the formula if I keep resolution as 10 then I can see some related values. 10 is value id and 1 is value. So we have to use value ID. Is that right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC sample observations decoding</title><link>https://devzone.nordicsemi.com/thread/303177?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 13:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f14ae9-4011-4e8b-9bb3-227cb153fda8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]When I connect pin 2 with VDD on header P1, output is range of 830-840.[/quote]
&lt;p&gt;What is your SAADC configuration, and what is the range of the voltage you are trying to measure?&amp;nbsp;&lt;br /&gt;I suppose if you are using 10 bit resolution with an input range of 0&amp;nbsp; - 3.6V, and you are measuring a voltage of 3 V, like VDD, you should expect to see SAADC output values around ~850.&lt;/p&gt;
[quote user=""]What is the range and how can I decode it?[/quote]
&lt;p&gt;You can calculate your input range by using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fsaadc.html&amp;amp;anchor=unique_864617738"&gt;the formula in the SAADC documentation&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>