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

A problem with using saadc of nrf52832 .config two channel ,only using one channel ,cause reading error data .

I have a problem here with using saadc of nrf52832 .
The nrfx_saadC_init (), nrfx_saadC_channels_config (), nrfx_saadC_SIMPLE_mode_set (), and nrfx_saadC_buffer_set () functions were executed to set channel 0. Then run nrfx_saadc_init() and nrfx_saadc_channels_config() to set channel 1.(Nrfx_saadc_simple_mode_set () and nrfx_saadC_buffer_set () are not executed this time). Finally, there was an error reading data from channel 0.  The initialization is shown below.

The function used to triggering  is shown below

Parents Reply Children
Related