Hi, we are using nRF52832 SAADC in differential mode. We have two channels connected.
Inputs are now configured as differential-N and differential-P (PSELP and PSELN).
how to define ADC pin as PSELP(p0.2) and PSELN(P0.3) with their pin number?
i am little bit confused which function is used for that .
is it correct way used for set that pin? please give me response as early s possible. thanks
In nrfx_saadc_channel_init() you pass a nrf_saadc_channel_config_t. Set pin_p and pin_n to whatever pins your are using. I believe the NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL() macro sets a default configuration that you can use at compile time, but you don't have to. I suggest you create your own nrf_saadc_channel_config_t for each channel and use that instead.