<?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>nRF52 SAADC re-initialize</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16906/nrf52-saadc-re-initialize</link><description>Hi guys!
Got a problem with re-initialising my SAADC to read my current battery voltage. I&amp;#39;m using SDK11 and don&amp;#39;t want to migrate to v12, so I wanted to do a workaround for the power consumption bug when using SAADC and going to sleep. 
 I&amp;#39;m initialising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Oct 2016 20:08:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16906/nrf52-saadc-re-initialize" /><item><title>RE: nRF52 SAADC re-initialize</title><link>https://devzone.nordicsemi.com/thread/64800?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 20:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52343e26-8c75-478c-9f53-316483b6d10c</guid><dc:creator>DK999</dc:creator><description>&lt;p&gt;Silly me, I&amp;#39;m using 8x oversampling and don&amp;#39;t start the measurement 8 times, so the Interrupt won&amp;#39;t occur unless I start the measurement 8 times too. Thanks for the hint :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SAADC re-initialize</title><link>https://devzone.nordicsemi.com/thread/64799?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 19:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b5d20db-232c-4484-b309-2204d4a92488</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;These are mine&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* SAADC */
#define SAADC_ENABLED 1

#if (SAADC_ENABLED == 1)
#define SAADC_CONFIG_RESOLUTION      NRF_SAADC_RESOLUTION_10BIT
#define SAADC_CONFIG_OVERSAMPLE      NRF_SAADC_OVERSAMPLE_DISABLED
#define SAADC_CONFIG_IRQ_PRIORITY    APP_IRQ_PRIORITY_LOW
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SAADC re-initialize</title><link>https://devzone.nordicsemi.com/thread/64798?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 19:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1077195-1f5f-4ba3-a3db-820d2fe50d3d</guid><dc:creator>DK999</dc:creator><description>&lt;p&gt;Compiled with DEBUG, but the Error-Handler puts nothing into my RTT Viewer.
I&amp;#39;ve commented every non related functioncall, just the BLE and ADC Stuff is called in my project right now with the same behaviour.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve included some Error-Messages by myself, it shows that it crashes when I execute the Channel-Init &lt;code&gt;nrf_drv_saadc_channel_init(0, &amp;amp;channel_config);&lt;/code&gt; 2nd time.
I&amp;#39;ve put Segger-Output into the callback itself, but I don&amp;#39;t get any messages from the callback whatsoever. Seems like the callback is never called at all...&lt;/p&gt;
&lt;p&gt;EDIT: Without deactivating I&amp;#39;m getting a Callback but just every 8th or 9th measurement.
My SAADC settings are as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SAADC_ENABLED 1

#if (SAADC_ENABLED == 1)
#define SAADC_CONFIG_RESOLUTION      NRF_SAADC_RESOLUTION_8BIT		// NORMALLY 10BIT
#define SAADC_CONFIG_OVERSAMPLE      NRF_SAADC_OVERSAMPLE_8X //NRF_SAADC_OVERSAMPLE_DISABLED
#define SAADC_CONFIG_IRQ_PRIORITY    APP_IRQ_PRIORITY_LOW
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SAADC re-initialize</title><link>https://devzone.nordicsemi.com/thread/64797?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 17:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdd13555-4cdc-4c78-b7fc-ce0421750ecf</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;The way you do it is the way I do it and it works fine for me.  What are you getting back in your error codes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>