39
Introduction The STEVAL-MKI109V3 motherboard provides users with a complete, ready-to-use platform for the evaluation of STMicroelectronics MEMS products. It includes a high-performance 32-bit microcontroller which functions as a bridge between the sensors and a PC, on which you can download and run the graphical user interface (GUI) or dedicated software routines for customized applications. The board features a DIL24 socket to mount all available adapters for both digital and analog output MEMS devices. STEVAL-MKI109V3 Professional MEMS Tool motherboard for MEMS adapter boards UM2116 User manual UM2116 - Rev 3 - July 2018 For further information contact your local STMicroelectronics sales office. www.st.com

User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

  • Upload
    others

  • View
    32

  • Download
    1

Embed Size (px)

Citation preview

Page 1: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

IntroductionThe STEVAL-MKI109V3 motherboard provides users with a complete, ready-to-use platform for the evaluation ofSTMicroelectronics MEMS products.

It includes a high-performance 32-bit microcontroller which functions as a bridge between the sensors and a PC, on which youcan download and run the graphical user interface (GUI) or dedicated software routines for customized applications.

The board features a DIL24 socket to mount all available adapters for both digital and analog output MEMS devices.

STEVAL-MKI109V3 Professional MEMS Tool motherboard for MEMS adapter boards

UM2116

User manual

UM2116 - Rev 3 - July 2018For further information contact your local STMicroelectronics sales office.

www.st.com

Page 2: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

1 Demonstration kit description

The Professional MEMS Tool is a complete demonstration kit for digital and analog MEMS sensors. Thanks to itsDIL24 connector, a wide range of MEMS adapter boards can be used.

Figure 1. Demonstration board block diagram

The Professional MEMS Tool demonstration kit is based on the STM32F401VE microcontroller and can beconnected to a PC via USB. Data from MEMS sensors connected to the board can be read through the PC GUIprovided with the kit.The Professional MEMS Tool also implements the DFU (device firmware upgrade) feature, so it can bereprogrammed with a new firmware release without the need to use a programmer (see www.st.com/mems).The Professional MEMS Tool integrates:• Six LEDs:

– two LEDs connected via FET buffers to the interrupt pins of digital adapters– a power/USB LED– three general-purpose LEDs for firmware state indication

• Three buttons:– two user buttons on a dedicated GPIO of the microcontroller– a microcontroller reset button

All the MEMS adapter pins are available on board connectors J1 and J3.

UM2116Demonstration kit description

UM2116 - Rev 3 page 2/39

Page 3: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 2. Top silkscreen of the Professional MEMS Tool kit

UM2116Demonstration kit description

UM2116 - Rev 3 page 3/39

Page 4: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 3. Top view of Professional MEMS Tool kit

Figure 3 highlights some of the main components on the top layer of the Professional MEMS Tool kit.1. Button BT3 is used to reset the STM32.2. Button BT2 connected to STM32 GPIOs and available to the user. To enter DFU mode:

a. press buttons BT3 (Reset) and BT2 togetherb. first release BT3 and then release BT2

3. BT1 connected to STM32 GPIOs and available to the user.4. Jumpers J13 (VDD) and J14 (VDDIO) allow the user to measure the sensor current consumption by

connecting a multimeter in series with their terminals.5. Jumper J10 is used as a general purpose input to manually set certain features for several MEMS adapters.6. Jumper J12 is used as a general purpose input to manually set certain features for several MEMS adapters.7. Jumper J11 is used to set the self-test feature during testing of Professional MEMS Tool PCB.8. Jumper J7 is used to select either JTAG (JP7 open – NRST control not allowed from programming

connector J6) or SWD mode (JP7 shorted – NRST control allowed from connector J6).9. J6 connector can be used to reprogram the STM32 and debug the code through the JTAG or SWD

protocols.10. Jumper J4 can be used to directly supply the board (from 4.5 V to 5.5 V) instead of through the USB

connector.11. LED D6 lights up when the board is powered.12. J8 connector can be used for UART RX/TX communication.13. LEDs D1, D2, and D3 are general-purpose LEDs used to indicate firmware states; e.g.:

UM2116Demonstration kit description

UM2116 - Rev 3 page 4/39

Page 5: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

a. LED D3 YELOW light up when specific firmware is selected from those availableb. LED D2 RED on indicates that the microcontroller is properly configured for communication with the

sensorc. LED D1 GREEN blinks according to the sensor data rate selected

14. J9 connector can be used for general purpose SPI bus.15. LEDs D4 and D5 are directly connected to the interrupt pins of the MEMS digital adapters (if available on the

sensor mounted on the adapter board).Figure 4. How to plug the DIL24 adapter on STEVAL-MKI109V3 shows how to plug the DIL 24 adapter MEMSmodule on the Professional MEMS Tool. VDD and VDDIO are in the top left corner (pins 1 and 2) and GND is inthe bottom right corner (pin 13).

Figure 4. How to plug the DIL24 adapter on STEVAL-MKI109V3

UM2116Demonstration kit description

UM2116 - Rev 3 page 5/39

Page 6: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

2 Professional MEMS Tool board installation

The software packages can be downloaded from the st.com website; it is arranged in the following directorystructure:• DRIVER: it contains the installation package for the USB drivers needed to connect the Professional MEMS

Tool board to the PC. No driver is needed on Linux and Mac OS platforms, so this directory is included in theWindows installation package only.

• DFU: it contains the .dfu files and the installation package for the software needed to upgrade the firmwareof the Professional MEMS Tool board.

• FIRMWARE: it contains the source code of the firmware of the Professional MEMS Tool board together withthe corresponding binary file that can be flashed to the board using the DFU software.

2.1 Hardware installation (Windows® platforms)• For Linux® and Mac OS® platforms, no driver installation is required.• For Windows platforms, install the STM32 virtual COM port driver by running VCP_V1.4.0_Setup.exe in the

DRIVER folder of the Windows installation package and follow the instructions.

Once the driver is installed, connect the demonstration kit board to a free USB port. A confirmation messageshould appear.

Figure 5. Successful device driver installation

Confirm which COM port has been assigned to the board: right click on My Computer and select Manage, thenselect Device Manager and scroll through the list to Ports (COM & LPT).

Note: The STM32 virtual COM port driver for Windows platforms and related documents are packaged with the STSW-STM32102 software download at www.st.com

UM2116Professional MEMS Tool board installation

UM2116 - Rev 3 page 6/39

Page 7: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 6. Virtual COM port assignment

2.2 DFUThe MEMS STEVAL-MKI109V3 demonstration board can reprogram an application via USB, in accordance withthe DFU class specification defined by the USB Implementers Forum. This direct reprogramming of themicrocontroller is particularly suited to USB applications where the same USB connector can be used both for thestandard operating mode and the reprogramming process.To configure the Professional MEMS Tool board in DFU mode:• press button BT2 before supplying the board and release it when LED D6 lights up• or

1. press BT3 (Reset) and BT2 together2. release BT3 followed by BT2.

Led D6 will light up and the device should appear in Windows Device manager as “STM device in DFU mode”.

2.2.1 DFU on Windows®To install the DFU software, run DfuSe_Demo_V3.0.5_Setup.exe included in the software package and follow theinstructions.

Step 1. Following correct installation launch the software from Start > STMicroelectronics > DfuSe >DfuSeDemo.The typical location of the executable file is C:\Program Files (x86)\STMicroelectronics\Software\DfuSev3.0.5\Bin\DfuSeDemo.exe.

Step 2. In the Upgrade or Verify Action section of the DfuseDemo tool click on the Choose... button and selectthe target .dfu file; then click the ‘Upgrade’ button to start the firmware upgrade.For more details regarding DFU and the microcontroller ST GUI, see the user manual located typicallyin– C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.5\Bin\Doc\UM0412.pdf– Start > STMicroelectronics > DfuSe > Docs > UM0412.pdf.– The DFU utility tool and relative documentation are available on ww.st.com by searching STSW-

STM32080.

2.2.2 DFU on Linux®The DFU program for Linux operating systems is dfu-util. The procedure for Ubuntu Linux operating systems isdescribed below.

UM2116DFU

UM2116 - Rev 3 page 7/39

Page 8: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Step 1. Open a terminal and run (with sudo to ensure the correct permissions):sudo apt-get install dfu-util

Step 2. Create a udev rules file:sudo gedit /etc/udev/45-Professional MEMS Tool.rules

Step 3. Fill it with the following content:

# 0483:5740 - STM32F4 in USB Serial Mode (CN5)ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",ENV{ID_MM_DEVICE_IGNORE}="1"ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",ENV{MTP_NO_PROBE}="1" SUBSYSTEMS=="usb",ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",MODE:="0666"KERNEL=="ttyACM*", ATTRS{idVendor}=="0483",ATTRS{idProduct}=="5740", MODE:="0666"# 0483:df11 - STM32F4 in DFU mode (CN5) SUBSYSTEMS=="usb",ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"

Step 4. Instruct udev to reload its rules:sudo udevadm control --reload-rulesYou should now be able to program the board.

Step 5. Connect the Professional MEMS Tool board in DFU mode and run:sudo dfu-util -a 0 -D dfu_path/file.dfu -d 0483:df11where:– dfu_path is the path to the dfu file– file.dfu is the dfu file name

example: sudo dfu-util -a 0 -D Desktop/Professional MEMS ToolV2_REL_4_0.dfu -d0483:df11.

Step 6. Disconnect and reconnect the board to exit DFU mode and start using the board with the newfirmware.

2.2.3 DFU on Mac OS®The DFU program used for Mac operating systems is dfu-util.

Step 1. Before installing DFU on your Mac OS, you need to install Homebrew. Open a terminal and run:ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Step 2. Install dfu-utils:brew install dfu-utilYou should now be able to program the board

Step 3. Connect the Professional MEMS Tool board in DFU mode, and run:dfu-util -a 0 -D dfu_path/file.dfu -d 0483:df11where:– dfu_path is the path to the dfu file– file.dfu is the dfu file name

example: dfu-util -a 0 -D Desktop/Professional MEMS ToolV2_REL_4_0.dfu -d0483:df11.

Step 4. Disconnect and reconnect the board to exit DFU mode and start using the board with the newfirmware.

UM2116DFU

UM2116 - Rev 3 page 8/39

Page 9: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

3 Supported MEMS adapter boards

Table 1. List of supported MEMS adapter boards

Adapter board Device

STEVAL-MET001V1 LPS22HB

STEVAL-MKI087V1 LIS331DL

STEVAL-MKI089V1 LIS331DLH

STEVAL-MKI092V1 LIS331HH

STEVAL-MKI105V1 LIS3DH

STEVAL-MKI106V1 LSM303DLHC

STEVAL-MKI107V1 L3G4200D

STEVAL-MKI107V2 L3GD20

