![ST STEVAL-MKI132V1 User Manual Download Page 16](http://html1.mh-extra.com/html/st/steval-mki132v1/steval-mki132v1_user-manual_1356013016.webp)
UM1579
Supported commands
Doc ID 023744 Rev 1
15/26
Set demonstration board
The command *setdbxxxvy selects the part of the firmware able to handle the adapter board
sensor connected to the board. e.g., in order to select the firmware for the LIS3DH the
command must be: setdb105V1.
Start command
The *start command initiates the continuous data acquisition. When this command is sent to
the device, it returns a string of bytes (plus carriage return and line feed) similar to “st OUT1
OUT2 OUT3 IR 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 are the bytes that contain the values measured at device outputs;
if the output data is represented on more than 8 bits, OUT1, OUT2, and OUT3 are split into
two bytes: high byte (e.g.: “XH”) and low byte (e.g.: “XL”).
IR contains the interrupt bytes and BT contains the bytes that describe the state of the
buttons integrated on the board.
Specifically, bit#0 of the “BT” data corresponds to the status of the SW1 button on the
demonstration board: it is set to 1 when the SW1 is pressed (otherwise 0). Bit#1 has the
same behavior but is dedicated to the SW2.
Before sending the *start command, the device must be out from 3-state and some registers
must be configured according to user needs, therefore, *start must be preceded by a *zoff
and some “Register Write” commands.
shows the format of the string returned for each device when a *start command is
sent.
Note:
XH: X axis output high byte (same for Y axis, Z axis, P pressure, and TEMP temperature).
XL: X axis output low byte (same for Y axis, Z axis, P pressure, and TEMP temperature).
Table 3.
Returned values for *start command
STEVAL # (device)
Returned value
STEVAL-MKI089V1 (LIS331DLH)
STEVAL-MKI105V1 (LIS3DH)
STEVAL-MKI107V1 (L3G4200D)
STEVAL-MKI107V2 (L3GD20)
STEVAL-MKI110V1 (AIS328DQ)
s t XH XL YH YL ZH ZL int1 int2 sw1|sw2 \r \n
STEVAL-MKI106V1 (LSM303DLHC)
STEVAL-MKI303V1 (LSM303D)
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-MKI108V1 (9AXISMODULEv1)
STEVAL-MKI108V2 (9AXISMODULEv2)
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
M_XH M_XL M_YH M_YL M_ZH M_ZL
A_int1 A_int2 sw1|sw2 \r \n
STEVAL-MKI122V1 (LSM330DLC)
STEVAL-MKI123V1 (LSM330D)
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