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)
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.
Enable the input FIFO for host
supplied accelerometer data.
Enable the MAX30101 sensor.
(MAX32664GWEA)
0xAA 0x44 0x04 0x01 0x01*
Enable the input FIFO for host
supplied accelerometer data.
Enable MaximFast algorithm
mode 1. (MAX32664GWEA)
Read the sensor sample size
for the accelerometer.
(optional)
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.
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 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.
Read the sensor sample size
for the accelerometer.
(optional)
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.
Read the sensor hub status to
verify that the FifoOutOvrInt
bit 4 is not set in the Sensor
Hub Status byte. (optional)
No error. Sensor hub is not
busy.
*Mandatory
†Recommended
MAX32664 I
2
C Annotated Application Mode Example