background image

For example, to read the register at address 0x20, the user issues the command *hr20, which returns, e.g.,
HR20h10h.

Humidity sensor register write

The *hwAADD command allows writing to the contents of the humidity sensor registers in the demonstration kit
board. AA and DD, expressed as hexadecimal values and written in upper case, represent, respectively, the
address of the register and the data to be written. To write 0xC7 to the register at address 0x20, for example, the
user issues the command *hw20C7.

Single acquisition

The *single command may be used to read just one set of data. It requires the sensor to be well configured and
once invoked, returns the read values of one data sample.
The format of the returned value is exactly the same as the *debug command (

Table 5. Returned values for

*debug command

), in fact, the *debug command is used for continuous data acquisition purposes whereas a

*single command returns just one set of data.

List

The *list command returns the list of MKI adapters supported by the firmware, printed in ASCII format.

Listdev

The *listdev command returns the list of devices supported by the firmware, printed in ASCII format.

Echo on

The *echoon command is used to activate the write command verbose mode. Once this command is launched,
after every write command the firmware automatically performs also a read of the register just written. This
function is useful to check if the write has succeeded. For instance, if the *echoon command is launched, after a
*w2027 it results R2027.

Echo off

The *echooff command stops the write command verbose mode.

Accelerometer FIFO reset enable

The *fiforst command enables the accelerometer FIFO reset mode. For more details see the AN3308 application
note.

Accelerometer FIFO mode enable

The *fifomde command is used to enable the accelerometer FIFO mode. For more details see the AN3308
application note.

Accelerometer FIFO Stream mode enable

The *fifostr command is used to enable the accelerometer FIFO stream mode. For more details see the AN3308
application note.

Accelerometer Stream-to-FIFO mode enable

The *fifostf command enables the accelerometer Stream-to-FIFO mode. For more details see the AN3308
application note.

Accelerometer Bypass-to-FIFO mode enable

The *fifobtf command is used to enable the accelerometer Bypass-to-FIFO mode.

Accelerometer Bypass-to-Stream mode enable

The *fifobts command is used to enable the accelerometer Bypass-to-Stream mode.

UM0979

Supported commands 

UM0979

 - 

Rev 6

page 20/39

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Summary of Contents for eMotion STEVAL-MKI109V1

Page 1: ...the ST website or dedicated software routines for customized applications This user manual describes the hardware included with the demonstration kit and provides the information required to install...

Page 2: ...the board can be read through the PC GUI provided with the kit The eMotion also implements the DFU device firmware upgrade feature therefore in the case of a new firmware release it can be reprogramm...

Page 3: ...Figure 2 Top silkscreen of the eMotion kit UM0979 Demonstration kit description UM0979 Rev 6 page 3 39 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 4: ...view ref 7 can be used to directly supply the board from 3 5 V to 6 V instead of using the USB connector Jumper JP1 allows the user to measure the sensor current consumption by connecting a multimeter...

Page 5: ...lied LEDs D2 and D3 Figure 3 Board top view ref 13 are directly connected to the interrupt pins of the MEMS digital adapters if available on the sensor mounted on the adapter board LEDs D4 D5 and D6 F...

Page 6: ...oard to the STEVAL MKI109V2 UM0979 Demonstration kit description UM0979 Rev 6 page 6 39 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Page 7: ...s No driver installation is needed on Linux and Mac OS platforms To install the STM32 virtual COM port driver on Windows platforms launch the VCPDriver_V1 4 0_Setup exe included in the Windows install...

Page 8: ...d during a standard firmware upgrade with the DFU tool At the end of this procedure if the green LED D4 is on it indicates that the procedure is successfully completed if the red LED D5 is on the proc...

Page 9: ...nd the dfu file name respectively example sudo dfu util a 0 D Desktop eMotionV2_REL_4_0 dfu d 0483 df11 To use the board with the upgraded firmware you need to disconnect and reconnect it in order to...

Page 10: ...TEVAL MKI114V1 MAG PROBE based on LSM303DLHC STEVAL MKI120V1 LPS331AP STEVAL MKI122V1 LSM330DLC STEVAL MKI123V1 LSM330D STEVAL MKI124V1 10AXISMODULE LSM303DLHC L3GD20 LPS331AP STEVAL MKI125V1 A3G4250D...

Page 11: ...STEVAL MKI178V1 LSM6DSL STEVAL MKI179V1 LIS2DW12 STEVAL MKI180V1 LIS3DHH STEVAL MKI181V1 LIS2MDL STEVAL MKI182V1 ISM330DLC STEVAL MKI183V1 LPS33HW STEVAL MKI185V1 IIS2MDC STEVAL MKI186V1 IIS3DHHC STE...

Page 12: ...indows XP operating system 3 Create a new connection enter a name e g STEVAL MKI109V2 and click OK 4 In the Connect Using field select the virtual COM port to which the USB port has been mapped and cl...

Page 13: ...egister read e g HRAAhDDh hwAADD Humidity sensor register write single It gets a single X Y and Z data acquisition see Table 5 Returned values for debug command list Prints the list of MKIs supported...

Page 14: ...s self test pin STOFF Clears self test pin HPON Sets high pass filter pin HPOFF Clears high pass filter pin FSON Sets full scale pin FSOFF Clears full scale pin Note IR interrupt byte FC FIFO control...

Page 15: ...I166V1 H3LIS100DL STEVAL MKI167V1 H3LIS200DL STEVAL MKI168V1 IIS2DH STEVAL MKI169V1 I3G4250D STEVAL MKI170V1 IIS328DQ STEVAL MKI179V1 LIS2DW12 STEVAL MKI180V1 LIS3DHH STEVAL MKI186V1 IIS3DHHC s t XH X...

