Maxim Integrated Page 40 of 52
Get the number of samples in
FIFO.
No error. Fifteen samples available.
Read the data stored in FIFO.
0xAB 0x00 0x03 0x6A 0x43
0x03 0x04 0x92 0x00 0x00
0x00 0x00 0x2E 0x15 0xFC
0xE2 0x00 0x07 0x02 0x36
0x02 0x76 0x63 0x03 0xE4
0x03, data for fourteen other
samples
No error. IR counts = 223811, Red
counts = 19778, LED3 = 0, LED4 =
11797, X accelerometer = -0.798, Y
accelerometer = 0.007, Z
accelerometer = 0.566, Heart Rate =
63.0, Confidence = 99, SpO
2
= 99.6,
MaximFast State Machine Status = 3,
data for fourteen other samples.
Read the Sensor Hub Status.
No error. DataRdyInt bit is set.
Get the number of samples in
FIFO.
No error. Fifteen samples available.
Read the data stored in FIFO.
*Mandatory
†Recommended
Table 110 shows a capture of the I
2
C traffic between the example host microcontroller (MAX32630FTHR)
and the MAX32664GWEB for commanding the MAX32664GWEB to stream sensorraw and algorithm data.
The MAXREFDES101# is used for this example.
Table 110. MAX32664GWEB I
2
C Annotated Application Mode Example
Set output mode to sensorraw
and algorithm data.
Set FIFO threshold as almost full
atto 0x05. Increase or decrease
this value if you want more or
less frequent samples.
Enable the
MAX86140/MAX86141 sensor.
Enable the sensor hub
accelerometer. (Only enable if
the board has an
accelerometer.)
Enable WHRM/MaximFast 1.0
algorithm.
Get the MAX86140/MAX86141
register attributes.
No error. Attributes are 1 byte, 0x2B
registers available.
Read all the
MAX86140/MAX86141
registers.
0xAB 0x00 0x00 0x00 0x01
0x00 0x02 0x86 … 0x42 0x00
No error. Reg 0x00 = 0, Reg 0x01 = 0,
Reg 0x02 = 0x86, …, Reg 0x42 = 0
0xAA 0x40 0x00 0x011
0x3F†
Set the MAX86140/MAX86141
register 0x11 to 0x3F
(PPG2_ADC_RGE = 32768,
PPG1_ADC_RGE = 32768,
PPG_TINT = 117.3).
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.