STEVAL-MKI108V2 9AXISMODULE v2 [LSM303DLHC + L3GD20]

STEVAL-MKI110V1 AIS328DQ

STEVAL-MKI122V1 LSM330DLC

STEVAL-MKI125V1 A3G4250D

STEVAL-MKI134V1 LIS3DSH

STEVAL-MKI135V1 LIS2DH

STEVAL-MKI136V1 L3GD20H

STEVAL-MKI137V1 LIS3MDL

STEVAL-MKI141V1 HTS221

STEVAL-MKI142V1 LPS25H

STEVAL-MKI151V1 LIS2DH12

STEVAL-MKI154V1 LSM9DS0

STEVAL-MKI158V1 AIS3624DQ

STEVAL-MKI159V1 LSM9DS1

STEVAL-MKI160V1 LSM6DS3

STEVAL-MKI161V1 LSM6DS0

STEVAL-MKI163V1 LSM303C

STEVAL-MKI164V1 LIS2HH12

STEVAL-MKI165V1 LPS25HB

STEVAL-MKI166V1 H3LIS100DL

STEVAL-MKI167V1 H3LIS200DL

STEVAL-MKI168V1 IIS2DH

STEVAL-MKI169V1 I3G4250D

STEVAL-MKI170V1 IIS328DQ

STEVAL-MKI172V1 LSM303AGR

STEVAL-MKI173V1 LSM303AH

STEVAL-MKI174V1 LIS2DS12

STEVAL-MKI175V1 LIS2DE12

STEVAL-MKI176V1 LSM6DS3H

UM2116Supported MEMS adapter boards

UM2116 - Rev 3 page 9/39

Page 10: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Adapter board Device

STEVAL-MKI177V1 LPS35HW

STEVAL-MKI178V1 LSM6DSL

STEVAL-MKI179V1 LIS2DW12

STEVAL-MKI180V1 LIS3DHH

STEVAL-MKI181V1 LIS2MDL

STEVAL-MKI182V1 ISM330DLC

STEVAL-MKI183V1 LPS33HW

STEVAL-MKI184V1 ISM303DAC

STEVAL-MKI185V1 IIS2MDC

STEVAL-MKI186V1 IIS3DHHC

STEVAL-MKI188V1 L20G20IS

STEVAL-MKI189V1 LSM6DSM

STEVAL-MKI190V1 LIS2DTW12

STEVAL-MKI191V1 IIS2DLPC

STEVAL-MKI192V1 LPS22HH

STEVAL-MKI193V1 ASM330LHH

STEVAL-MKI194V1 LSM6DSR

STEVAL-MKI195V1 LSM6DSRX

STEVAL-MKI196V1 LSM6DSO

STEVAL-MKI197V1 LSM6DSOX

UM2116Supported MEMS adapter boards

UM2116 - Rev 3 page 10/39

Page 11: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4 Supported commands

The microcontroller mounted on the Professional MEMS Tool board is equipped with dedicated firmware thatallows control of the digital output MEMS sensor, and acquisition of the measured data.The firmware also handles the communication between the board and the PC through the USB bus.

4.1 Getting startedBefore using the commands supported by the firmware, the following procedure must be performed:

Step 1. Connect the Professional MEMS Tool to the USB portStep 2. Launch an application that allows sending commands through the virtual serial port. The remainder of

this document assumes the use of Microsoft® HyperTerminal program available with the Windows XPoperating system, but you can use any similar tool.

Step 3. Create a new connection, enter a name (e.g. STEVAL-MKI109V3), and click OK.Step 4. In the Connect Using field, select the virtual COM port to which the USB port has been mapped, and

click OK.Step 5. In port settings, set bits per second to 115200, data bits to 8, parity to none, stop bits to

1, and flow control to none; click OKStep 6. In the HyperTerminal application window, select files > properties > settings, then click

ASCII Setup.Step 7. Select Send line ends with line feeds and Echo typed characters locallyStep 8. Click OK to close the ASCII Setup windowStep 9. Click OK button to close the Properties window.

Once this procedure has been completed you can use the commands described in the followingsections by typing them in the “HyperTerminal” window.

4.1.1 Quick startThe basic sequence of commands (based on the LIS3DH accelerometer) to start a data communication sessionand to retrieve X, Y, and Z acceleration data from the demonstration kit is:

Step 1. Connect the Professional MEMS Tool to the USB portStep 2. Start “Microsoft© HyperTerminal” (or another similar application) and configure it as described in

Section 4.1 Getting startedStep 3. Enter the *setdb105v1 command in the HyperTerminal” window, (supposing the LIS3DH adapter

board is used – for other adapters see the relevant datasheets to check the register configuration),enter the command * Zoff to enable the control of the device by the STM32F401VE microcontroller,and *w2047 to switch on the LIS3DH and to set the data rate to 50 Hz

Step 4. Send the *debug command to get the X, Y, and Z data measured by the sensorStep 5. Send *stop to end the continuous acquisition and visualization.

4.2 Supported commandsThe firmware supports a wide range of MEMS adapters; the complete list of supported commands and theirdescriptions are given below. Commands are not case sensitive.

Table 2. List of supported commands

Command Description Returned value(1)

*setdbXXXVY Selects firmware according to the adapterconnected Device name e.g.: LIS3DH

UM2116Supported commands

UM2116 - Rev 3 page 11/39

Page 12: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Command Description Returned value(1)

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

*board Returns board name

*rAA Accelerometer register read e.g.: RAAhDDh

*wAADD Accelerometer register write

*grAA Gyroscope register read e.g.: GRAAhDDh

*gwAADD Gyroscope register write

*mrAA Magnetometer register read e.g.: MRAAhDDh

*mwAADD Magnetometer register write

*prAAx Pressure sensor register read e.g.: PRAAhDDh

*pwAADD Pressure sensor register write

*hrAA Humidity sensor register read e.g.: HRAAhDDh

*hwAADD Humidity sensor register write

*single It gets a single X, Y, and Z data acquisition (see Table 3. Returned values for *start command)

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: RAAhDDh

*echooff Deactivates the write verbose mode

*fiforst Accelerometer “Reset mode” enable st XH XL YH YL ZH ZL IR FC FS

*fifomde Accelerometer “FIFO mode” enable st XH XL YH YL ZH ZL IR FC FS

*fifostr Accelerometer “FIFO stream” enable st XH XL YH YL ZH ZL IR FC FS

*fifostf Accelerometer “Stream to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*fifobtf Accelerometer “Bypass to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*fifobts Accelerometer “Bypass to stream” enable st XH XL YH YL ZH ZL IR FC FS

*fifodstr Accelerometer “Dynamic stream” enable st XH XL YH YL ZH ZL IR FC FS

*gfiforst Gyroscope “Reset mode” enable st XH XL YH YL ZH ZL IR FC FS

*gfifomde Gyroscope “FIFO mode” enable st XH XL YH YL ZH ZL IR FC FS

*gfifostr Gyroscope “FIFO stream” enable st XH XL YH YL ZH ZL IR FC FS

*gfifostf Gyroscope “Stream to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*gfifobtf Gyroscope “Bypass to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*gfifobts Gyroscope “Bypass to stream” enable st XH XL YH YL ZH ZL IR FC FS

*gfifodstr Gyroscope “Dynamic stream” enable st XH XL YH YL ZH ZL IR FC FS

*pfiforst Pressure sensor “Reset mode” enable st XH XL YH YL ZH ZL IR FC FS

*pfifomde Pressure sensor “FIFO mode” enable st XH XL YH YL ZH ZL IR FC FS

*pfifostr Pressure sensor “FIFO stream” enable st XH XL YH YL ZH ZL IR FC FS

UM2116Supported commands

UM2116 - Rev 3 page 12/39

Page 13: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Command Description Returned value(1)

*pfifostf Pressure sensor “Stream to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*pfifobtf Pressure sensor “Bypass to FIFO” enable st XH XL YH YL ZH ZL IR FC FS

*pfifobts Pressure sensor “Bypass to stream” enable st XH XL YH YL ZH ZL IR FC FS

*pfifodstr Pressure sensor “Dynamic stream” enable st XH XL YH YL ZH ZL IR FC FS

*POWER_ON Turns on VDD and VDDIO power supply

*POWER_OFF Turns off VDD and VDDIO power supply

*setvddaX.Y Sets VDD voltage value “X.Y” Volts e.g.: 3.6

*setvddioX.Y Sets VDDIO voltage value “X.Y” Volts e.g.: 3.6

*adc_single Measures VDD, VDDIO, IDD, IDDIO andanother values sent in binary form adc:D1D2D3…D20

*rmAA1NN Multiple read of NN Accelerometer successiveregisters RMAA1hNNhDD1hDD2...DDNNh

*mutli-rAA1AA2 AA3…Accelerometer registers

multiple readMULTI-RAA1hDD1h AA2hDD2h…. AAnDDnh

*grmAA1NN Multiple read of NN Gyroscope successiveregisters GRMAA1hNNhDD1hDD2...DDNNh

*multi-grAA1AA2 AA3…Gyroscope registers

multiple readMULTI-GRAA1hDD1h AA2hDD2h…. AAnDDnh

*mrmAA1NN Multiple read of NN Magnetometer successiveregisters MRMAA1hNNhDD1hDD2...DDNNh

*multi-mrAA1AA2AA3…

Magnetometer registers

multiple readMULTI-MRAA1hDD1h AA2hDD2h…. AAnDDnh

*prmAA1NN Multiple read of NN Pressure sensor successiveregisters PRMAA1hNNhDD1hDD2...DDNNh

*multi-prAA1AA2 AA3…Pressure sensor registers

multiple readMULTI-PRAA1hDD1h AA2hDD2h…. AAnDDnh

*hrmAA1NN Multiple read of NN Humidity sensor successiveregisters HRMAA1hNNhDD1hDD2...DDNNh

*multi-hrAA1AA2 AA3…Humidity sensor registers

multiple readMULTI-HRAA1hDD1h AA2hDD2h…. AAnDDnh

1. RP: Reference pressure XLSB.MSB, IR: interrupt byte; FC: FIFO control register; FS: FIFO source register

4.2.1 *setdbXXXVYThis command selects the part of the firmware able to handle the adapter board sensor connected to the board.For example, *setdb105V1 selects the firmware for the LIS3DH.The D3 LED (yellow) switches on automatically.

4.2.2 *startThis command initiates continuous data acquisition. When sent, the device returns a string of bytes (plus carriagereturn and line feed) like st OUT1 OUT2 OUT3 IR STP BT.The first two bytes are always the ASCII char s and t which correspond to the hexadecimal values {73h 74h}.OUT1, OUT2, and OUT3 contain the values measured at device outputs; if the output data is represented in morethan 8 bits, OUT1, OUT2, and OUT3 are split into high byte (e.g., XH) and low byte (e.g., XL). In case of 24-bitresolution for some sensors, there is also an extra-low byte (e.g., pressure data: PXL PL PH).IR (INT1 INT2) contains the interrupt bytes and BT SW1|SW2 contains the bytes that describe the state of thebuttons integrated on the board.

