SAADC first measurements off

Hi all,

normally our system runs in low power mode. When triggering the SAADC the first samples (using oneshot mode) will be off (slightly too low).

I can work around this behaviour if I use another peripheral right before it or by setting NRF_POWER->CONSTLAT or by enabeling the HFCLK via NRF_CLOCK->TASKS_HFCLKSTART. So it seems to be an issue regarding a Clock being activated and not yet fully started when the first measurements are taking place.

I would like to understand why this is happening and If there is some flag signalling that the SAADC and its clock source are ready instead of these workarounds or discarding the first few samples.

Thanks for any hint

Vincent

Related