<?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>SAADC Sampling Frequency at 200kHz</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76700/saadc-sampling-frequency-at-200khz</link><description>Hi, Aim :- To Configure SAADC Sampling Rate at 200Khz. SAADC Configuration :- 1. The resolution, oversample, interrupt priority and low power mode are set as 12 bit, OFF, 6 and ON respectively. 2. We have enabled 5 channels in scan mode with acquisition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Aug 2021 15:34:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76700/saadc-sampling-frequency-at-200khz" /><item><title>RE: SAADC Sampling Frequency at 200kHz</title><link>https://devzone.nordicsemi.com/thread/327064?ContentTypeID=1</link><pubDate>Sat, 28 Aug 2021 15:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af3d34b0-e522-4d74-9f34-fc5639c46d56</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;Thank you for timely response, we are able to sample at 200Khz after modifying these parameters.&lt;/p&gt;
[quote userid="89683" url="~/f/nordic-q-a/76700/saadc-sampling-frequency-at-200khz"]We have enabled 5 channels in scan mode with acquisition time 3us and pin_p select to respective pins, rest all the channel config parameters are set to default.[/quote]
&lt;p&gt;Enabling only a single channel on which we wanted a sampling rate of 200kHz.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="89683" url="~/f/nordic-q-a/76700/saadc-sampling-frequency-at-200khz"]1. The resolution, oversample, interrupt priority and low power mode are set as 12 bit, OFF, 6 and ON respectively.[/quote]
&lt;p&gt;Disabling low power mode for that particular channel on which we wanted a sampling rate of 200KHz&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="89683" url="~/f/nordic-q-a/76700/saadc-sampling-frequency-at-200khz"]PPI is used for sampling with the buffer value set to 5.[/quote]
&lt;p&gt;Modifying the buffer value from 5 to 200.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Sakib&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency at 200kHz</title><link>https://devzone.nordicsemi.com/thread/317002?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 12:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36c7254a-24c1-4b9a-b4a9-9d38318d528f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Problem :- when we go beyond 30khz the sampling doesn&amp;#39;t happen.[/quote][quote user=""]We have enabled 5 channels in scan mode with acquisition time 3us[/quote]
&lt;p&gt;The total conversion time will increase as you increase the number of channels to sample according to the formula from &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fsaadc.html"&gt;the SAADC peripheral documentation&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;When multiple channels are enabled, they are sampled successively in a sequence starting with the lowest channel number. The time it takes to sample all enabled channels is given as follows:&lt;/em&gt;&lt;/p&gt;
&lt;pre style="padding-left:30px;"&gt;&lt;em&gt;&lt;code&gt;Total time &amp;lt; Sum(CH[x].t&lt;sub&gt;ACQ&lt;/sub&gt;+t&lt;sub&gt;CONV&lt;/sub&gt;), x is the number of enabled channels&lt;br /&gt;&lt;/code&gt;&lt;/em&gt;&lt;/pre&gt;
&lt;p&gt;This is because each channel is samples separately in a sequence during the scan of all enabled channels.&lt;/p&gt;
[quote user=""]Verification :- Toggled a LED in SAADC callback function and observed the frequencies on an oscilloscope.[/quote]
&lt;p&gt;In general this method is ok for visualizing how often a callback is triggered, but I recommend that you set the LED/pin to toggle using PPI to connect it directly to the triggering event. This will avoid the issue of the CPU being busy with another higher priority task at the time of the event generation, skewing you measurements. I do not know if this is already how you have implemented this, but I mention it here just in case for future reference.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>