This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

saadc sdk12

Hi,

What is the valid configuration for SAADC with oversampling for nrf52 sdl12.2

I try

SAADC config

SAADC_CONFIG_OVERSAMPLE 4

nrf_saadc_channel_config_t channel_config = NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN0);
    channel_config.burst = NRF_SAADC_BURST_ENABLED;

TIMER with rate 30000[ms]

app_timer_start(m_adc_timer_id, APP_TIMER_TICKS(ADC_INTERVAL, 0), NULL);

timer_handler

void adc_timer_handler(void * p_context)
{
    nrf_drv_saadc_sample();
}

Read data by callback

void saadc_callback(nrf_drv_saadc_evt_t const * p_event)
{
....
}

I miss something?

Related