![ST eMotion Скачать руководство пользователя страница 21](http://html.mh-extra.com/html/st/emotion/emotion_user-manual_1355657021.webp)
DocID017768 Rev 4
21/39
UM0979
Supported commands
39
Stop command
The *stop command interrupts any acquisition session that has been started with either the
*start or *debug commands.
Zon and Zoff
The *Zon and *Zoff commands are employed, respectively, to put into 3-state the
STM32F103RET6 microcontroller mounted on the demonstration kit. These commands
allow the isolation of the sensor from the microprocessor and let the user interact with the
sensor in a pure analog way.
By default, when the kit is first turned on, the lines are in 3-state mode and the user is
required to send the *Zoff command to allow communication between the sensor and the
microcontroller. If Zoff has not been launched, the firmware ignores any other command.
Device name
The *dev command retrieves the name of the adapter connected 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 microprocessor, for example, “V1.0”.
Accelerometer register read
The *rAA command allows the contents of the accelerometer registers in the demonstration
kit board to be read. AA, expressed as a hexadecimal value and 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 DD is the data present in the register.
For example, to read the register at address 0x20, the user issues the command *r20, which
returns, e.g., R20hC7h.
Accelerometer register write
The *wAADD command allows writing to the contents of the accelerometer 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. For
example, to write 0xC7 to the register at address 0x20, the user issues the command
*w20C7.
STEVAL-MKI124V1 (10AXISMODULE)
AX=XXXXX AY=YYYYY AZ=ZZZZZ
MX=XXXXX MY=YYYYY MZ=ZZZZZ
GX=XXXXX GY=YYYYY GZ=ZZZZZ
P=PPPPP T=TTTTT
STEVAL-MKI141V1 (HTS221 - I2C i/f)
STEVAL-MKI141V2 (HTS221)
H=HHHHH T=TTTTT
Table 5. Returned values for *debug command
STEVAL # (Device)
Returned value