User Manual
ZSTAR3 Reference Design Manual, Rev. 0.1
Freescale Semiconductor 5-31
Preliminary
Pr
e
l
i
m
i
n
a
ry
Chapter 5
Software Design
5.1 Introduction
This section describes the design of the ZSTAR3 software blocks. The software description comprises
these topics:
• 5.2, “SMAC (Simple Media Access Controller) modifications description
•‘Air’ 5.3, “ZSTAR3 RF Protocol protocol description
•Serial 5.4, “ZSTAR3 USB protocol - Extended STAR protocol description
• AN2295 5.6, “Bootloader (over USB) implementation notes
5.2 SMAC (Simple Media Access Controller)
The SMAC is a simple ANSI C based code stack available as sample source code which can be used to
develop proprietary RF transceiver applications using the MC1319x, MC1321x.
5.2.1 SMAC Features
• Compact footprint:
— 2K FLASH
— 10 bytes (+ maximum packet length) RAM
— As low as 16kHz bus clock
• Can be used to demonstrate coin cell operation for a remote control
• MC1319x/MC1321x compatible
• Very-low power, proprietary, bi-directional RF communication link
• ANSI C source code targeted at the HCS08 core and portable to almost any CPU core (including
4-bit)
• Low priority IRQ
• Sample application included, extremely easy to use
• Liberally commented
5.2.2 Modifications of SMAC for ZSTAR3 RF protocol
The development of the ZSTAR software is based on the free SMAC stack available from Freescale. The
SMAC version used was 4.2. To SMAC has been added a three new targets files for Original USB Stick /
Sensor and for new ZSTAR3 sensor board. Furthermore was add a couple of new function to this SMAC.
