
Maxim Integrated
Page 38 of 52
Table
89
provides the sequence of commands for writing external accelerometer data to the input FIFO
.
Table 8
.
Sequence of Commands to Write External Accelerometer Data to the Input FIFO
Table 9. Sequence of Commands to Write External Accelerometer Data to the
Input FIFO (MAX32664GWEA/B/C)
HOST COMMAND
COMMAND DESCRIPTION
READ
MAX32664 RESPONSE
RESPONSE
DESCRIPTION
0xAA 0x10 0x00 0x03
†
0xAA
0x44 0x04 0x1
Set output mode to sensor and
algorithm data.Enable the
input FIFO for host supplied
accelerometer data.
0xAB 0x000xAB 0x00
No error. No error.
0xAA 0x10 0x01 0x0F*
Enable the input FIFO for host
supplied accelerometer data.
0xAB 0x00
No error.
0xAA 0x44 0x03 0x01*
Enable the MAX30101 sensor.
(MAX32664GWEA)
0xAB 0x00
No error.
0xAA 0x44 0x04 0x01 0x01*
Enable the input FIFO for host
supplied accelerometer data.
0xAB 0x00
No error.
0xAA 0x52 0x02 0x01*
Enable MaximFast algorithm
mode 1. (MAX32664GWEA)
0xAB 0x00
No error.
0xAA 0x13 0x00 0x04
†
Read the sensor sample size
for
the
accelerometer.
(optional)
0xAB 0x00 0x06
No error. 6 bytes is the sample
size.
0xAA 0x14 0x00 Sample 1
values, …, Sample N values
*
Write data to the input FIFO.
Six bytes per accelerometer
sample.
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 0x0F
No error. 0x0F samples are in
the FIFO.
0xAA 0x12 0x01*
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 0x3e
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.
0xAA 0x13 0x00 0x04
Read the sensor sample size
for
the
accelerometer.
(optional)
0xAB 0x00 0xN
No error. N is the number of
samples in the FIFO.
0xAA 0x14 0x04 Number of
Samples,
Sample 1 values, …,
Sample N values
Write data to the input FIFO.
0xAB 0x00
No error.
0xAA 0x00 0x00
Read the sensor hub status to
verify that the FifoOutOvrInt
bit 4 is not set in the Sensor
Hub Status byte. (optional)
0xAB 0x00 0x88
No error. Sensor hub is not
busy.
*Mandatory
†Recommended
MAX32664 I
2
C Annotated Application Mode Example