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
 
Wireless Sensing Triple Axis Reference design, Rev. 0.9
Freescale Semiconductor 5
Table of Contents
Chapter 1 
Introduction
1.1 Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
1.2 MMA7260Q 3-axis Accelerometer Sensor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
Chapter 2 
Wireless Sensing Triple Axis Reference design introduction
2.1 Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
2.2 Featured products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
2.2.1 Triple Axis Accelerometer MMA7260Q  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
2.2.2 Microcontroller MC9S08QG8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
2.2.3 MC13191 2.4 GHz ISM Band Low Power Transceiver . . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
2.2.4 Microcontroller MCHC908JW32. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
Chapter 3 Sensor Board description
3.1 Board overview  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
3.2 A/D conversion of XYZ levels  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
3.2.1 ADC module init:  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
3.2.2 ADC measurement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
3.3 Power management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
3.3.1 MC13191 power management features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
3.4 ZSTAR Sensor Board hardware overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
3.4.1 Analog connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
3.4.2 g-select connections  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
3.4.3 BDM (Background Debug Mode) connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
3.4.4 Sensor Board schematics  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.4.5 Button connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
3.4.6 MC13191 to MC9S08QG8 microcontroller interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
3.4.7 MC13191 RF interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
3.4.8 Clocking options of MC9S08QG8  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
3.4.9 LED indicators connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
3.4.10 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
3.5 Bill of Materials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
Chapter 4 USB stick board description
4.1 Board overview  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
4.2 ZSTAR USB stick Board hardware overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30
4.2.1 USB connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30
4.2.2 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30
4.2.2.1 Fixed voltage regulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30
