<?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>Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17485/migrating-saadc-low-power-from-sdkv11-to-v12</link><description>I downloaded the nrf52 SAADC Low power project from the GitHub
 github.com/.../saadc_low_power 
I&amp;#39;m trying to migrate it over to version 12 of the SDK and I think I&amp;#39;m having problems in the sdk_config.h file. 
 The version 11 changed some RTC values</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2017 05:39:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17485/migrating-saadc-low-power-from-sdkv11-to-v12" /><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67202?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 05:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee1f3cc-5d0d-4eb6-b7ae-e8707570a4ec</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67201?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 19:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a221c6-8001-4b41-94a5-08cc0be61605</guid><dc:creator>labi</dc:creator><description>&lt;p&gt;Thanks Bjorn!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67204?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 06:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89a2938b-4469-463c-9236-d835d41d8af4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Labi, if the low power mode bit is set in the config struct, then it will result in the SAADC peripheral initializing when sampling and uninitializing when sampling is complete. This will enable EasyDMA only during sampling, but leave it disabled when not sampling. The EasyDMA consumes around 1.5mA when enabled. This feature was based on &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;this&lt;/a&gt; Github example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67203?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 18:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a278c40-17d5-421d-a0cc-acac36d73d8c</guid><dc:creator>labi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there any documentation on the low_power_mode bit in nrf_drv_saadc_config_t somewhere or some code example showing what it does and how to use it? That would be greatly helpful!&lt;/p&gt;
&lt;p&gt;Thank You,
Labi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67200?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2016 12:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1841c8b0-3fb3-4096-a6b3-d7f443e41489</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;A low power mode was added to the SAADC driver in SDK 12.x. You enable it by setting low_power_mode to 1 in the  &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/structnrf__drv__saadc__config__t.html?resultof=%22%6c%6f%77%5f%70%6f%77%65%72%5f%6d%6f%64%65%22%20"&gt;nrf_drv_saadc_config_t&lt;/a&gt; struct.&lt;/p&gt;
&lt;p&gt;If you still want to port the GitHub example, then as you have coorectly pointed out, you have to edit the sdk_config.h file. I recommend that you start with the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8311.sdk_5F00_config.h"&gt;sdk_config.h&lt;/a&gt; file from the ble_app_template, which includes all the peripheral settings( the examples only include the peripherals they use).&lt;/p&gt;
&lt;p&gt;If you plan on using the low power github example in an application that uses the S132 SoftDevice, then you should be aware that the SoftDevice uses the RTC0, and should therefore be enabled. You can see which Hardware peripherals that are used by the SD when it is enabled on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/sd_resource_reqs.html?cp=2_3_0_0_6"&gt;this&lt;/a&gt; Infocenter page.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating SAADC Low Power from SDKv11 to v12</title><link>https://devzone.nordicsemi.com/thread/67199?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2016 02:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd356bf-69a3-4053-b91f-8be39d682f40</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;I changed the sdk_config file to &amp;quot;disable&amp;quot; the RTC0 and RTC1...this seems very much a big hack to me. It should be easy to configure this file!&lt;br /&gt;
I&amp;#39;m using IAR Workbench so I don&amp;#39;t have access to the built-in Kiel editor.&lt;/p&gt;
&lt;p&gt;c #ifndef RTC1 ENABLED&lt;/p&gt;
&lt;p&gt;c #define RTC1 ENABLED 0&lt;/p&gt;
&lt;p&gt;c #ifndef RTC_DEFAULT_CONFIG_FREQUENCY&lt;/p&gt;
&lt;p&gt;c #define RTC_DEFAULT_CONFIG_FREQUENCY 32 //32768&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>