Maxim Integrated MAX32664 Скачать руководство пользователя страница 1

Maxim Integrated 

Page 1 of 52 

 

 
 
 
 
 
 
MAX32664 User Guide 

UG6806; Rev preliminary 1; 02/22 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Abstract 

The MAX32664 user guide provides flow charts, timing diagrams, GPIOs/pin usage, I

2

C interface protocol, 

and annotated I

2

C traces between the host microcontroller and the MAX32664. Typical application uses 

the MAX32664 as a low-power microcontroller in a sensor hub configuration to provide processed data 
such as heart rate and SpO

2

Содержание MAX32664

Страница 1: ...guide provides flow charts timing diagrams GPIOs pin usage I2C interface protocol and annotated I2C traces between the host microcontroller and the MAX32664 Typical application uses the MAX32664 as a low power microcontroller in a sensor hub configuration to provide processed data such as heart rate and SpO2 ...

Страница 2: ...664 Bootloader Mode 1312 MAX32664 Application Mode 1312 Communications to the MAX32664 over I2C 1413 Bit Transfer Process 1413 I2C Write 1716 I2C Read 1817 MAX32664 I2C Message Protocol Definition 1918 MAX32664 I2C Annotated Application Mode Example 3831 I2C Commands to Flash the Application Algorithm 4334 In Application Programming of the MAX32664 4837 MAX32664 APIs and Methods for Reset Sleep St...

Страница 3: ...igure 12 Sequence to enter application mode 47 Figure 13 MAX32664 in application programming flowchart 49 List of Tables Table 1 MAX32664 Variants Matching Algorithms and Reference Designs 5 Table 2 RSTN Pin and GPIOs Pins 12 Table 3 Additional GPIOs Used on the MAX32664 for the MAXREFDES220 13 Table 4 Additional GPIOs Used on the MAX32664 for the MAXREFDES101 13 Table 5 Read Status Byte Value 15 ...

Страница 4: ...hardware as the MAX32660 but with a pre programmed bootloader that accepts in application programming IAP of Maxim supplied algorithms and sensor drivers The MAX32664 provides a fast mode I2C slave interface to a microcontroller host A second I2C interface is dedicated to communicating with sensors For further details on memory register mapping system clocks reset power management GPIOs alternate ...

Страница 5: ...MAX32664 Variants Matching Algorithms and Reference Designs PART NUMBER APPLICATION ALGORITHM FIRMWARE BOOTLOADER KEY MAXIM REFERENCE DESIGN MAX32664GWEA MaximFast Maxim Integrated finger based heart rate and SpO2 monitoring algorithm 100Hz sampling The MaximFast algorithm is compatible with the sensor hub combination of the MAX3244664GWEA MAX30101 AFE and KX 122 accelerometer It is recommended bu...

Страница 6: ...22 accelerometer or external accelerometer data with the WHRM algorithm to detect and compensate motion If the KX 122 accelerometer is not connected to MAX32664 then external accelerometer data should be supplied at the 25Hz sampling rate The Automatic Exposure Control and Skin Control Detection AEC SCD of WHRM AEC SCD is included in the WHRM algorithm If AEC SCD is enabled the LED current pulse w...

Страница 7: ...urrent pulse width and sample rate are automatically determined by the algorithm If AEC SCD is not enabled the LED current LED current range pulse width and ADC range registers should be configured by the host software The Wearable Oxygen Saturation WSpO2 algorithm 25Hz sampling The WSpO2 algorithm is configured to use LED2 IR and LED3 Red and Phot diode 1 or 2 and it s compatible with the sensor ...

Страница 8: ...in control AGC If the AGC is enabled the LED currents and pulse width are automatically determined by the algorithm If the AGC is not enabled the LED currents and pulse width registers should be configured by the host software D MAXREFDES220 MAX32664GWEZ Z keyed algorithm firmware of the above which may be used to in application program the Maxim Integrated reference designs listed or for boards t...

