<?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>How to use the SAADC driver to sample faster than 1 milisecond</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30599/how-to-use-the-saadc-driver-to-sample-faster-than-1-milisecond</link><description>Hello, 
 I would like to be able to sample an analog voltage signal with a sample rate of approximately 250us (4096 samples/sec). I am using the SAADC example in nRF5 SDK v12.2.0, and the code is running fine. I am reading the ADC value using the PUTTY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Feb 2018 09:34:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30599/how-to-use-the-saadc-driver-to-sample-faster-than-1-milisecond" /><item><title>RE: How to use the SAADC driver to sample faster than 1 milisecond</title><link>https://devzone.nordicsemi.com/thread/121210?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 09:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eebfe1f6-c49e-4e47-8c0d-2f4e2527f022</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SAADC of nRF52832 support sample rates of up to 200 ksps, so this should work when you use&amp;nbsp;&lt;span style="font-size:inherit;"&gt;&lt;code&gt;nrf_drv_timer_us_to_ticks().&amp;nbsp;&lt;/code&gt;The reason why you get&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&amp;#39;Overflow&amp;#39;&lt;/strong&gt; in the terminal is that the UART interface is not able to transfer the logging fast enough when you sample that fast, and you will overflow the transmitt buffer. You should rather count the number of samples and print this on a regular (i.e. 4000 samples/1 second) , to check that the SAADC is sampling at the desired sample rate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>