UM2116Supported commands

UM2116 - Rev 3 page 13/39

Page 14: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Specifically, bit#0 of the SW1|SW2 data corresponds to the status of the SW1 button on the demonstration kitboard: it is set to 1 when the SW1 is pressed (otherwise 0). Bit#1 has the same behavior but is dedicated to theSW2.STP (STPL STPH) contains the step counter bytes for the internal device step counter value.The string is ended with the carriage return (\r) and line feed (\n) bytes.Before sending the *start command, the device must be out of 3-state (high impedance) and some registersmust be configured according to user needs. Therefore, *start must be preceded by a * zoff and someRegister Write commands.As data is continuously acquired, LED D1 (green) blinks according to sensor data rate selected. Table3. Returned values for *start command shows the format of the string returned for each device when a *startcommand is sent. Similar byte strings are returned for groups of commands related to FIFO, as is shown in Table4. Digital output accelerometers: supported commands list, Table 5. Digital output gyroscopes: supportedcommands list, Table 6. Digital output magnetometer: supported commands list, Table 7. Digital output pressuresensor: supported commands list and Table 8. Digital output humidity sensor: supported commands list.

Table 3. Returned values for *start command

STEVAL # (Device) Returned value(1)

STEVAL-MKI089V1 (LIS331DLH)

STEVAL-MKI092V1 (LIS331HH)

STEVAL-MKI105V1 (LIS3DH)

STEVAL-MKI110V1 (AIS328DQ)

STEVAL-MKI125V1 (A3G4250D)

STEVAL-MKI134V1 (LIS3DSH)

STEVAL-MKI135V1 (LIS2DH)

STEVAL-MKI136V1 (L3GD20H)

STEVAL-MKI151V1 (LIS2DH12)

STEVAL-MKI158V1 (AIS3624DQ)

STEVAL-MKI164V1 (LIS2HH12)

STEVAL-MKI168V1 (IIS2DH)

STEVAL-MKI170V1 (IIS328DQ)

STEVAL-MKI179V1 (LIS2DW12)

STEVAL-MKI180V1 (LIS3DHH)

STEVAL-MKI186V1 (IIS3DHHC)

STEVAL-MKI191V1 (IIS2DLPC)

s t XH XL YH YL ZH ZL int1 int2 sw1|sw2 \r \n

STEVAL-MKI087V1 (LIS331DL)

STEVAL-MKI175V1 (LIS2DE12)s t X Y Z int1 int2 sw1|sw2 \r \n

STEVAL-MKI166V1 (H3LIS100DL)

STEVAL-MKI167V1 (H3LIS200DL)s t X 0 Y 0 Z 0 int1 int2 sw1|sw2 \r \n

STEVAL-MKI174V1 (LIS2DS12)

STEVAL-MKI176V1 (LSM6DS3H)s t XH XL YH YL ZH ZL int1 int2 stpL stpH 0 sw1|sw2 \r \n

STEVAL-MKI137V1 (LIS3MDL)

STEVAL-MKI181V1 (LIS2MDL)

STEVAL-MKI185V1 (IIS2MDC)

s t XH XL YH YL ZH ZL int1 sw1|sw2 \r \n

UM2116Supported commands

UM2116 - Rev 3 page 14/39

Page 15: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

STEVAL # (Device) Returned value(1)

STEVAL-MKI107V1 (L3G4200D)

STEVAL-MKI107V2 (L3GD20)

STEVAL-MKI169V2 (I3G4250D)

STEVAL-MKI188V1 (L20G20IS)

s t G_XH G_XL G_YH G_YL G_ZH G_ZL

G_int1 G_int2 sw1|sw2 \r \n

STEVAL-MKI122V1 (LSM330DLC)s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL

A_int1 A_int2 G_int1 G_int2 sw1|sw2 \r \n

STEVAL-MKI106V1(LSM303DLHC)s t A_XH A_XL A_YH A_YL A_ZH A_ZL M_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 A_int2 sw1|sw2 \r \n

STEVAL-MKI108V2 (9AXIS MODULE)

STEVAL-MKI159V1 (LSM9DS1)

s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZLM_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 G_int2 G_int3 0 sw1|sw2 \r \n

STEVAL-MKI154V1 (LSM9DS0)s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZLM_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 A_int2 sw1|sw2 \r \n

STEVAL-MKI159V1 (LSM9DS1)s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZLM_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 A_int2 G_int3 0 sw1|sw2 \r \n

STEVAL-MKI161V1 (LSM6DS0)

STEVAL-MKI160V1 (LSM6DS3)

s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL

Int1 Int2 sw1|sw2 \r \n

STEVAL-MKI178V1 (LSM6DSL)

STEVAL-MKI182V1 (ISM330DLC)

STEVAL-MKI189V1 (LSM6DSM)

STEVAL-MKI194V1 (LSM6DSR)

STEVAL-MKI195V1 (LSM6DSRX)

STEVAL-MKI196V1 (LSM6DSO)

STEVAL-MKI197V1 (LSM6DSOX)

s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL

Int1 Int2 StpL StpH 0 sw1|sw2 \r \n

STEVAL-MKI163V1 (LSM303C)s t A_XH A_XL A_YH A_YL A_ZH A_ZL M_XH M_XL M_YH M_YL M_ZH M_ZL

A_int G_int sw1|sw2 \r \n

STEVAL-MKI172V1 (LSM303AGR)s t A_XH A_XL A_YH A_YL A_ZH A_ZL M_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 Aint2 G_int sw1|sw2 \r \n

STEVAL-MKI173V1 (LSM303AH)

STEVAL-MKI184V1 (ISM303DAC)

s t A_XH A_XL A_YH A_YL A_ZH A_ZL M_XH M_XL M_YH M_YL M_ZH M_ZL

A_int1 A_int2 M_int StpL StpH sw1|sw2 \r \n

STEVAL-MKI142V1 (LPS25H)

STEVAL-MKI165V1 (LPS25HB)

s t PXL PL PH TL TH REF_PXL REF_PL REF_PH

P_int1 sw1|sw2 \r \n

STEVAL-MET001V1 (LPS22HB)

STEVAL-MKI177V1 (LPS35HW)

STEVAL-MKI183V1 (LPS33HW)

STEVAL-MKI192V1 (LPS22HH)

s t PXL PL PH TL TH REF_PXL REF_PL REF_PH

P_int1 sw1|sw2 \r \n

STEVAL-MKI141V1 (HTS221) s t HL HH TL TH H_int1 sw1|sw2 \r \n

STEVAL-MKI190 (LIS2DTW12)

STEVAL-MKI193 (ASM300LHH)s t A_XH A_XL A_YH A_YL A_ZH A_ZL Int1 Int2 TL TH sw1|sw2 \r \n

1. XH: X-axis output high byte (same for Y axis, Z axis, P pressure, H humidity, and T temperature). XL: X-axis output low byte(same for Y axis, Z axis, P pressure, H humidity, and T temperature)

UM2116Supported commands

UM2116 - Rev 3 page 15/39

Page 16: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.3 *debugThis command starts continuous data acquisition in debug mode. When sent to the board, it returns the outputvalues measured by the device formatted in a readable text format.

4.2.4 *stopThis command interrupts any acquisition session that has been started with either the *start or *debugcommands.

4.2.5 *Zon and *ZoffThese commands put the STM32F401VE microcontroller on the demonstration kit in 3-state (high impedance).They allow the isolation of the sensor from the microprocessor and let the user interact with the sensor in a purelyanalog fashion.When the kit is first turned on, the lines are in 3-state (high impedance) mode and you must send the * Zoffcommand to allow communication between the sensor and the microcontroller.After this command has been executed, LED D2 (Red) is turned on. If the * Zoff command has not beenlaunched, the firmware ignores any other command sent to sensor.

4.2.6 *devThis command retrieves the name of the adapter connected to the demonstration kit; e.g., LIS3DH.

4.2.7 *verThis command returns the version of the firmware loaded in the microprocessor; e.g., V1.5.2.

4.2.8 *rAAThis command reads the contents of the accelerometer registers in the demonstration kit board. The hexadecimalvalue AA written in upper case represents the address of the register to be read.Once the read command is issued, the board returns RAAhDDh, where AA is the address sent by the user and DDis the data present in the register.For example, to read the register at address 0x20, the user issues the command *r20, which would return aresult like R20hC7h.

4.2.8.1 *rmAA1NN

This command allows the contents of multiple accelerometer registers in the demonstration kit board to be read insingle data block. Once this command is issued, the board returns a set of NN values starting withRMAA1hNNhDD1hDD2h… DDNNh where AA1 is the starting address set by user and DD1 is the data present in thisregister and so on for next registers.For example, *rm2006 reads six registers starting from 0x20, which would return a result likeRM20h06h27h00h00h00hA0h0Bh.

4.2.8.2 *multi-rAA1AA2AA3...AAN

This command reads multiple accelerometer registers in the demonstration kit board in a single data block. Oncethis command is issued, the board returns set of N values starting RAA1hDD1h… AANhDDNh where AA1 is thestarting address set by user and DD1 is the data present in this register.For example, *multi-r202425292B2D reads six register starting from 0x20, which would return a result likeMULTI-R20h27h24hA0h25h0Bh29hE0h2Bh3Fh2Dh90h.

4.2.9 *wAADDThis command writes the contents of the accelerometer registers in the demonstration kit board. The hexadecimalupper case values AA and DD represent the address of the register and the data to be written, respectively.For example, *w20C7 writes 0xC7 to the register at address 0x20

UM2116Supported commands

UM2116 - Rev 3 page 16/39

Page 17: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.10 *grAAThis command allows the contents of the gyroscope registers in the demonstration kit board to be read. Thehexadecimal, upper case AA represents the address of the register to be read.Once the read command is issued, the board returns GRAAhDDh, where AA is the address sent by the user andDD is the data present in the register.For example, *gr20 reads the register at address 0x20, which would return a result like GR20hC7h.

4.2.10.1 *grmAA1NN

This command allows the contents of multiple gyroscope registers in the demonstration kit board to be read insingle data block. Once this command is issued, the board returns set of NN values starting withGRMAA1hNNhDD1hDD2h… DDNNh where AA1 is the starting address set by user and DD1 is the data present in thisregister and so on.For example, *grm2006 reads six registers starting from 0x20, which would return a result likeGRM20h06h27h00h00h00hA0h0Bh.

4.2.10.2 *multi-grAA1AA2AA3...AAN

