<?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 application Using ADC 2 channles 12Khz 12Bit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23731/nrf52-application-using-adc-2-channles-12khz-12bit</link><description>Hi , 
 Please advise, what the Low Power option I have if I want to sample Two channels of analog input at the same time. The sample rate in every channel is 12K, 12Bit. And to fills 512 samples word for every channel. 
 The application is DSP light</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2017 15:32:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23731/nrf52-application-using-adc-2-channles-12khz-12bit" /><item><title>RE: nrf52 application Using ADC 2 channles 12Khz 12Bit</title><link>https://devzone.nordicsemi.com/thread/93352?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 15:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:131a6d50-cc50-484f-bf8d-c73202d1f8a0</guid><dc:creator>zvikag</dc:creator><description>&lt;p&gt;Thanks for your answer.
After I receive my EVB next week, I try to make few test and start with yours advice.&lt;/p&gt;
&lt;p&gt;Zvika.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 application Using ADC 2 channles 12Khz 12Bit</title><link>https://devzone.nordicsemi.com/thread/93353?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 12:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f27b85d-22cf-43ef-8b0d-389cb536ab94</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi ZVIKA,&lt;/p&gt;
&lt;p&gt;You can find an example of Low-power SAADC in &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;this GitHub repository&lt;/a&gt;. Unfortunately, with two channels and a sample frequency og 12 kHz, this example won&amp;#39;t help much.&lt;/p&gt;
&lt;p&gt;This example use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=2_1_0_24#concept_rvn_vkj_sr"&gt;RTC&lt;/a&gt; instead of a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/timer.html?cp=2_1_0_23#concept_xbd_hqp_sr"&gt;TIMER&lt;/a&gt; to trigger samples, to keep low power. The RTC runs at 32.768 kHz, meaning that the closest you can come to 12 kHz sampling frequency is 32768/3 = 10922.67 Hz. The example also disables the SAADC peripheral between samples, to eliminate the EasyDMA current of ~1.5 mA and put the chip in system on sleep mode. With an aquisition time of 10 us pr. channel, &lt;a href="https://devzone.nordicsemi.com/question/91596/interrupt-latency-when-running-wfiwfe/"&gt;wakeup latency&lt;/a&gt;, and overhead, there won&amp;#39;t be much time to save power. To achieve the timing you desire, you also need to enable &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17_2_0#unique_639533938"&gt;constant latency mode&lt;/a&gt;. This will keep &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18_0#concept_rp5_fgp_bs"&gt;HFCLK&lt;/a&gt; enabled at all times, increasing the current consumption even more.&lt;/p&gt;
&lt;p&gt;To get close to 12 kHz sampling rate, you can use a TIMER to trigger the samples. With the timer running at a frequency of 16 MHz, you can set a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/timer.html?cp=2_1_0_23_1#concept_yry_3pp_sr"&gt;compare value&lt;/a&gt; of 1333, giving you a sample frequency of 12003 Hz. Timers also require the HFCLK to be running.&lt;/p&gt;
&lt;p&gt;The SAADC peripheral will always use EasyDMA for sampling, and you should use continuous mode to achieve correct timing. Note that if you will be using softdevice to advertise the result over BLE, this will have highest priority, for timing-critical tasks. If continuous mode is enabled by sampling through &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ppi.html?cp=2_1_0_21#concept_sxf_21l_1s"&gt;PPI&lt;/a&gt;, the sampling will not be affected by this, but note that any processing might be delayed.&lt;/p&gt;
&lt;p&gt;I did some quick testing, with various setups, both with RTC and TIMER, and the average current consumption of samling only veryed between 2-4 mA.&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/nrf_dev_saadc_example.html?cp=4_0_0_4_5_28"&gt;SAADC example&lt;/a&gt; in our SDK should be a great starting point for the SAADC peripheral and TIMER, but don&amp;#39;t expect to get very low power.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>