<?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 on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49939/saadc-on-nrf52840-rev2-chips-does-sample-internal-vdd-channel</link><description>Working with Fanstel BT840 module we have discovered that ADC channel VDD reads as zero or produces small mV level result. nRF52840 chip revision on these modules is QIAA-Dx0. 
 Please note that same ADC code perfectly samples VDD on Laird BL654 modules</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2019 12:15:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49939/saadc-on-nrf52840-rev2-chips-does-sample-internal-vdd-channel" /><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/202607?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 12:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e6792ea-1975-4f37-aee1-d05ee4cde4a2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, I do not have any AADA chips to test on. Since the SDK example works, it sounds like this must be related to the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are able to reproduce this issue on rev 2 production chip, with SDK example, I can report it internally and do some further investigation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200613?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 21:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:680e790c-7758-41fd-a2ec-f45dc661f406</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;Forgot to mention:&lt;br /&gt;DMA buffer is at address 0x20000000, which is very beginning of RAM&lt;br /&gt;Conversion starting code below:&lt;/p&gt;
&lt;p&gt;NRF_SAADC-&amp;gt;TASKS_START = 1;&lt;br /&gt;while (NRF_SAADC-&amp;gt;EVENTS_STARTED == 0);&lt;br /&gt;NRF_SAADC-&amp;gt;TASKS_SAMPLE = 1;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200609?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 19:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27dc947c-a5c4-4f32-8b4e-ebcea710da71</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;It is single conversion where DMA is set up for single transfer to global buffer.&lt;br /&gt;Conversion is started triggering&amp;nbsp;NRF_SAADC-&amp;gt;TASKS_START = 1; and interrupt is enabled for conversion end event: NRF_SAADC-&amp;gt;INTENSET = (1 &amp;lt;&amp;lt; 1);&lt;br /&gt;Note that, external AIN input channels conversions are working without any issues (ADC configuration is same but input channel. DMA buffer is same too).&lt;/p&gt;
&lt;p&gt;Blocking mode conversion on VDD channel does not produce correct result too.&lt;br /&gt;&lt;br /&gt;Also, I would like to remind that we have no issues with&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;AAD0&lt;/span&gt; revision chips running very same code.&lt;/p&gt;
&lt;p&gt;Anyway, I am keeping digging and will post results here if any solution is found&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200591?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 15:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2ccf9b7-989f-4f98-9594-d199ee98cfdd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Thank you for confirming that. I would recommend that you check how you set the buffers, are they global, static, etc? How do you sample the SAADC? Are you using interrupts or are you blocking while waiting for the sample? You sample a single channel and a single sample each interval?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200349?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 18:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72b9f3fe-9155-4434-b611-9d32ce870a8c</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;Sorry, I did not mention it:&lt;/p&gt;
&lt;p&gt;Yes, SDK example works with input channel changed to VDD on both boards.&lt;br /&gt;Application is huge running proprietary 802.15.4 PHY compliant mesh.&lt;/p&gt;
&lt;p&gt;However, SADC configuration is very same as in SDK example with input changed to VDD.&lt;br /&gt;Application samples VDD at ~2 seconds rate.&lt;br /&gt;Also, I have tested this example with the system entering different power modes. No issues had been observed.&lt;/p&gt;
&lt;p&gt;Now it is clear that standalone SADC application (SDK example changed to VDD) works on both AADA and AAD0 chip revisions.&lt;/p&gt;
&lt;p&gt;The problem seems to be complex then and may somehow relate to the other peripherals activity.&lt;br /&gt;That can be great help for us if we may give us recommendations where to look for the possible cause.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;BTW: these two chip revisions are not same:&amp;nbsp;&lt;/span&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;AADA&lt;/span&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; has several earlier issues resolved. But, also has some new issues introduced.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200303?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 13:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9caa670a-a2d5-4779-8280-9fbc7ff03f50</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did the SDK example work with input changed to VDD on both boards? Can you provide the full application that fails on your board?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;0x41414441 (AADA) is an Engineering D chip according to the &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_revision_overview.html?cp=3_0_3_0"&gt;compatibility matrix&lt;/a&gt;. The one I tested on is 0x41414430 (AAD0), which is a Rev 2 chip.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I do not have any AADA chip available to test with, but I would expect these chips to be the same.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/200158?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 20:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aea3d54-519c-4049-9a56-b21b87ccfe2e</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;Yes, SDK example works on both chip revisions we have.&lt;/p&gt;
&lt;p&gt;Let me clarify about chip revisions I was referring:&lt;/p&gt;
&lt;p&gt;INFO.VARIANT FICR register read as 0x41414441 for part where we have issue with VDD channel sampling.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;INFO.VARIANT FICR register read as 0x41414330 for part where we have no issue with VDD channel sampling.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/199868?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 16:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a991b56-607c-4e09-a4ce-ec9e0863e596</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Sorry, you are right about the gain/acq. time, I confused hex with binary placement. Still, I tested with Gain=1/6. Did not test with 40 us, only default 10 us.&lt;/p&gt;
&lt;p&gt;However, if you check the link about DK revision again, you will see that v1.1.0 is listed as rev 2 IC. The chip is marked QIAAD0. I&amp;#39;m not sure what you mean by rev D, did you mean engineering D?&lt;/p&gt;
&lt;p&gt;Did you test the SDK example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/199866?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 16:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0afc0aee-e1c1-471a-9276-3ba19b402ed0</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;I am sorry, but&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;CONFIG set to&amp;nbsp;&lt;/span&gt;&lt;span style="background-color:transparent;color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;0x00050000&lt;/span&gt; sets Gain to 1/6 and 40 uSec&amp;nbsp;Acquisition time,&lt;br /&gt;(5 &amp;lt;&amp;lt; 16) =&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/span&gt;&lt;span style="background-color:transparent;color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;0x00050000&lt;/span&gt;&lt;br /&gt;Besides, according to information you gave&amp;nbsp;&lt;a style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;color:#5bd2e2;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:underline;text-indent:0px;text-transform:none;white-space:normal;" href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_comp_with_dev_hw.html?cp=3_0_3_3"&gt;nRF52840 DK rev 1.1.0&lt;/a&gt; is still revC part.&lt;br /&gt;All our revC modules are correctly sampling VDD channe with either gain configuration.&lt;/p&gt;
&lt;p&gt;Our issue is with revD.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Georgi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/199697?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 09:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d848a8fd-52af-413f-a946-268abf0fa983</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;CONFIG set to&amp;nbsp;&lt;span&gt;0x00050000 should give a GAIN of 1, not 1/6, see the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/saadc.html?cp=3_0_0_5_22_8_19#register.CH-0-7.CONFIG"&gt;PS&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tested this using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_dev_saadc_example.html?cp=5_1_4_6_33"&gt;SAADC example in SDK 15.3.0&lt;/a&gt;, with only the channel changed to&amp;nbsp;NRF_SAADC_INPUT_VDD. I get expected result when running this on the &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_comp_with_dev_hw.html?cp=3_0_3_3"&gt;nRF52840 DK rev 1.1.0&lt;/a&gt;. I also tested with GAIN set to 1 (channel_config.gain = NRF_SAADC_GAIN1;). This gives maximum result (1023), which is expected due to the VDD being outside the input range of the SAADC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you test out the example from the SDK on you module?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/199318?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 13:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:370eb243-13cf-44ae-b3b3-209abd3fcced</guid><dc:creator>GeorgiD</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, chip is powered &lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;through &lt;/span&gt;3.3 VDD DCDC enabled.&lt;br /&gt;I have two&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Fanstel BT840X&lt;/span&gt; &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;EV-BT840X_V4&lt;/span&gt; evaluation modules both having same issue.&lt;br /&gt;Internal VDDHDIV5 channel does not sample too.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Georgi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on nRF52840 rev2 chips does sample internal VDD channel</title><link>https://devzone.nordicsemi.com/thread/199279?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 12:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ed3fde6-c1a8-49ac-9f6b-7df1fad6315f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you power the chip through VDD, and what voltage is the chip powered with?&lt;/p&gt;
&lt;p&gt;Have you tested on other rev. 2 chips than this module?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>