<?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>nRF54L15 ADC acquisiton time issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121138/nrf54l15-adc-acquisiton-time-issues</link><description>Hi, I am trying to set my acqtime different to the max value. And the build throws an error unless i set it to ACQTIME_MAX. 
 It appears in the header file it needs some other values that i dont seem to have defined? How could i get this working for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 May 2025 14:11:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121138/nrf54l15-adc-acquisiton-time-issues" /><item><title>RE: nRF54L15 ADC acquisiton time issues</title><link>https://devzone.nordicsemi.com/thread/533942?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 14:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3431d0e5-0c1b-4abf-8301-525c3816d4f6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Yes, the nRF54L has a much higher granularity with regard to acquisition time (see &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/saadc.html#ariaid-title51"&gt;datsheet&lt;/a&gt;), and it makes less sense to use enums in that case. Therefore, the nrfx API had to change to acomodate this, so the enums are not used for nRF54L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 ADC acquisiton time issues</title><link>https://devzone.nordicsemi.com/thread/533759?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f37a08-7aa5-48d3-b894-a5bb28966629</guid><dc:creator>JamieHartshorne</dc:creator><description>&lt;p&gt;&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-6-analog-to-digital-converter-adc/topic/exercise-3-interfacing-with-adc-using-nrfx-drivers-and-timer-ppi/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-6-analog-to-digital-converter-adc/topic/exercise-3-interfacing-with-adc-using-nrfx-drivers-and-timer-ppi/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hi Einar, I am essentially following this guide. I am using the nrfx drivers&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; /* STEP 4.7 - Change gain config and set acquisition time in default config and apply channel configuration */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;channel&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;channel_config&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;gain&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_SAADC_GAIN1_4&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;channel&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;channel_config&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;acq_time&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;nbsp; &lt;/span&gt;&lt;span&gt;NRF_SAADC_ACQTIME_MAX&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;nrfx_saadc_channels_config&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;channel&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;!=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRFX_SUCCESS&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//LOG_ERR(&amp;quot;nrfx_saadc_channels_config error: %08x&amp;quot;, err);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;i just ended up replacing acqtime with the number 5 and it worked for a 5us sample rate so i guess thats fixed it. although its odd the enum doesnt work anymore&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 ADC acquisiton time issues</title><link>https://devzone.nordicsemi.com/thread/533754?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a5fd49-4b02-4a77-a861-d798b9e73d63</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share more about how you use the SAADC? If you refer to the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/26471b064fe1b6279d0ed61b8d14233ac892057e/samples/drivers/adc/adc_dt"&gt;this ADC sample&lt;/a&gt;, you can modify the configuration slightly to use GAIN 1/4 and 5 us acquisition time, and that works when I test on my end with&amp;nbsp;these changes to channel 0 modified like this in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/e31598233d67fab76afa3a839650c00c7d9621fc/samples/drivers/adc/adc_dt/boards/nrf54l15dk_nrf54l15_cpuapp.overlay"&gt;the overlay file&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	channel@0 {
		reg = &amp;lt;0&amp;gt;;
		zephyr,gain = &amp;quot;ADC_GAIN_1_4&amp;quot;;
		zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
		zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 5)&amp;gt;;
		zephyr,input-positive = &amp;lt;NRF_SAADC_AIN4&amp;gt;; /* P1.11 */
		zephyr,resolution = &amp;lt;10&amp;gt;;
	};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>