<?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 one-shot mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24506/saadc-one-shot-mode</link><description>Hi everyone, 
 Recently, I used the nrf52832 learning board to learn SDK13.0.0, when I see SAADC, tell the truth, this exampe is a bit difficult for me to understand.
My question is: 
 
 How to implement SAADC one-shot mode? 
 What is the maximum</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jun 2018 07:37:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24506/saadc-one-shot-mode" /><item><title>RE: SAADC one-shot mode</title><link>https://devzone.nordicsemi.com/thread/135676?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 07:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72a0ed2-bbfd-4c45-9838-f0f38e616a0b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That library configures the SAADC and perform single sample each time you call&amp;nbsp;analogread function, which will cause a lot of overhead in CPU for other tasks than sampling. In order to achieve maximum sample frequency, the SAADC peripheral needs to be setup once, and sample task triggered from a timer through PPI channel, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC one-shot mode</title><link>https://devzone.nordicsemi.com/thread/135640?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 21:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985b4fdc-fd0b-4b52-80da-c54300dc7b7e</guid><dc:creator>sasa-06</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First, sorry for my english.&lt;/p&gt;
&lt;p&gt;I recently bought the adafruit nrf52. I can read the voltage from analogread(). however the maximum sample frequency is 44kHz for one analoginput and 22 kHz if I want to read a second. &lt;br /&gt;the configuration from the library is already with TACQ=3us.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/cores/nRF5/wiring_analog_nRF52.c"&gt;link to the library GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What do I need to make if I want to increase the frequency ?&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Best Regards!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC one-shot mode</title><link>https://devzone.nordicsemi.com/thread/96485?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 08:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b6ee2df-bbea-4929-b365-e82d5a004f70</guid><dc:creator>SAM.MAO</dc:creator><description>&lt;p&gt;Thank you anyway!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC one-shot mode</title><link>https://devzone.nordicsemi.com/thread/96484?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 08:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c4e4923-813d-4822-8f00-fbaf6caff8e8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Sam,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You can read about how to configure one-shot mode in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_4_0#saadc_operationmodes_oneshot"&gt;SAADC documentation&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The maximum sampling frequency depends on the configured &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_8#concept_qh3_spp_qr"&gt;aquisition time&lt;/a&gt;, which is configurable from 3-40 us. Sample time of 200 ns is not possible. With lowest aquisition time, the maximum sample frequency (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_11#unique_1018955728"&gt;f_SAMPLE&lt;/a&gt;) is 200 kHz:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;f_SAMPLE = 1/(t_ACQ,10k + t_CONV) =
1/(3 us + 2 us) = 1/(5 us) = 200 kHz.&lt;/p&gt;
&lt;/blockquote&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>