WATSON INDUSTRIES DMS-SGP01 Owner's Manual page 26

Gps module & antenna
Table of Contents

Advertisement

Example 2: The Unit is seeing these conditions:
X Acceleration
Y Acceleration
0.00 g
-0.28 g
2) Binary output Format:
Word1
Word2
Word3
0x8080
0xFE9A
0xF9EE
MSB
7
6
5
4
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 7th bit (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 7th bit (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:
X Accel
Y Accel
Z Accel
0x8080
0xFE9A
0xF9EE
Need split each word into two bytes:
X Accel
Y Accel
Z Accel
0x80
0xFE
0xF9
0x80
0x9A
0xEE
Remove the most significant bit from each byte:
X Accel
Y Accel
Z Accel
0x00
0x7E
0x79
0x00
0x1A
0x6E
Shift lower byte left once (to remove 1 bit space between bytes):
X Accel
Y Accel
Z Accel
0x00
0x7E
0x79
0x00
0x34
0xDC
Watson Industries, Inc.
Z Acceleration
X angular rate
-0.96g
Word4
Word5
0x8399
0xFB99
Data Word
3
2
1
0
X Rate
Y Rate
0x8399
0xFB99
X Rate
Y Rate
0x83
0xFB
0x99
0x99
X Rate
Y Rate
0x03
0x7B
0x19
0x19
X Rate
Y Rate
0x03
0x7B
0x32
0x32
26
Y angular rate
10.0˚/sec
-15.0˚/sec
Word6
<CR> byte
0x91CC
0x0D
LSB
7
6
5
Z Rate
0x91CC
Z Rate
0x91
0xCC
Z Rate
0x11
0x4C
Z Rate
0x11
0x98
DMS-SGP01 Rev B 03/22/2018
Z angular rate
55.0˚/sec
4
3
2
1
0

Advertisement

Table of Contents
loading

Table of Contents