Страница 9: ... ACCELEROMETER MAXREFDES220 FINGER HEART RATE AND PULSE OXIMETER SMART SENSOR MAX32630FTHR HOST SENSOR PLATFORM COMMANDS SECURE FIRMWARE BOOTLOADER MAX32664 A BIOMETRIC SENSOR HUB HEART RATE DATA SPO2 DATA ENCRYPTED MSBL APPLICATION ALGORITHM FIRMWARE DOWNLOAD SLAVE I2C SENSOR I2C USB PC GUI Figure 1 MAX32664 block diagram The MAXREFDES220 solution which includes the MAX30101 and the MAX32664 prov...

Страница 10: ... BootLoader MICROCONTROLLER BOARD I2 C Application Code Driver Firmware and HR Algorithm KX122 3 AXIS ACCEL optional SPI1 SPI0 SPI0 Figure 2 MAXREFDES101 block diagram This second generation health sensor platform a follow on to the MAXREFDES100 integrates a PPG AFE sensor MAX86141 a biopotential AFE MAX30001 a human body temperature sensor MAX30205 a microcontroller MAX32630 a power management IC...

Страница 11: ...tegrated Page 11 of 52 Android is a registered trademark of Google Inc The Bluetooth word mark and logos are registered trademarks owned by Bluetooth SIG Inc and any use of such marks by Maxim is under license ...

Страница 12: ...figured to provide an interrupt signal to the host The host acts an I2C master to communicate with the MAX32664 GPIO P0 2 is used as the SCL line and GPIO P0 3 is used as the SDA line Table 2 RSTN Pin and GPIOs Pins MAX32664 DESCRIPTION DIRECTION FROM THE MAX32664 SIDE Pin RSTN Reset_N Input GPIO P0 1 GPIO MFIO interrupt to host wake from host bootloader application on powerup Input Output GPIO P0...

Страница 13: ...Mode The MAX32664 is programmed to enter either bootloader mode or application mode at the start up based on the state of the MFIO pin Variations of the MAX32664 part are pre programmed with the different algorithms and application firmware Check with your Maxim representative MAX32664 Bootloader Mode The MAX32664 enters bootloader mode based on the sequencing of the RSTN pin and the MFIO pin The ...

Страница 14: ...mands Figure 5 Entering application mode using the RSTN pin and MFIO pin Communications to the MAX32664 over I2C The host communicates to the MAX32664 through the I2C bus The MAX32664 uses 0xAA as the I2C 8 bit slave write address and 0xXAB is used as the I2C 8 bit slave read address The maximum I2C data rate supported is 3400 Kbps Bit Transfer Process Both SDA and SCL signals are open drain circu...

Страница 15: ...TE VALUE DESCRIPTION 0x00 SUCCESS 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 of bytes sent for the requested Family Byte 0x04 ERR_INPUT_VALUE Illegal configuration value was attempted to be set 0x05 ERR_TRY_AGAIN Device is busy Try again 0x80 ...

Страница 16: ...Maxim Integrated Page 16 of 52 ...

Страница 17: ...the ninth bit to allow the device to reply with the ACK indication 7 The master senses the ACK condition and can begin to transfer another Write Data Byte if required The master drives data on the SDA circuit for each of the eight bits of the Write Data Byte and then floats SDA during the ninth bit to allow the device to reply with the ACK indication If another Write Data Byte is not required the ...

Страница 18: ...aster drives data on the SDA circuit for each of the eight bits of the Write Data byte and then floats SDA during the ninth bit to allow the device to reply with the ACK indication 7 The master indicates the transfer is complete by generating a STOP condition 8 The master waits for a period of CMD_DELAY 2 msec60µs for the device to have its data ready 9 The master indicates a data transfer to a sl...

