
Watson Industries, Inc
AHRS-S305 Rev J 03/22/2018
22
Example 2: The Unit is seeing these conditions:
Binary output Format:
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Data Word
MSB
LSB
Bit 7 of the MSB is set to 1. Bits 6 to 0 of the MSB are the upper 7 bits of the data. (sign plus 6 bits of data)
Bit 7 of the LSB is set to 1. Bits 6 to 0 of the LSB are the lower 7 bits of the data.
As the data words are received, the LSB is shifted left to shift out the Bit 7 (always set to 1). The MSB is then
connected to the LSB as a 16-bit word. This word is then shifted left to shift out the Bit 7 (always set to 1). What
remains is a signed fractional word with a resolution of 13 bits plus a sign bit.
To convert binary data:
Need split each word into two bytes:
Remove the most significant bit from each byte:
Shift lower byte left once (to remove 1 bit space between bytes):
X Acceleration
Y Acceleration
Z Acceleration
X angular rate
Y angular rate
Z angular rate
0.00 g
-0.28 g
-0.96g
10.0˚/sec
-15.0˚/sec
55.0˚/sec
Word1
Word2
Word3
Word4
Word5
Word6
<CR> byte
0x8080
0xFE9A
0xF9EE
0x8399
0xFB99
0x91CC
0x0D
X Accel
Y Accel
Z Accel
X Rate
Y Rate
Z Rate
0x8080
0xFE9A
0xF9EE
0x8399
0xFB99
0x91CC
X Accel
Y Accel
Z Accel
X Rate
Y Rate
Z Rate
0x80
0x80
0xFE
0x9A
0xF9
0xEE
0x83
0x99
0xFB
0x99
0x91
0xCC
X Accel
Y Accel
Z Accel
X Rate
Y Rate
Z Rate
0x00
0x00
0x7E
0x1A
0x79
0x6E
0x03
0x19
0x7B
0x19
0x11
0x4C
X Accel
Y Accel
Z Accel
X Rate
Y Rate
Z Rate
0x00
0x00
0x7E
0x34
0x79
0xDC
0x03
0x32
0x7B
0x32
0x11
0x98