AN2773 Freescale Semiconductor / Motorola, AN2773 Datasheet - Page 2

no-image

AN2773

Manufacturer Part Number
AN2773
Description
Switch Demonstration For the 802.15.4 and Zigbee MAC Layer
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
User Interface
The scenario for connecting two units is as follows. One unit will be a Coordinator and one unit a Device.
2.1
2
1. Power up boards. Both boards are now Coordinators. All LEDs are on.
2. Press Switch 1 (S1) on the Device unit. When S1 is pressed, the Device unit resets and starts an
3. LED2 turns on (both Coordinator and Device) when the Associate procedure completes. If the
4. The Device and Coordinator are now associated. By pressing Switch 4 (S4) a data packet is sent
active scan (LED1 on). When the scan process terminates, the ScanConfirm response is searched
for Coordinators that have the dedicated PanID. In this application, the PanID is 0xDEAF. If the
PanID is found, the Device associates to the corresponding Coordinator on the given channel. The
channel used in this application is 0x0C.
quick start feature is included, the Device automatically associates to the last known Coordinator
at power up.
to the remote unit and LED4 on the remote unit toggles when the data packet is received. LED4
on the transmitter unit toggles if a DataConfirm is received from the MAC layer with
Status = OK.
LEDs
— LED1: ON when a scan is started and OFF if the required PanID was not found.
— LED2: ON when the Associate procedure is complete (now ready to send data).
— LED3: Reserved.
— LED4: Toggles if S4 is pressed on the remote side. Toggles when a DataConfirm is received
Switches
— S1: Start scan: MAC_Reset followed by MAC_Scan (active_scan).
— S2: Startup sequence for a Coordinator: Mac_Reset, Mac_SetRequest (rxonidle,
— S3: Clears the quick start flag if the quick start feature is included (see section 4.2.2).
— S4: Data transmission: Should only be executed after the associate procedure is complete. Uses
User Interface Summary
from the MAC on the transmitter unit.
associatepermit, shortaddress) and Mac_Start (channel).
a simple protocol defined for this application (see source code for details).
If the PanID is not found in Step 2, LED1 is turned off and users should
press S1 to make another scan. At this point, all LEDs are off. One exception
is if the unit finds the PanID but fails to associate, then LED1 stays on but
LED2 does not turn on as expected. Users are required to preform another
scan by pressing S1.
If the Quick Start feature is included, the Device automatically associates to
the last known Coordinator at power up. To clear this feature, users can
press S3, which clears the Quick Start flag in the NVM block. If the unit is
turned off and then on again, it returns to its initial condition as described in
Step 1.
Switch Demonstration, Rev. 1.1
NOTE
Freescale Semiconductor

Related parts for AN2773