AN2773 Freescale Semiconductor / Motorola, AN2773 Datasheet - Page 8

no-image

AN2773

Manufacturer Part Number
AN2773
Description
Switch Demonstration For the 802.15.4 and Zigbee MAC Layer
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Using the Switch Demonstration
4.2.3
This section describes how to build an application with the Embedded Bootloader. One of the targets in
the EVK_Switch_demonstration.mcp files has the Embedded Bootloader functionality enabled.
Refer to the Embedded Bootloader Reference Manual, 802154EBRM/D for more details.
4.2.4
This feature shows how to build an application with the Flash library. One of the targets in
EVK_Switch_demonstration.mcp file has the Flash Library functionality enabled.
Refer to the MCSO8 Flash Library Application Note, AN2770 for more information.
4.2.5
The Switch Demonstration uses one General Purpose I/O port in the HCS08 Microcontroller for the
switches (configured as input) and one for the LEDs (configured as output). The configuration of these
GPIOs is encapsulated in macros found in the Target.h file. For more complex GPIO control, refer to the
latest HCS08 Microcontroller documentation.
4.2.6
UART access in the Switch Demonstration is not intended for use as a host controller interface, but simply
as a monitor of different messages. The PrintTestInterface function is provided to send a text string over
the UART interface. The PrintTestInterface is placed in the TestUart.c file and is currently only used in the
code on power up as follows:
PrintTestInterface(“I am alive\r\n”).
4.2.7
If the Low Power feature is included in the project, low power mode is entered each time a poll request is
about to be sent (see TestParserNwkMac.c for details). In the Switch Demonstration, the low power feature
used is a variant of how the MC13192 is put in DOZE mode. In the MC13192 Doze Mode, the MCU is
stopped (STOP3 mode) until the MC13192 wakes it up (after 160ms). This illustrates a very powerful
method of saving power. In the app_target.h file, the “#define USE_LOW_POWER” includes this feature.
Also in the Target.h file, the “mENTER_LOWPOWER” macro is defined to alter the required registers on
the MCU and execute the stop instruction.
4.2.8
The Switch Demonstration allows uses to port to other hardware. The Switch Demonstration collects all
hardware assignments (port settings) in an easy to understand, single file (app_target.h) which enables
users to quickly move the application to a different hardware layout. In many cases, a re-compile of the
PHY lib is required if the pin connections between the MC13192 and the MCU are changed.
8
Embedded Bootloader
Flash Lib
GPIO Access
UART Access
Low Power
Porting to Other Hardware Boards
Switch Demonstration, Rev. 1.1
Freescale Semiconductor

Related parts for AN2773