User Manual
Software Design
ZSTAR3 Reference Design Manual, Rev. 0.1
5-40 Freescale Semiconductor
Preliminary
Pr
e
l
i
m
i
n
a
ry
Table 5-5. Legend of colors
5.4.2 Subset of original ZSTAR protocol commands
The ZSTAR3 software contains all lightly changed original ZSTAR commands.
Table 5-4. Original STAR commands
Normal Command
Extended Asynchronous
Answer
Note
Comma
nd
Detail of command data
Length
tx/rx
(B)
Detail
Leng
th rx
(B)
‘R’
‘N’ 1, 1 - - Reset to 8 bit mode
‘V’
''x' value 'y' value 'z' value 1,6
1
1
Length of answer of measured data depends on actual work mode 8/16bits. 6 bytes for 8 bits, 9 bytes for 16 bits mode
- - Read acceleration data
‘G’
g-select value 1, 1 - - g-select read
‘g’
g-select value, ‘G’, result 2, 0, 2 {'g',result,index} 7 g-select write
‘K’
''X' g(0) g(1) 'Y' g(0) g(1) 'Z' g(0) g(1) 1,. 9
2
2
Length of answer of calibration values depends on actual work mode 8/16bits. 9 bytes for 8 bits, 15 bytes for 16 bits mode
- - read calibration values
3
3
If is connected sensor with ZSTAR3 protocol, then this command return ideal constants of calibration
‘k’
xg(0), xg(1), yg(0), yg(1), zg(0), zg(1), ‘K’,
result
7
4
, 0, 2
4
Length of command calibration data depends on actual work mode 8/16bits. 7 bytes for 8 bits, 13 bytes for 16 bits mode
{'k',result,index} 7 write calibration values
5
5
If is connected sensor with ZSTAR3 protocol, then command calibration data isn’t important
Legend
Red Direction PC -> USB Stick
Blue Direction USB Stick -> PC, regular
data
Magenta Direction USB Stick -> PC, extended
data
Table 5-6. Original ZSTAR commands
Normal Command
Extended
Asynchronous
Answer
Note
Comma
nd
Detail of command data
Length
tx/rx
(B)
Detail
Leng
th rx
(B)