User Manual
Software Design
ZSTAR3 Reference Design Manual, Rev. 0.1
5-48 Freescale Semiconductor
Preliminary
Pr
e
l
i
m
i
n
a
ry
5.7 Triapplication software of USB Stick
USB Stick provides three different USB devices that can be changed in runtime. List of ZSTAR USB
Devices:
• CDC (Communication Device Class) - virtual serial port.
• HID (Human interface device) - Mouse device
• HID (Human interface device) - Keyboard device
5.7.1 CDC - Virtual Serial Port application
This is main application of ZSTAR3 project. Only this one application can provide ZSTAR3 USB protocol
(extended STAR protocol) commands and run all functionalitis and features of ZSTAR3 demo.
5.7.2 HID - Mouse application
The second application of ZSTAR USB Stick is computer mouse demo. This application looks like the real
USB mouse. Only Sensor board with index 0 can works as input device. Move of cursor on screen is done
very simply by titl of sensor board in axes XY. First two buttons on sensor board has same function as
buttons on real mouse. Third button that brings new ZSTAR3 sensor boards substitute a wheel of real
mouse. When you keep this button pushed, cursor stops move on screen and USB Stick starts generate
wheel movement from Y axis.
5.7.3 HID - Keyboard application
The third application has very specific target of end application, main is controller for simply PC games
controlled by keyboard. This application looks like general USB keyboard. The USB stick simulated
pressing keys on keyboard by tilt of the sensor boards. ZSTAR recognizes four steps of tilt and by this
generated frequency and dury cycle of pressed keys. This feature helps to better game control. ZSTAR
suport 6 first Sensor Boards indexes. Each index has assign four keys by table bellow:
Very nice freeware game that we used for testing is GeneRally form http://generally.rscsites.org/ site.
Index Up Down Left Right
0wsad
1tgfh
2ikj l
3zxcv
4bnmp
51234