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...
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...
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.
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.
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.
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).
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.
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...
(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®...
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...
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.
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: •...
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.. •...
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...
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.
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.
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...
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...
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...
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,...
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.
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...
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.
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...
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.
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...
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...
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.
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.
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.
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.
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.
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).
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.
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...
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.
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.
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...
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).
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...
Need help?
Do you have a question about the MAX32664 and is the answer not in the manual?
Questions and answers