Tool/software:
I'm trying to build a device that acquires real time SpO2 value. Right now this is the working,
-Continuously acquire ambient and normal Red and IR values over a period of 2 seconds using DMA
-Every 3rd cycle, acquisition is paused and LED calibration is done. LED Calibration is done by re initialising the SPI to work in normal mode and not DMA. Then all register values are read, gain and current are adjusted until register values in an expected range are received.
The problem with this however is that whenever calibration is done, acquisition is paused for a short while. What is the right way to do calibration without having to stop acquisition?