Hello,
Can the SAADC driver be modified to be used in a polling mode instead of interrupt?
E.g. I modify the driver to not use any interrupt(comment out interrupt enabling calls). And then in a periodic task(thread)
Sample pseudo code below
int16_t buffer[5];
void Task_5ms()
{
if(NRF_SAADC.EVENTS_RESULTDONE == 1)
{
nrf_drv_saadc_buffer_convert(&buffer, 5)
for (i = 0; i < 5; i++)
{
//Retrieve elements from buffer[0] through buffer[4]
}
}
}
Will this approach work? The reason to do it as we need as few interrupts in system as possible for safety reasons.
Best Regards,
Himanshu.