This command reads multiple gyroscope registers in the demonstration kit board in a single data block. Once thiscommand is issued, the board returns set of N values starting with MULTI-GRAA1hDD1h… AANhDDNh where AA1is the starting address set by user and DD1 is the data present in this register and so on.For example, *multi-gr202425292B2D reads six registers starting from 0x20, which would return a result likeMULTI-GR20h27h24hA0h25h0Bh29hE0h2Bh3Fh2Dh90h.

4.2.11 *gwAADDThis command writes the contents of the gyroscope registers in the demonstration kit board. The hexadecimal,upper case. AA and DD represent the address of the register and the data to be written, respectively.For example, *gw20C7 writes 0xC7 to the register at address 0x20.

4.2.12 *mrAAThis command allows the contents of the magnetometer registers in the demonstration kit board to be read. Thehexadecimal, upper case AA represents the address of the register to be read.Once the read command is issued, the board returns MRAAhDDh, where AA is the address sent by the user andDD is the data present in the register.For example, *mr00 reads the register at address 0x00, which would return a result like MR00h10h.

4.2.12.1 *mrmAA1NN

This command readss the contents of multiple magnetometer registers in the demonstration kit board in a singledata block. Once this command is issued, the board returns set of NN values starting with RMAA1hNNhDD1hDD2h…DDNNh where AA1 is the starting address set by user and DD1 is the data present in this register.For example, *mrm2006 reads six register starting from 0x20, which would return a result likeMRM20h06h27h00h00h00hA0h0Bh.

4.2.12.2 *multi-mrAA1AA2AA3...AAN

This command reads multiple magnetometer registers in the demonstration kit board in a single data block. Oncethis command is issued, the board returns set of N values starting with MULTI-MRAA1hDD1h… AANhDDNh, whereAA1 is the starting address set by user and DD1 is the data present in this register, and so on…For example, *multi-mr202425292B2D reads six registers starting from 0x20, which would return a result likeMULTI-MR20h27h24hA0h25h0Bh29hE0h2Bh3Fh2Dh90h.

4.2.13 *mwAADDThis command writes the contents of the magnetometer registers in the demonstration kit board. Hexadecimal,upper case AA and DD represent the address of the register and the data to be written, respectively.For example, *mw0120 writes 0x20 to the register at address 0x01.

UM2116Supported commands

UM2116 - Rev 3 page 17/39

Page 18: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.14 *prAAThis command reads the contents of the pressure sensor registers in the demonstration kit board. Thehexadecimal, upper case AA represents the address of the register to be read.Once the read command is issued, the board returns PRAAhDDh, where AA is the address sent by the user andDD is the data present in the register.For example, *pr20 reads the register at address 0x20, which would return a value like PR20h10h.

4.2.14.1 *prmAA1NN

This command reads the contents of multiple pressure sensor registers in the demonstration kit in a single datablock. Once this command is issued, the board returns set of NN values starting with PRMAA1hNNhDD1hDD2h…DDNNh where AA1 is the starting address set by user and DD1 is the data present in this register, and so on…For example, *prm2006 reads six registers starting from 0x20, which would return a value likePRM20h06h27h00h00h00hA0h0Bh.

4.2.14.2 *multi-prAA1AA2AA3...AAN

This command reads multiple pressure sensor registers in the demonstration kit board in a single data block.Once this command is issued, the board returns set of N values starting with MULTI-PRAA1hDD1h… AANhDDNhwhere AA1 is the starting address set by user and DD1 is the data present in this register, and so on.For example, *multi-pr202425292B2D reads six registers starting from 0x20, which would return a result likeMULTI-PR20h27h24hA0h25h0Bh29hE0h2Bh3Fh2Dh90h.

4.2.15 *pwAADDThis command writes the contents of the pressure sensor registers in the demonstration kit board. Thehexadecimal, upper case AA and DD represent the address of the register and the data to be written, respectively.For example, *pw20C7 writes 0xC7 to the register at address 0x20.

4.2.16 *hrAAThis command reads the contents of the humidity sensor registers in the demonstration kit board. Thehexadecimal, upper case AA represents the address of the register to be read.Once the read command is issued, the board returns HRAAhDDh, where AA is the address sent by the user andDD is the data present in the register.For example, *hr20 reads the register at address 0x20, which would return a result like HR20h10h.

4.2.16.1 *hrmAA1NN

This command reads the contents of multiple humidity sensor registers in the demonstration kit board in a singledata block. Once this command is issued, the board returns set of NN values starting withHRMAA1hNNhDD1hDD2h… DDNNh where AA1 is the starting address set by user and DD1 is the data present in thisregister, and so on.For example, *hrm2006 reads six registers starting from 0x20, which would return a result likeHRM20h06h27h00h00h00hA0h0Bh.

4.2.16.2 *multi-hrAA1AA2AA3...AAN

This command reads multiple humidity sensor registers in the demonstration kit board in a single data block.Once this command is issued, the board returns set of N values starting with MULTI-HRAA1hDD1h… AANhDDNhwhere AA1 is the starting address set by user and DD1 is the data present in this register, and so on.For example, *multi-hr202425292B2D reads six registers starting from 0x20, which would return a result likeMULTI-HR20h27h24hA0h25h0Bh29hE0h2Bh3Fh2Dh90h.

4.2.17 *hwAADDThis command writes the contents of the humidity sensor registers in the demonstration kit board. Thehexadecimal, upper case AA and DD represent the address of the register and the data to be written, respectively.For example *hw20C7 writes 0xC7 to the register at address 0x20.

UM2116Supported commands

UM2116 - Rev 3 page 18/39

Page 19: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.18 *singleThis command may be used to read just one set of data. It returns the read values of one data sample if thesensor is configured properly.

4.2.19 *listThe command returns the list of MKI adapters supported by the firmware in ASCII format.

4.2.20 *listdevThis command returns the list of devices supported by the firmware in ASCII format.

4.2.21 *echoonThis command is used to activate the write command verbose mode so that the firmware automatically reads thecontents of a register that has just been written to check if the write was successful.For example, * echoon launched after *w2027 returns R2027.

4.2.22 *echooffThis command stops the write command verbose mode.

4.2.23 *fiforstThis command enables the accelerometer FIFO reset mode. For more details see application note AN3308 onwww.st.com.

4.2.24 *fifomdeThis command enables the accelerometer FIFO mode. For more details see application note AN3308 onwww.st.com.

4.2.25 *fifostrThis command enables the accelerometer FIFO stream mode. For more details see application note AN3308 onwww.st.com.

4.2.26 *fifostfThis command enables the accelerometer Stream-to-FIFO mode. For more details see application note AN3308on www.st.com.

4.2.27 *fifobtfThis command enables the accelerometer Bypass-to-FIFO mode.

4.2.28 *fifobtsThis command enables the accelerometer Bypass-to-Stream mode.

4.2.29 *fifodstrThis command enables the accelerometer Dynamic Stream mode.

4.2.30 *gfiforstThis command enables the gyroscope FIFO reset mode.

4.2.31 *gfifomdeThis command enables the gyroscope FIFO mode.

UM2116Supported commands

UM2116 - Rev 3 page 19/39

Page 20: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.32 *gfifostrThis command enables the gyroscope FIFO stream mode.

4.2.33 *gfifostfThis command enables the gyroscope Stream-to-FIFO mode.

4.2.34 *gfifobtfThis command enables the gyroscope Bypass-to-FIFO mode.

4.2.35 *gfifobtsThis command enables the gyroscope Bypass-to-Stream mode.

4.2.36 *gfifodstrThis command enables the gyroscope Dynamic Stream mode.

4.2.37 *pfiforstThis command enables the pressure sensor FIFO reset mode.

4.2.38 *pfifomdeThis command enables the pressure sensor FIFO mode.

4.2.39 *pfifostrThis command enables the pressure sensor FIFO stream mode.

4.2.40 *pfifostfThis command enables the pressure sensor Stream-to-FIFO mode.

4.2.41 *pfifobtfThis command is used to enable the pressure sensor Bypass-to-FIFO mode.

4.2.42 *pfifobtsThis command is used to enable the pressure sensor Bypass-to-Stream mode.

4.2.43 *pfifodstrThis command enables the pressure sensor Dynamic Stream mode.

4.2.44 *setvddaX.Y and *setvddioX.YThese commands set the power supply VDD and VDDIO voltage values of device adapter.For example, *setvdda3.6 sets 3.6V on VDDA. Note that both voltages VDD and VDDIO for modules areindependent. If * setvdda and * setvddio have not been sent before the * power_on command, the setting isthe default voltage defined in the device datasheet selected during the * setdb initialization. Please refer todevice datasheet regarding specified VDD and VDDIO values and their relationship (i.e., which of these can behigher, etc.).As the maximum voltages are defined also by the * setdb command, you cannot set values above these limits.

4.2.45 *power_on and *power_offThese commands are used to switch on and to switch off the VDD and VDDIO power supplies of the deviceadapter together. The proper power-on sequence of both voltages is handled internally by firmware.

UM2116Supported commands

UM2116 - Rev 3 page 20/39

Page 21: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.46 *adc_singleThis command is used to get a one-shot set of measured values of VDD and VDDIO voltages; IDD and IDDIOcurrents, etc.

4.3 Digital output accelerometers: supported commands

Table 4. Digital output accelerometers: supported commands list

Command Description Returned value(1)

*setdbXXXVY Selects firmware according to the adapter connected

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

*rAA Accelerometer register read e.g.: RAAhDDh

*rmAA1NN Multiple accelerometer registers read e.g.: RMAA1hNNhDD1h…DDNNh

*multi-rAA1 .. AAN Multiple accelerometer registers read e.g.:MULTI-RAA1hDD1h…AANhDDNh

*wAADD Accelerometer register write

*single It gets a single X, Y, and Z data acquisition

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: RAAhDDh

*echooff Deactivates the write verbose mode

*fiforst (2) Accelerometer “Reset mode” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifomde(2) Accelerometer “FIFO mode” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifostr(2) Accelerometer “FIFO stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifostf(2) Accelerometer “Stream-to-FIFO” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifobtf(2) Accelerometer “Bypass-to-FIFO” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifobts(2) Accelerometer “Bypass-to-Stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*fifodstr(2) Accelerometer “Dynamic Stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

1. IR: interrupt bytes; FC: FIFO control register; FS: FIFO source register2. Available only for devices with embedded FIFO

4.4 Digital output gyroscopes: supported commandsTable 5. Digital output gyroscopes: supported commands list below lists the commands supported by the devices/demonstration boards including a digital output gyroscope:

UM2116Digital output accelerometers: supported commands

UM2116 - Rev 3 page 21/39

Page 22: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Table 5. Digital output gyroscopes: supported commands list

Command Description Returned value(1)

*setdbXXXVY Selects FW according to the adapter connected

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

*grAA Gyroscope register read e.g.: GRAAhDDh

