EasyManua.ls Logo

Maxim Integrated MAX32664A - Table 4. Host Commands-Spo 2 Calibration

Default Icon
15 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Maxim Integrated Page 9 of 15
Table 4 shows the list of commands to start the SpO
2
calibration.
Table 4. Host CommandsSpO
2
Calibration
#
HOST COMMAND
(HEX)
COMMAND DESCRIPTION
RESPONSE
(HEX)
START ALGORITHM
Host initializes the MAX32664A in calibration mode and starts the algorithm using following
commands:
1.1
AA 10 00 03
Set the output mode to sensor + algorithm
data (0x03) (streamed data will include PPG,
accelerometer, and algorithm data).
AB 00
1.2
AA 10 01 0F
Set the sensor hub interrupt threshold.
AB 00
1.3
AA 52 00 01
Enable the AGC.
AB 00
1.4
AA 44 04* 01 00 (if sensor
hub accelerometer is used)
AA 44 04* 01 01 (if Host
accelerometer is used)
Enable the accelerometer with the sensor
hub or host-side accelerometer.*
(Do not use this command if there is no
accelerometer.)
AB 00
1.5
AA 44 03* 01
Enable the AFE (e.g., the MAX30101).
AB 00
1.6
AA 52 02 02 (SpO
2
calibration report)
Enable the HR/SpO
2
algorithm. The format of
the samples is shown in Table 5.
AB 00
1.7
Wait for 100ms before sending the next command. Any command to change sensor
registers should appear AFTER enabling the algorithm or they will be overwritten.
READING SAMPLES
Host reads the samples upon receiving the MFIO interrupt from the MAX32664A. For SpO
2
calibration, continue as needed to capture the R value. See Table 5.
2.1
AA 00 00
Read the sensor hub status byte:
Bit 0: Sensor comm error
Bits 1 and 2: Reserved
Bit 3: FIFO filled to threshold (DataRdyInt)
Bit 4: Output FIFO overflow (FifoOutOvrInt)
Bit 5: Input FIFO overflow (FifoInOverInt)
Bit 6: Sensor hub busy (DevBusy)
Bit 7: Reserved
If DataRdyInt is set, proceed to the next step.
AB 00 08
2.2
AA 12 00
Get the number of samples (nn) in the FIFO.
AB 00 nn
2.3
AA 12 01
Read the data stored in the FIFO; nn
samples (30 bytes each) will be read. The
format of the samples is shown in Table 5.
AB 00
data_for_
nn_samples
STOP
Host ends the procedure:
3.1
AA 44 03* 00
Disable the AFE (e.g., the MAX30101).*
AB 00
3.2
AA 44 04* 00
Disable the accelerometer.* (Do not use this
command if there is no accelerometer.)
AB 00
3.3
AA 52 02 00
Disable the algorithm.
AB 00
*Provided indexes are example for sensors such as the MAX30101 AFE or KX122 accelerometer