nRF54L15 ADC acquisiton time issues

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 NRF54L15, i am working on porting the project from the nrf52840dk to this board. I am using the 3.0.1 SDK. My guess is im missing some sort of definition somewhere but I can't seem to find where. The header file wants values for variables in the form of SAADC_CH_CONFIG_TACQ_5us etc.

    channel.channel_config.gain = NRF_SAADC_GAIN1_4;
    channel.channel_config.acq_time =   NRF_SAADC_ACQTIME_5US;
Parents
  • Hi,

    Can you share more about how you use the SAADC? If you refer to the this ADC sample, 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 these changes to channel 0 modified like this in the overlay file:

    	channel@0 {
    		reg = <0>;
    		zephyr,gain = "ADC_GAIN_1_4";
    		zephyr,reference = "ADC_REF_INTERNAL";
    		zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 5)>;
    		zephyr,input-positive = <NRF_SAADC_AIN4>; /* P1.11 */
    		zephyr,resolution = <10>;
    	};

Reply
  • Hi,

    Can you share more about how you use the SAADC? If you refer to the this ADC sample, 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 these changes to channel 0 modified like this in the overlay file:

    	channel@0 {
    		reg = <0>;
    		zephyr,gain = "ADC_GAIN_1_4";
    		zephyr,reference = "ADC_REF_INTERNAL";
    		zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 5)>;
    		zephyr,input-positive = <NRF_SAADC_AIN4>; /* P1.11 */
    		zephyr,resolution = <10>;
    	};

Children
Related