Hello,
I use the AFE4404 to read the heartrate at wrist. I included the AFE4404 library in my project and I acquire a clean PPG signal, the library is able to calculate the HR correctly, of course when I'm static (without motion artefact).
As the timing engine of the AFE4404 is for 3 LED + 1 ambient I would like to optimize this to program it for 1 LED + 1 ambient. First I program the 2 unused LED with 0mA current (and it works) but I would like to do better deactivating unused timing engine part of the AFE4404 of these 2 LED especially the activation, the sampling and the ADC conversion of the LED (I keep the ADCRSTx as it's mentioned p24 in order to keep the ADC_RDY pulse). The aim is to increase the PDN length of the cycle. But with this manner the ADC_RDY pulse is no more generated.
So can you check my timing engine to see if there's an error ? or maybe my manner to do is not possible...
Action : Register start (hexa) / Value (dec) ; Register end (hexa) / value(dec)
- Activate LED 2 : 0x09 / 0 ; 0x0A / 0
- Sampling LED 2 : 0x01 / 0 ; 0x02 / 0
- ADC Reset 0 : 0x15 / 0 ; 0x16 / 6
- ADC Conversion LED 2 : 0x0D / 0 ; 0x0E / 0
- Activate LED3 : 0x36 / 0 ; 0x37 / 0
- Sampling LED 3 : 0x05 / 0 ; 0x06 / 0
- ADC Reset 1 : 0x17 / 7 ; 0x18 / 13
- ADC Conversion LED 3 : 0x0F / 0 ; 0x10 / 0
- Activate LED1 : 0x03 / 14 ; 0x04 / 413
- Sampling LED 1 : 0x07 / 94 ; 0x08 / 413
- ADC Reset 2 : 0x19 / 415 ; 0x1A / 421
- ADC Conversion LED 1 : 0x11 / 422 ; 0x12 / 881
- Sampling LED amb : 0x0B / 493 ; 0x0C / 812
- ADC Reset 3 : 0x1B / 883 ; 0x1C / 889
- ADC Conversion LED amb : 0x13 / 890 ; 0x14 / 1349
- PDN Cycle : 0x32 / 2149 ; 0x33 / 39199
Best Regards,
Sam