CXM543 User’s Manual
Doc.# 6001-0015 Rev 1.2
Page 20
To obtain the checksum, all of the data bytes in the transmission are added.
The checksum is the least significant 8 bits (or 2 hex digits) of this
summation.
The <CR> and <LF> in the transmission represent ASCII characters for
carriage return (0D Hex), and line feed (0A Hex). Note that the ASCII
space character (Hex 20) is transmitted after each sensor output is
transmitted.
In raw binary mode (M=rb), the data transmissions are much more compact.
The transmissions are of the form:
AXAYAZMXMYMZTK
where AX represents the X accelerometer output etc., T represents the
temperature and K represents the checksum. AX consists of two bytes. The
most significant byte is transmitted first. The most significant bit of this
byte is also transmitted first. Decoding of the binary data is in accordance
with the following table:
Count
Binary Output
32767
0111 1111 1111 1111
0
0000 0000 0000 0000
-1
1111 1111 1111 1111
-32768
1000 0000 0000 0000
T is a byte number representing the system temperature in °C, and K is a
one byte checksum obtained by taking the least significant 8 bits resulting
from adding all of the data bytes.
In binary mode, there is no terminating transmission of a carriage return or
linefeed. Instead, and end of transmission character (5A) is transmitted.
In raw integer mode, the transmission is of the following form:
±MX ±MY ±MZ ±AX ±AY ±AZ ±T K <CR><LF>
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]