Hi,
I want to calibrate SAADC for temperature compensation please guide me with example.
Hi,
I want to calibrate SAADC for temperature compensation please guide me with example.
Dear Kenneth,
I have followed this
https://devzone.nordicsemi.com/f/nordic-q-a/34785/saadc---calibration
and my code snipped is
if(saadc_calibrate == true)
{
while(nrf_drv_saadc_calibrate_offset() != NRF_SUCCESS); //Trigger calibration task
nrf_saadc_disable();
while(NRF_SAADC->STATUS == (SAADC_STATUS_STATUS_Busy << SAADC_STATUS_STATUS_Pos));
nrf_saadc_enable();
while(NRF_SAADC->STATUS == (SAADC_STATUS_STATUS_Busy << SAADC_STATUS_STATUS_Pos));
SEGGER_RTT_printf(0, "Calibration Done\n\r");
saadc_calibrate = false;
}
But still the first wrong sample issue persists.
I have also followed the following example
https://devzone.nordicsemi.com/f/nordic-q-a/32982/can-t-stop-saadc/127645#127645
it causes all the 5 samples to be corrupted after calibration.
I have tried this link and found the issue of my problem.
https://devzone.nordicsemi.com/f/nordic-q-a/48462/questions-on-saadc-calibration-gain-best-use