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

SAADC channel input select/nRF52832/

The function nrf_drv_saadc_channel_init() in nrf_drv_saadc.c does channel initialization by calling function nrf_saadc_channel_init() which will set PSELN and PSELP of the respective channel. However after the returning from the function, the function nrf_drv_saadc_channel_init() again will reinitialize the PSELN and PSELP to NRF_SAADC_INPUT_DISABLED. Why?

It makes sense to disable first and then configure by calling nrf_saadc_channel_init() which initializes to the right value.

Appreciate the response.

Parents Reply Children
Related