Страница 19: ...ld 1 FIFO filled to threshold or above FifoOutOvrInt 4 0 No FIFO overflow 1 Sensor Hub Output FIFO overflowed data lost FifoInOvrInt 5 0 No FIFO overflow 1 Sensor Hub Input FIFO overflowed data lost DevBusy 6 0 Sensor Hub ready 1 Sensor Hub is busy processing See Table 76 for the for the bit field table Device Mode Select the device operating mode The application must implement this MAX32664GWEA M...

Страница 20: ...Set the threshold for the FIFO interrupt bit pin The MFIO pin is used as the interrupt and the host should configure this pin as an input interrupt pin The status bit DataRdyInt is set when this threshold is reached MAX32664GWEA MAX32664GWEB MAX32664GWEC MAX32664GWED 0x10 0x01 0x01 to 0xFF Sensor Hub Interrupt Threshold for FIFO almost full Read Output Mode READ the output format of the sensor hub...

Страница 21: ... MAX32664GWEB MAX32664GWEC MAX32664GWED 0x12 0x01 See Table 87 Output FIFO Format Definitions The internal FIFO read pointer increments once the sample size bytes have been read Read Input FIFO for External Sensors e g systems that have an externally supplied accelerometer Read the sensor sample size MAX32664GWEA MAX32664GWEB MAX32664GWEC 0x13 0x00 0x04 Accelerometer 0x06 Bytes per sample for the ...

Страница 22: ...te Register Write a value to a writable MAX86140 MAX86141 register MAX32664GWEB MAX32664GWEC 0x40 0x00 Register address Register value Write Register Write a value to a writable MAX30205 register MAX32664GWEB 0x40 0x01 Register address Register value Write Register Write a value to a writable MAX30001 register MAX32664GWEB 0x40 0x02 Register address Register value Write Register Write a value to a...

Страница 23: ...ve the attributes of the MAX30001 AFE MAX32664GWEB 0x42 0x02 Number of bytes in a word for this sensor Number of registers available for this sensor Get Attributes of the AFE Retrieve the attributes of the MAX30101 AFE MAX32664GWEA MAX32664GWED 0x42 0x03 Number of bytes in a word for this sensor Number of registers available for this sensor Get Attributes of the AFE Retrieve the attributes of the ...

Страница 24: ...ble Enable the MAX30001 sensor MAX32664GWEB 0x44 0x02 0x00 Disable 0x01 Enable Sensor Mode Enable Enable the MAX30101 sensor MAX32664GWEA MAX32664GWED 0x44 0x03 0x00 Disable 0x01 Enable Sensor Mode Enable Enable the external accelerometer sensor This command is used when host accelerometer data is supplied to the sensor hub MAX32664GWE A MAX32664GWEB MAX32664GWEC 0x44 0x04 0x00 Disable 0x00 Sensor...

Страница 25: ...0 0 to 100 percent Algorithm Configuration AGC algorithm Set the step size toward the target for the AGC algorithm MAX32664GWEA MAX32664GWED 0x50 0x00 0x01 0 to 100 percent Algorithm Configuration AGC algorithm Set the sensitivity for the AGC algorithm MAX32664GWEA MAX32664GWED 0x50 0x00 0x02 0 to 100 percent Algorithm Configuration AGC algorithm Set the number of samples to average for the AGC al...

Страница 26: ... height LSB of height 16 bit unsigned integer Algorithm Configuration WHRM algorithm Set the minimum allowed weight kg MAX32664GWEB 0x50 0x02 0x05 MSB of weight LSB of weight 16 bit unsigned integer Algorithm Configuration WHRM algorithm Set the minimum allowed age years MAX32664GWEB 0x50 0x02 0x06 Age Algorithm Configuration WHRM algorithm Set the default height cm MAX32664GWEB 0x50 0x02 0x07 MSB...

Страница 27: ...00 Disable 0x0C 0x01 Enable Algorithm Configuration WHRM algorithm Set adjusted target photo detector PD current period in seconds MAX32664GWEB 0x50 0x02 0x0D MSB LSB unsigned 16 bit integer Algorithm Configuration WHRM algorithm Set SCD debounce window MAX32664GWEB 0x50 0x02 0x0E MSB LSB unsigned 16 bit integer Algorithm Configuration WHRM algorithm Set motion magnitude threshold in 0 1g MAX32664...

