User Manual
Table Of Contents
- Revision History
- Table of Contents
- Chapter 1 Introduction
- Chapter 2 Wireless Sensing Triple Axis Reference design introduction
- Chapter 3 Sensor Board description
- 3.1 Board overview
- 3.2 A/D conversion of XYZ levels
- 3.3 Power management
- 3.4 ZSTAR Sensor Board hardware overview
- 3.4.1 Analog connections
- 3.4.2 g-select connections
- 3.4.3 BDM (Background Debug Mode) connections
- 3.4.4 Sensor Board schematics
- 3.4.5 Button connections
- 3.4.6 MC13191 to MC9S08QG8 microcontroller interface
- 3.4.7 MC13191 RF interface
- 3.4.8 Clocking options of MC9S08QG8
- 3.4.9 LED indicators connections
- 3.4.10 Power supply
- 3.5 Bill of Materials
- Chapter 4 USB stick board description
- Chapter 5 Software Design
- 5.1 Introduction
- 5.2 SMAC (Simple Media Access Controller)
- 5.3 ZSTAR RF protocol
- 5.4 STAR protocol and ZSTAR extensions (over USB)
- 5.5 Bootloader
- Chapter 6 Application Setup
- Appendix A References
![](/manual/freescale-semiconductor/zt2/user-manual-english/images/img-42.png)
STAR protocol and ZSTAR extensions (over USB)
Wireless Sensing Triple Axis Reference design, Rev. 0.9
Freescale Semiconductor 43
Figure 5-6Accelerometer data transfer ‘V’ (0x56)
5.4.2.1 Extended Accelerometer data transfer ‘v’ (0x76)
The ZSTAR demo has also two buttons designed on the Sensor Board. To acquire the actual state of
these buttons, the original ‘V’ command has been extended to a ‘v’ command, that provides the same
information, followed by a ‘b’ character and a binary byte containing the actual state. The least two
significant bits are used, the others are reserved. If a button is pressed, the actual bit is set to ‘1’, and if
depressed, the bit is ‘0’.
Figure 5-7Extended Accelerometer data transfer ‘v’ (0x76)
5.4.3 Calibration data ‘K’ (0x4B)
The calibration data is the accelerometer values for specific g (acceleration) levels. The values for 0g and
1g (Earth gravity) are provided for each axis. The values are stored in the Flash memory of the Sensor
Board and are transferred to the USB stick once the air connection is established (as described in chapter
5.3.2.2 ZSTAR_CONNECT). These values are stored in the USB stick for retrieval by the PC using the
‘K’ command.
The PC sends the Calibration data ‘K’ command, the demo responds with 9 bytes in the following
sequence:
'X', Xval0, Xval1, 'Y', Yval0, Yval1, Z', Zval0, Zval1, simply an ‘X’ character followed by the 0g and 1g
X-axis calibration accelerometer binary values, and the same for Y- and Z-axis.
PC to demo
demo to PC
X-axis value
‘x’
Y-axis value
‘y’
Z-axis value
‘z’
‘V’
PC to demo
demo to PC
X-axis value
‘x’
‘v’
Y-axis value
‘y’
Z-axis value
‘z’
buttons
‘b’