CXM543 User’s Manual
Doc.# 6001-0015 Rev 1.2
Page 17
M = d
decimal (ASCII) mode
For decimal mode, ASCII characters representing the data are transmitted.
For binary mode the data is encoded in binary format. Decimal mode is
ideal for use when the CXM543 is communicating with a PC because the
ASCII characters display in intelligible form on a PC running a terminal
emulation program (e.g., PROCOM or HyperTerminal). Binary mode uses a
considerably smaller number of bytes to encode the data, and is hence,
much faster than decimal mode. Binary mode characters however do not
display in an intelligible way on a PC and must be decoded using a separate
program. Binary mode is used principally for systems where an embedded
microprocessor communicates with the CXM543.
In calibrated vector decimal mode (M = cvd), the data format is as follows:
AX AY AZ MX MY MZ T K <CR><LF>
AX is the X accelerometer output (etc.) and is of the form:
±X.XXXXX
where, X is an ASCII character. For instance, a typical transmitted value is
-0.28265 G
T is the system temperature (in degrees C) and is of the form:
TT.T
K is a one-byte checksum calculated by summing all of the digits in the
transmitted data ignoring signs and decimal points. For instance, if the
transmitted data is
AX
AY
AZ
MX MY MZ T CS<CR><LF>
-0.00128 +0.03076 +0.98512 +0.02282 +0.25378 +0.34216 32.0 70
The checksum is 70 as indicated since
1+2+8+3+7+6+9+8+5+1+2+2+2+8+2+2+5+3+7+8+3+4+2+1+6+3+
2+1 = 112
decimal or
70
hex.
Note that the inclusion of the temperature and a checksum in the transmitted
data output is optional. To enable the sending of these data issue the
commands:
SUNSTAR传感与控制 http://www.sensor-ic.com/ TEL:0755-83376549 FAX:0755-83376182 E-MAIL:[email protected]
SUNSTAR自动化 http://www.sensor-ic.com/ TEL: 0755-83376489 FAX:0755-83376182 E-MAIL:[email protected]