Страница 28: ...the 0x51 0x04 0x03 command MAX32664GWED 0x50 0x04 0x03 824608 bytes of calibration data Algorithm Configuration BPT algorithm Set the estimation date using the current date The year is sent as a 16 bit unsigned integer and the month and day are bytes 0x50 0x04 0x04 year MSB year LSB month day Algorithm Configuration BPT algorithm Configure whether the user is not resting or resting MAX32664GWED 0x...

Страница 29: ...the AGC mode for the WSpO2 algorithm MAX32664GWEC 0x50 0x05 0x03 0x00 Disable 0x03 0x01 Enable Algorithm Configuration WSpO2 algorithm Set motion detection MAX32664GWEC 0x50 0x05 0x04 0x00 Disable 0x04 0x01 Enable Algorithm Configuration WSpO2 algorithm Set the motion detection period seconds MAX32664GWEC 0x50 0x05 0x05 MSB of Period LSB of Period 16 bit unsigned integer Algorithm Configuration WS...

Страница 30: ...iguration Read Wrist Heart Rate Monitor WHRM algorithm Read the sample rate MAX32664GWEB 0x51 0x02 0x00 MSB of sample rate LSB of sample rate 16 bit unsigned integer Algorithm Configuration Read WHRM algorithm Read the maximum allowed height cm MAX32664GWEB 0x51 0x02 0x01 MSB of height LSB of height 16 bit unsigned integer Algorithm Configuration Read WHRM algorithm Read the maximum allowed weight...

Страница 31: ...A 0x51 0x02 0x0B Four bytes signed integer A Four bytes signed integer B Four bytes signed integer C 32 bit integers which are the coefficients times 100 000 Algorithm Configuration Read WHRM algorithm Read the AEC algorithm enable status MAX32664GWEB 0x51 0x02 0x0B 0x00 Disabled 0x01 Enabled Algorithm Configuration Read WHRM algorithm Read the SCD algorithm enable status MAX32664GWEB 0x51 0x02 0x...

Страница 32: ...EC 0x51 0x05 0x01 0x00 100 Hz 0x01 25 Hz Algorithm Configuration Read WSpO2 algorithm Read the algorithm run mode MAX32664GWEC 0x51 0x05 0x02 0x00 Continuous 0x01 One shot Algorithm Configuration Read WSpO2 algorithm Read the AGC mode status MAX32664GWEC 0x51 0x05 0x03 0x00 Disabled 0x01 Enabled Algorithm Configuration Read WSpO2 algorithm Read the motion detection status MAX32664GWEC 0x51 0x05 0x...

Страница 33: ...ECG algorithm MAX32664GWEB 0x52 0x03 0x00 Disable 0x01 Enable Algorithm Mode Enable Blood Pressure Trending BPT Enable the BPT algorithm MAX32664GWED 0x52 0x04 0x00 Disable 0x01 Enable Calibration Mode 0x02 Enable Estimation Mode Algorithm Mode Enable WSpO2 Enable the algorithm MAX32664GWEC 0x52 0x05 0x00 Disable 0x01 Enable Mode 1 Bootloader Flash Set the initialization vector IV bytes MAX32664GW...

Страница 34: ...der version MAX32664GWEA MAX32664GWEB MAX32664GWEC MAX32664GWED 0x81 0x00 Major version byte Minor version byte Revision byte Bootloader Information Get the page size in bytes MAX32664GWEA MAX32664GWEB MAX32664GWEC MAX32664GWED 0x81 0x01 Upper byte of page size Lower byte of page size Identity Read the MCU type MAX32664GWEA MAX32664GWEB MAX32664GWEC MAX32664GWED 0xFF 0x00 0x00 MAX32625 0x01 MAX326...

