CXM543 User’s Manual
Doc.# 6001-0015 Rev 1.2
Page 11
The data values are encoded as two byte values followed
by a checksum consisting of the lo wer eight bits of the
sum of the bytes comprising all the data. This is followed
by a synchronization byte of 5A.
P
IMPORTANT
When in Binary mode, the X, Y & Z values for acceleration and
magnetometer data are encoded as a signed integer, 2's complement, with a
conversion factor of
(
)
14
2
256
*
LSB
MSB
A
or
A
or
A
z
y
x
+
=
in G and
(
)
15
2
256
*
LSB
MSB
M
or
M
or
M
z
y
x
+
=
in Gauss
The pitch, roll and heading are calculated as follows:
x
z
y
A
A
A
Pitch
2
2
1
tan
+
=
−
z
y
A
A
Roll
1
tan
−
=
(
)
(
)
−
−
+
−
+
+
=
−
x
z
z
x
y
y
z
y
x
z
y
y
z
z
y
x
A
A
M
A
A
M
A
A
M
A
M
A
M
A
A
A
Heading
2
2
2
2
2
1
tan
This is followed by a checksum consisting of the lower eight bits of the sum
of the bytes comprising the X, Y & Z Data for accelerometers and
magnetometers and calculated as,
256
5
A
and
checksum
except
bytes
all
of
sum
Checksum
=
This is followed by a synchronization byte of 5 A, which represents the end
of the data packet.
To determine the mode of a CXM543, issue the command M?
The autosend command (A) enables data to be sent continuously upon
power on. The output rate of the sent data is set by issuing the command of
the form:
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]