Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED,
WRITTEN OR ORAL, STATUTORY OR OTHERWISE,
RELATED TO THE INFORMATION, INCLUDING BUT NOT
LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE.
Microchip disclaims all liability arising from this information and
its use. Use of Microchip’s products as critical components in
life support systems is not authorized except with express
written approval by Microchip. No licenses are conveyed,
implicitly or otherwise, under any Microchip intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
PICMASTER, SEEVAL, SmartSensor and The Embedded
Control Solutions Company are registered trademarks of
Microchip Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK,
MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel and Total
Endurance are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in
October 2003. The Company’s quality system processes and
procedures are for its PICmicro
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
Worldwide Sales and Service .....................................................................................42
DS51524A-page iv 2004 Microchip Technology Inc.
PICDEM™ Z
DEMONSTRATION KIT
USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
®
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
PICDEM Z Demo Kit. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
DOCUMENT LAYOUT
This document describes how to use the PICDEM Z Demo Kit as a development tool
to evaluate and experiment with Microchip solutions for the ZigBee™ protocol. The
manual layout is as follows:
• Chapter 1: PICDEM Z Demonstration Kit Overview – Describes the PICDEM Z
Demonstration Kit and how it works.
• Chapter 2: Getting Started with the PICDEM Z Demonstration Kit – What you
need to know to start using the PICDEM Z Demonstration Kit.
• Chapter 3: Experimenting with the PICDEM Z Demonstration Kit – How to
program and use the PICDEM Z Demonstration Kit.
• Chapter 4: Troubleshooting – How to solve common operation problems with
the PICDEM Z Demo Kit.
• Appendix A: PICDEM Z Motherboard Schematics – Hardware information on
the PICDEM Z demonstration board
• Appendix B: PICDEM Z 2.4 GHz RF Card – Hardware information on the
PICDEM Z RF card
2004 Microchip Technology Inc.DS51524A-page 1
PICDEM™ Z Demonstration Kit User’s Guide
CONVENTIONS USED IN THIS GUIDE
Where applicable, this manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
Italic charactersReferenced booksMPLAB
Emphasized text...is the only compiler...
Initial capsA windowthe Output window
A dialogthe Settings dialog
A menu selectionselect Enable Programmer
QuotesA field name in a window or
dialog
Underlined, italic text with
right angle bracket
Bold charactersA dialog buttonClick OK
‘bnnnnA binary number where n is a
Text in angle brackets < >A key on the keyboardPress <Enter>, <F1>
Courier font:
Plain CourierSample source code#define START
Italic CourierA variable argumentfile.o, where file can be
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
‘b00100, ‘b10
any valid filename
0xFFFF, 0x007A
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
DS51524A-page 2 2004 Microchip Technology Inc.
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This user's guide describes how to use the PICDEM Z Demo Kit. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
Microchip Stack for the ZigBee™ Protocol (AN965)
This application note describes how you can use the Microchip Stack for ZigBee
protocol to quickly build your application without the need to acquire detailed
knowledge of ZigBee specifications. To illustrate the usage of the stack, two working
demo applications are included. These demo applications can be used as a reference
or simply modified and adapted to your requirements.
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQ), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
Preface
2004 Microchip Technology Inc.DS51524A-page 3
PICDEM™ Z Demonstration Kit User’s Guide
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB C17, MPLAB C18 and MPLAB C30 C compilers;
MPASM™ and MPLAB ASM30 assemblers; MPLINK™ and MPLAB LINK30
object linkers; and MPLIB™ and MPLAB LIB30 object librarians.
• Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB ICE 2000 and MPLAB ICE 4000.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 2.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM and MPLAB SIM30 simulators, MPLAB
IDE Project Manager and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 and PRO MATE
Plus and PICkit
®
1 development programmer.
®
II device programmers and the PICSTART®
®
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
In addition, there is a Development Systems Information Line which lists the latest
versions of Microchip's development systems software products. This line also
provides information on how customers can receive currently available upgrade kits.
The Development Systems Information Line numbers are:
1-800-755-2345 – United States and most of Canada
1-480-792-7302 – Other International Locations
DS51524A-page 4 2004 Microchip Technology Inc.
DEMONSTRATION KIT
Chapter 1. PICDEM Z Demonstration Kit Overview
1.1INTRODUCTION
This chapter presents an overview of the features and requirements of the PICDEM Z
Demonstration Kit. Topics covered in this chapter include:
• What is the PICDEM Z Demonstration Kit?
• PICDEM Z Demonstration Kit Components
• Overview of the PICDEM Z Demonstration Kit
• PICDEM Z Motherboard
• PICDEM Z RF Card
• PICDEM Z Software CD
1.2WHAT IS THE PICDEM Z DEMONSTRATION KIT?
The PICDEM Z Demonstration Kit is designed to allow developers to evaluate and
experiment with Microchip solutions for the ZigBee protocol. The PICDEM Z
Demonstration Kit provides two ZigBee nodes to create a simple two-node network. If
required, additional nodes may be purchased to expand the network. The
preprogrammed demo application firmware allows multiple operational configurations
without modifying a single line of code. Using the Microchip Stack for ZigBee Protocol
source code, available free-of-charge from the Microchip web site, developers can
develop their own applications or modify the supplied demo applications.
PICDEM™ Z
USER’S GUIDE
1.3PICDEM Z DEMONSTRATION KIT COMPONENTS
Your demonstration kit contains the following items:
1. Two PICDEM Z demonstration motherboards.
2. Two PICDEM Z RF cards (Exact RF transceiver is dependent upon your kit P/N).
3. Two 9V batteries.
4. The Microchip Software CD for ZigBee CD-ROM, which contains demo
applications and source code for the Microchip Stack.
5. This manual (included on the CD-ROM in Adobe
6. A warranty registration card.
®
Acrobat® format).
2004 Microchip Technology Inc.DS51524A-page 5
PICDEM™ Z Demonstration Kit User’s Guide
1.4OVERVIEW OF THE PICDEM Z DEMONSTRATION KIT
The PICDEM Z Demonstration Kit (also referred to as the PICDEM Z kit) is designed
to demonstrate the Microchip solution for the ZigBee protocol. The PICDEM Z kit
includes two ZigBee nodes, each preprogrammed with demo Coordinator and
Reduced Function Device (RFD) applications. Each node consists of two boards – one
motherboard and one RF card. The PICDEM Z motherboard is designed to support
different types of RF transceivers. Microchip will be adding support for new RF
transceivers as time progresses. For the complete list of supported RF transceivers,
please visit the Microchip web site.
In addition to demonstrating standard ZigBee functionality, the PICDEM Z kit can also
be used to develop custom applications based on the ZigBee protocol. The kit includes
the complete source code for the Microchip Stack for the ZigBee protocol. The
Microchip application note AN965, Microchip Stack for the ZigBee™ Protocol
(DS00965) discusses the Microchip Stack in more detail.
1.5PICDEM Z MOTHERBOARD
The PICDEM Z demonstration board or motherboard, has all of the features necessary
to begin developing ZigBee protocol-based applications using the Microchip PIC18
family of microcontrollers. The preprogrammed firmware allows users to begin
evaluating the board right out of the box, with no additional programming or
configuration.
FIGURE 1-1:PICDEM Z MOTHERBOARD
7
6
5
4
3
10
11
1
2
8
9
12
DS51524A-page 6 2004 Microchip Technology Inc.
PICDEM Z Demonstration Kit Overview
Features on the PICDEM Z demonstration board include:
1. Microcontroller Socket (U4): 40- and 28-pin DIP sockets are provided for the
user’s choice of Microchip PIC18 microcontrollers. The board is equipped from
the factory with a PIC18LF4620 high-performance microcontroller, clocked at
4 MHz and preprogrammed with the demo application firmware using the
Microchip Stack. The microcontroller on each board included in the
demonstration kit contains a label that identifies it as either a ZigBee Coordinator
or ZigBee RFD.
2. Temperature Sensor (U3: TC77): This is a 5-pin thermal sensor with an SPI
interface from Microchip.
3. User-defined LEDs (D1, D2): These two LEDs are driven by digital I/O pins of
the controller, and may be used to simulate a digital output to an embedded
device. These LEDs are enabled/disabled by jumpers JP2 and JP3. By default,
LEDs are enabled by permanently shorting jumpers via PCB traces. If required,
you may cut the traces and install your own jumpers.
4. User-defined Push Buttons (S2, S3): These switches are connected to digital
I/O pins on the controller, and may be used to simulate a digital input in an
embedded application. These switches do not have external pull-up resistors; as
a result you must enable the internal pull-up option on PORTB to correctly read
the switch status.
5. Reset Push Button (S1): This switch is tied to the MCLR
and is used to reset the board.
6. RJ-11 (six-wire) Modular Connector (J5): This connector allows the
demonstration board to be connected to Microchip MPLAB ICD 2 systems for
advanced microcontroller debugging and programming.
7. RS-232 (DB9F) Connector (P1): This connector allows the demonstration board to
be connected to any other board or PC serial port. The preprogrammed demo
application firmware uses this connector to communicate with a PC and offer
application configuration options. If required, you may disconnect the on-board
RS-232 driver circuit from the controller by breaking the PCB traces on the J3 jumper.
8. RF Card Connector (J2): This is a common connector to connect all supported
RF cards. This connector provides +3.3V DC, an SPI bus, and a few discrete
digital I/O control signals.
9. Prototype Area: A prototype area is provided to breadboard additional circuitry
for development. Connections are provided for +3.3V DC, ground, and all I/O
ports of a microcontroller.
10. On-board Power: An on-board regulator provides 9V DC to 3.3V DC rated at
100 mA. The board may be powered via either an external 9V DC input (J1) or
the on-board 9V battery (B1). The board contains a diode to protect against an
accidental reverse power connection. When using a 9V battery to power the
board, switch S7 must be set to ON. The 2.5 mm 9V DC jack is wired such that
when a 9V DC plug is inserted, the on-board battery is automatically
disconnected from the circuit.
11. Measure Current (JP4): This jumper can be used to measure current drawn by
all of the circuits on the board. By default, this jumper is shorted via a PCB trace.
To measure the current, cut the JP4 trace and insert an ammeter between the
JP4 terminals. You may also install your choice of resistor at R9 and measure
voltage across it to determine the current.
12. Node ID: This unique serial number is used by the preprogrammed
demonstration application firmware to create a unique 64-bit extended Medium
Access Control (MAC) address. The extended MAC address of the board can be
changed by either serial configuration or by modifying firmware.
13. Revision Level Indicator (Back Side): The text on the solder side of the board
indicates the hardware revision level.
pin on the controller,
2004 Microchip Technology Inc.DS51524A-page 7
PICDEM™ Z Demonstration Kit User’s Guide
1.6PICDEM Z RF CARD
The PICDEM Z motherboard is designed to support RF cards using RF transceivers
from various vendors. Microchip is planning to add support for new RF transceivers.
Please check the Microchip web site for the list of supported RF transceivers. You may
find details of an individual RF card in its respective user’s guide document.
See Appendix B. “PICDEM Z 2.4 GHz RF Card” for information on the RF cards
supplied in your PICDEM Z Demonstration Kit.
1.7PICDEM Z SOFTWARE CD
The CD provides the complete source code for the Microchip Stack for the ZigBee
protocol. It also includes two demo applications based on the Microchip Stack.
You may download the latest version of the Microchip Stack from the Application
Design Center at the Microchip web site.
DS51524A-page 8 2004 Microchip Technology Inc.
PICDEM™ Z
DEMONSTRATION KIT
USER’S GUIDE
Chapter 2. Getting Started with the PICDEM Z Demonstration Kit
2.1INTRODUCTION
Topics covered in this chapter include:
• Host Computer Requirements
• Using the PICDEM Z Boards for the First Time
• Executing Preprogrammed Demo Applications
2.2HOST COMPUTER REQUIREMENTS
The preprogrammed demo applications do not require the host computer to observe
the functionality. However, a host computer is required if you want to change the default
demo application configuration.
To change the default demo application configuration, you must have a system that
meets the following hardware and software requirements:
• Any computer system with one available standard serial port (DB9)
• Any operating system that provides a standard RS-232 terminal program using
the available hardware serial port
The PICDEM Z Demonstration Kit includes a CD that contains the complete source
code for both demo applications and the Microchip Stack. To view the contents of the
CD, modify demo applications or develop your own application, you must have a
system that meets Microchip MPLAB system requirements. Please visit the Microchip
web site for up-to-date system requirements and to download the Microchip MPLAB
software.
2.3USING THE PICDEM Z BOARDS FOR THE FIRST TIME
2.3.1Assembling PICDEM Z Nodes
The PICDEM Z Demonstration Kit consists of two ZigBee node boards. Each node
consists of one motherboard and one RF card packaged separately. You must
assemble each node before applying power.
Perform the following steps to prepare each node:
1. Unbox and unwrap each board and place on a non-conductive surface.
2. Carefully plug the RF card into the J2 connector on the motherboard. Note that
the connectors on the motherboard and the RF card are polarized and will not
allow incorrect insertion.
3. If you have a 9V DC power supply with a 2.5 mm plug, power-up the board. If not,
connect one of the supplied 9V batteries to the BT1 connector and slide switch
S7 to the ON position. Observe that LEDs D1 and D2 have flashed. This confirms
that the boards are working properly.
2004 Microchip Technology Inc.DS51524A-page 9
PICDEM™ Z Demonstration Kit User’s Guide
FIGURE 2-1:MOTHERBOARD AND RF CARD CONNECTION
2.3.2Installing PICDEM Z Software Files
The PICDEM Z Demonstration Kit contains the complete source code for the Microchip
Stack for the ZigBee protocol and demo applications. The Microchip Stack for the
ZigBee protocol is available free-of-charge to Microchip customers. As part of the
installation process, you must accept a no-cost electronic software license to continue
installation.
To install the files:
1. Insert the PICDEM Z software CD into your system’s CD-ROM drive.
2. Using Windows Explorer, open the CD and start the installation process by
double-clicking the MpZBeev1.00.00.exe icon. The version number may
change as new versions are made available.
3. When presented, review the software license agreement and click I accept to
accept the license agreement and continue the installation process. If you decide
to click I do not accept, the installation will terminate.
4. After successful completion, a new program group named “Microchip Stack for
ZigBee” will be created and all source files will be copied to the “MpZBee”
directory on the root drive of your computer. This program group provides
shortcuts for all of the documents.
DS51524A-page 10 2004 Microchip Technology Inc.
Loading...
+ 32 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.