Table of Contents

Advertisement

Quick Links

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,
2
and annotated I
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
Maxim Integrated
Page 1 of 52

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MAX32664 and is the answer not in the manual?

Questions and answers

Summary of Contents for Maxim Integrated MAX32664

  • Page 1 C interface protocol, and annotated I 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 Maxim Integrated...
  • Page 2: Table Of Contents

    3831 I 2 C Commands to Flash the Application Algorithm ................4334 In-Application Programming of the MAX32664 .................. 4837 MAX32664 APIs and Methods for Reset, Sleep, Status, Heartbeat ............. 5039 Revision History ..........................5140 Maxim Integrated Page 2 of 52...
  • Page 3: Maxim Integrated

    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.
  • Page 4: Introduction

    The MAX32664 is a pre-programmed microcontroller with firmware drivers and algorithms. Combined with the appropriate sensor devices, the MAX32664 acts as a sensor hub to provide processed data to a host device. This solution seamlessly enables customers to receive raw and/or calculated data from Maxim’s optical sensor solutions, while keeping overall system power consumption in check.
  • Page 5: Max32664 Variants

    MAX32664 Variants The MAX32664 is pre-programmed with bootloader software that accepts in-application programming of Maxim application code which consists of algorithms and the associated sensor driver. The MAX32664 is used as a sensor hub controller. The algorithm/application code provides processed and/or raw data through the I C interface.
  • Page 6: Maxim Integrated

    If the KX-122 accelerometer is 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).
  • Page 7: Maxim Integrated

    If the KX-122 accelerometer is connected to MAX32664 then the 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).
  • Page 8 Integrated reference designs listed or for boards that use the MAX32664GWEZ. For all the MAX32664 parts, the algorithm (.msbl file) with the corresponding bootloader key must be downloaded, and these parts must be programmed using the in-application programming feature of the bootloader.
  • Page 9: Maxim Reference Designs With Max32664

    Maxim Reference Designs with MAX32664 Maxim provides multiple reference designs to its customers to enable quick and effective adoption of MAX32664 and fastest time to market. For detailed schematics, refer to the user guide of each reference design. MAXREFDES220# The MAXREFDES220# reference design provides everything you need to quickly prototype your product...
  • Page 10: Maxrefdes101

    (MAX20303), 6-axis accelerometer/gyroscope. The complete platform includes a watch enclosure and a biometric sensor hub with an embedded application code for heart-rate algorithm and AFE drivers (MAX32664)an embedded heart-rate algorithm (MAX32664). Algorithm output and sensorraw data can be streamed through Bluetooth®...
  • Page 11: Maxim Integrated

    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. Maxim Integrated Page 11 of 52...
  • Page 12: Max32664 Gpios And Rstn Pin

    Figure 3. Pin connections between the host and the MAX32664. The RSTN pin is used in conjunction with the GPIO P0.1 MFIO pin to control whether the MAX32664 starts up in Application mode or Bootloader mode. While in application mode, the MFIO pin can be configured to provide an interrupt signal to the host.
  • Page 13: Max32664 Bootup And Application Mode

    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 necessary sequence is as follows: •...
  • Page 14: Communications To The Max32664 Over I 2 C

    After the 10ms has elapsed, set the RSTN pin high. (MFIO pin should be set high at least 1ms before RSTN pin is set high). • After an additional 50ms has elapsed, the MAX32664 is in application mode and the application performs its initialization of the application software.. •...
  • Page 15: Figure 6. I 2 C Write/Read Data Transfer From Host Microcontroller

    ERR_TRY_AGAIN. Device is busy. Try again. 0x80 ERR_BTLDR_GENERAL. General error while receiving/flashing a page during the bootloader sequence. 0x81 ERR_BTLDR_CHECKSUM. Checksum error while decrypting/checking page data. 0x82 ERR_BTLDR_AUTH. Authorization error. 0x83 ERR_BTLDR_INVALID_APP. Application not valid. 0xFF ERR_UNKNOWN. Unknown Error. Maxim Integrated Page 15 of 52...
  • Page 16: Maxim Integrated

    Maxim Integrated Page 16 of 52...
  • Page 17: I 2 C Write

    The eight bits to be transferred as a slave address for the MAX32664 is 0xAA for a write transaction. 3. During the next SCL clock following the write bit, the master releases SDA. During this clock period, the device responds with an ACK by pulling SDA low.
  • Page 18: I 2 C Read

    2. The master transmits one byte with the 7-bit slave address and a single write bit set to zero. The eight bits to be transferred as a slave address for the MAX32664 is 0xAA for a write transaction. This write transaction precedes the actual read transaction to indicate to the device what section is to be read.
  • Page 19: Table 6. Max32664 I 2 C Message Protocol Definitions

    MAX32664 I C Message Protocol Definition Table defines the I C message protocol for the MAX32664. Table 56. MAX32664 I C Message Protocol Definitions HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE Read Sensor...
  • Page 20: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE Set Output Set the output format 0x10 0x00 0x00: Pause (no data) Mode of the sensor hub. 0x01: Sensor Data (MAX32664GWEA, 0x02: Algorithm Data MAX32664GWEB, 0x03: Sensor Data and...
  • Page 21: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE Read Output Read the threshold 0x11 0x01 0x01 to 0xFF: Sensor Hub Interrupt Mode for the FIFO interrupt Threshold for FIFO. bit/pin. The MFIO pin is used...
  • Page 22: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE Read Input FIFO Read the number of 0x13 0x03 0x04: Accelerometer MSB, LSB for External samples currently in Sensors the input FIFO (16- bit). (MAX32664GWEA, MAX32664GWEB,...
  • Page 23: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE Read Register Read the value of a 0x41 0x02 Register Address Register value MAX30001 register. (MAX32664GWEB) Read Register Read the value of a 0x41 0x03 Register Address Register value MAX30101 register.
  • Page 24: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x43 0x03 Dump Registers Read Register address 0, register value 0, MAX30101 registers. register address 1, register value 1, …, (MAX32664GWEA, register address n, register value n...
  • Page 25: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x45 0x04 Sensor Mode Read the external 0x00: Disabled, 0x00: Sensor Hub Read accelerometer accelerometer sensor mode 0x00: Disabled, 0x01: External Host MAX32664GWEA, accelerometer MAX32664GWEB, 0x01: Enabled, 0x00: Sensor Hub...
  • Page 26: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x50 0x02 Algorithm WHRM algorithm: Set 0x01, MSB of height, LSB of Configuration maximum height allowed height (cm). (16-bit unsigned integer) MAX32664GWEB) 0x50 0x02 Algorithm WHRM algorithm: Set...
  • Page 27: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x50 0x02 Algorithm MaximFast 0x0B, four bytes signed Configuration algorithm: Set the integer A, four bytes signed MaximFast integer B, four bytes signed coefficients. integer C (32-bit integers...
  • Page 28: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x50 0x04 Algorithm BPT algorithm: Write 0x01, diastolic value Configuration the three samples of diastolic value 2, diastolic the diastolic BP byte value 3 values needed by the calibration procedure.
  • Page 29: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x50 0x05 Algorithm on the wrist 0x00, four bytes signed Configuration (WSpO ) algorithm: integer A, four bytes signed WSpO integer B, four bytes signed coefficients. WSpO...
  • Page 30: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x51 0x00 Algorithm Automatic Gain 0x00 0 to 100 Percent Configuration Control (AGC) Read algorithm: Read the target percentage of the full-scale ADC range that the AGC algorithm is using.
  • Page 31: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x51 0x02 Algorithm WHRM algorithm: 0x07 MSB of height, LSB of height Configuration Read default (16-bit unsigned integer) Read height (cm). (MAX32664GWEB) 0x51 0x02 Algorithm WHRM...
  • Page 32: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x51 0x02 Algorithm WHRM algorithm: 0x11 0x01: PD1 Configuration Read 0x02: PD2 Read configuration of the 0x03: PD1 and PD2 PPG signal source. (MAX32664GWEB) Algorithm BPT algorithm: Read...
  • Page 33: Maxim Integrated

    HOST COMMAND MAX32664 FAMILY NAME DESCRIPTION FAMILY INDEX WRITE BYTES RESPONSE BYTES BYTE BYTE 0x51 0x05 Algorithm WSpO algorithm: 0x09 0x01: PD1 Configuration Read 0x02: PD2 Read configuration (source 0x03: PD1, PD2 of PPG signal). (MAX32664GWEC) Algorithm Mode AGC: Enable the AGC...
  • Page 34: Maxim Integrated

    (MAX32664GWEA, MAX32664GWEB, MAX32664GWEC, MAX32664GWED) Identity Read the MCU type. 0xFF 0x00 0x00: MAX32625 (MAX32664GWEA, 0x01: MAX32660/MAX32664 MAX32664GWEB, MAX32664GWEC, MAX32664GWED) Identity Read the sensor hub 0xFF 0x03 Major version byte, Minor version version. byte, Revision byte (MAX32664GWEA, MAX32664GWEB,...
  • Page 35: Table 7. Sensor Hub Status Byte

    WHRM State Machine Status Codes (signed 8-bit): 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 Maxim Integrated Page 35 of 52...
  • Page 36: Maxim Integrated

    WHRM State Machine Status Codes (signed 8-bit): 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 Maxim Integrated Page 36 of 52...
  • Page 37: Maxim Integrated

    Diastolic BP value. Only valid once progress = 100. value (70% - 100%): 16-bit, LSB = 0.1% r: 16-bit LSB = 0.1 SpO2 r value. HRaboveResting flag: a flag showing non-resting heart rate (>95 bpm) Maxim Integrated Page 37 of 52...
  • Page 38: Maxim Integrated

    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) HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x10 0x00 0x03†0xAA Set output mode to sensor and 0xAB 0x000xAB 0x00 No error.
  • Page 39: Table 10. Max32664Gwea I 2 C Annotated Application Mode Example

    1). The MAXREFDES220# is used for this example. Table 109. MAX32664GWEA I C Annotated Application Mode Example HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x02 0x00† Read device mode. 0xAB 0x00 0x00 No error. Mode is application operating mode.
  • Page 40: Table 11. Max32664Gweb I 2 C Annotated Application Mode Example

    HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x12 0x00* Get the number of samples in 0xAB 0x00 0x0F No error. Fifteen samples available. FIFO. 0xAA 0x12 0x01* Read the data stored in FIFO. 0xAB 0x00 0x03 0x6A 0x43 No error.
  • Page 41: Table 12. Max32664Gwec I 2 C Annotated Application Mode Example

    MAX32664GWEC for commanding the MAX32664GWEC to stream sensor and algorithm data. The SpO2 LED board is used for this example. Table 12. MAX32664GWEC I C Annotated Application Mode Example HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x10 0x00 0x03† Set output mode to sensor and 0xAB 0x00 No error.
  • Page 42: Maxim Integrated

    HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION 0xAA 0x12 0x01* Read the data stored in the FIFO. 0xAB 0x00 0x00 0X00 0x00 No error. Seq1Data= 0, Seq2Data = 0x00 0x00 0x00 0x00 0x00 0, Seq3Data = 0, Seq4Data Red LED =...
  • Page 43: Table 13. Max32664Gwed I 2 C Annotated Application Mode Example

    Table 13. MAX32664GWED I C Annotated Application Mode Example HOST COMMAND COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION Host sends commands to configure BPT user profile and then sends commands to start the user calibration while user finger is on the sensor.
  • Page 44: Maxim Integrated

    IMPORTANT: Do not enable the accelerometer if your board does not have the accelerometer. This example was captured with the MAX32630FTHR acting as the host microcontroller. The MAX32664 uses the 8-bit slave address of 0xAA. The example encrypted algorithm file used was the MAX32660_SmartSensor_OS24_MaximFast_1.8.2a.msbl (26 pages, 8196 bytes for the page size).
  • Page 45: Figure 7. Sequence To Enter Bootloader Mode

    COMMAND DESCRIPTION READ MAX32664 RESPONSE RESPONSE DESCRIPTION Sequence the MAX32664 to enter bootloader mode. * Figure 7. Sequence to enter bootloader mode. 0xAA 0x01 0x00 0x08* Set mode to 0x08 for bootloader mode. 0xAB 0x00 No error. 0xAA 0x02 0x00 Read mode.
  • Page 46: Figure 11. Send Page Bytes 0X4C To 0X205B From The .Msbl File

    0xAA 0x80 0x04 0xD3 0x58 Bootloader flash. Send page bytes 0xAB 0x00 No error. 0x34 ... 0x62 0x00 0x37* 0x321DC to 0x341EB from the .msbl file. Sequence the MAX32664 to enter application mode. * Maxim Integrated Page 46 of 52...
  • Page 47: Figure 12. Sequence To Enter Application Mode

    It is recommended to program the latest version of the MAX32664 sensor hub application algorithm/firmware .msbl file into the MAX32664 chip. Check the version that is programmed into the chip by using the command “Identity, Read sensor hub version.” The latest sensor hub algorithm/firmware is available for download for the MAX32664, MAXREFDES220#, and MAXREFDES101# from the Maxim website.
  • Page 48: Maxim Integrated

    In-Application Programming of the MAX32664 The MAX32664 allows for in-application 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.
  • Page 49: Figure 13. Max32664 In-Application Programming Flowchart

    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. Maxim Integrated Page 49 of 52...
  • Page 50: Table 15. Max32664 I 2 C Message Protocol Definitions

    MAX32664 APIs and Methods for Reset, Sleep, Status, Heartbeat Table summarizes the commands and methods to place the MAX32664 into reset or sleep, to interrogate its status, or to generate the “heartbeat” (a periodic signal generated by the software to indicate normal operation).
  • Page 51: Revision History

    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 timing for CMD_DELAY, and time for application to respond to I2C commands. Maxim Integrated Page 51 of 52...
  • Page 52 ©2019 by Maxim Integrated Products, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. MAXIM INTEGRATED PRODUCTS, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT.

Table of Contents