I'm planning to implement a pulse oxymeter system with AFE4490 and a microcontroller( or Arduino board)
For this I need better idea about flow of the sequence of operation of AFE4490 and time required for them.
Sequence of operations & communications, that I understood from AFE4490 datasheet is as follows
1) First we have to initialize the power up sequence for AFE4490 (ie have to supply Reset pulse and to load the register values from the controller). These tasks take a few Seconds to settle and it is a onetime process on starting of device operation.
2) Then In a pulse repetition period (PRP) time, IRLED: IR ambient :RED LED : RED ambient: (IRLED- IR ambient) : (REDLED- RED ambient) data will be stored in six 24 bit registers in AFE4490 and then ADC Ready pin will become high. These operations will be completed in one PRP. Then controller can read each register contents sequentially.
3) Then Micro controller calculates the ambient light error value & LED brightness error values. (Also calculate the PI and HR values etc.)
4) Corresponding correction settings based on ambient error value & LED brightness error values got in step 3 will be set to corresponding registers in AFE4490 through SPI.
5) the sequence of operation the steps from 2-3-4 are repeats continuously.
Is this sequence operation is correct? if not please
Another doubt is, am I need to set the ambient cancellation value & LED brightness value (above step 4) from controller to AFE in every sequence? or only initially or after a particular set of sequence ? Or microcontroller have to check it continuously and have to configure AFE setting to correct it when exceeds the limit?