I'm attempting to get a grasp on how much CPU time an SAADC conversion is taking. I'm running the SAADC sample code from the nRF52 v15.1.0 SDK on an nRF52832.
SAADC_CONFIG_RESOLUTION is set to 10.
SAADC_CONFIG_LP_MODE is not enabled.
SAADC_CONFIG_IRQ_PRIORITY is set to 7.
I'm using the default values from NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE.
Also, in the sample code I've set SAMPLES_IN_BUFFER to 1.
I'm toggling a GPIO pin in the main loop just to get an idea of much CPU time the SAADC is taking.
It looks like each increase in the SAADC_CONFIG_OVERSAMPLE doubles the amount of CPU time needed for the SAADC conversion.
I don't see anywhere in the datasheet where it talks about how much CPU time the SAADC needs. Is there a formula to calculate the CPU time for an SAADC conversion given the oversample rate, configured acquisition time, etc?