<?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 @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109518/adc-4khz-with-ble-running-in-parallel</link><description>Hello, 
 I have project where I need to read an analog input at 4kHz while BLE is working (either in advertisement or while being connected to a smartphone). 
 Is there any restriction or any issue with running ADC at 4kHz and having the BLE stack running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Mar 2024 10:15:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109518/adc-4khz-with-ble-running-in-parallel" /><item><title>RE: ADC @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/thread/475349?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 10:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7048b72-3d42-4f6e-b751-8b45200dfbe4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The new SAADC driver v2 has a fix for the buffer swap issue, if you use nrfx driver directly then it will use this instead of the legacy driver. I&amp;#39;m not quite sure whether the Zephyr API use the legacy or the v2 driver but I think it use the latter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyhow, at 4 kHz, I don&amp;#39;t think it will be a problem at all.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/thread/475333?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:239052c9-27bc-4c08-96c9-24cc45a69db5</guid><dc:creator>Nathan O.</dc:creator><description>&lt;p&gt;I am not sure which one I will be using but I guess I&amp;#39;ll try to use the Zephyr ADC API. What would be the situation in both case ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/thread/475329?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d1bfc1-0da4-4b72-987c-cac73423c0d5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see, are you using the nrfx SAADC driver directly or are you using the Zephyr ADC API?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/thread/475249?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 22:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c8ff62-5518-4551-a2e6-f57107efd779</guid><dc:creator>Nathan O.</dc:creator><description>&lt;p&gt;Thanks. &lt;/p&gt;
&lt;p&gt;No it is a new project, I will be using nrf Connect SDK. Not sure how those apply then with NCS.&lt;/p&gt;
&lt;p&gt;I really need the order of the adc samples to be right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC @ 4kHz with BLE running in parallel</title><link>https://devzone.nordicsemi.com/thread/475104?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 12:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac8bcb8d-063b-46d7-8875-366277f2cb25</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using nRF5SDK?&lt;/p&gt;
&lt;p&gt;I think at 4 kHz it should be fine but &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20291/offset-in-saadc-samples-with-easy-dma-and-ble/79053#79053"&gt;this&lt;/a&gt;&amp;nbsp;(nRF5SDK)&amp;nbsp;can be a concern when using Bluetooth and ADC together. In that the buffer samples might change order if the processing and setting up new buffers are interrupted by the Softdevice. The ADC on the nRF5840 use EasyDMA so the data will not be lost if a BLE event interrupts the processing of the data. If you&amp;#39;re using nRF5SDK then you can find a sample &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;here&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>