Maxim Integrated Page 39 of 52
Table 109 shows a capture of the I
2
C traffic between the example host microcontroller (MAX32630FTHR)
and the MAX32664GWEA for commanding the MAX32664GWEA to stream sensorraw and algorithm data
(mode 1). The MAXREFDES220# is used for this example.
Table 109. MAX32664GWEA I
2
C Annotated Application Mode Example
No error. Mode is application
operating mode.
Read the sensor hub version.
0xAB 0x00 0x0A1 0x019 0x00
No error. Version is 10.19.0
Get the MAX30101 register
attributes.
No error. Attributes are 1 byte, 0x24
registers available.
Read all the MAX30101 registers.
0xAB 0x00 0x00 0x00 0x01
0x00 0x02 0x00 … 0xFF 0x15
No error. Reg 0x00 = 0, Reg 0x01 = 0,
Reg 0x02 = 0, …, Reg 0xFF = 0x15
Read the MAX30101 register 7.
No error. Register 7 is 0x60.
Set output mode to sensorraw
and algorithm data.
Set FIFO threshold as almost
fullto at 0x0F. Increase or
decrease this value if you want
more or fewer samples per
interrupt.
Enable the MAX30101 sensor.
0xAA 0x44 0x04 0x01
0x00†
Enable the sensor hub
accelerometer. (Only enable if
the board has an accelerometer.)
Enable WHRM/MaximFast 10.x
algorithm mode 1.
Read the sensor hub status.
No error. DataRdyInt bit is set
Get the number of samples in the
FIFO.
No error. 0x0F samples are in the
FIFO.
Read the data stored in the FIFO.
0xAB 0x00 0x03 0x6A 0x43
0x03 0x04 0x92 0x00 0x00
0x00 0x00 0x2E 0x15 0xFC
0xD8 0x00 0x04 0x02 0x3ex
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.808, Y
accelerometer = 0.004, Z
accelerometer = 0.574, Heart Rate =
63.0, Confidence = 99, SpO
2
= 99.6,
MaximFast State Machine Status = 3,
data for fourteen other samples.
Set the MAX30101 register 0xD
(LED2, pulse amplitude) to 0x32.
Set the MAX30101 register 0x0C
(LED1, pulse amplitude) to 0x32.
Set the MAX30101 register 0x0A
(ADC Range, Sample Rate, Pulse
Width) to 0x23.
Set the MAX30101 register 0x08
(Sample Average, FIFO Full) to
0x2F.
Read the Sensor Hub Status.
No error. DataRdyInt bit is set.