*grmAA1NN Multiple gyroscope registers read e.g.: GRMAA1hNNhDD1h…DDNNh

*multi-grAA1 .. AAN Multiple gyroscope registers read e.g.:MULTI-GRAA1hDD1h…AANhDDNh

*gwAADD Gyroscope register write

*single It gets a single X, Y, and Z data acquisition

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: GRAAhDDh

*echooff Deactivates the write verbose mode

*gfiforst (2) Gyroscope “Reset mode” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifomde(2) Gyroscope “FIFO mode” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifostr(2) Gyroscope “FIFO stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifostf(2) Gyroscope “Stream to FIFO” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifobtf(2) Gyroscope “Bypass to FIFO” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifobts(2) Gyroscope “Bypass to stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

*gfifodstr(2) Gyroscope “Dynamic stream” enable st XH XL YH YL ZH ZL IR FC FS \r \n

1. IR: interrupt bytes; FC: FIFO control register; FS: FIFO source register2. Available only for devices with embedded FIFO

4.5 Digital output magnetometers: supported commands

Table 6. Digital output magnetometer: supported commands list

Command Description Returned value(1)

*setdbXXXVY Selects firmware according to the adapter connected

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

UM2116Digital output magnetometers: supported commands

UM2116 - Rev 3 page 22/39

Page 23: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Command Description Returned value(1)

*mrAA Magnetometer register read e.g.: MRAAhDDh

*mrmAA1NN Multiple magnetometer registers read e.g.: MRMAA1hNNhDD1h…DDNNh

*multi-mrAA1...AAN Multiple magnetometer registers read e.g.:MULTI-MRAA1hDD1h…AANhDDNh

*mwAADD Magnetometer register write

*single It gets a single X, Y, and Z data acquisition

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: MRAAhDDh

*echooff Deactivates the write verbose mode

1. IR: interrupt bytes; FC: FIFO control register; FS: FIFO source register

4.6 Digital output pressure sensor: supported commands

Table 7. Digital output pressure sensor: supported commands list

Command Description Returned value(1)

*setdbXXXVY Selects firmware according to the adapter connected

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

*prAA Pressure sensor register read e.g.: PRAAhDDh

*prmAA1NN Multiple pressure sensor registers read e.g.: PRMAA1hNNhDD1h…DDNNh

*multi-prAA1 .. AAN Multiple pressure sensor registers read e.g.:MULTI-PRAA1hDD1h…AANhDDNh

*pwAADD Pressure sensor register write

*single It gets a single X, Y, and Z data acquisition

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: PRAAhDDh

*echooff Deactivates the write verbose mode

*pfiforst (2) Pressure sensor “Reset mode” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifomde(2) Pressure sensor “FIFO mode” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifostr(2) Pressure sensor “FIFO stream” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifostf(2) Pressure sensor “Stream to FIFO” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifobtf(2) Pressure sensor “Bypass to FIFO” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifobts(2) Pressure sensor “Bypass to stream” enable st PXL PL PH TL TH IR FC FS \r \n

*pfifodstr(2) Pressure sensor “Dynamic stream” enable st PXL PL PH TL TH IR FC FS \r \n

UM2116Digital output pressure sensor: supported commands

UM2116 - Rev 3 page 23/39

Page 24: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

1. IR: interrupt bytes; FC: FIFO control register; FS: FIFO source register2. Available only for devices with embedded FIFO

4.7 Digital output humidity sensor: supported commandsTable 8. Digital output humidity sensor: supported commands list below lists the commands supported by thedevices/demonstration boards including a digital output humidity sensor:

Table 8. Digital output humidity sensor: supported commands list

Command Description Returned value

*setdbXXXVY Selects firmware according to the adapter connected

*start Starts continuous data acquisition (see Table 3. Returned values for *start command)

*debug Returns the output data in readable text format

*stop Stops data acquisition

*Zon Forces High impedance state

*Zoff Exits from High impedance state

*dev Device name e.g.: LIS3DH

*ver Firmware version e.g.: V1.5.2

*hrAA Humidity sensor register read e.g.: HRAAhDDh

*hrmAA1NN Multiple humidity sensor registers read e.g.: HRMAA1hNNhDD1h…DDNNh

*multi-hrAA1 .. AAN Multiple humidity sensor registers read e.g.:MULTI-HRAA1hDD1h…AANhDDNh

*hwAADD Humidity sensor register write

*single It gets a single X, Y, and Z data acquisition

*list Prints the list of MKIs supported e.g.: 087V1 089V1 092V1 105V1...

*listdev Prints the list of devices supported e.g.: LIS331DL LIS331DLH LIS331HH…

*echoon Activates the write verbose mode e.g.: HRAAhDDh

*echooff Deactivates the write verbose mode

UM2116Digital output humidity sensor: supported commands

UM2116 - Rev 3 page 24/39

Page 25: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

5 Schematic diagrams

Figure 7. STEVAL-MKI109V3 circuit schematic (1 of 8)U

SB_D-

USB_D

+

USB_D

isc

Vin

VDD

_3.6V

Vext_senseVusb_sense

Professional_MEM

S_Tool_v1.0.5_Power

BT_TXBT_R

TSBT_R

X

BT_CTS

BT_RST

VDD

_3.6V

MISO

_RF

MO

SI_RF

SCK_R

FC

E_RF

Professional_MEM

S_Tool_v1.0.5_Bluetooth

CTR

_EN

VDD_DUT

VDDIO_DUT

VDDIO

VDD

_3.6V

DIR

_GP

CTR

_EN_I2C

_SDI

LOC

K_1V98TEST_Adapter_C

onnectedTEST_3V6

PWM

_TEST

TEST_5TEST_6

DIR

_INT3_IN

T4D

IR_D

EN_C

S_A

Log Signals

Professional_MEM

S_Tool_v1.0.5_Adapter

CTR

_EN

BT_TXBT_R

TSBT_R

X

BT_CTS

BT_RST

USB_D

-U

SB_D+

USB_D

isc

VDD

_3.6V

Control Signals A

Control Signals B

ADC

_V_REF

Analog Signals A

Analog Signals B

MISO

_RF

SCK_R

FM

OSI_R

F

CE_R

FD

IR_G

P

CTR

_EN_I2C

_SDI

LOC

K_1V98

Vext_senseVusb_sense

TEST_Adapter_Connected

TEST_3V6PW

M_TEST

TEST_5TEST_6

DIR

_INT3_IN

T4D

IR_D

EN_C

S_A

Log Signals

Professional_MEM

S_Tool_v1.0.5_MC

U

ADC

_V_REF

VDD_DUT

VDDIO_DUT

VDDIO

Vin

Control Signals A

Control Signals B

Analog Signals A

Analog Signals B

VDD

_3.6V

Professional_MEM

S_Tool_v1.0.5_Vdd_control_Idd_meas

STM32F401VET6

UM2116Schematic diagrams

UM2116 - Rev 3 page 25/39

Page 26: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 8. STEVAL-MKI109V3 circuit schematic (2 of 8)

Vin

PWM

_APW

M_B

VDD

_3.6V

VDD

IO_D

UT

VDD

_DU

T

ADC

_V_REF

Sense_Hi_B

Sense_Lo_A

Sense_Lo_B

Sense_Hi_A

RAN

GE_100x_A

RAN

GE_100x_B

Professional_MEM

S_Tool_v1.0.5_Vdd_control

Sense_Lo_ASense_H

i_A

RAN

GE_2x_A

FILTER_B

Sense_Lo_ampl_B

Sense_Lo_B

ADC

_I_A_(1)AD

C_I_A_(2)

VDD

IO

Sense_Lo_ampl_A

4.3V_B

FILTER_A_(1)

Vin

ADC

_V_B

FILTER_A_(2)

ADC

_V_REF

Sense_Hi_B

ADC

_I_B

ADC

_V_A

RAN

GE_20x_A

RAN

GE_50x_A

RAN

GE_5x_B

RAN

GE_5x_A

RAN

GE_20x_B

RAN

GE_2x_B

4.3V_A

VDD

_3.6V

Professional_MEM

S_Tool_v1.0.5_Idd_measurem

ent_2CH

_lin

4.3V_A

Sense_Lo_ampl_A

ADC

_log_I_B

Sense_Lo_ampl_B

4.3V_B

Sense_Hi_B

ADC

_log_I_A

Sense_Hi_A

ADC

_V_REF

VDD

_3.6V

Professional_MEM

S_Tool_v1.0.5_Idd_measurem

ent_2CH

_log

R_100x_A

R_20x_A

R_5x_A

PWM

_A

R_50x_A

R_2x_A

Control Signals A

Control Signals A

RAN

GE_50x_A

FILTER_A_(2)

RAN

GE_20x_A

RAN

GE_100x_A

PWM

_A

R_100x_B

R_20x_B

R_5x_B

PWM

_B

R_2x_B

Control signals B

Control Signals B

RAN

GE_20x_B

FILTER_B

RAN

GE_5x_B

RAN

GE_100x_B

PWM

_B

ADC

_I_A_(2)

ADC

_log_I_AAD

C_V_A

ADC

_I_A_(1)

FILTER_A( 1)

FILTER_A (2)

Analog Signals A

ADC

_I_A_(2)AD

C_V_A

ADC

_I_A_(1)

ADC

_I_B

ADC

_log_I_BAD

C_V_B

FILTER_B

Analog Signals B

Analog Signals BAD

C_I_B

ADC

_V_BAD

C_log_I_B

RAN

GE_100x_A

RAN

GE_100x_B

PWM

_APW

M_B

ADC

_V_REF

ADC

_V_REF

ADC

_V_REF

ADC

_log_I_AAD

C_log_I_B

VDD

IO

ADC

_V_REF

VDD

IO_D

UT

VDD

_DU

T

Vin

ADC

_log_I_AAnalog Signals A

RAN

GE_2x_B

RAN

GE_5x_A

RAN

GE_2x_A

FILTER_A_(1)

VDD

_3.6V

2 x STR2N

2VH5

2 x STT7P2UH

72 x 2STR

2230

66

55

77

2 x TSV632IQ2T

DSELS2 S1

1 x AS21P2TLR

22

33

11

2 x TSZ122IQ2T

22

33

11

5 x TSZ122IQ2T

66

55

77

1 x TSV632IQ2T

TS3431CILT

DSELS2 S1

4 x AS21P2TLR

UM2116Schematic diagrams

UM2116 - Rev 3 page 26/39

Page 27: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 9. STEVAL-MKI109V3 circuit schematic (3 of 8)

47uFC

22

GN

D

Dual channel Vdd control

Au = 1.20

100k

R13

100k

R12

22nFC

822nFC

1022nFC

9

GN

D

GN

DG

ND

100k

R31

100k

R30

22nFC

1522nFC

1722nFC

16

