<?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>Regarding the Value Obtained from the ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113806/regarding-the-value-obtained-from-the-adc</link><description>conducted an ADC experiment using the nRF5 DK (PCA10056). 
 The power supply for the nRF5 was provided via USB. 
 Based on the SAADC sample, I coded the following: 
 
 
 
 
 While running, I checked the value of &amp;quot;channel_config,&amp;quot; and it was as follows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2024 00:49:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113806/regarding-the-value-obtained-from-the-adc" /><item><title>RE: Regarding the Value Obtained from the ADC</title><link>https://devzone.nordicsemi.com/thread/498928?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 00:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba48852-df8f-482f-99bf-e489e6582b0d</guid><dc:creator>kkuma256</dc:creator><description>&lt;p&gt;The direct cause has been identified.&lt;/p&gt;
&lt;p&gt;Previously, the SAADC initialization was done with:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err_code = nrf_drv_saadc_init(null, saadc_callback);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, when I explicitly initialized it like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_saadc_config_t saadc_config = NRF_DRV_SAADC_DEFAULT_CONFIG;
saadc_config.resolution = NRF_SAADC_RESOLUTION_12BIT;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was able to get the expected values.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;However, another issue has arisen, so I will ask about it in a separate issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding the Value Obtained from the ADC</title><link>https://devzone.nordicsemi.com/thread/498521?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 21:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f32dec51-575d-4eee-9b05-061aee4f3d72</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi kkuma256,&lt;/p&gt;
&lt;p&gt;I reviewed your configuration carefully and see no issue.&amp;nbsp;All of your configurations are correct, and your expected value is also correct.&lt;/p&gt;
&lt;p&gt;The only thing I can see is that if the resolution is 10 bit, then the expected value would be 853. If this is the case, your result of 860 would make sense.&lt;/p&gt;
&lt;p&gt;The value in&amp;nbsp;NRFX_SAADC_CONFIG_RESOLUTION only change the default resolution when using&amp;nbsp;NRFX_SAADC_DEFAULT_CONFIG. &lt;br /&gt;Could you be&amp;nbsp;configuring your own&amp;nbsp;nrfx_saadc_config_t, of the resolution is set again somewhere?&lt;/p&gt;
&lt;p&gt;Could you please look into your&amp;nbsp;nrfx_saadc_config_t() and check if the resolution is correct?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding the Value Obtained from the ADC</title><link>https://devzone.nordicsemi.com/thread/497882?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 18:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb7674e-a063-4125-8363-19e6e8b0d871</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;kkuma256,&lt;/p&gt;
&lt;p&gt;I just want to let you know that I have received your question and will proceed with helping you soon.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>