Maxim Integrated Page 41 of 52
Read the data stored in the FIFO.
0xAB 0x00 0x03 0X92 0x03
0x00 0x00 0x00 0x00 0x00
0x00 0x05 0x1C 0x29 0x00
0x00 0x00 0x00 0x00 0x00
0x00 0x96 0x0B 0x83 0xFC
0x37 0x02 0x92 0x63 0x00
0x00 0x00 data for seven
other samples
No error. LED1 (Photo DDiode1)
counts = 235891, LED2 PD1= 0, LED3
PD1= 0, LED14 PD2(Photo Diode2)
counts = 338247, LED2 PD25 = 0, LED
3 PD26 = 0, X accelerometer = 0.15,
Y accelerometer = 2.947, Z
accelerometer = -0.969, Heart Rate =
65.8, Confidence = 99, SpO
2
= 0,
WHRM State Machine Status = 0,
data for seven other samples.
Read the Sensor Hub Status.
No error. DataRdyInt bit is set.
Get the number of samples in
FIFO.
No error. Eight samples available.
Read the data stored in FIFO.
0xAB 0x00 0x03 0X99 0x73
0x00 0x00 0x00 0x00 0x00
0x00 0x05 0X29 0x47 0x00
0x00 0x00 0x00 0x00 0x00
0x00 0x97 0x0B 0xB3 0xFC
0x36 0x02 0x8F 0x63 0x00
0x00 0x00 data for seven
other samples
No error. LED1 (Photo DDiode1)
counts = 235891, LED2 PD1 = 0, LED3
PD1 = 0, LED14 PD2(Photo Diode2)
counts = 338247, LED52 PD2 = 0,
LED36 PD2 = 0, X accelerometer =
0.151, Y accelerometer = 2.947, Z
accelerometer = -0.97, Heart Rate =
65.5, Confidence = 99, SpO
2
= 0,
WHRM State Machine Status = 0,
data for seven other samples.
Read the Sensor Hub Status.
No error. DataRdyInt bit is set.
Get the number of samples in
FIFO.
No error. Eight samples available.
Read the data stored in FIFO.
*Mandatory
†Recommended
Table 12 shows a capture of the I
2
C traffic between the example host microcontroller (MAX32630FTHR)
and the MAX32664GWEC for commanding the MAX32664GWEC to stream sensor and algorithm data.
The SpO2 LED board is used for this example.
Table 12. MAX32664GWEC I
2
C Annotated Application Mode Example
Set output mode to sensor and
algorithm data.
Set FIFO threshold to 0x05.
Increase or decrease this value if
you want more or less frequent
samples.
Enable the
MAX86140/MAX86141 sensor.
Enable the sensor hub
accelerometer.
Configure WSpO2 algorithm to
continuous.
Read the sensor hub status.
No error. DataRdyInt bit is set
Get the number of samples in
the FIFO.
No error. Eight samples are in the
FIFO.