now i work with nrf52832 saadc sample program. i have to change saadc resolution into 14bit. what changes i need to do?
now i work with nrf52832 saadc sample program. i have to change saadc resolution into 14bit. what changes i need to do?
Hi
To change the SAADC resolution you will have to change the SAADC_CONFIG_RESOLUTION in sdk_config.h
Please note that there are two SAADC_CONFIG_RESOLUTION defines. One NRFX and one legacy. Change both of these to the same thing just to make sure you change the correct one.
Best regards,
Simon
Hi
nrf_drv_saadc_config_t saadc_config = NRF_DRV_SAADC_DEFAULT_CONFIG;
saadc_config.resolution = NRF_SAADC_RESOLUTION_12BIT;
err_code = nrf_drv_saadc_init(&saadc_config, saadc_callback);
APP_ERROR_CHECK(err_code);
add this in initialisation part ,then can change the SAADC resolution in nRF52832
Hi
You shouldn't have to do all that as the edits in sdk_config.h should be sufficient, but if it works for you I'm glad!
Best regards,
Simon