background image

Maxim Integrated 

Page 18 of 24 

Table 10. Host Commands—WHRM Raw Data with Algorithm Mode 

 

HOST COMMAND 

(HEX) 

COMMAND DESCRIPTION 

RESPONSE 

(HEX) 

ST

A

R

A

LG

O

R

IT

H

M

 

Host initializes the MAX32664C in Algorithm mode with AEC and SCD off and starts algorithm using 

the following commands: 

1.1 

AA 50 02 0B 00 

Turn off algorithm AEC. 

AB 00 

1.2 

AA 50 02 0C 00 

Turn off algorithm SCD. 

AB 00 

1.3 

AA 10 00 03 

Set output mode to  algorithm data. 

AB 00 

1.4 

AA 10 01 05 

Set sensor hub interrupt threshold. 

 

1.5 

AA 44 00* 01 00 

Enable AFE (e.g., MAX86141)* with sensor 

hub samples. 

AB 00 

1.6 

AA 44 04* 01 00 (if sensor 

hub accelerometer is used) 

AA 44 04* 01 01 (if host 

accelerometer is used) 

Enable accelerometer with sensor hub or 

host-side accelerometer.* 

AB 00 

1.7 

Optional: Any command to change the algorithm settings and configurations (

Table 15

) from 

default should appear here BEFORE enabling algorithm. 

1.8 

AA 52 02 01 

Enable WHRM algorithm. 

AB 00 

Wait for 100ms before sending next command. Any command to change sensor registers should 

appear AFTER enabling algorithm or they will be overwritten. 

By default, WHRM sets the following AFE registers: 

  Sample rate is 100Hz, 4 sample averaging 

  Integration time: 117

μ

  ADC 1 and 2 range: 32

μ

  LED 1 full range: 124mA 

1.9 

AA 40 00 23 [7F] 

Set the MAX86141 LED1 current to half of full 

scale. Reduce [7F] if signal is saturated. 

AB 00 

1.10  AA 40 00 12 18 

Set sample rate of the MAX86141 to 100Hz 

with 1 sample averaging. 

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. 

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 

samples is shown i

Table 11

. 

AB 00 

data_for_ 

nn_samples 

ST

O

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 

3.3 

AA 52 02 00 

Disable WHRM algorithm. 

AB 00 

*Provided indexes are examples  for sensors such as the  MAX86141 AFE or KX122 

accelerometer. 
 

 

 

Содержание MAX32664C

Страница 1: ...ed for measurement of SpO2 and heart rate Combined with the MAX86141 optical sensor and a 3 axis accelerometer it provides the sensor s raw data as well as calculated SpO2 or heart rate data to a host...

Страница 2: ...llection in Algorithm Mode 11 2 2 2 Pure Raw Data Collection 13 2 3 Algorithm Mode 15 2 3 1 Algorithm Settings and Configurations 16 3 Measuring Heart Rate on Wrist WHRM 17 3 1 Setup 17 3 2 Raw Data C...

Страница 3: ...Table 6 Host Commands WSpO2 Pure Raw Data 13 Table 7 Format of Received Samples WSpO2 in Pure Raw Mode 14 Table 8 Host Commands WSpO2 Algorithm Mode 15 Table 9 Configurations and Settings WSpO2 16 Ta...

Страница 4: ...to properly capture and calculate the data this solution requires an accelerometer The MAX32664C firmware includes the required drivers for the Kionix KX122 accelerometer which is wired together with...

Страница 5: ...o interrupt the host for I2C communication The MAX32664C interfaces to the MAX86141 optical sensor through the SPI bus An accelerometer is mandatory for heart rate monitoring A KX122 accelerometer can...

Страница 6: ...The write transaction was successful 0x01 ERR_UNAVAIL_CMD Illegal Family Byte and or Command Byte was used 0x02 ERR_UNAVAIL_FUNC This function is not implemented 0x03 ERR_DATA_FORMAT Incorrect number...

Страница 7: ...fore starting the algorithm as described later in this document Alternatively a host side accelerometer can be used In this case the host is required to use a 3 axis accelerometer at 25Hz sampling and...

Страница 8: ...d they need to be loaded to the MAX32664C every time prior to starting the algorithm But first they are required to be converted to 32 bit integer format using the following Aint32 round 105 x a Bint3...

