Home

CC2400DK User Manual

image

Contents

1. c Chipcon Connecting Smarter User Manual Rev 1 0 SmartRF CC2420 ZigBee DK Development Kit E Ba s kel E Q Chipcon AS Gaustadall en 21 NO 0349 Oslo Norway Tel 47 22 95 85 45 fax 47 22 95 85 46 E mail support chipcon com www chipcon com Table of contents dr sier tel ME 3 CC2420 ZIGBEE DK HARDWARE 5 CC2420 ZIGBEE DK SOFTWARE 5 OPTIONAL SOFTWARE COMPONENTS f deter t gees 8 G02420DB1P CB tone ern te mettus ud det descr tois 20 9 HARDWARE OVERVIEW unan a h Suasana anan h kashas d ettet n deer rs 10 POWER SUPPLY SEG TON aE E tend rito e nene deter toe 10 232 INIEREACE xs cns teorie docs delete t toe et ies 10 MICROCONTROLLER AND USER INTERFACE 10 EXTERNAE RAM cis uu ai i Die tete adiecit det na ced pete rv Rea nda 12 MEMORY REQUIREMENTS lt lt ann ORA DI kasna asas 12 CC2420DB LOW POWER MODE SUPPORT nn nr ee ene 13 24200 TEMPERATURE RANGE gainien a ma aae ED SEENEN 13 JUMPER SETTINGS FOR CC2420DB 13 CC2420DB CURRENT MEASUREMENT AND een 15 USING THE CC2400EB AND CC2420EM FOR ZIGBEE PACKET SNIFFING 16 USING THE CC2420DB DEMONSTRATION BOARD WITH THE Z STACK 18 IEEE 64 BITS EXTENDED ADDRESS u nn te ee I ute inedite detentus 18 CC2420DB Z ST
2. Projects makefile New Project Group 22 05 SRCO3391 Coordinator DBG LCD blank not enabled anything else enabled m OSAL j Y W W Ve W W We We W W tek W W W We W W W We t We W We W W W V a W W We HO W W We 9 W W Ve We W W HC HOC We We W W UC HC We We We UO We We Ye W W We HO We We We We Ye We We wewe We H E C 200 H zMac MCU atmegal28 Debugging e DBG ON Application Ee LCD Emulation a makefile LCD Target File Name TARGET SRC03391 C Target option Definition Flags OPTDEFS GCC OPTDEFS CC2420DB OPTDEFS CPUBMHZ OPTDEFS KB INT OPTDEFS NO TIMER INT OPTDEFS NO SERIAL INTS OPTDEFS RTR_NWK OPTDEFS 200 COORDINATOR OPTDEFS COORDINATOR BINDING OPTDEFS APP OPTDEFS SRCO3391_OPTIONALS MT I HN H H H H H y H H H Output 4 D 11 109 Project c F8w 2 stack cc 0 92 0 1 0 projects homelighting src03391 cc2420db coordinator makefile Figure 11 Programmer s Notepad for a sample ZigBee device project See the make file enclosed with the Z Stack software sample device examples for details Step by Step procedure 1 Connect JTAG ICE to connector P10 on CC2420DB 2 Connect external power supply to CC2420DB 3 Start AVR Studio 4 Load the selected cof file built using the make file option extcoff a Please refer to the Figure 8 W
3. 12 ZZ Initialize board 1 0 InitBoard OB COID 000048 4E 15 4E 000051 45 15 4E 00005 4E 15 45 ZZ Determine the extended address 000063 51 15 51 zmain ext 99 00006C 51 15 51 000075 51 15 4E ZZ Initialize the MAC 00007 4E 15 4E ZMacInit 000087 D5 2B FD 000090 2C 2C 2C ifndef NONWK 000099 cc 56 D8 ZZ Since the AF isn t a task call it s initialization 000042 E4 56 00 afInit Bo 0000 85 57 2E 0000B4 07 58 00008 00 58 03 1 E eewiz stack ce 0 92 0 1 01projectsihomelighting slcO33941cc2420dblcoordinator 0000C6 65 2 03 gt Loaded plugin STK500 Loaded partfile C Program Files Atmel A R To Loaded objectfile CAF8WAz Stack CC 0 92 0 1 a x 128 JTAG ICE Auto Stopped e Ln 92 Col 2 CAP NUM SCRL Figure 12 AVR Studio debugging window Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 23 28 In System Programming Using the AVRISP in circuit programmer or similar devices the microcontroller can be reprogrammed Both the program code memory flash and the EEPROM can be reprogrammed CI un Program Fuses LockBits Advanced Board Auto ATmegal03 Compatibility Mode M103C 0 Watchdog Timer always on WDTON 0 ke On Chip Debug Enabled DCDEN 0 v JTAG Interface Enabled JTAGEN 0
4. Serial program downloading SPI enabled SPIEN 0 v Preserve EEPROM memory through the Chip Erase cycle EESAVE 0 ke Boot Flash section size 512 words Boot start address FE 00 BOO T S Boot Flash section size 1024 words Boot start address F COO BOOTS Boot Flash section size 2048 words Boot start address F 800 BOOTS Boot Flash section size 4096 words Boot start address F 000 BOOTS Boot Reset vector Enabled default address 0000 BOOTRST 0 Brown out detection level at VCC 4 0 V CBODLEVEL 0 ke Brown out detection level at YCC 2 7 V BODLEVEL 1 ke Brown out detection enabled BODEN 0 CKOPT fuse operation dependent of CKSEL fuses CKOPT 0 Ext Clock Start up time 6 CK 0 ms CKSEL 0000 SUT 00 z V Auto Verify s Setting device parameters serial programming mode Entering programming mode OK Reading fuses OxFF 0x17BE OK Leaving programming mode OK zl Figure 13 AVRISP Program Window used to program flash or EEPROM The device used for programming must be connected to the CC2420DB programming ISP header connector The programming interface uses 4 signal lines These four lines can be accessed at the 6 pin connector P6 The pin out and description are listed in the table below Signal pin AVR programming socket pin Table 8 ISP header connector Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2
5. 12 PE6 Joystick interrupt 08 PE6 13 RTS RS 232 handshaking 30 PD5 14 PE7 External interrupt General 09 PE7 purpose UO 15 RXD1 RS 232 data from PC 27 PD2 16 PB7 Green LED 17 PB7 17 CTS RS 232 handshaking 32 PD7 18 PB4 Orange LED 14 PB4 19 TXD1 RS 232 data to PC 28 PD3 20 GND Ground N A Table 4 P3 pinout Connector P4 pinout Pin Signal name in Pin usage CC2420 pin AVR pin number schematic 1 NC N A N A N A 2 AREF Voltage reference for A D N A 62 Converter RESET Reset N A 20 4 SCLK CC2420 SPI clock AVR 32 SCLK 11 ISP 5 PF1 Joystick left N A 60 6 SO CC2420 SPI out 34 SO 13 7 PF2 Joystick N A 59 8 SI CC2420 SPI in 33 SI 12 9 PF3 Temperature sensor N A 58 10 VREG EN Ge voltage regulator 41 VREG EN 15 enable Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 11 28 11 Potentiometer N A 61 12 FIFO CC2420 FIFO 30 FIFO 26 13 CSn CC2420 SPI chip select 31 CSn 10 14 FIFOP CC2420 FIFOP 29 FIFOP 25 15 3 3V 3 3V Regulated supply N A N A 16 RESETn CC2420 Reset 21 RESETn 16 17 N C N A N A N A 18 CCA CC2420 Clear Channel 28 CCA 31 Assessment 19 SFD CC2420 Start of Frame 27 SFD 29 Delimiter 20 GND Ground N A N A Table 5 P4 pinout External RAM The lower 4 kB of the external RAM is remapping of the Atmega128L internal register and RAM CC2420DB includes this memory because it can be used for debuggin
6. Power Supply Section The power supply section contains two voltage regulators One is an external 3 3 V regulator for use by the microcontroller and the I O pins of the CC2420 The second is an internal regulator of CC2420 used to generate the 1 8 V supply applied for powering of the CC2420 core A diode prevents permanent damage if wrong polarity is applied to the board There are two power connectors a 2 5mm DC jack type connector allows you to connect an unregulated battery eliminator easily the positive supply is on the center pin and a connector for a 9V battery on the bottoms side of the PCB We recommend that 3 or 4 AA or AAA alkaline cells are used to power the CC2420DB if a suitable battery pack is used RS 232 Interface A serial port is included on the CC2420DB This port can be used with the Figure 8 Wireless Z Trace The port includes support for RTS CTS type hardware flow control handshaking This port is per default always enabled by a jumper See the jumper settings for demonstration board control Microcontroller and User Interface The microcontroller used is an AVR ATmega128L from Atmel This controller has 128 kB of Flash program memory 4 kB of SRAM data memory and 4 kB of non volatile EEPROM data memory The controller is interfaced to the CC2420 via its built in SPI interface as well as few general purpose I O pins The MCU is also connected to four LEDs a joystick and an extra button for user interface purposes
7. The different examples use these peripherals differently An analogue temperature sensor a potentiometer and 32 kB of external RAM are also included An ISP and a JTAG ICE connector are provided for programming the AVR without using the serial port In this case an Atmel AVR JTAG or ISP programmer should be connected to their respective connectors All of the I O pins are connected to footprints for 2 x 10 pin row connectors P3 and P4 These connectors are compatible with Agilent logic analyzer probes and can be used either for testing or for prototyping For instance it is possible to add a daughter board containing additional circuitry using these connectors Connector P3 pinout Pin Signal name in Pin usage AVR pin number schematic 1 Not Connected Not Applicable N A N A NC 2 Unregulated supply voltage N A Insert R101 to connect 3 FORCE_ON RS 232 Force On N A Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 10 28 4 4 Yellow LED RS 232 Force 06 PE4 control 5 PE2 Joystick centre push button 04 PE2 6 PEO ISP MOSI Joystick up 02 PEO External 32 kHz crystal 18 PG3 General purpose PE1 ISP MISO Joystick right 03 PE1 9 PG4 External 32 kHz crystal 19 PG4 General purpose 10 PE5 Push button S2 07 PE5 11 PE3 Red LED 05 PE3
8. 0 ms CKSEL 0000 SUT 00 hd V Auto Verify Entering programming mode OK writing fuse bits OxFF 17BE OK Reading fuse bits OxFF 0 17BE OK a Fuse bits verification OK Leaving programming mode OK Figure 10 AVR Studio Fuses Window Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 20 28 CC2420DB Development Environment for ZigBee Applications The CC2420DB Development Environment required for the development of software applications based on the CC2420 and Figure 8 Wireless Z Stack software tools is a combination of three tools a text editor of choice e g UltraEdit 32 a GNU AVR GCC compiler assembler linker and Windows application for downloading and debugging provided by the microcontroller manufacturer A basic overview for the CC2420DB Development Environment is as follows Text Editor A text editor such as Programmer s Notepad or Ultra Edit with syntax highlighting is used for source code writing This editor is configured to run the make files by use of macros linked to the make files for AVR GCC AVR GCC The free GNU AVR GCC cross development tools are used to generate the image for the CC2420DB running on the Atmega128L microcontroller Please see the related documentation in order to obtain detailed insight on compiler options make files etc AVR Studio The AVR Studio is only used with the AVR ISP programmer or AVR JTAG
9. Commands Network Payload Show LAI 7 Time stamp Mictoseconds Payload format Bytes Packet count 19 Memory usage 0 No overflow Figure 7 Packet Sniffer Capture Window Using the CC2420DB Demonstration Board with the Z Stack The CC2420DB is designed for quick prototyping and also for quick practical evaluation such as range testing with the Z Stack for sample ZigBee logical devices Software can be programmed into the Atmega128L microcontroller using an external programmer such as the AVR JTAG ICE provided with the kit Alternatively the AVR ISP programmer can also be used No CC2420DB in the CC2420 ZigBee DK is preprogrammed with a ZigBee Home Control Lighting Profile device IEEE 64 bits Extended Address Each CC2420DB is preprogrammed with an IEEE extended address in the ATmega128L microcontroller EEPROM The IEEE address is stored at EEPROM location 0x0000 CC2420DB Z Stack Download and Debugging Using AVR Studio 4 Use a serial cable to connect the serial interface of the CC2420DB to the serial port of a PC running AVR Studio and Z Trace for debugging information from the Figure 8 Wireless Z Stack When the CC2420DB RS 232 port is connected the Z Trace can display debugging information if the compile switch in the make file is set Please refer to the Z Stack Compile Options used with CC2420 and figure 9 for hardware setup Chipcon AS SmartRF CC2420 ZigBee Development Kit Us
10. s devices e Advertise Clusters on Endpoints to enable standard ZigBee Service Discovery and Binding operations to work using the customers proprietary Profile Devices and Clusters e Permit the customer to incorporate and utilize standard ZigBee profiles advertising these on a specific interface to permit a controlled level of interoperability if desired with other standard ZigBee devices while still enabling operation as a proprietary device Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 7 28 Software component Description Figure 8 Wireless Z Trace Z Trace ZigBee Protocol Stack Trace Tool Executable The Z Trace is a Windows application running on Windows 2000 Pro or Windows XP Pro The Z Trace is designed to fulfill test and debug functions and operates the attached ZigBee IEEE 802 15 4 CC2420DB through a serial cable connection e Permit viewing of trace and debug information from a target unit under test The Z Trace consists of the following components e Windows executable e Z race User s Manual and Release Notes Table 2 CC2420 ZigBee DK Software Components Optional software components Table 3 below contains a description of the optional software components available separately for the CC2420 ZigBee DK Development Kit Software component Description Figure 8 Wireless ZigBee Stack Source code Compliant with the ZigBee
11. to a PC Antenna 1 50Q quarter wave monopole SMA male connector for use with CC2420EM Power supply 3 DC Power supply with global connectors for use with the CC2420DB CC2400EB Atmel JTAGICE mkll Atmel JTAG based debug programming tool Connects to PC through USB or serial port USB and RS 232 Cables for use with the JTAG ICE are included Battery Clip 5 Use to connect 3 x 1 5 AA batteries to demonstrate low power capabilities Table 1 CC2420 ZigBee DK Hardware Components CC2420 ZigBee DK Software Components The table below contains a description of the software components included in the CC2420 ZigBee DK The software components also include software which has been licensed from Figure 8 Wireless www figure8wireless com Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 5 28 Software component Description Chipcon Packet Sniffer IEEE 802 15 4 ZigBee packet sniffer Downloadable from the Chicpon web site Runs on the CC2400EB CC2420EM hardware platform and connects to a PC through a USB connector Chipcon MAC Layer Object Code Object code for Atmel AVR Included in library form with Z Stack GCC Tool Atmel AVR Studio See download instructions in Figure 8 Wireless Z Stack User s Guide for the CC2420DB See download instructions in Figure 8 Wireless Z Stack User s Guide for the CC2420DB Programmer s Not
12. 004 09 13 Page 24 28 Troubleshooting It does not work Make sure that the power supply of CC2420DB is connected to the correct pins on the power connector Is the supply voltage correctly polarized If not the protection diode will prevent any current from flowing and are indicated on the PCB On the DC jack the tip is and the ring is If you get the following error message in AVR Studio o The OCD JTAG adapter was detected but there is no target power Apply power to the target application or target device and click retry to abort click cancel Please check that the JTAG ICE mkll or CC2420DB have the power applied If you get the following error message in AVR Studio o OCD JTAG adapter was detected but the target device did not return a valid JTAG ID This could caused by no target device the JTAGEN Fuse of the target device is not program thus disabling the JTAG interface existing application code programmed into the target device disable the JTAG interface thus requiring external reset pin to be activated upon connect see the JTAG ICE user manual for more information Please try to update the JTAG ICE mkll firmware using AVR Studio or check that the JTAG fuse has not been erased Tools gt STK500 AVRISP JTAGICE Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 25 28 References CC2420 Datasheet http www chipcon com index cfm kat id 2 amp subkat id 12 amp do
13. ACK DOWNLOAD AND DEBUGGING USING AVR STUDIO 4 18 PREPROGRAMMED FUSES notus tmp eie e poet Eed 20 CC2420DB DEVELOPMENT ENVIRONMENT FOR ZIGBEE 21 SWAG ICE din ah ae tole a tetra 21 TROUBLESHOOTINQG edic ico nia Ri slvai scri ie od inca b Do iain 25 IT DOESNOT WORK eee nouit ote a tel adit t hapa s 25 REFERENCES ee 26 DISCLAIMER Gt ditor tton eel ase 28 TRADEMARKS io ete Netus 28 EIEE SUPPORT POLICY ite tice etie one Det A tee LIA e en 28 Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 2 28 Introduction The CC2420 is a single chip IEEE 802 15 4 compliant and ZigBee ready RF transceiver It provides a highly integrated flexible low cost solution for applications using the world wide unlicensed 2 4 GHz frequency band The CC2420 ZigBee DK Development Kit is a natural supplement to the already established Chipcon CC2420 kits i e the CC2420DK Development Kit and the CC2420DBK Demonstration Board Kit The hardware is representative of an actual application and is well suited as a prototyping evaluation and demonstration platform targeting various ZigBee applications With this kit a ZigBee Logical device type mapped to the IEEE 802 15 4 Full Function and Reduced Fun
14. ICE to configure the microcontroller switches downloading code and debugging The CC2420DB used in the CC2420 ZigBee DK is not programmed with the bootloader If you are interested in using the bootloader it can be downloaded from Chipcon s web site The bootloader is used with AVR studio and the serial port Please refer to CC2420DBK User Manual http www chipcon com index cfm kat id 2 amp subkat id 12 amp dok id 115 for details In general Chipcon s tools for the demonstration board kit is free of charge to enable our customers to start their development right away without having to buy an expensive compiler or an Integrated Development Environment However these tools for the CC2420DB are not integrated but rather a custom mixture of three separate tools from various providers JTAG ICE The CC2420DB provides a connector for the JTAG ICE programmer to communicate with AVR Studio The JTAG ICE mkll connector is P10 The JTAG interface is used to debug or download source code using the Z Stack cof or hex files built with the make file provided for a sample ZigBee device Please refer to the Figure 8 Wireless Z Stack User s Guide for CC2420DB for details on how to use the JTAG feature Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 21 28 4 Programmers Notepad 2 makefile File Edit View Tools Window ziBl x 1 del gn
15. bug Enabled JTAG Interface Enabled Serial program downloading SPI enabled Preserve EEPROM memory through the Chip Erase Cycle Boot Flash section size 512 Boot start address Brown out detection level at VCC 2 7 V Brown out detection enabled Ext Crystal Resonator High Freq Start Up time 1CK 4 ms CKSEL 1111 SUT 11 When using the JTAG ICE or the AVR ISP programmer the boot vector fuse must be disabled The CC2420DB for the CC2420 ZigBee DK will not be programmed with a bootloader GER Program Fuses LockBits Advanced Board Auto ATmegal03 Compatibility Mode M 103C 0 Watchdog Timer always on WDTON 0 ke On Chip Debug Enabled DCDEN 0 v JTAG Interface Enabled JTAGEN 0 Serial program downloading SPI enabled SPIEN 0 v Preserve EEPROM memory through the Chip Erase cycle EESAVE 0 ke Boot Flash section size 512 words Boot start address FE 00 BOO T S Boot Flash section size 1024 words Boot start address F COO BOOTS Boot Flash section size 2048 words Boot start address F 800 BOOTS Boot Flash section size 4096 words Boot start address F 000 BOOTS Boot Reset vector Enabled default address 0000 BOOTRST 0 Brown out detection level at VCC 4 0 V CBODLEVEL 0 ke Brown out detection level at YCC 2 7 V BODLEVEL 1 ke Brown out detection enabled BODEN 0 CKOPT fuse operation dependent of CKSEL fuses CKOPT 0 Ext Clock Start up time 6 CK
16. ction Devices FFD and RFD using the CC2420 can be demonstrated An FFD can take the role of a ZigBee Coordinator Router or End Device depending on the ZigBee logical device type configuration An RFD can act as ZigBee End Device and cannot serve as a ZigBee Coordinator or ZigBee Router The CC2420 ZigBee DK has the capability to demonstrate ZigBee low power capabilities The CC2420 ZigBee DK is bundled with the Figure 8 Wireless ZigBee stack for evaluation demonstration prototyping and developing purposes of the Z Stack features The hardware platform is based on the CC2420DB Demonstration Board The hardware contains an integrated PCB antenna the IEEE 802 15 4 compliant RF transceiver CC2420 with necessary support components an Atmel Atmega128L AVR microcontroller 32 kB external RAM and as well as a joystick buttons and LED s that can be used to demonstrate the current ZigBee Home Lightning Profile Please note that CC2420DB includes this memory because it can be used for debugging purposes to buffer and store data if desired The 32kB external RAM size is not a requirement nor necessary for a low cost ZigBee logical device The CC2420DB is also furnished with connectors where the internal signals on the PCB are available for further sensor daughter boards addition to easy add additional profile hardware when desired The details of the CC2420DB features are described in the CC2420DBK User Manual Please refer to the references section of t
17. e The Z Stack Configurator is a Windows application which enables automated customization of ZigBee enabled applications Configurator features include e Selection of the ZigBee logical target device mapped to a RFD or FFD e Selection of resources to support Association Tables Routing Tables Binding Tables In later releases interactive entry feedback to permit iterative changes for application optimal setting will be provided e Selection of Profiles and assignment to Endpoints e Selection of Device Profile network configuration elements beacon order etc e Automated extraction of appropriate source code and libraries into build directory to permit creation of device according to selections e End customer can further optimize resulting application Figure 8 Wireless Z Profile Builder Z Profile Builder Executable The Z Stack ZigBee Profile Builder is a Windows application which enables users to create their own profiles The application allows the customer to generate profiles which can be ported into the Z Stack Configurator for creation of a customer specified profile assigned to a device endpoint Profile Builder will enable the end customer to do the following e Create a new profile based on a ZigBee Alliance assigned Profile ID e Define proprietary Devices based on the customer defined Profile e Define Clusters and Attributes which will form the basis of messaging between the customer
18. e for the application Keep in mind that these numbers are preliminary and are microcontroller dependant Unfortunately it is very difficult to say anything exact with respect to code and RAM size requirements for ZigBee Different ZigBee applications and configurations will also have different memory requirements You should also consider the ZigBee stack profiles which defines how many other routers end devices must be handled by a router coordinator This will mostly affect the RAM requirements and will e g be different in a home application from Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 12 28 an industrial application The application will of course also need a certain amount of resources which is very difficult to estimate at this stage CC2420DB Low Power Mode Support To apply certain low power modes with CC2420DB for application development it will be necessary to apply an additional clock source together with the 8 MHz crystal oscillator The Atmega128L provides the Timer Counter oscillator pins TOSC1 and TOSC2 and these pins are available on the CC2420DB connector P3 The oscillator is optimized for use with a 32 768 kHz crystal This clock source can be connected the following ways 1 Acrystal can be connected directly between the pins 2 An external clock source can be applied to the TOSC1 pin Atmel does recommend this method The timer 0 will be clocked by t
19. e meter in series to measure current consumption J2 To apply power of 3 3V to the Can be removed to potentiometer and disconnect the devices if not temperature sensor on the used to decrease current PCB board consumption J3 To always have the RS 232 This jumper can be driver enabled hence the disconnected and controlled driver is forced on by software instead if desired The J3 jumper can permanently disable the RS 232 port by grounding the control signal when Table 7 Jumper explanation moving the jumper to connect pin 6 and 8 together on connector P9 Chipcon AS Figure 2 Jumpers SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 14 28 Jumper J1 Jumper J2 Jumper J3 Figure 3 Jumpers on CC2420DB To enable software control of the RS 232 driver U101 the jumper J3 can be moved Step By Step procedure 1 Move RS 232 jumper J3 from P9 to P3 between pin 3 and 4 2 It will share the same port pin PE4 as the yellow LED so when RS 232 is on the LED will be set CC2420DB Current Measurement and Consumption It is fully possible to measure the actual current consumption with CC2420DB To measure the current jumper J1 must be removed and an ampere meter connected in series The current measurement is performed for the current total draw of the CC2420DB PX A 12 wy ez P3 Figure 4 Connect
20. el 1 408 973 7845 Fax 1 408 973 7257 Email USsales chipcon com Sales Office Germany Chipcon AS Riedberghof 3 D 74379 Ingersheim GERMANY Tel 49 7142 9156815 Fax 49 7142 9156818 Email Germanysales chipcon com Sales Office Asia Chipcon Asia Pacific 37F Asem Tower 159 1 Samsung dong Kangnam ku Seoul 135 798 Korea Tel 82 2 6001 3888 Fax 82 2 6001 3711 Email Asiasales chipcon com support chipcon com 47 22 95 85 45 Chipcon Inc Eastern US Sales Office 35 Pinehurst Avenue Nashua New Hampshire 03062 USA Tel 1 603 888 1326 Fax 1 603 888 4239 Email eastUSsales chipcon com Chipcon AS Strategic Automotive Center Hechtseestrasse 16 D 83022 Rosenheim Germany Tel 49 8031 2227 660 Mobile 49 172 8540 132 Fax 49 8031 2227 661 Email automotive chipcon com Chipcon AS Unit 503 5 F Silvercord Tower 2 30 Canton Road Tsimshatsui Hong Kong Tel 852 3519 6226 Fax 852 3519 6520 Email e chiu chipcon com Chipcon AS is an ISO 9001 2000 certified company Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 27 28 Disclaimer Chipcon AS believes the information contained herein is correct and accurate at the time of this printing However Chipcon AS reserves the right to make changes to this product without notice Chipcon AS does not assume any responsibility for the use of the described product neither does it convey any lic
21. ense under its patent rights or the rights of others The latest updates are available at the Chipcon website or by contacting Chipcon directly As far as possible major changes of product specifications and functionality will be stated in product specific Errata Notes published at the Chipcon website Customers are encouraged to sign up to the Developers Newsletter for the most recent updates on products and support tools When a product is discontinued this will be done according to Chipcon s procedure for obsolete products as described in Chipcon s Quality Manual This includes informing about last time buy options The Quality Manual can be downloaded from Chipcon s website Compliance with regulations is dependent on complete system performance It is the customer s responsibility to ensure that the system complies with regulations Trademarks SmartRF is a registered trademark of Chipcon AS SmartRF is Chipcon s RF technology platform with RF library cells modules and design expertise Based on SmartRF technology Chipcon develops standard component RF circuits as well as full custom ASICs based on customer requirements and this technology All other trademarks registered trademarks and product names are the sole property of their respective owners Life Support Policy This Chipcon product is not designed for use in life support appliances devices or other systems where malfunction can reasonably be expected to result in signif
22. epad Figure 8 Wireless ZigBee Stack Z Stack See download instructions in Figure 8 Wireless Z Stack User s Guide for the CC2420DB Mix of Source and Object code for Atmel AVR Complete implementation of the ZigBee Alliance specification Compliant with the ZigBee specification v 0 92 and updated upon ZigBee specification changes Full ZigBee security functionality will be available by v1 00 release Included Documentation e Users Guide including instructions on how to obtain Atmel and GCC tool sets free of additional charges API descriptions for each ZigBee layer e Programmers Guides for each sample application see below e Serial Port Interface Documentation e OS Abstraction Layer OSAL Documentation e ZigBee Implementer s Guide packaged in upcoming releases Figure 8 Wireless Sample Applications Sample application source code for Home Control Lighting ZigBee Profile including e Switch Remote Control e Switch Load Controller e Light Sensor Monochromatic e Dimmer Remote Control e Dimmer Load Controller e Occupancy Sensor Sample application source code for customer specified Profiles and applications including e Generic Application e Serial Application Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 6 28 Software component Description Figure 8 Wireless Z Configurator Z Configurator Executabl
23. er Manual rev 1 0 2004 09 13 Page 18 28 zarrac K 99 File Messages Scripts Log Window Settings Help a ale Gil Project 54 Messages e Log Enabled gt lt Clear Save 3 Start Time 06 09 2004 14 24 10 aps lt DEBUG gt 14 25 43 899 Figure8 Wireless ZStack v0 9 SRC lt DEBUG gt 14 25 43 919 ExtAddr is 2726252423220218 0 200 lt DEBUG gt 14 25 51 160 Router on channel 11 User Test lt DEBUG gt 14 25 51 781 PANCoor Found Sequencer Local Active port COM4 38400 8 None 1 Figure 8 Z Trace view Note Chipcon s SmartRF Studio cannot communicate with the CC2420DB but can be used to find optimum register values for the CC2420 Koj TONT Leia supply PC running 2 amp AVR Serial cable CC2420DB Studio OR AVR ISP Serial cable JTAG ICE Programmer Figure 9 Software download using AVR Studio 4 Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 19 28 Preprogrammed Fuses The configuration of the processor fuses can be performed through the SPI interface with the AVR ISP programmer or the JTAG ICE programmer and AVR Studio 4 The JTAG ICE fuse window is depicted in figure 10 The CC2420DB is configured with the following fuses enabled 1 e o gr m com Note On Chip De
24. g purposes to buffer and store data if desired The 32 kB RAM size is not a requirement nor necessary for a low cost ZigBee logical device mapped to a Full Functional Device FFD or Reduced Functional Device RFD RAM requirements for a ZigBee application e End Devices minimum 1 5 kB e Coordinator or Router minimum 2 5 kB These numbers are highly dependent on how the end user configures their solution Important notice The CC2420DB which is incorporated in the CC2420 ZigBee DK is mounted with one 32kB external SRAM Please note that when measuring the current consumption of one of the ZigBee device in the sample application the RAM will contribute with 2mA in any power down mode applied since it is not possible to shut down the power supply Memory Requirements The Z Stack is running on the CC2420DB Demonstration Board which contains the AVR ATmega128L microcontroller The overall Z Stack memory requirement will depend upon compiler code optimization level application specific code including application profiles microcontroller platform and additional features e g security If you want to use a different microcontroller platform it will be important to keep in mind when the Z Stack is ported the memory requirement will depend on the items described above The complete Figure 8 Wireless ZigBee stack Z Stack will have a memory requirement in the range of 60kB for a ZigBee Coordinator Additional flash size must be availabl
25. he 32 768 kHz crystal oscillator and then the overflow or compare match timer interrupt is applied to wake up ATmega128L from power save mode Please refer to the ATmega128L data sheet for more details on the various power down modes of the microcontroller Pin Name Connector P3 Atmega128 L TOSC1 PG4 Pin 9 Pin 19 TOSC2 Pin 7 Pin 18 Table 6 Low power mode signal To demonstrate an application using the power down mode 1 Apply 3x 1 5 AA batteries with the battery clip included in the kit 2 The library macros will be made available on how to set the ATmega128L into the various power mode that can apply to minimize the current draw on CC2420DB 3 Apply the joystick switch as the external interrupt to wake up the ATmega128L to idle mode and run an application CC2420DB Temperature Range The CC2420DB can support a temperature range of 30 C to 85 Jumper Settings for CC2420DB Control The CC2420DB has three default jumper settings for proper operation Figure 2 depicts the placement of the three jumpers J1 J2 and J3 They are mounted on connector P9 Please refer to CC2420DBK User Manual schematics page 1 for more details Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 13 28 Jumper Purpose Comments J1 To apply power of 3 3V to the An option can be to remove circuitry on the PCB board the jumper and connect an amper
26. his document The CC2420 ZigBee DK provides in addition to five CC2420DB s a CC2400EB that together with CC2420EM can utilize the capability of running Chipcon s Packet Sniffer with the new ZigBee packet parser addition This User Manual describes how to use the CC2420 ZigBee DK Development Kit The Figure 8 Wireless Z Stack tools and documentation will be provided as a distribution package available for download from the Chipcon ZigBee Developer Site after the purchase of this kit When purchased customers will be provided with a user name and password to access this site to download the Z Stack End Customer distribution package The Chipcon ZigBee Developer site will be available in the beginning of October Please refer to the reference section of this document for links to Atmel s documentation on how to use their tools Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 3 28 Your 2420 ZigBee DK Development Kit should contain the following items Kit contents Item Number of articles Demonstration Board CC2420DB Evaluation Board CC2400EB Evaluation Module CC2420EM CC2420 sample kit Quick Start instructions CC2420DB Important Notice User name and password for Chipcon ZigBee Developer Site Atmel JTAG ICE Power Supplies global AC to DC adapter Battery clip adapter RS 232 cable USB cable 2 4 GHz Antenna wo oo ana sch Ol Imp
27. icant personal injury to the user or as a critical component in any life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Chipcon AS customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Chipcon AS for any damages resulting from any improper use or sale 2003 2004 Chipcon AS All rights reserved Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 28 28
28. inue to blinking a The CC2400EB will be detected in the selection window See figure 6 Select an IEEE 802 15 4 channel Press the Capture button on the menu bar to start the sniffer LED s will be cleared a When the Packet Sniffer is running the LEDs will blink when packets are received See figure 7 Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 16 28 Chipcon Packet Sniffer for IEEE 802 15 4 MAC E eil ni xi File Help D euni mele Setup Select fields Packet details Address book Display filer Time line Select CC2420 E valuation Board Chipcon CC2400EB VID 1140 PID EB11 DID 2420 Select packet buffer size 20 MB Select channel 2405 MHz x Clock multiplier ro Packet count 0 Memory usage 0 Mo overflow Figure 6 Packet Sniffer In order to do ZigBee network layer NWK or Application Support Sub layer decodes go to the Select Fields section of the sniffer Use the MAC Fields NWK Fields and APS Fields at the bottom to switch between the different levels of decoding See figure 7 for an example e Decoding of NWK layer command frames is implemented e Decoding of APS layer command frames They should appear with the undecoded APS payload e There is no decoding of ZigBee Device Objects ZDO Profile information l e the APS payload is shown directly Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manua
29. ireless Z Stack User s Guide for the CC2420DB for details on how to build a sample device Download the built cof or hex file See figure 12 Start and run the sample ZigBee device application on CC2420DB Use the Packet Sniffer to monitor the network traffic Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 22 28 AYRStudio c f8w z stack cc 0 92 0 1 projects homelighting slc03394 cc2420db coordinator s 2main ce2420dbes e E E File Project Edit View Tools Debug Window Help iD Z R G LE P P PR S o PNG gt BHP OR Ai 90 gr i m E E race Disabled z Sj im Se Se mu Workspace cows Memory lt x fn main Program gt 8n brief First function called after startup p return don t care 000000 0 94 ED amp x 000009 DA 01 OC 000012 0C 94 74 B 00001 01 OC 000024 0 94 0 ZZ Turn off interrupts 000020 96 0E OC osal int disable INTS ALL 000036 0 94 li 00003 01 OC Register 0 15 G Register 16 31 Processor stack Monitor uo
30. k id 115 CC2420DK User Manual http wWww chipcon com index cfm kat id 2 amp subkat id 12 amp dok id 115 CC2420DBK User Manual http wWww chipcon com index cfm kat id 2 amp subkat id 12 amp dok id 115 Packet Sniffer User Manual http www chipcon com index cfm kat id 2 amp subkat id 12 amp dok id 115 Atmel ATmega 128L data sheet http www atmel com dyn resources prod documents doc2467 pdf AVR Studio http www avrfreaks net Home News article php NewsID 457 Or http www atmel com dyn products tools asp family 607 WinAVR AVR GCC http www avrfreaks net AVRGCC index php Or http winavr sourceforge net Programmer s Notepad http www pnotepad org IEEE 802 15 4 http www ieee802 org 15 pub TG4 html Or http standards ieee org getieee802 download 802 15 4 2003 pdf ZigBee www zigbee org Figure 8 Wireless www figure8wireless com Document History Description Changes 13 09 2004 Initial release Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 26 28 Address Information Web site http www chipcon com E mail wireless chipcon com Technical Support E mail Technical Support Hotline Headquarters Chipcon AS Gaustadall en 21 NO 0349 Oslo NORWAY Tel 47 22 95 85 44 Fax 47 22 95 85 46 E mail wireless chipcon com US Offices Chipcon Inc Western US Sales Office 19925 Stevens Creek Blvd Cupertino CA 95014 2358 USA T
31. l rev 1 0 2004 09 13 Page 17 28 Chipcon Packet Sniffer for IEEE 802 15 4 MAC E ni xi Help D Glo ujaw ol field Sequence Source Source LOI req Intra number Address 0 0 5 Ox3FFF 0 0000 12 ol field Sequence Dest Dest Source Source Lat Fcs req Intra number Address Address 0 0x69 0x0000 OxFFFF 0x2726252423220218 176 OK control field Sequence Ack req Intra number Lo rcs 0 0 0x69 212 OK ol field Sequence Dest Dest Source Lal req Intra PAN number Address Address l Ox3FFF 0 0000 0 2726252423220218 176 control field Sequence Ack req Intra number Lal rcs 0 0 216 OK ol field Sequence Dest Dest Source req Intra number PAH Address Address H 0 8 Ox3FFF 0x2726252423220218 OXFFFFFFFFFFFFFFFF control field Sequence Ack req Intra number Lal J FCS 216 OK mama Setup Select fields Packet details Address book Display filter Time line Header IS m Data B Command m Network Layer EI Application Layer Footer Frame Control Field Dest Endpoint Cluster Id Profile Id Sre Endpoint Frame Payload Beacon Payload Frame Control Field Broadcast Radius Broadcast Seq num Network
32. or P3 with ampere meter attached To help minimize the current consumption of the CC2420DB for a specific ZigBee device the default jumper J3 can be moved to enable software control of the RS 232 driver The external RAM will always draw 2mA in any power down mode since its power supply cannot be disabled Hence if the external RAM U3 is removed the current consumption will decrease with 2mA The jumper J2 is controlling the power for the potentiometer RT1 and temperature sensor U2 which will also contribute to the total current consumption in any power down mode Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 15 28 Using the CC2400EB and CC2420EM for ZigBee Packet Sniffing The capability to sniff ZigBee network traffic is provided using the CC2400EB and CC2420EM along with Chipcon s Packet Sniffer software This software can be used as an IEEE 802 15 4 compliant packet parser as well Figure 5 CC2400EB CC2420EM Step by Step procedure for use of the Packet Sniffer 1 NOaARWN Install the Packet Sniffer software http www chipcon com index cfm kat id 2 amp subkat id 12 amp dok id 115 Plug in the USB cable between the PC and CC2400EB Plug in power supply Restart your computer so Windows can detect the board Reset CC2400EB with the reset button Optional After about 5 seconds the LED s start to blink as a binary counter Start the Packet Sniffer The LEDs will cont
33. ortant Contact your local telecommunication authorities before transmitting an RF signal to ensure that there are no local restrictions on the use of the 2 400 2483 5 MHz ISM band The CC2420 operates in the 2 4 GHz frequency band Although this frequency band is usually described as world wide some countries do not allow unlicensed operation in this band Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 4 28 CC2420 ZigBee DK Hardware Components Table 1 below contains a description of the hardware components included in the CC2420 ZigBee DK Development Kit Hardware Component Number of pcs Description CC2420DB 5 Each CC2420DB demonstration board contains a CC2420 with necessary support components to develop a full functional IEEE 802 15 4 or ZigBee device The boards contain an Atmel ATMega128L AVR microcontroller external RAM a PCB antenna as well as a RS 232 serial port joystick potentiometer temperature sensor buttons and LED s that can be used to implement a user interface for applications RS 232 Cable 3 RS 232 cable for connection of the CC2420DB boards to a PC CC2400EB 1 CC2420 transceiver motherboard Connects to a PC to run the Chipcon Packet Sniffer software RF Performance evaluation is also possible CC2420EM 1 CC2420 transceiver daughter board connects to the CC2400EB board USB Cable 1 For connection of the CC2400EB CC2420EM
34. specification v 0 92 and updated upon ZigBee specification changes Contact your local Chipcon sales office for further information Chipcon MAC layer source code Source code for the Chipcon MAC Sublayer Available free of charge through the MAC software license agreement Contact your local Chipcon sales office for further information Table 3 CC2420 ZigBee DK Optional Software Components Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 8 28 CC2420DB The PCB picture provides an overview of the CC2420DB with description of the various components embedded on the PCB 3 3V voltage regulator Optional 9V or 3x 1 5 AA batteries AVR ISP connector PCB antenna 12 565899 Zi gagzyz323 Sy upodiu wy uy E d ER z 5 d pe ARE CC2420 RF m x zm ESSI uuu NES section 4 CT de deed ne Figure 1 CC2420DB overview Chipcon AS SmartRF CC2420 ZigBee Development Kit User Manual rev 1 0 2004 09 13 Page 9 28 Hardware Overview The hardware platform of CC2420 ZigBee DK is based on already established Chipcon CC2420 kits Detailed information about the hardware and software included in this kit can be downloaded from the Chipcon CC2420 product site http www chipcon com index cfm kat id22 amp subkat id 12 amp dok id 115

Download Pdf Manuals

image

Related Search

Related Contents

GXP2110/GXP2120 Enterprise IP Phone Quick Start Guide  Atlantis Land A02-WS1 GX01 User's Manual  INFORME SOBRE LA SEGURIDAD DE LOS PRODUCTOS  Rapport de Visite d`aéronef - dasis-ccaa  

Copyright © All rights reserved.
Failed to retrieve file