GN

D

GN

DG

ND

GN

DG

ND

GN

D

3.6V

470k

R25

470k

R44

6.8RR

53

10R

R71

0.1% 0805

GN

D

5Vin

1k R70

0.1%100kR

69

10uFC

30

3k3R

59

10RR

130

10uFC

25

GN

D100k

R131 5Vin

GN

D

To MEM

S

100nFC

23

GN

D

PWM

+ Filter

VDD

_set_AVD

D_set_B

47uFC

32

GN

D

6.8RR

113

10R

R94

0.1% 0805

5Vin

1k R92

0.1%100kR

91

10uFC

40

3k3R

144

10RR

140

10uFC

34

GN

D100k

R132 5Vin

GN

D

100nFC

33

GN

D

To MEM

S

VDD

_set_AVD

D_set_B

ADC

_V_REF

4.7uF

C28

4.7uF

C36

VDD

_DU

TVD

DIO

_DU

T

CH

_A

CH

_A

CH

_B

CH

_B

PWM

controlled Power Supply

AS21P2TLR

D10

SEL9

S12

S21

U5A

AS21P2TLR

D5

SEL4

S17

S26

U5B

Ref 3.00V

Ref 3.00V

20kR

1920kR

36

100kR

22100kR

43

PDTC

115EE,115

3

1

2 T12

PDTC

115EE,115

3

1

2 T6

BC857BT,1153

1

2

T3BC

857BT,1153

1

2

T8

12

J13

12

J14

5VinVin

FB1

PWM

_APW

M_B

AS21P2TLRVcc 3GND8

U5C

VDD

_3.6V3.6V

5Vin

GN

D

Au = 1.20

RAN

GE_100x_A

PWM

_APW

M_B

RAN

GE_100x_B

Sense_Hi_A

Sense_Lo_A

Sense_Hi_B

Sense_Lo_B

22

33

11

TSV632IQ2T

U1A

66

55

77

TSV632IQ2T

U1B

84

TSV632IQ2T

U1C

22

33

11

TSV632IQ2T

U2A

66

55

77

TSV632IQ2T

U2B

84

TSV632IQ2T

U2C

100nFC

77100nFC

78

22RR

15722RR

158

5Vin

GN

DG

ND

100nFC

79

GN

D

GN

DG

ND

4k7

R175

4k7

R177

4k7

R60

4k7

R176

4k7

R100

4k7

R178

100nFC

99

100nFC

100

3

1

2

2STR2230

T4

1

3

4256STT7P2U

H7

T23

1

2

STR2N

2VH5

T7

3

1

2

STR2N

2VH5

T11

1

3

4256STT7P2U

H7

T10

3

1

2

2STR2230

T9

UM2116Schematic diagrams

UM2116 - Rev 3 page 27/39

Page 28: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 10. STEVAL-MKI109V3 circuit schematic (4 of 8)

TS3431CILT

U10

GN

DG

ND

5Vin_1

V1 - Dual C

hannel Idd measurem

ent - linAu = 1 - 2 - 5 - 10

Differential Am

p. Au = 5

Ref 3.00V

GN

DG

ND

GN

D

100k

R8

0.1%

100k

R230.1%

20kR

70.1%

20k

R18

0.1%

GN

D

10kR

20

GN

D

Sense_Hi_A

10k

R11

Sense_Lo_A

10k

R24

0.1%

10k

R28

0.1%

GN

D

470k

R29

470k

R1

GN

D

GN

DADC

_V_REF

Sense_Lo_BVD

DIO

To Level Shifters VL

CH

_A

CH

_B

10uF

C39

GN

D

5Vin_1

GN

D

4.3V_A

GN

D

AS21P2TLR

D10

SEL9

S12

S21

U8A

AS21P2TLR

D5

SEL4

S17

S26

U8B

AS21P2TLRVcc 3GND8

U8C

AS21P2TLRVcc 3GND8

U9C

3k6R

99

0.1%

5k1R

95

0.1%

Ref 3.00V

120k

R97

270k

R96

470RR

89

5Vin_1Vin

100pFC

12

100pFC

7

470nFC

6

150pF

C13

GN

D

GN

D

AS21P2TLRVcc 3GND8

U13C

1uFC

35

GN

D

10R

R86

22R

R98

22R

R93

10uFC

41

10uFC

37

4.3V_B100nF

C38

100nF

C42

4.3V_A

4.3V_A4.3V_B

4.3V_B4.3V_B

Sense_Hi_A

Sense_Lo_ampl_A

Sense_Lo_AAD

C_I_A_(1)

ADC

_V_A

FILTER_A_(1)

RAN

GE_2x_A

RAN

GE_5x_A

GN

D

GN

D

Au = 10 - 20 - 50 - 100D

ifferential Amp. Au = 10

100k

R3

0.1%

100k

R560.1%

10kR

57

GN

D

Sense_Hi_A

10k

R21

Sense_Lo_A

470k

R61

470k

R62

GN

D

GN

D

AS21P2TLR

D10

SEL9

S12

S21

U13A

AS21P2TLR

D5

SEL4

S17

S26

U13B

100pFC

20

100pFC

19

150pF

C24

GN

D

470nFC

21

ADC

_I_A_(2)

FILTER_A_(2)

RAN

GE_20x_A

RAN

GE_50x_A

GN

D

GN

D

GN

DAS21P2TLR

Vcc 3GND8

U17C

4.3V_A

Au = 1 - 5 - 20 - 100D

ifferential Amp. Au = 5 - 10

100k

R64

0.1%

100k

R1420.1%

20kR

630.1%

20kR

1410.1%

10kR

143

GN

D

10k

R67

10k

R148

0.1%

10k

R150

0.1%

GN

D

470k

R151

470k

R156

GN

D

GN

D

AS21P2TLR

D10

SEL9

S12

S21

U17A

AS21P2TLR

D5

SEL4

S17

S26

U17B

100pFC

64

100pFC

27

470nF

C26

150pF

C66

GN

D

Sense_Hi_B

Sense_Lo_ampl_B

Sense_Lo_BAD

C_I_B

ADC

_V_B

FILTER_B

RAN

GE_5x_B

RAN

GE_20x_B

GN

D

GN

D

Sense_Lo_B

10k R20.1%

10k R550.1%

AS21P2TLR

D10

SEL9

S12

S21

U9A

AS21P2TLR

D5

SEL4

S17

S26

U9B

20kR

650.1%

20kR

1490.1%

RAN

GE_2x_B

4.3V_B

27k R270.1%

27k R580.1%

3k0R

9

0.1%

4k7

R14

0.1%

82kR

10

24k R150.1%

3k0 R40.1%

2k4 R510.1%

300RR

48

0.1%

27k R1470.1%

3k0 R840.1%

300R R870.1%

1k5R

850.1%

20kR

880.1%

6k8R

1160.1%

137kR

66

4.3V_A4.3V_A

4.3V_B

22

33

11

TSZ122IQ2T

U3A

66

55

77

TSZ122IQ2T

U3B

84

TSZ122IQ2T

U31C

22

33

11

TSZ122IQ2T

U15A

66

55

77

TSZ122IQ2T

U15B

GN

D

4.3V_A

84

TSZ122IQ2T

U15C

22

33

11

TSZ122IQ2T

U16A

66

55

77

TSZ122IQ2T

U16B

GN

D 84

TSZ122IQ2T

U16C

22

33

11

TSV632IQ2T

U11A

66

55

77

TSV632IQ2T

U11B

84TSV632IQ2T

U11C

100nFC

80

22R

R159

GN

D

5Vin_1

4.3V_A

GN

D

4.3V_A100nFC

82

GN

D

470k

R160

GN

D

22

33

11

TSZ122IQ2T

U31A

66

55

77

TSZ122IQ2T

U31B

100kR

16

100kR

33G

ND

4.3V_A

84

TSZ122IQ2T

U3C

4.3V_A100nFC

81

GN

D

4.3V_B

GN

D 84

TSZ122IQ2T

U32C

100kR

128

10kR

163

GN

D10kR

164

GN

D

10kR

165

GN

D

22

33

11

TSZ122IQ2T

U32A

66

55

77

TSZ122IQ2T

U32B

GN

D

100nFC

58

GN

D100nFC

67

GN

D

100pFC

11100R

R17

100R

R50

100R

R166

GN

D 100pFC

65

1k5

R26

1k5

R101

Sense_Lo_A

3.6V

3.6V

3.6V

3.6V

3.6V

3.6V

100nFC

87

GN

D

GN

D

1k5

R174

3.6V

GN

D

GN

D 22nFC

88

22nFC

91

100pFC

86

VDD

_3.6V

RB520S30T1G

D10

RB520S30T1G

D11

RB520S30T1G

D12

RB520S30T1G

D13

RB520S30T1G

D14

RB520S30T1G

D15

4.3V_B100nFC

96

GN

D 100nFC

92

8k2R

49

470RR

52

0.1%

UM2116Schematic diagrams

UM2116 - Rev 3 page 28/39

Page 29: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 11. STEVAL-MKI109V3 circuit schematic (5 of 8)

+Vusb

Power Supply:

GN

D

GN

D

GN

D

3.6V

GN

D

GN

D

+VusbD-

D+

+Vusb

USB D

-

USB D

+

USB C

onnection:+Vusb

GN

D

GN

DG

ND

USB D

+

3.6V3.6V

Vin

USB_D

-

USB_D

+U

SB_Disc

GN

DG

ND

GN

D

GN

D

22R

R134

22R

R135

47kR

90

1k R136

10kR

133

1k5

R139

470R

R137

100nFC

63

100nFC

59100nFC

851uFC

4

LDK220M

36RVin

1

EN3

2

ByPass/Adj4

Vout5

GN

D

U25

+VextVin

GN

DG

ND

100nFC

611uFC

60

USBLC

6-2P6

I/O1

1

I/O2

3G

ND

2

I/O2

4VBU

S5

I/O1

6

ESD

U27

VDD

_3.6V

D6

DP

3D

M2

V+1

ID4

U S BGN

D5

0

J5

BC846S

6

2

1

T16ABC

846S

3

5

4 T16B

1k5R

124

1k5R

125

GN

D

GN

D

GN

D

BC857BT,115

3

1

2T22

NTA4153N

T1G

3

1

2

T20NTA4153N

T1G

3

1

2

T21

100kR

68

GN

DG

ND

BAS16XV2T1GD

7

100kR

54

100kR

119

NOT Assembled

Vext_sense

Vusb_sense

10kR

1670R R

202

0R R201

D201

36kR

138

NO

T Assembled

NO

T Assembled

12J4

1

3

42 5 6

STT7P2UH

7

T17

3

1

2 2STR2230T18

3

1

2 2STR2230T19

Power Supply:

- VDD

_3.6V ... Power supply for m

icro & BT- Vin ... 5V for Idd m