Страница 9: ...ettings and configurations Table 9 from default should appear here BEFORE enabling algorithm 1 7 AA 52 05 01 Enable WSpO2 algorithm AB 00 READING SAMPLES Host reads samples upon receiving MFIO interru...

Страница 10: ...celerometer 6 Bytes 18 accelX 2 Two s complement LSB 0 001g 20 accelY 2 Two s complement LSB 0 001g 22 accelZ 2 Two s complement LSB 0 001g SpO2 Algorithm 9 Bytes 24 R 2 10x calculated R value 26 Conf...

Страница 11: ...other fields can be ignored AB 00 1 3 AA 10 01 05 Set sensor hub interrupt threshold AB 00 1 4 AA 44 00 01 00 Enable AFE e g MAX86141 with sensor hub samples AB 00 1 5 AA 44 04 01 00 if sensor hub ac...

Страница 12: ...ored in the FIFO nn samples 33 bytes each will be read The format of samples is shown in Table 4 AB 00 data_for_ nn_samples STOP Host ends the procedure 3 1 AA 44 00 00 Disable AFE e g MAX86141 AB 00...

Страница 13: ...ll scale Reduce 7F if signal is saturated AB 00 1 9 AA 40 00 25 7F Set MAX86141 LED3 red current to half of full scale Reduce 7F if signal is saturated AB 00 1 10 AA 40 00 2A 3C Set MAX86141 LEDs 2 an...

Страница 14: ...ITEM NUMBER OF BYTES MSB FIRST DESCRIPTION MAX86141 PPG Data 18 Bytes 0 LED1 3 N A 3 LED2 3 N A 6 LED3 3 N A 9 LED4 3 Red LED counter 12 LED5 3 IR LED counter 15 LED6 3 N A Accelerometer 6 Bytes 18 a...

Страница 15: ...AB 00 1 5 AA 44 04 01 00 if sensor hub accelerometer is used AA 44 04 01 01 if host accelerometer is used Enable accelerometer with sensor hub or host side accelerometer AB 00 1 6 AA 50 05 02 00 Set...

Страница 16: ...rised of three 32 bit signed values 0xFFE69196 000CB735 00989680 0x01 Sampling rate Hz 0x00 100Hz 0x01 25Hz 0x01 0x02 Algorithm run mode 0x00 continuous 0x01 one shot 0x02 calibration to collect data...

Страница 17: ...ct raw PPG samples There are two ways to accomplish this which are detailed as follows 3 2 1 Raw Data Collection in Algorithm Mode In Algorithm mode automatic exposure control AEC and skin contact det...

Страница 18: ...overwritten By default WHRM sets the following AFE registers Sample rate is 100Hz 4 sample averaging Integration time 117 s ADC 1 and 2 range 32 A LED 1 full range 124mA 1 9 AA 40 00 23 7F Set the MA...

Страница 19: ...6 LED3 3 N A 9 LED4 3 Green 2 counter 12 LED5 3 N A 15 LED6 3 N A Accelerometer 6 Bytes 18 accelX 2 Two s complement LSB 0 001g 20 accelY 2 Two s complement LSB 0 001g 22 accelZ 2 Two s complement LSB...

Страница 20: ...ull 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...

Страница 21: ...EX DATA ITEM NUMBER OF BYTES MSB FIRST DESCRIPTION MAX86141 18 Bytes 0 LED1 3 Green 1 counter 3 LED2 3 N A 6 LED3 3 N A 9 LED4 3 Green 2 counter 12 LED5 3 N A 15 LED6 3 N A Accelerometer 6 Bytes 18 ac...

Страница 22: ...ommand to change the algorithm settings and configurations Table 15 from default should appear here BEFORE enabling the algorithm Example To run algorithm in AGC Only mode no AEC set motion magnitude...

Страница 23: ...RATION INDEX DESCRIPTION DEFAULT VALUE MSB FIRST 0x50 for write 0x51 for read 0x02 0x0B AEC algorithm enable 0x00 Disable 0x01 Enable 0x01 0x0C SCD enable 0x00 Disable 0x01 Enable 0x01 0x0D Adjusted t...

Страница 24: ...SUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION DEVICES OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT MAXIM ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEME...

Отзывы: