
Maxim Integrated
Page 20 of 24
3.2.2 Pure Raw Data Collection
The host can configure the MAX32664C to work in Raw-Only mode (no algorithm).
the set of commands that are needed to work in this mode. In this case, only the LED counters
and accelerometer data will be included in the received samples.
Table 12. Host Commands—WHRM Pure Raw Data
#
HOST COMMAND
(HEX)
COMMAND DESCRIPTION
RESPONSE
(HEX)
STA
R
T
A
LG
O
R
IT
H
M
Host initializes the MAX32664C in pure raw data using the following commands:
1.1
AA 10 00 01
Set output mode to sensor only.
AB 00
1.2
AA 10 01 05
Set sensor hub interrupt threshold.
AB 00
1.3
AA 44 00* 01 00
Enable AFE (e.g., MAX86141)* with sensor hub
samples.
AB 00
1.4
AA 44 04* 01 00
Enable accelerometer with sensor hub.*
AB 00
1.5
AA 40 00 12 18
Set sample rate of MAX86141 to 100Hz with 1
sample averaging.
AB 00
1.6
AA 40 00 11 3F
Set MAX86141 to integration time: 117
μ
s and ADC
1/2 range: 32
μ
A.
AB 00
1.7
AA 40 00 23 [7F]
Set MAX86141 LED1 current to half of full scale.
Reduce [7F] if signal is saturated.
AB 00
1.8
AA 40 00 2A 03
Set MAX86141 LED1 current full range = 124mA.
AB 00
1.9
AA 40 00 20 21
Set MAX86141 LED sequence
LED1 (green) -> LED2 (IR)
AB 00
1.10 AA 40 00 09 7C
Set MAX86141 FIFO interrupt threshold to 124.
AB 00
1.11 AA 40 00 0A 0E
Set MAX86141 FIFO configuration.
AB 00
1.12 AA 40 00 02 86
Set MAX86141 interrupt configuration.
AB 00
R
EA
D
IN
G
S
A
M
PL
ES
Host reads samples upon receiving MFIO interrupt by the MAX32664C (repeated as needed):
2.1
AA 00 00
Read 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 next step.
2.2
AA 12 00
Get the number of samples (nn) in the FIFO
2.3
AA 12 01
Read the data stored in the FIFO; nn samples (24
bytes each) will be read. The format of samples is
shown in
ST
O
P
Host ends the procedure:
3.1
AA 44 00 * 00
Disable AFE (e.g., MAX86141).*
AB 00
3.2
AA 44 04* 00
Disable accelerometer.
AB 00
*Provided indexes are examples for sensors such as the MAX86141 AFE or KX122
accelerometer.