eas. analog circuits & VD

D_D

UT/ VD

DIO

_DU

T

Ext. Power

5VAutomatic

switching

over from

Vusb to Vext

USB C

onnection:- U

SB device enumeration signal LED

- USB ESD

filter

UM2116Schematic diagrams

UM2116 - Rev 3 page 29/39

Page 30: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 12. STEVAL-MKI109V3 circuit schematic (6 of 8)

CS_A

INT3

DEN

INT2

INT1

SCL

SDA

SDO

CS

VDD

_DU

TG

P

INT4

VDD

IO_D

UT

GN

D

DIL24 D

evice Adapter:

VDD

IO

CS_A_uP

INT4

DEN

INT1_uP

SCL

SDA

SDO

GP

INT3_uP

GP_uP

DEN

_uP

INT3

INT4_uP

INT2_uP

VDD

IO

Level Translation:

CS_uP

CS

3.6V

3.6V

GP

DEN

CS_A

INT3

INT4C

S

SDO

SDA

SCL

INT2

INT1

SDO

_xSD

_xSC

_xC

S_x

Logic_signals1

CTR

_EN

SDO

_uPSD

A_uPSC

L_uP

VDD

_DU

TVD

DIO

_DU

T

VDD

IOVD

DIO

123456789101112

242322212019181716151413J2

123456789101112J1

242322212019181716151413J3

3.6VVD

D_3.6V

VDD

IO_D

UT

VDD

_DU

TIN

T1IN

T2

SN74AVC

4T245RSVR

GN

D10

Vcc_A3

Vcc_B2

1B214

1B115

1OE

1

1A27

1A16

1DIR

42D

IR5

2B212

2B113

2A29

2A18

2OE

16

GN

D11

U28

1.2 to 3.6V

SN74AVC

4T245RSVR

GN

D10

Vcc_A3

Vcc_B2

1B214

1B115

1OE

1

1A27

1A16

1DIR

42D

IR5

2B212

2B113

2A29

2A18

2OE

16

GN

D11

U29

1.2 to 3.6V

NTS0104G

U12

GN

D6

Vcc_A1

Vcc_B11

B29

B110

OE

12

A23

A12

A34

A45

B38

B47

U30

1.65 to 5.5V

VDD

IO3.6V

DIR

_GP

4.7uFC

72

GN

D

3.6V

100nFC

73100nFC

74100nF

C75

4.7uFC

68

GN

D

100nFC

69100nFC

70100nFC

71

VDD

IO

CS_A

33kR

145CTR

_EN

CTR

_EN

3.6V

33kR

146

100kR

152100k

R153

100kR

154100k

R155

CTR

_EN_I2C

_SDI

LOC

K_1V98

22nFC

97

GN

D

22nFC

98

GN

D

TEST_Adapter_Connected

TEST_3V6

PWM

_TEST

TEST_5

TEST_5

TEST_6

TEST_6

DIR

_INT3_IN

T4

DIR

_DEN

_CS_A

VDD

IO3.6V

NTS0104G

U12

GN

D6

Vcc_A1

Vcc_B11

B29

B110

OE

12

A23

A12

A34

A45

B38

B47

U33

1.65 to 5.5V

CTR

_EN_I2C

_SDI

CTR

_EN_I2C

_SDI

CS_x_uP

SDO

_x_uPSD

_x_uPSC

_x_uPC

S_x

SDO

_xSD

_xSC

_x

CS_x

SDO

_xSD

_xSC

_x

100nFC

101100nFC

102

TEST_5TEST_6

Log Signals

DIL24 D

evice Adapter- VD

D and VD

DIO

pin separated

UM2116Schematic diagrams

UM2116 - Rev 3 page 30/39

Page 31: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 13. STEVAL-MKI109V3 circuit schematic (7 of 8)

3.6V

GND

Bluetooth Module Connection:

GND

GNDGND

3.6V

GND GND

BT_TX_s

BT_RTS_s

GND

GNDBT_TX

BT_RTS

BT_RX

BT_CTS

BT_RST 12345678

J9

GND

3.6V

GND

SCK_RFMOSI_RFMISO_RF

CE_RF

VDD_3.6V

10nFC3

SN74AVC2T244DQMR

GND5

Vcc_A 1Vcc_B8

B26B17

OE 4A2 3A1 2

U22

1.2 to 3.6V

LDK120PU25R

Vin6

EN4

2

ByPass/Adj 3Vout 1

GND

5

N/C

U19

GND

IRQ_RF / CS_SPI

CS_RF

100nFC2

100nFC1

33kR5

33kR6 1

23

J8

2.5V

2.5V

UM2116Schematic diagrams

UM2116 - Rev 3 page 31/39

Page 32: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Figure 14. STEVAL-MKI109V3 circuit schematic (8 of 8)

BOO

T0

JTMS_SW

DIO

JTCK_SW

CLK

JTDI

NTR

ST

CS_uP

SPI2_SDA

SPI2_SCL

SDO

_uP

JTDO

SW1

SW2

JNTR

ST

I2C_SC

LI2C

_SDA

GP_uP

GN

D

3.6V

BOO

T0BO

OT1

Not M

ounted

BOO

T Mode Selection:

I2C_SC

LI2C

_SDA

SCL_uP

SDA_uP

SPI2_SCL

SPI2_SDA

3.6V

I2C and SPI connection:

LED1

3.6V3.6VLED2

3.6VLED3

Signal LEDs:

SW1

SW2

3.6V3.6V

GN

DG

ND

User Sw

itches:Interrupt LED

signalization:

3.6V3.6V

GN

D

JTMS_SW

DIO

JTCK_SW

CLK

GN

D

JTDO

JTDI

JNTR

STN

RST

JTAG/SW

O Interface:

3.6V

CTR

_EN

BT_TX

BT_RTS

BT_RX

BT_CTS

BT_RST

USB_D

-U

SB_D+

USB_D

isc1uFC

43100nFC

44

100nFC

52

GN

DG

ND

GN

D

4.7uFC

51100nFC

53100nFC

54100nFC

55100nFC

56100nFC

57

GN

D

3.6V

100nFC

49

GN

D

3.6V

3.6V

ABM8-16.000M

HZ-B2-T

13

24X1

18pF

C4718pF

C48

GN

D

GN

D

GN

D10kR

12010kR

12110kR

12210kR

123

10kR

129

10kR

10410kR

105

10kR

10910kR

110

10kR

11110kR

112

4k7R

1174k7R

118

100kR

126100kR

127

D1

D2

D3

D4

D5

330RR

107470RR

108220RR

106220RR

115330RR

114

3

1

2

T14

3

1

2

T13

12

34

56

78

910

J6

BOO

T1

100R

R103

FB2

1uFC

45100nFC

4622R

R102

ADC

_V_REF

VDD

_3.6V

SCK_R

F

MO

SI_RF

MISO

_RF

CE_R

F

PWM

_APW

M_B

LED1

LED2

LED3

CS_R

FIR

Q_R

F / CS_SPI

INT1_uP

INT2_uP

INT2_uP

INT1_uP

DIR

_GP

STM32F401VET6

LQFP100

PA3 / ADC

3 / USAR

T2_RX / TIM

2_CH

4 / TIM5_C

H4 / TIM

9_CH

226

VSS74

VDD

75

ADC

14 / PC4

33AD

C15 / PC

534

PB0 / ADC

8 / TIM1_C

H2N

/ TIM3_C

H3

35PB1 / AD

C9 / TIM

1_CH

3N / TIM

3_CH

436

PB2 / BOO

T137

PB10 / SPI2_SCK / I2S2_C

K / I2C2_SC

L / TIM2_C

H3

47

VCAP1

48

VSS10

VDD

19

PB12 / SPI2_NSS / I2S2_W

S / I2C2_SM

BA / TIM1_BKIN

51PB13 / SPI2_SC

K / I2S2_CK / TIM

1_CH

1N52

PB14 / SPI2_MISO

/ I2S2ext_SD / TIM

1_CH

2N53

PB15 / SPI2_MO

SI / I2S2_SD / TIM

1_CH

3N / R

TC_R

EFIN54

I2S2_MC

K / USAR

T6_TX / TIM3_C

H1 / SD

IO_D

6 / PC6

63

USAR

T6_CK / TIM

3_CH

3 / SDIO

_D0 / PC

865

I2S_CKIN

/ I2C3_SD

A / TIM3_C

H4 / SD

IO_D

1 / MC

O_2 / PC

966

PA8 / I2C3_SC

L / USAR

T1_CK / TIM

1_CH

1 / OTG

_FS_SOF / M

CO

_167

PA9 / I2C3_SM

BA / USAR

T1_TX / TIM1_C

H2 / O

TG_FS_VBU

S68

PA10 / USAR

T1_RX / TIM

1_CH

3 / OTG

_FS_ID69

PA11 / USAR

T1_CTS / U

SART6_TX / TIM

1_CH

4 / OTG

_FS_DM

70PA12 / U

SART1_R

TS / USAR

T6_RX / TIM

1_ETR / O

TG_FS_D

P71

PA13 / *JTMS-SW

DIO

*72

VSS27

VDD

28

PA14 / *JTCK-SW

CLK*

76PA15 / *JTD

I* / SPI1_NSS / SPI3_N

SS / I2S3_WS / TIM

2_CH

1/ TIM2_ETR

77

SPI3_SCK / I2S3_C

K / SDIO

_D2 / PC

1078

I2S3ext_SD / SPI3_M

ISO / SD

IO_D

3 / PC11

79SPI3_M

OSI / I2S3_SD

/ SDIO

_CK / PC

1280

PB3 / *JTDO

-SWO

* / SPI1_SCK / SPI3_SC

K / I2S3_CK / I2C

2_SDA / TIM

2_CH

289

PB4 / *NJTR

ST* / SPI1_MISO

/ SPI3_MISO

/ I2S3ext_SD / I2C

3_SDA / TIM

3_CH

190

PB5 / SPI1_MO

SI / SPI3_MO

SI / I2S3_SD / I2C

1_SMBA / TIM

3_CH

291

PB6 / I2C1_SC

L / USAR

T1_TX / TIM4_C

H1

92PB7 / I2C

1_SDA / U

SART1_R

X / TIM4_C

H2

93

Vpp / BOO

T094

PB8 / I2C1_SC

L / TIM4_C

H3 / TIM

10_CH

1 SDIO

_D4

95PB9 / SPI2_N

SS / I2S2_WS / I2C

1_SDA / TIM

4_CH

4 / TIM11_C

H1 / SD

IO_D

596

VSS49

VDD

50

VBAT6

RTC

_TAMP1 / R

TC_O

UT / R

TC_TS / PC

137

OSC

32_IN / PC

148

OSC

32_OU

T / PC15

9

PH0 / O

SC_IN