Page 16: ...3V1 LPS33HW STEVAL MET001V1 LPS22HB s t PXL PL PH TL TH REF_PXL REF_PL REF_PH int1 sw1 sw2 r n 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 STEP_L STEP_H TEM...

Page 17: ...3DLHC STEVAL MKI113V1 LSM303DLM STEVAL MKI133V1 LSM303D STEVAL MKI163V1 LSM303C STEVAL MKI172V1 LSM303AGR AX XXXXX AY YYYYY AZ ZZZZZ MX XXXXX MY YYYYY MZ ZZZZZ STEVAL MKI114V1 MAG PROBE STEVAL MKI137V...

Page 18: ...cted to the demonstration kit The returned value is for example LIS3DH Firmware version The ver command queries the demonstration kit and returns the version of the firmware loaded in the microprocess...

Page 19: ...gister and the data to be written To write 0x20 to the register at address 0x01 for example the user issues the command mw0120 Pressure sensor register read The prAA command allows the contents of the...

Page 20: ...the write has succeeded For instance if the echoon command is launched after a w2027 it results R2027 Echo off The echooff command stops the write command verbose mode Accelerometer FIFO reset enable...

Page 21: ...mode enable The mfifostr command is used to enable the magnetometer FIFO stream mode Magnetometer Stream to FIFO mode enable The mfifostf command enables the magnetometer Stream to FIFO mode Magnetome...

Page 22: ...and STOFF The STON and STOFF commands are employed respectively to set to 1 and to clear to 0 the self test pin in analog devices HPON and HPOFF The HPON and HPOFF commands are employed respectively...

Page 23: ...ite verbose mode fiforst 1 Accelerometer Reset mode enable st 0 0 0 0 0 0 IR FC FS fifomde 1 Accelerometer FIFO mode enable st 0 0 0 0 0 0 IR FC FS fifostr 1 Accelerometer FIFO Stream enable st 0 0 0...

Page 24: ...st of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode PDON Sets power...

Page 25: ...1 Gyroscope Reset mode enable st 0 0 0 0 0 0 IR FC FS gfifomde 1 Gyroscope FIFO mode enable st 0 0 0 0 0 0 IR FC FS gfifostr 1 Gyroscope FIFO Stream enable st 0 0 0 0 0 0 IR FC FS gfifostf 1 Gyroscope...

Page 26: ...v Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode PDON Sets power down pin PDOFF Clears power down pin ST...

Page 27: ...mfiforst 1 Magnetometer Reset mode enable st 0 0 0 0 0 0 IR FC FS mfifomde 1 Magnetometer FIFO mode enable st 0 0 0 0 0 0 IR FC FS mfifostr 1 Magnetometer FIFO Stream enable st 0 0 0 0 0 0 IR FC FS m...

Page 28: ...essure sensor Reset mode enable st 0 0 0 0 0 0 IR FC FS pfifomde 1 Pressure sensor FIFO mode enable st 0 0 0 0 0 0 IR FC FS pfifostr 1 Pressure sensor FIFO Stream enable st 0 0 0 0 0 0 IR FC FS pfifos...

Page 29: ...Z acceleration data from the demonstration kit 1 Connect the eMotion to the USB port 2 Start Microsoft HyperTerminal and configure it as described in Section 4 1 Getting started 3 Inside the HyperTer...

Page 30: ...C13 V DD TANT V p s USBDM USBDP USB_Disc USBDM USBDP USB_Disc Vd d_dut Vd d_dut UM0979 Schematic diagrams UM0979 Rev 6 page 30 39 Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 31: ...SC32out 4 PD0 OSCin 5 PD1 OSCout 6 NRST 7 PC0 ADC10 8 PC1 ADC11 9 PC2 ADC12 10 PC3 ADC13 11 VssA 12 VddA 13 PA0 WKUP ADC0 14 PA1 ADC1 15 PA2 ADC2 16 STM32F10xRx 0R R32 0R R33 SPI2_ SDA SPI2_ SCL SDO_D...

Page 32: ...B_mini_B J4 Header 12 Header 12 HDR1X12 J5 Header 12 Header 12 JP 1X12 JP1 CON2 Current_Measure Header 1x2 2 mm JP2 Header 12 Header 12X2 HDR1X12 JP3 Header 12 Header 12X2 HDR1X12 JP4 Header 3 STMicro...

Page 33: ...0 0805 R30 Resistor 100 0805 R31 Resistor 1 k 0805 R32 Resistor 0 0805 R33 Resistor 0 0805 R34 Resistor 36 k 0805 R35 Resistor 180 0805 UM0979 Bill of materials UM0979 Rev 6 page 33 39 Downloaded from...

Page 34: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 35: ...to lower than V3 0 0 in Section 2 2 DFU Updated version of DFU software to V3 0 5 in Section 2 2 1 DFU on Windows Updated Table 2 List of supported MEMS adapter boards Updated Table 4 Returned values...

Page 36: ...ls 32 Revision history 35 UM0979 Contents UM0979 Rev 6 page 36 39 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Down...

Page 37: ...ry 35 UM0979 List of tables UM0979 Rev 6 page 37 39 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Ar...

Page 38: ...rrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloade...

Page 39: ...ocument supersedes and replaces information previously supplied in any prior versions of this document 2018 STMicroelectronics All rights reserved UM0979 UM0979 Rev 6 page 39 39 Downloaded from Arrow...

Reviews: