<?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 VDD Measurement with nRF52833</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85141/saadc-vdd-measurement-with-nrf52833</link><description>Hello, I am trying to measure the input voltage on an nRF52833 and it is not behaving as expected. 
 The following code is taken from here and works as expected on any nRF52832-based device I have tested, returning the correct board input voltage. When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2022 18:44:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85141/saadc-vdd-measurement-with-nrf52833" /><item><title>RE: SAADC VDD Measurement with nRF52833</title><link>https://devzone.nordicsemi.com/thread/356142?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 18:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e87ef3-3b9c-4e31-9b47-033ef5c0cfa1</guid><dc:creator>Dominic</dc:creator><description>&lt;p&gt;Thanks Jorgen, I tested this out before the network stack was initialized and the peripheral works as expected. The ticket can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC VDD Measurement with nRF52833</title><link>https://devzone.nordicsemi.com/thread/354967?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 09:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a158e989-8863-4027-8630-67aeb028894a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested the above code in a&amp;nbsp;standalone application on a nRF52833 DK, and it seems to be working as expected.&lt;/p&gt;
&lt;p&gt;Did you test it on your end, without initializing the &amp;quot;&lt;span&gt;network stack&amp;quot;? If it works without the stack, you should contact the developers of the stack to get help regarding how they use the SAADC peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You may also test the workaround from &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52833_Rev2/ERR/nRF52833/Rev2/latest/anomaly_833_212.html"&gt;Errata 212&lt;/a&gt;, which will reset the whole SAADC peripheral, but I&amp;#39;m not sure how well the network stack will react if you mess with its configuration.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC VDD Measurement with nRF52833</title><link>https://devzone.nordicsemi.com/thread/354914?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 04:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d01e3108-f30b-49fc-983b-4bdecabaa1e9</guid><dc:creator>Dominic</dc:creator><description>&lt;p&gt;I think the issue is that on the nRF52833, the network stack is using a different SAADC channel to perform voltage measurement (Wirepas closed-source stack).&lt;/p&gt;
&lt;p&gt;When I use SAADC channel 1 instead of channel 0 on the nRF52833, the code works as expected.&lt;/p&gt;
&lt;p&gt;To test the theory I un-set the PSELP register on all channels to disable them before calling the above function.&lt;/p&gt;
&lt;p&gt;Per the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fsaadc.html"&gt;documentation&lt;/a&gt;:&amp;nbsp;&lt;em&gt;An analog input is selected as a positive converter input if CH[n].PSELP is set, setting CH[n].PSELP also enables the particular channel.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for(uint8_t i=0; i&amp;lt;8; i++)
{
    NRF_SAADC-&amp;gt;CH[i].PSELP = 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But still, it only works on channel 1.&amp;nbsp;Is there something else that needs to be done to load the register configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>