12PH

1 / OSC

_OU

T13

NR

ST14

ADC

10 / PC0

15AD

C11 / PC

116

ADC

12 / SPI2_MISO

/ I2S2ext_SD / PC

217

ADC

13 / SPI2_MO

SI / I2S2_SD / PC

318

VDD

A22

PA0 / ADC

0 / USAR

T2_CTS / TIM

2_CH

1 / TIM2_ETR

/ TIM5_C

H1 / W

KUP

23PA1 / AD

C1 / U

SART2_R

TS / TIM2_C

H2 / TIM

5_CH

224

PA2 / ADC

2 / USAR

T2_TX / TIM2_C

H3 / TIM

5_CH

3 / TIM9_C

H1

25

PA4 / ADC

4 / SPI1_NSS / SPI3_N

SS / I2S3_WS / U

SART2_C

K29

PA5 / ADC

5 / SPI1_SCK / TIM

2_CH

1 / TIM2_ETR

30PA6 / AD

C6 / SPI1_M

ISO / TIM

1_BKIN / TIM

3_CH

131

PA7 / ADC

7 / SPI1_MO

SI / TIM1_C

H1N

/ TIM3_C

H2

32

SPI4_SCK / TR

ACEC

LK / PE21

TRAC

ED0 / PE3

2SPI4_N

SS / TRAC

ED1 / PE4

3SPI4_M

ISO / TIM

9_CH

1 / TRAC

ED2 / PE5

4SPI4_M

OSI / TIM

9_CH

2 / TRAC

ED3 / PE6

5

VSS99

VDD

100

STM32F401VET6

VDD

11

VSSA/VREF-

20VR

EF+21

TIM1_ETR

/ PE738

TIM1_C

H1N

/ PE839

TIM1_C

H1 / PE9

40TIM

1_CH

2N / PE10

41SPI4_N

SS / TIM1_C

H2 / PE11

42SPI4_SC

K / TIM1_C

H3N

/ PE1243

SPI4_MISO

/ TIM1_C

H3 / PE13

44SPI4_M

OSI / TIM

1_CH

4 / PE1445

TIM1_BKIN

/ PE1546

PD8

55PD

956

PD10

57PD

1158

TIM4_C

H1 / PD

1259

TIM4_C

H2 / PD

1360

TIM4_C

H3 / PD

1461

TIM4_C

H4 / PD

1562

I2S3_MC

K / USAR

T6_RX / TIM

3_CH

2 / SDIO

_D7 / PC

764

VCAP2

73

PD0

81PD

182

TIM3_ETR

/ SDIO

_CM

D / PD

283

SPI2_SCK / I2S2_C

K / USAR

T2_CTS / PD

384

USAR

T2_RTS / PD

485

USAR

T2_TX / PD5

86SPI3_M

OSI / I2S3_SD

/ USAR

T2_RX / PD

687

USAR

T2_CK / PD

788

TIM4_ETR

/ PE097

PE198

U24

12J7

1 2BT3

12

BT2

12

BT1

ADC

_I_A_(2)AD

C_V_A

ADC

_I_A_(1)

ADC

_log_I_A

ADC

_I_B

ADC

_V_BAD

C_log_I_B

RAN

GE_20x_B

RAN

GE_5x_B

RAN

GE_2x_B

RAN

GE_100x_B

RAN

GE_50x_A

RAN

GE_20x_A

RAN

GE_100x_A

RAN

GE_5x_A

RAN

GE_2x_A

CS_uP

SDO

_uPSD

A_uPSC

L_uP

INT1_uP

INT2_uP

GP_uP

DEN

_uPC

S_A_uP

INT3_uP

INT4_uP

CS_A_uP

DEN

_uPC

S_A_uP

INT3_uP

INT4_uP

2.2uFC

76

GN

D 2.2uFC

50

N/A in BG

A100

CTR

_EN_I2C

_SDI

100kR

1610.1%

LOC

K_1V981k

R162

100nFC

84

GN

D

I2C3_SD

A

I2C3_SD

A

I2C3_SC

L

I2C3_SC

L

R_100x_A

R_20x_A

R_5x_A

PWM

_A

R_50x_A

R_2x_A

Control Signals A

Control Signals A

RAN

GE_50x_A

FILTER_A_(2)

RAN

GE_20x_A

RAN

GE_100x_A

PWM

_A

R_100x_B

R_20x_B

R_5x_B

PWM

_B

R_2x_B

Control signals B

Control Signals B

RAN

GE_20x_B

FILTER_B

RAN

GE_5x_B

RAN

GE_100x_B

PWM

_B

ADC

_I_A_(2)

ADC

_log_I_AAD

C_V_A

ADC

_I_A_(1)

FILTER_A( 1)

FILTER_A (2)

Analog Signals A

ADC

_I_A_(2)AD

C_V_A

ADC

_I_A_(1)

ADC

_I_B

ADC

_log_I_BAD

C_V_B

FILTER_B

Analog Signals B

Analog Signals BAD

C_I_B

ADC

_V_BAD

C_log_I_B

ADC

_log_I_AAnalog Signals A

RAN

GE_2x_B

RAN

GE_5x_A

RAN

GE_2x_A

FILTER_A_(1)

FILTER_A_(1)

FILTER_A_(2)

FILTER_B

Vext_sense

Vusb_sense

100kR

173

100kR

171

100kR

170

100kR

172 GN

D 22nFC

93

GN

D 22nFC

94

Vext_sens/2Vext_sens/2

Vusb_sens/2

Vusb_sens/2

1 2J10G

ND

1 2J12G

ND

Production Test StartG

PI

1 2J11

Production Tester

GPI

Cal

GPI

Cal

3.6V

TEST_Adapter_Connected

TEST_3V6

PWM

_TEST

TEST_5

TEST_6

I2C3_SC

L

DIR

_DEN

_CS_A

DIR

_INT3_IN

T4

10k

R179

10k

R180

SW2

GP

DEN

CS_A

INT3

INT4

CS

SDO

SDA

SCL

INT2

INT1

SDO

_xSD

_xSC

_xC

S_x

Logic_signals1

CS_x_uP

SDO

_x_uPSD

_x_uPSC

_x_uP

CS_x_uP

SDO

_x_uPSD

_x_uP

SC_x_uP

Log Signals

Interconnection Check

BOO

T Mode

Selection:- D

efault boot from

FLASH

(BOO

T0 low, BO

OT1 low

)

UM2116Schematic diagrams

UM2116 - Rev 3 page 32/39

Page 33: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Revision history

Table 9. Document revision history

Date Version Changes

05-Oct-2016 1 Initial release.

26-Feb-2018 2 Updated Table 1. List of supported MEMS adapter boards, Table 2. List of supported commands andTable 3. Returned values for *start command

27-Jul-2018 3

Updated Table 1. List of supported MEMS adapter boards, Table 2. List of supported commands andTable 3. Returned values for *start command

Changed all descriptions for *Zon to "Forces High impedance state" (was Forces 3-state) and *Zoff to"Exits from High impedance state" (was Exits from 3-state)

Minor text changes

UM2116

UM2116 - Rev 3 page 33/39

Page 34: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

Contents

1 Demonstration kit description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2

2 Professional MEMS Tool board installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

2.1 Hardware installation (Windows® platforms) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2.2 DFU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.2.1 DFU on Windows® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.2.2 DFU on Linux® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.2.3 DFU on Mac OS® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3 Supported MEMS adapter boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

4 Supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

4.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.1.1 Quick start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2 Supported commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4.2.1 *setdbXXXVY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.2.2 *start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.2.3 *debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.2.4 *stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.5 *Zon and *Zoff. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.6 *dev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.7 *ver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.8 *rAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.9 *wAADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.10 *grAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.2.11 *gwAADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.2.12 *mrAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.2.13 *mwAADD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.2.14 *prAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.2.15 *pwAADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.2.16 *hrAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.2.17 *hwAADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.2.18 *single . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

UM2116Contents

UM2116 - Rev 3 page 34/39

Page 35: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.2.19 *list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.20 *listdev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.21 *echoon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.22 *echooff. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.23 *fiforst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.24 *fifomde. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.25 *fifostr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.26 *fifostf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.27 *fifobtf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.28 *fifobts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.29 *fifodstr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.30 *gfiforst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.31 *gfifomde. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.32 *gfifostr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.2.33 *gfifostf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.34 *gfifobtf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.35 *gfifobts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.36 *gfifodstr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.37 *pfiforst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.38 *pfifomde. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.39 *pfifostr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.40 *pfifostf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.41 *pfifobtf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.42 *pfifobts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.43 *pfifodstr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.44 *setvddaX.Y and *setvddioX.Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.45 *power_on and *power_off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2.46 *adc_single . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.3 Digital output accelerometers: supported commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

4.4 Digital output gyroscopes: supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

4.5 Digital output magnetometers: supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.6 Digital output pressure sensor: supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

UM2116Contents

UM2116 - Rev 3 page 35/39

Page 36: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

4.7 Digital output humidity sensor: supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

5 Schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33

UM2116Contents

UM2116 - Rev 3 page 36/39

Page 37: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

List of tablesTable 1. List of supported MEMS adapter boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Table 2. List of supported commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Table 3. Returned values for *start command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Table 4. Digital output accelerometers: supported commands list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Table 5. Digital output gyroscopes: supported commands list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Table 6. Digital output magnetometer: supported commands list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Table 7. Digital output pressure sensor: supported commands list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Table 8. Digital output humidity sensor: supported commands list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Table 9. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

UM2116List of tables

UM2116 - Rev 3 page 37/39

Page 38: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

List of figuresFigure 1. Demonstration board block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Figure 2. Top silkscreen of the Professional MEMS Tool kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Figure 3. Top view of Professional MEMS Tool kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Figure 4. How to plug the DIL24 adapter on STEVAL-MKI109V3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Figure 5. Successful device driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Figure 6. Virtual COM port assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Figure 7. STEVAL-MKI109V3 circuit schematic (1 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Figure 8. STEVAL-MKI109V3 circuit schematic (2 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 9. STEVAL-MKI109V3 circuit schematic (3 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Figure 10. STEVAL-MKI109V3 circuit schematic (4 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 11. STEVAL-MKI109V3 circuit schematic (5 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Figure 12. STEVAL-MKI109V3 circuit schematic (6 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Figure 13. STEVAL-MKI109V3 circuit schematic (7 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Figure 14. STEVAL-MKI109V3 circuit schematic (8 of 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

UM2116List of figures

UM2116 - Rev 3 page 38/39

Page 39: User manual - UM2116 - STEVAL-MKI109V3 Professional MEMS

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to STproducts and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. STproducts are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design ofPurchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2018 STMicroelectronics – All rights reserved

UM2116

UM2116 - Rev 3 page 39/39