<?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>ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21437/adc-sampling-with-softdevice</link><description>Hi Everyone, 
 I am working on a hobby project with nRF51822 which needs me sample upto 4 signals reliably at 500Hz each at 10bit resolution. I have read through few posts in the forum([ 1 ],[ 2 ],[ 3 ]) and found that with softdevice installed ADC sampling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2017 07:45:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21437/adc-sampling-with-softdevice" /><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84092?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 07:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0e5b1ed-d274-4a35-b491-5715c388f796</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;@xonano, you can take a look at the proximity example in SDK 13. This example use the SAADC to measure the battery voltage. You should be able to extend it to more channels and higher sample rate. I will also be porting the &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples"&gt;examples on GitHub&lt;/a&gt; to SDK 13 as soon as I got time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84091?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 05:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:478e860a-271c-41eb-94ba-c5bd2a5d8835</guid><dc:creator>XOnano Smartfoam</dc:creator><description>&lt;p&gt;@Jorgen, is there any example code that could be used with the nRF52840 with softdevice 140? I am interested in testing the sampling rate on up to 8 ADC channels on the development kit. Any help would be much appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84090?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 13:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b307839-bf3e-433e-ab48-7d41f48a9a1d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There is no way to calculate this exact for your application, as it will depend on many factors. You should get at least 2 kHz with one channel. If using PPI and a timer to trigger the ADC sampling, you should be able to get beyond your requirements. There are some examples available in this &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples"&gt;GitHub repo&lt;/a&gt;. You will have to try it out to see what the maximum sampling rate for your application is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84093?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 14:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b00813-a4f0-4e7b-b184-a65d803345b1</guid><dc:creator>dev_000</dc:creator><description>&lt;p&gt;Thanks for that file. I am using S110 V8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84094?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 13:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a37842a-aeec-4ba5-97d8-7ac1b9df1144</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you using S110 or S130 softdevice, and which version are you using?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The sampling should not be limited on the nRF52840, but you will have to handle the samples in some way when your buffers are filled.&lt;/li&gt;
&lt;li&gt;I think you are looking for the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/pdflinks/ref_manual.html?cp=3_2"&gt;nRF51 series Reference manual&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84089?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 17:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba89f1ea-8c13-41c1-a88b-9c65e163ca63</guid><dc:creator>dev_000</dc:creator><description>&lt;p&gt;@Jorgen
Thanks.
I haven&amp;#39;t tested it out yet. Still in design phase. Hence wanted to know which platform to use before jumping in.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Can I know how 2-8KHz is calculated? I saw this &lt;a href="https://devzone.nordicsemi.com/blogs/481/using-the-adc-with-the-s110-softdevice/"&gt;link&lt;/a&gt; and Pg 41 of S110 SD Specification V2.0 but I still unclear how those actual numbers came about.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I am assuming the above sampling limitation wont there for nRF52480 because of Easy DMA transfer?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is there a better product datasheet for nRF51822 than &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf"&gt;this&lt;/a&gt;? I am not seeing enough details on it as compared to lets say, objective product specification sheet v0.5 of nRF52480, which explains the subystems in great detail. Am I looking at the wrong files of NRF51822?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC Sampling with Softdevice</title><link>https://devzone.nordicsemi.com/thread/84088?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 12:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5863172e-024e-450b-a0a4-968c175f71e3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tested this with your own application? As Stefan mentioned in the &lt;a href="https://devzone.nordicsemi.com/question/48623/utilizing-multiple-adcs-on-one-channel-for-high-sample-rate/"&gt;3rd post you linked&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If you use softdevice and have 3rd
revision nRF51, you can obtain
sampling frequency approximately 2-8
kHz, depending on how much data you
send over the air.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Your data requirements does not look that high, that you should not be able to maintain the sample rate you desire. &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/tree/master/ble_app_uart_adc_scan_mode"&gt;Here&lt;/a&gt; is an example that you can try if you want a ready-made example.&lt;/p&gt;
&lt;p&gt;The nRF52840 PDK (or nRF52 DK) would be a better choice, as it has a faster SAADC peripheral and support for EasyDMA, allowing you to continue sampling directly to RAM, while BLE activity is going on.&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>