<?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 has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29363/saadc-has-strange-periodic-noise-after-power-off-on</link><description>Hi，guys. I have a problem when dealing with NRF52&amp;#39;s SAADC using nRF5_SDK_13.0.0_04a0bfd. The problem is after downloading and run the program using JLink, everything works fine, the values sampled by SAADC have little jitters. But if we shutdown NRF52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jan 2018 06:22:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29363/saadc-has-strange-periodic-noise-after-power-off-on" /><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116807?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 06:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00e4a61-f77a-4cdd-886d-fee694693bcd</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;I have enabled it in the IAR project&amp;#39;s Preprocessor section. I may add some code to test whether the chip is still in debug mode or not when reset. Thank you for your patience and kindness.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116803?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 15:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a78e41e-8095-49ca-9962-c9377e40c811</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you enabled pinreset using the symbol &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/preview_dev_kit/boot_reset_but.html?cp=2_1_5_4_0"&gt;&lt;code&gt;CONFIG_GPIO_AS_PINRESET&lt;/code&gt;&lt;/a&gt;? You might still be in debug mode until power cycling the board. Unfortunately, we do not have any more detailed information on when the DC/DC will be active, it will choose the most suited mode depending on the current draw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116806?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 02:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ab9604-d814-4668-b1d9-7a37edce054b</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;But when we reset the board using nRESET pin without power cycling, we will not have this issue. Does that mean in such situation, even though we try to enable DC/DC, the chip may still use LDO as it is more efficient? Why reset differs from power cycling in such circumstance. In my situation, the chip uses LDO when reset without power cycling since the sadc has little noise, but uses DC/DC when power cycling since there&amp;#39;s much noise. In both cases, I enabled the DC/DC in my code. Any detailed information on how the chip decide which regulator to use in these two cases ,depending on current consumption?  I hope u can stand my verbose question. Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116811?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 12:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:862c8857-dbc2-4315-84cf-340375607043</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The reason you are not seeing this issue before power cycling the chip is that after programming the chip will be in debug mode. The DC/DC operates in two modes, normal and refresh mode. In debug mode the chip will draw much current, and then the most efficient mode will be automatically selected. The running mode will not be DC/DC refresh, and maybe not even DC/DC normal mode, as LDO normal mode might be best suited since it provide the most current. The DC/DC regulator is a switching regulator, which might introduce much noise. If you want to use DC/DC mode to save current during normal run, I would recommend that you disable DC/DC mode before sampling the SAADC, and enable it again when sampling is completed. This should reduce the noise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116808?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 11:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7e7ed88-8772-4ff8-a5f7-d73ab9d76642</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;Hi, we use the DC-DC&amp;#39;s 1.3V output as OP&amp;#39;s reference voltage. But if that&amp;#39;s the problem, why It is normal without power off/on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116805?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 10:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05998742-6de3-4995-b4d3-1ed8b6753106</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;Hi, sorry for the late reply. I have figured out the problem by comparing the two projects. The difference is that I did not enable DC-DC in SDK12.0, while enabling it in SDK13.0. That is if I add the
code &lt;code&gt;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;/code&gt;after&lt;code&gt;ble_stack_init();&lt;/code&gt;,That strange thing will happen, the saadc will have large jitters when power off/on. When I remove the &lt;code&gt;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;/code&gt; ,everything works fine. But I still don&amp;#39;t know why. Any comments on that? Thanks for your kindness!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116804?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 16:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d27ec8-6a46-42af-8d73-eb5ee3eaf95e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you test with the DK, to see if this is a board specific issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116810?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 03:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad9fa9e-a3c8-47aa-94ce-457874d43a45</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;No, JLink is disconnect. But the fact is that, reset NRF52 using JLink and then remove JLink connections.  there will be no jitters. The jitters only happen when the board&amp;#39;s power is removed and then power on again. Oh, man. that strange thing really makes me having no idea. Thanks for your reply, buddy!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116802?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 03:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a641a925-7f71-464e-9c60-c851f09693cd</guid><dc:creator>kxJiang</dc:creator><description>&lt;p&gt;Hi, sorry for the lack of information. On reset condition, we get the second result. In SDK13, we first did the sampling in gpio interrupt handler but then changed that in FreeRTOS&amp;#39;s periodic timer&amp;#39;s handler in order to find out the problem. Either circumstances had the same problem. Here is some code snippets:&lt;/p&gt;
&lt;p&gt;first method&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// this gpio interrupt is triggered every 2ms
void gpio_int_handler(){
    ... 
    nrf_drv_saadc_sample_convert(NRF_SAADC_INPUT_AIN4, &amp;amp;raw_data);
    ...
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;second method&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void timeout_handler(TimerHandle_t xTimer) {
    ... 
    nrf_drv_saadc_sample_convert(NRF_SAADC_INPUT_AIN4, &amp;amp;raw_data);
    ...
}

period_timer = xTimerCreate(&amp;quot;perio&amp;quot;, 2, pdTRUE, NULL, timeout_handler);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;we do not use PPI in SDK13. All of the sampled values stored in a frame buffer are transmitted to phone through BLE. This is done on our custom board. I have the DK, but haven&amp;#39;t tested it on it.
Thanks for your response！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116809?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 22:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:001db2b2-6ec8-4f10-983a-2d835e956d84</guid><dc:creator>koniho</dc:creator><description>&lt;p&gt;Do you have the JLink connected when the signal is jittering? Having the JLink connected could cause periodic halts that may explain the jitter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC has strange periodic noise after power off/on</title><link>https://devzone.nordicsemi.com/thread/116801?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 16:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:434d2642-87e0-429a-b968-52ac9270341d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you only see the first case after programming, or could you get this case also after reset? Are you triggering sampling using PPI in SDK 13 as well, or some other method? Is this on a custom board or on the nRF52-DK? Could you upload some code that replicates this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>