LR/WPAN PAN802154HAR Application Notes ZB-01 LR-WPAN Module P/N PAN802154____ Application Notes Rev Author/Editor Issue Reason Date A A1 A2 Fox / Nguyen Trueman Cardenas 3-22-2005 3-29-2005 7-06-2005 A3 Cardenas Initial release / Revise Revise Connector Nomenclature Change. (Use Rev.A1 for earlier Engineering Samples with Rev.
LR/WPAN PAN802154HAR Application Notes Table of content 1 INTRODUCTION …….…………………………………………………………………………… 3 1.1 Regulatory information................................................................................................................................ 3 1.2 Abbreviations and Acronyms ...................................................................................................................... 3 2 2.1 LR/WPAN PAN802154HAR FEATURES, AND COMPONENT DESCRIPTION ...............
LR/WPAN PAN802154HAR Application Notes 1 INTRODUCTION The purpose of this document is to present a method for designing products using the Panasonic Low Rate / Low Power Wireless Area Network Communication Module Part Number PAN802154HAR00 and familiarize engineers with application details. A Frequently Asked Questions (FAQ’s) section is also provided for engineering quick references.
LR/WPAN PAN802154HAR Application Notes SARD Sensor Application Reference Design RFD Reduced Function Device FFD Full Function Device MAC Media Access Controller SMAC Simple Media Access Controller Z-Stack Freescale ™ ZigBee Protocol Stack IEEE The Institute of Electrical and Electronics Engineers Doc Number: Rev A3 4
LR/WPAN PAN802154HAR Application Notes 2 LR/WPAN PAN802154HAR FEATURES, AND COMPONENT DESCRIPTION PAN802154 Module is designed with all Hardware on board and downloadable SW to be configured as a FFD Coordinator / Router or a RFD End Node. PAN802154 Features • Fully supports ZigBee™, 802.15.4, or Simple MAC Application • 2.4 GHz ISM, ZigBee™ • 16 Channels, 5MHz channel spacing, Full Spectrum Encode and Decode (IEEE Standard 802.15.4); up to 250 Kbps bit rate.
LR/WPAN PAN802154HAR Application Notes 2.1 PAN802154 Image, Component Layout and Block Diagram All components are on the front side of the PAN802154. No back- side image is shown here Figure 1: Module connector location Figure 2: Module picture 1) Connectors J1, J2, J3 & J4 straight 2.54" pitch, Contact material Zn 2) Substrate Glass Epoxy t=1.2mm 3) Push switch and red LED used as application required 4) Metal cover to meet FCC rules 5) 3.
LR/WPAN PAN802154HAR Application Notes 2.2 Component and Descriptions 2.2.1 J3: General Purpose Header Header J3 is intended to be used as a general purpose I/O header. A power and GND pin are also provided to allow connection to external components. Use Molex P/N 1544-5810 or 10 pins 0.1” standard female connector as mating receptacle. Function Hdr.
LR/WPAN PAN802154HAR Application Notes Hdr.
LR/WPAN PAN802154HAR Application Notes 2.2.3 J4: Power/GND Header Header J4 is the power connector for the PAN802154. Use Molex P/N 1544-5804 or 4 pins 0.1” (2.54mm) standard female connector as mating receptacle. Hdr.
LR/WPAN PAN802154HAR Application Notes 2.2.5 SW1: General Purpose Switch SW1 is a general-purpose switch that connects to PTA2. Pressing the switch will pull the signal to GND. The internal pull-up for PTA2 must be enabled to use this switch in an application. 2.2.6 D1: LED The LED is connected to PTD0 through a 330-ohm resistor. Setting the PTD0 pin to an output and setting the value high will turn on the LED. Setting the pin low will turn off the LED. 2.2.
LR/WPAN PAN802154HAR Application Notes Mating receptacles for board to board connection 4 Pin Connector: Molex P/N 15-44-5804 as mating connector 6 Pin Connector: Molex P/N 1544-5806 as mating connector 10 Pin Connector: Molex P/N 1544-5810 as mating connector Figure 5: Mechanical drawing Doc Number: Rev A3 11
LR/WPAN PAN802154HAR Application Notes 3 APPLICABLE SW COMPONENTS 3.1 SW Architecture Application Program Freescale™ ZigBee PROTOCOL STACK 802.15.4 MAC LAYER PHY LAYER Diagram Three: PAN802154 SW Architecture The bottom 3 layers may be downloaded from Freescale™ ‘s website. Only the Application Program or Profile will need to be generated by the system developer. There are many reference code examples available from the Freescale™ website.
LR/WPAN PAN802154HAR Application Notes For engineering samples, please start the SW application development process by erasing all contents of the flash (60K bytes) prior to loading any SW components. 3.3 Required SW Tools You will need the following SW tools to develop an application program/profile. 1) Metrowerks Codewarrior Development Studio for HC(S)08 64K C Compiler. Part Number CWS-H08C64K-CX. (http://store.metrowerks.
LR/WPAN PAN802154HAR Application Notes 3.5.1 Compiling with a Z-Stack Project For compiling with the Z-Stack, the compile flag TARGET_DIG536_2 needs to be added to the Codewarrior project settings. There are two ways to do this. If you are working in a Z-Stack project, simply select the GT60 DIG536 target in whichever project is to be compiled (see figure 2 below). Figure 6: Using pre-defined project setting 3.5.
LR/WPAN PAN802154HAR Application Notes Figure 7: Manually setting compile 3.6 Differences between the Panasonic PAN802154 and the Freescale SARD Development Board If the User is already familiar with the Freescale SARD Development Board – then using the PAN802154 is very easy. The Panasonic PAN802154 has a different hardware configuration than the SARD board, improved RF performance, one switch versus four; one LED versus four; the RS-232 interface has an additional control connection to conserve power.
LR/WPAN PAN802154HAR Application Notes 3.6.3 RS-232 Interface The MCU has the capability to connect to two separate serial ports, however, the Panasonic PAN802154 has only one header for a serial port connection. This header is connected to SCI1 (serial communications interface 1). The RS-232 IC used in the PAN802154 allows for a low-power sleep mode. Control of this sleep mode is done through a MCU I/O pin, PTC6. To force the RS-232 IC into a sleep mode, set pin PTC6 low.
LR/WPAN PAN802154HAR Application Notes #define PB1DIR PTADD_PTADD3 <-- Delete #define PB2 PTAD_PTAD4 #define PB2PU PTAPE_PTAPE4 <-- Delete #define PB2DIR PTADD_PTADD4 <-- Delete #define PB3 PTAD_PTAD5 #define PB3PU PTAPE_PTAPE5 <-- Delete #define PB3DIR PTADD_PTADD5 <-- Delete #define PB0IE KBI1PE_KBI1PE2 #define PB1IE KBI1PE_KBI1PE3 <-- Delete #define PB2IE KBI1PE_KBI1PE4 <-- Delete #define PB3IE KBI1PE_KBI1PE5 <-- Delete <-- Delete <-- Delete #define PRESSED 0 #endif 3.6.4.
LR/WPAN PAN802154HAR Application Notes #define LED3_PIN #define LED4_PIN (1<<3) (1<<4) <- Delete <- Delete #define LED1ON PTDD &= 0xFE; #define LED1OFF PTDD |= 0x01; #define LED1TOGGLE PTDD ^= 0x01; #define LED2ON PTDD &= 0xFD; <- Delete #define LED2OFF PTDD |= 0x02; <- Delete #define LED2TOGGLE PTDD ^= 0x02; <- Delete #define LED3ON PTDD &= 0xF7; <- Delete #define LED3OFF PTDD |= 0x08; <- Delete #define LED3TOGGLE PTDD ^= 0x08; <- Delete #define LED4ON PTDD &= 0xEF; <- Delete #define LED4OFF PTDD |= 0x
LR/WPAN PAN802154HAR Application Notes LED Macros Original code #define #define #define #define #define #define LED_NONE 0x00 LED1 0x01 LED2 0x02 LED3 0x04 LED4 0x08 LED_ALL (LED1 | <-- Set to 0 <-- Set to 0 <-- Set to 0 LED2 | LED3 | LED4) <-- Delete LED2,3,4 After Editing for the module, the code shall be #define #define #define #define #define #define LED_NONE 0x00 LED1 0x01 LED2 0x00 LED3 0x00 LED4 0x00 LED_ALL (LED1) Switch Macros Original code #elif defined( GT60_SARD ) || defined ( GT60_EVB )
LR/WPAN PAN802154HAR Application Notes 3.7 How to load a SW program into the Panasonic Module The following example shows a step-by-step for loading software build for a Z-Stack application to the PAN802154. 1. Open Metrowerks Codewarrior Development Studio for HC(S) 08. 2. Open one of the example projects in the Z-Stack directory. This example uses the Home lighting Controls project. In Codewarrior IDE, select File->Open. The location is C:\F8W\FS-1.0-1.0.0-RC2\Z-Stack\Projects\HomeLighting\SLC03394\MC1
LR/WPAN PAN802154HAR Application Notes 3. The project needs to be mapped to the correct hardware configuration. This is accomplished by clicking the down-facing arrow and selecting the target as XXX – GT60 DIG536. This sets up the compile options (XXX is Coordinator, Router, or End Device, depending on the application that is to be loaded into the PAN802154).
LR/WPAN PAN802154HAR Application Notes 4. To load the software, connect the BDM-Multilink 6-pin connector to J5 header on the PAN802154. Click the green button circled below. The code will compile and download the program to the Module.
LR/WPAN PAN802154HAR Application Notes Page intentionally blank.
LR/WPAN PAN802154HAR Application Notes 4 FREQUENTLY ASKED QUESTIONS Q1: What is the LR/WPAN PAN802154HAR00 Panasonic Module? A: The PAN802154 is a low rate / low power communication radio module adapting from the Freescale SARD platform. It is fully 802.15.4 compatible with a Freescale™ ZigBee Protocol stack. It has 1 Pushbutton switch, 1 LED, 1 RS-232 port, general-purpose header with 6 digital I/O and 2 analog inputs for A/D conversion (The 2 analog inputs can be used as Digital I/Os).
LR/WPAN PAN802154HAR Application Notes Q7: What compiler is used for ZigBee application development? A: Metrowerks CodeWarrior Development Studio for HC (S) 08 64K Compiler is the compiler. Libraries and source code projects provided by Freescale™ are compatible with this compiler. The compiler can be found on Freescale’s website at www.freescale.com. The 64K-compiler upgrade is needed to compile the full ZigBee stack.
LR/WPAN PAN802154HAR Application Notes Q15: What kind of battery life is expected? A: The battery-life for the PAN802154 is entirely dependent on the application. In applications that only require only a few transmissions per hour, batteries may last several years, alternately, in applications that require continuous transmissions batteries may only last a few months. Q16: How big is the Freescale ZigBee stack? A: Version 1.0 stack size is dependent on the device type.
LR/WPAN PAN802154HAR Application Notes 5 REFERENCE DOCUMENTS Panasonic LR/WPAN802154HAR00 Specification From Freescale - Documents below are downloadable from Freescale™ website http://www.freescale.com/ZigBee SMAC Doc. Title: Simple Media Access Controller User's Guide Doc. Num: SMACRM/D 802.15.4 MAC Doc. Title: 802.15.4 MAC/PHY Software Reference Manual Doc. Num: 802154MPSRM/D Doc. Title: 802.15.4 MAC/PHY Software Users Guide Doc. Num: 802154MPSUG/D Z-Stack High-Level Design Doc.
LR/WPAN PAN802154HAR Application Notes Doc. Title: ZigBee Device Object Programmer's Guide Doc. Num: F8W-2004-0008 Doc. Title: Z-Stack Network (NWK) Application Programming Interface Doc. Num: F8W-2003-0008 Doc. Title: ZigBee Dimmer Load Controller (03395) Device Description Programmer's Guide Doc. Num: F8W-2003-0034 Doc. Title: ZigBee Dimmer Remote Control (03392) Device Description Programmer's Guide Doc. Num: F8W-2003-0033 Doc. Title: ZigBee Generic Application Programmer's Guide Doc.
LR/WPAN PAN802154HAR Application Notes Doc. Title: ZigBee Switch Remote Control (03391) Device Description Programmer's Guide Doc. Num: F8W-2003-0027 Integration Test Doc. Title: Z-Stack Integration Test Plan Doc. Num: F8W-2003-0021 OS Abstraction Layer Doc. Title: Z-Stack OS Abstraction Application Programming Interface Doc. Num: F8W-2003-0002 Serial Port Interface Doc. Title: Z-Stack/Z-Test Serial Port Interface Doc.
LR/WPAN PAN802154HAR Application Notes APPENDIX 1 FCC AND CANADA CERTIFICATIONS Instruction to the user 47 C.F.R. Sec. 15.21 This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
LR/WPAN PAN802154HAR Application Notes This device Contain a transmitter module: PAN802154 HAR00 IC: Pending FCC ID: Pending * The enclosed device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) This device must accept any interference received, including interference that may cause undesired operation.
LR/WPAN PAN802154HAR Application Notes APPENDIX 2 ORDERING INFORMATION RF module( example only) P A N 8 0 (1) 2 1 5 4 (2) H A (3) R 0 0 (4) (1) Product Code (2) Product Series (3) Product Type H: Header Connector A: On Board Antenna R: RS-232C interface 0: Commercial Temperature Range; I: Industrial Temperature Range.