Страница 35: ... 3 Seq6DataLED5 value 24 bit N A MAX86141 MAX32664GWEC 3 Seq1Data value 24 bit N A 3 Seq2Data value 24 bit N A 3 Seq3Data value 24 bit N A 3 Seq4Data value 24 bit Red LED count 3 Seq5Data value 24 bit IR LED count 3 Seq6Data value 24 bit N A MAX30205 MAX32664GWEB 2 Temperature value 16 bits LSB 0 00390625 C MAX30001 MAX32664GWEB MAX30001 3 ECG 24 bit 3 R to R 24 bit 3 BIOZ 24 bit 3 PACE 24 bit KX ...

Страница 36: ...ast State Machine Status Codes 0 No object detected 1 Object detected 2 Object other than finger detected 3 Finger detected 2 r 16 bit LSB 0 1 SpO2 r value 1 MaximFast State Machine Extended Status Codes 0 Success 1 Not ready 1 Object detected 2 Excessive sensor device motion 3 No object detected 4 Pressing too hard 5 Object other than finger detected 6 Excessive finger motion 1 0 reserved for fut...

Страница 37: ...n state 2 Successful state 3 Timeout stateIsWSpo2Calculated Algorithm reported status BPT MAX32664GWD 1 Calibration estimation mode status 0 No Signal 1 In Progress 2 Successful 3 Bad Signal 4 Implied Motion Detected 5 Failure 6 Calibration Done 1 Calibration mode progress Value ranges from 0 to 100 100 meaning calibration is complete 2 Heart rate bpm LSB 0 1 bpm 1 Systolic BP value Only valid onc...

Страница 38: ...e 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 0...

Страница 39: ...orithm 0xAB 0x00 No error 0xAA 0x44 0x03 0x01 Enable the MAX30101 sensor 0xAB 0x00 No error 0xAA 0x44 0x04 0x01 0x00 Enable the sensor hub accelerometer Only enable if the board has an accelerometer 0xAB 0x00 No error 0xAA 0x52 0x02 0x01 Enable WHRM MaximFast 10 x algorithm mode 1 0xAB 0x00 No error 0xAA 0x00 0x00 Read the sensor hub status 0xAB 0x00 0x08 No error DataRdyInt bit is set 0xAA 0x12 0...

Страница 40: ...xample Table 110 MAX32664GWEB I2C Annotated Application Mode Example HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x52 0x00 0x01 Enable AGC 0xAB 0x00 0x00 No error 0xAA 0x10 0x00 0x03 Set output mode to sensorraw and algorithm data 0xAB 0x00 No error 0xAA 0x10 0x01 0x05 Set FIFO threshold as almost full atto 0x05 Increase or decrease this value if you want more...

Страница 41: ...Rate 65 5 Confidence 99 SpO2 0 WHRM State Machine Status 0 data for seven other samples 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 FIFO 0xAB 0x00 0x08 No error Eight samples available 0xAA 0x12 0x01 Read the data stored in FIFO 0xAB 0x00 No error Data read Mandatory Recommended Table 12 shows a capture of the ...

Страница 42: ...t bit is set 0xAA 0x12 0x00 Get the number of samples in FIFO 0xAB 0x00 0x08 No error Eight samples available 0xAA 0x12 0x01 Read the data stored in FIFO 0xAB 0x00 0x00 0X00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x52 0XF8 0x02 0xCB 0x83 0x00 0x00 0x00 0xFC 0xE5 0x00 0x07 0x02 0X26 0x00 0x29 0x02 0XB0 0x63 0x03 0xDE 0x00 0x00 0x00 0x00 data for seven other samples No error Seq1Data 0 Seq2Data 0 S...

Страница 43: ...r 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 0x11 No error Seventeen samples are in the FIFO 0xAA 0x12 0x01 Read the data stored in the FIFO 0xAB 0x00 0x03 0x25 0xF4 0x02 0x6E 0x22 0x00 0x00 0x00 0x00 0x00 0x2C 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 data for sixteen other sam...

