<?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>nRF Connect SDK - SAADC example (non blocking internal timer) - note on the sample app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114688/nrf-connect-sdk---saadc-example-non-blocking-internal-timer---note-on-the-sample-app</link><description>Dear all, 
 just some note upon this sample. 
 Using VS Code and copying sample app just not work due to some error into the path, missing file so I&amp;#39;ve try to adjust to get all working, here enclosed the zip file of the project. 
 I&amp;#39;ve build it for a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 12:15:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114688/nrf-connect-sdk---saadc-example-non-blocking-internal-timer---note-on-the-sample-app" /><item><title>RE: nRF Connect SDK - SAADC example (non blocking internal timer) - note on the sample app</title><link>https://devzone.nordicsemi.com/thread/502758?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c042831d-a00b-41f4-8707-73eb31f9ba76</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="STE"]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- configure the SAADC to sample two external analog input and also sample the internal VBAT;&lt;/p&gt;[/quote]
&lt;p&gt;Then you need to assign one of the channels to &amp;quot;NRF_SAADC_INPUT_VDD&amp;quot;.&lt;/p&gt;
&lt;p&gt;The default configuration when using macro &amp;quot;SAADC_CHANNEL_SE_ACQ_3US&amp;quot; is to use the internal 0.6V reference, so your VDD input voltage will scale towards this set reference.&lt;/p&gt;
[quote user="STE"]- setup the SAADC able to work with the Timer2 and 200Hz of sample frequency because I need to get samples at exactly 5ms of time.[/quote]
&lt;p&gt;You can have a look at one of the nrfx_timer samples on how to setup a 200 Hz (5ms) timer, and combine that with one of the saadc-samples that matches your use-case the best.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK - SAADC example (non blocking internal timer) - note on the sample app</title><link>https://devzone.nordicsemi.com/thread/502345?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 14:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6401387-349c-4380-935a-cb042623993e</guid><dc:creator>STE</dc:creator><description>&lt;p&gt;Dear Alseth,&lt;/p&gt;
&lt;p&gt;thanks for your reply!&lt;/p&gt;
&lt;p&gt;Using the settings below, as I did into my first post, I was able to get the sample design properly working.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/buildconfig.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tested the building without sysbuild as your request (with the project changes listed in my post not with the original CMakeLists.txt files) and seems also working properly.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;*** Using Zephyr OS v3.6.99-100befc70c74 ***&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.365,325] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: Starting nrfx_saadc advanced non-blocking sampling with internal timer example.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,375] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: GPIOTE status: initialized&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,467] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: CALIBRATEDONE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,498] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: READY&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,528] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: BUF_REQ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,772] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: DONE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,803] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: Sample buffer address == 0x20001126&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,803] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 0] value == 41&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,803] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 1] value == 54&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,833] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 2] value == 41&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.385,833] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: BUF_REQ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,138] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: DONE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,169] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: Sample buffer address == 0x2000112c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,169] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 0] value == 57&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,199] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 1] value == 47&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,199] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 2] value == 61&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,230] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: BUF_REQ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,505] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: DONE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,535] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: Sample buffer address == 0x20001126&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,535] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 0] value == 51&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,566] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 1] value == 66&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,566] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 2] value == 54&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,596] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: BUF_REQ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,901] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: DONE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,901] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: Sample buffer address == 0x2000112c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,901] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 0] value == 67&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,932] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 1] value == 58&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,932] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: [Sample 2] value == 71&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;[00:00:00.386,962] &amp;lt;inf&amp;gt; NRFX_EXAMPLE: SAADC event: FINISHED&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I kindly ask you if you can help me to modify this sample design in order to achieve these two goal:&lt;/p&gt;
&lt;p&gt;- configure the SAADC to sample two external analog input and also sample the internal VBAT;&lt;/p&gt;
&lt;p&gt;- setup the SAADC able to work with the Timer2 and 200Hz of sample frequency because I need to get samples at exactly 5ms of time.&lt;/p&gt;
&lt;p&gt;Coud you please point me how to do that?&lt;/p&gt;
&lt;p&gt;Thanks and best regards!&lt;/p&gt;
&lt;p&gt;F.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK - SAADC example (non blocking internal timer) - note on the sample app</title><link>https://devzone.nordicsemi.com/thread/502312?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 13:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d61c125-982f-42f6-8ebe-12f36f93279c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are some incompatibilities with the cmake macros when building with sysbuild.&lt;/p&gt;
&lt;p&gt;For now, I would recommend that you build without sysbuild, like shown here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726146073321v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>