
Maxim Integrated
Page 40 of 52
HOST COMMAND
COMMAND DESCRIPTION
READ
MAX32664 RESPONSE
RESPONSE
DESCRIPTION
0xAA 0x12 0x00*
Get the number of samples in
FIFO.
0xAB 0x00 0x0F
No error. Fifteen samples available.
0xAA 0x12 0x01*
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.
0xAA 0x00 0x00*
Read the Sensor Hub Status.
0xAB 0x00 0x08
No error. DataRdyInt bit is set.
0xAA 0x12 0x00*
Get the number of samples in
FIFO.
0xAB 0x00 0x0F
No error. Fifteen samples available.
0xAA 0x12 0x01*
Read the data stored in FIFO.
0xAB 0x00
…
No error. Data read.
*Mandatory
†
Recommended
Table 1
10
shows a capture of the I
2
C traffic between the example host microcontroller (MAX32630FTHR)
and the MAX32664
GWEB
for commanding the MAX32664
GWEB
to stream
sensorraw
and algorithm data.
The MAXREFDES101# is used for this example.
Table 1
10
. MAX32664GWEB I
2
C Annotated Application Mode Example
HOST COMMAND
COMMAND DESCRIPTION
READ
MAX32664 RESPONSE
RESPONSE
DESCRIPTION
0xAA 0x52 0x00 0x01†
Enable AGC.
0xAB 0x00 0x00
No error.
0xAA 0x10 0x00 0x03*
Set output mode to
sensorraw
and algorithm data.
0xAB 0x00
No error.
0xAA 0x10 0x01 0x05*
Set FIFO threshold
as almost full
atto
0x05. Increase or decrease
this value if you want more or
less frequent samples.
0xAB 0x00
No error.
0xAA 0x44 0x00 0x01*
Enable
the
MAX86140/MAX86141 sensor.
0xAB 0x00
No error.
0xAA 0x44 0x04 0x01
*
†
Enable
the
sensor
hub
accelerometer.
(Only enable if
the
board
has
an
accelerometer.)
0xAB 0x00
No error.
0xAA 0x52 0x02 0x01*
Enable WHRM
/MaximFast 1.0
algorithm.
0xAB 0x00
No error.
0xAA 0x42 0x00
†
Get the MAX86140/MAX86141
register attributes.
0xAB 0x00 0x01 0x2B
No error. Attributes are
1 byte,
0x2B
registers available.
0xAA 0x43 0x00
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).
0xAB 0x00
No error.
0xAA 0x00 0x00*
Read the sensor hub status.
0xAB 0x00 0x08
No error. DataRdyInt bit is set
0xAA 0x12 0x00*
Get the number of samples in
the FIFO.
0xAB 0x00 0x08
No error. Eight samples are in the
FIFO.
Содержание MAX32664
Страница 16: ...Maxim Integrated Page 16 of 52 ...