Страница 44: ...fourteen other samples No error LED1 IR 206324 LED2 159266 LED3 N A LED4 N A Status 2 Progress 100 Heart Rate 68 0 Systolic 119 Diastolic 74 SpO2 100 0 r 0 HRaboveResting 0 data for fourteen other samples Host reads user profile and calibration data 0xAA 0x51 0x04 0x03 Read the 824 bytes of calibration data for this user 0xAB 0x00 0x2E 0xE8 0x02 0x00 0x88 0x39 0x02 0x00 0x79 0x00 eight hundred fou...

Страница 45: ...ze 0xAB 0x00 0x20 0x00 No error Page size is 8192 0xAA 0x80 0x02 0x00 0x1A Bootloader flash Set the number of pages to 31 based on the value at byte 0x44 from the application msbl file which is created from the user application bin file 0xAB 0x00 No error Figure 8 Page number byte 0x44 from the msbl file 0xAA 0x80 0x00 0x1A 0xDB 0xE5 0x0D 0x90 0x79 0xE6 0xC6 0x13 0x87 0xB9 Bootloader flash Set the...

Страница 46: ...tloader flash Send page bytes 0x1810C to 0x1A11B from the msbl file 0xAB 0x00 No error 0xAA 0x80 0x04 0x51 0x32 0x47 0x41 0xE6 0x47 Bootloader flash Send page bytes 0x1A11C to 0x1C12B from the msbl file 0xAB 0x00 No error 0xAA 0x80 0x04 0x22 0xA6 0x06 0x2A 0xCB 0x44 Bootloader flash Send page bytes 0x1C12C to 0x1E13B from the msbl file 0xAB 0x00 No error 0xAA 0x80 0x04 0x68 0x9E 0x1E 0x53 0x89 0xE...

Страница 47: ... 0x24 registers available 0xAA 0x43 0x03 Read all the MAX30101 registers 0xAB 0x00 0x00 0x00 0x01 0x00 0x02 0x40 No error Reg 0x00 0 reg 0x01 0 reg0x02 0x40 Returns the Read Status Byte and 36 pairs of numbers 0xAA 0x41 0x03 0x07 Read the MAX30101 register 7 0xAB 0x00 0x00 No error Register 0x07 is 0 Mandatory Recommended It is recommended to program the latest version of the MAX32664 sensor hub a...

Страница 48: ...ion programming of the application algorithm firmware In application programming allows for the programming of the sensor hub application firmware during manufacturing and for allowing over the air OTA updates of the application firmware in the product Figure 13 is a flowchart of the in application programming ...

Страница 49: ...m Integrated Page 49 of 52 Note 340ms may need to be adjusted to 680ms or more when the reference design host is communicating with slower PCs systems Figure 13 MAX32664 in application programming flowchart ...

Страница 50: ...et Use MFIO and RSTN pins according to Figure 4Figure 4 and Figure 5Figure 5 WDT in MAX32664 Bootloader Mode Not implemented WDT in MAX32664 msbl Application mode Not implemented Bootloader or Application Status 0XAA 0x02 0x00 Send the read mode command Response is 0xAB 0x00 0x08 if in bootloader mode or 0xAB 0x00 0x00 if in application mode Heartbeat for Application Mode Sample source and msbl fi...

Страница 51: ... to 0x14 0x00 Updated 0x44 0x04 command and Sequence of Commands for external host Add PD1 PD2 to 0x51 0 0x05 0x09 Add additional modes to 0x52 0x02 and 0x52 0x04 Label commands in message protocol table and output format table as MAX32664A B C D Add mode 2 for MaximFast in output format table Sequence of Commands table updated Add annotated I2C traces for MAX32664GWEC MAX32664GWED Corrected timin...

Страница 52: ...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 INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION DEVICES OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE The information contained within this document has been verified according to the general principles of el...

Отзывы: