Home
CC2400DK User Manual
Contents
1. Reference Description Value Part C401 Capacitor 1206 2 2uF 10 C 2U2 1206 X7R K 10 C402 Capacitor 1206 2 2uF 10 C 2U2 1206 X7R K 10 C403 Capacitor 0603 33nF 1096 C 33N 0603 X7R K 25 C404 Capacitor tantalum 100uF 20 C 100U TAN D KEMET low ESR D401 Schottkey diode 2A 20BQ030 P7 9V battery connector CONN_9V_POS positive P8 9V battery connector CONN_9V_NEG negative U4 3 3 V low drop MIC5209 3 3BS regulator 500 m Bill of materials CC2420DB RS 232 section Reference Description Value Part C501 Capacitor 0603 100nF 10 C 100N 0603 X7R K 50 C502 Capacitor 0603 100nF 10 C 100N 0603 X7R K 50 C503 Capacitor 0603 100nF 10 C 100N 0603 X7R K 50 C504 Capacitor 0603 33nF 1095 C 33N 0603 X7R K 25 C505 Capacitor Low C 470U 8 CVAX Impedance C506 Capacitor 1206 2 2uF 10 C 2U2 1206 X7R K 10 C507 Capacitor 0603 100nF 10 C 100N 0603 X7R K 50 U101 RS 232 Transceiver MAX3243 3 5V EXAS INSTRUMENTS SWRUO043 Page 28 51 C Chipcon Products from Texas Instruments Bill of materials CC2420DB RAM Reference Description Value Part C601 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C602 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C603 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C604 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 R601 Resistor 0603 10kQ 2 R 10K 0603 G R6
2. 5 91E 1aaus 310938 asnssi ANS vv ENE nal a dk Aau ON ama ON wasi 3ZIS prg Cg gs as y uzx Casa NagI 3 P NAVE HS a E 4epo41uczoJgowWN BI Zzezdd na B E I Ma 31ya STvAQHddV 3 DES z h Sv NOJA HO grsza SE IF 5 3hYN ANS ON LIVELNOI 3 ME 9 00 x Ge zai ans pr JS A E KR AS ana fa le ll uS 3 HZX EUSE ngai HOSN3S ANIL ana dodi laini 7as add ana 2 EGEJ auze capa wania Y E li WA a g H Dei 1nos1 ied IZINL IQXH Zdd 33Av P A RR FENIX ad s HA OH E zc s 8 zn das Ka HOW dd Jauv TS BS ER S S Hm amp p al ga aa ai su xA E y s om x ja LEMA sig liyaxl sad UBIERA Ke Ei a 4 E Ey x E EN Bd 3 yao fa 111 sad aga E 3 j e PIS BT cfa Z To SA B Plo Ain BI H313W 103 sia E IZU do 33 5 in ala ec lo Bm 2 El Sa m S8 Lu Fee AE S a AJ o Wun 8 8 SIv 8V 8 Is w 3 sas Sv E lavi 00d 19501 99 9 pad a SE ai d ev lsvl 13d zasol edd ead Re Pa RE pa ay lawl za aq zga 31 sa ER SN E SPERM ee Ivi E24 aul iaa m N dd 3 El g E POSTAE d da d dei p ziv IZIVI vid MI gga Te NE E t d ay lel Sod l A NI d SE L NEU 1 99d 3307230 28d i 28d H LU EN D ESCH za Sv ISIYI Id 8170 gga F a7 3558 Wee s vio sad N3 HSU z 4 4dv adv Zay avi va ago ved vad SE I E i 4S a Igavl 9Yd LOSIN EBd os ni UTA EGIB NAAIT t gt 16 Sgr lig say SA Se 1804 288 eaan Au z i ZEN ra 8n t uuoa gylr bay rel
3. Figure 2 Antenna dimensions The height of the antenna is defined as the distance from the ground plane to the parallel section and the length is from the end of the antenna parallel section to the feed point Length L 26 19 mm 9 19 mm 1 22 mm x 75 17 61 mm Height H 6 17 mm 0 97 mm 1 19 mm x 72 6 55 mm Quarter wavelength 1 4 L H 17 61 mm 6 55 mm 24 16 mm The physical size of the antenna is decreased somewhat compared to the theoretical length A c 4 f 3x10 4x2 45x10 30 61 mm The radiated pattern for the PCB antenna was measured with the horizontal polarization direction for the CC2420DB by measuring with vertical and horizontal mounting of the demonstration board Important X TEXAS SWRUO43 Page 5 51 INSTRUMENTS C con Products from Texas Instruments In practical range testing outdoors with line of sight LOS and use of the wireless dimmer application example the following range has been verified at Chipcon Norway with optimal SmartRF Studio settings for the respective data rates 1 Data rate settings 250 kbps range measured 170 meters Please note that these range tests were performed with a simple packet protocol no link margin no robust protocol close to the sensitivity limit of CC2420 and no retransmission Rof no 18 12 03 FP 2442 000 MHz 4 JB Uw Ref Lev diim Horisontal Polarization 0 degr 4 Antenna CC2420DB
4. CLIBN 482 X7R K 28 Cep 8402 X5R rm Cla ci NI S3HA ina aaua Gig ZOTISOX in asox auoa sensa GO ned INIA IHvng qNSd ana H AN HILIMSTXHXL d Ju NS dH2 GGAv idI qdAv ISOXTAGAY ZJI QdAv zdH ddAv MS UIAV LA One 3Hd ddA v OJA QdAV ONT 03A Jay adaa 3av dqdav saivi zissiv N3 83HA Ns SsHf ulasa ulssad os as ipe IS amos EREL er ve gas 7 aas yaa YI At dOdld Odld 0313 TN ar TN a IN pre IN re IZN A GAN Page 20 51 ic page 2 CC2420DB schemat SWRU043 nvya aana 81 GdAG aaynaa re E EUA sz OTE ZERO NBGI 3 azezag zn Figure 12 L B8P 0402 eg 1 5d Ru C28 Cp 0482 XSR xg Cou 8402 X5R rm E351 ID ha ACE ABT TEXAS STRUMENTS IN Products ipcon from Texas Instruments Ch
5. embedded on the PCB 3 3V voltage regulator AVR ISP connector Optional 9V or 4x 1 5 AA battery 3 PCB antenna TET TT 9 FAM CEA ZK EXA aqqqgsuqeq Weeeeeeee i n ium d Www SC CC2420 RF WARE UN sou N section External RAM 1x32kB Temp sensor RF Section The CC2420DB RF section includes all the necessary components for correct operation The CC2420 is connected to a 16 MHz crystal A small 2 4 GHz PCB antenna is also included RF test and measurement equipment can be connected to the SMA on the PCB by swapping X5 TEXAS SWRU043 Page 4 51 INSTRUMENTS C SCH Products from Texas Instruments capacitor placement of C63 and C62 See schematics for details The RF layout is identical to the CC2420EM which is part of the CC2420DK Development Kit Antenna The PCB antenna is a so called Inverted F type The Inverted F antenna is a wire monopole where the top section is folded down to be parallel with the ground plane By folding the antenna down you will reduce the height and maintain a resonant wire length A capacitance will be introduced to the input impedance of the antenna due to the parallel section However as a rule of thumb design guide the length height L H will be approximately equal to a quarter wavelength 4 4 A reduction of the antenna height H will in general decrease the antenna bandwidth Please see Figure 2 for the antenna dimensions
6. Clock Start up time 6 CK 0 ms CKSEL 0000 SUT 00 z M Auto Verify v Smart Warnings ep _ Head Entering programming mode OK Writing fuses OxFF 0x14 OxBF OK Reading fuses OxFF 0x14 OxBF OK n m Fuse bits verification OK Leaving programming mode OK Figure 18 AVR Studio Fuses Window CC2420DB SWRU043 Page 31 51 Chipcon Products from Texas Instruments JTAGICE mkII 104 xi Program Fuses LockBits Advanced Board Auto Ext Crystal Resonator Medium Freg Ext Crystal Resonator Medium Freg Ext Crystal Resonator Medium Freg Ext Crystal Resonator Medium Freg Ext Crystal Resonator Medium Freg Ext Crystal Resonator Medium Freq Ext Crystal Resonator Medium Freg Start up time 258 CK 64 ms C a Start up time 1K CK 0 ms CKE Start up time 1K CK 4 ms CKE Start up time 1K CK 64 ms CK Start up time 16K CK O ms CK Start up time 16K CK 4 ms CK Start up time 16K CK 64 ms C IV Auto Verify v Smart Warnings Writing fuses OxFF 0x14 OxBF OK Reading fuses OxFF 0x14 OxBF OK Fuse bits verification OK Leaving programming mode OK Ext Crystal Resonator High Freq Ext Crystal Resonator High Freq Ext Crystal Resonator High Freq Ext Crystal Resonator High Freq T Ext Crystal Resonator High Freg T Ext Crystal Resonator High Fre
7. Description Value Part P5 Surface mount SMA SMA_SMD straight R421 Resistor 0603 20 R_2 0603 F R451 Resistor 0402 43kQ 1 R 43K 0402 F U7 Single chip CC2420 transceiver x1 Crystal ceramic X_16 000 10 15 30 16 SMD 4x2 5mm Note The crystal X1 mounted on the CC2420DB board is a 16 000 MHz crystal with 10 ppm initial tolerance 15 ppm drift over temperature and a temperature range of 30 C to 85 C The crystal is designed for 16 pF load capacitance In an actual application the tolerance drift and temperature range of the crystal must be considered with application requirements in mind Please consult the data sheet more information It is possible to choose a larger crystal package to save cost The crystal should have an ESR of 60 Q or less Bill of materials CC2420DB MCU section Reference Description Value Part C303 Capacitor 0603 100nF 10 C_100N_0603_X7R_K_50 C304 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C305 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C306 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C307 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C308 Capacitor 0603 22pF 596 C 22P 0603 NPO J 50 C309 Capacitor 0603 22pF 596 C 22P 0603 NPO J 50 C310 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C311 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 C312 Capacitor 0603 100nF 1096 C 100N 0603 X7R K 50 D301 LED green SMD LED CL15
8. X TEXAS SWRU043 Page 8 51 INSTRUMENTS C KR Products from Texas Instruments Name Connector P3 Atmega12 8 TOSC1 PG4 Pin 9 Pin 19 TOSC2 PG3 Pin 7 Pin 18 Table 1 Low power mode signal To demonstrate an application using the power down mode 1 Apply 4x 1 5 AA batteries with a battery clip to the battery connector 2 The library macros will be made available on how to set the ATmega128L into the various power mode that can be applied 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 C limited by the crystal tolerance and the CC2420 temperature range Jumper settings for demonstration board control The CC2420DB demonstration board has three default jumper settings for proper operation Figure 5 depicts the placement of the three jumpers J1 J2 and J3 They are mounted on connector P9 Please see CC2420DB schematics page 1 for more details Jumper Purpose Comments J1 To apply power of 3 3 voltto An option can be to remove the circuitry on the PCB the jumper and connect an board ampere meter in series to measure current consumption J2 To apply power of 3 3 voltto Can be removed to the potentiometer and disconnect the devices if not temperature sensor on the used to decrea
9. b Sm sz H Zoo a D m E HOLVY IN Sy id 4 338v usg us 394 LIA was was S34 os H as pad IS IS Ed N3 938A N3783HA zaa u13s34 H UL3S38 134 aas qas aad vaa yaa esd 0313 i 03134 bid dois Ch DEN Siu 5123 zEzsH E lax e di zezaeW gt SL 513 UH ZEZSH IIXL Wax SlH zEZSH N qu E d 4377091 NOJIO08 TIN SES No 32 804 F NTHM gt m gOovdHdlNI ZEZ Sy gt 36 8nsd Zd gt 5 Dm a 1 1 gt gt a D m i E m end EJE Wa VUn WvH E AHAT TINTA HOH ic page 1 CC2420DB schemat Figure 11 Page 19 51 SWRU043 INSTRUMENTS da TEXAS Ghz asus aqvas canssi vv BEER ON ama ON wasa azis or NMVHO 1Hvd dH BI zvz2a ma 31vd S1vAOBddv Sv NOJdIHJ Bvszu SWvN ANYdAOO QN I2YHINOJ Products ipcon from Texas Instruments Ch AEE i 8 E e S Gd n 4 ad EE i A d E An JT GER SP evusiuy B2d ti ale clado CG Sch M s DG 1 BAN 2040759079 q 3 WA 189 fis d 5 3 8 a Il a PR E yey E r zor snz 3 sauna a S ied 85 J dN Zara gas y 18 L F Enn l y i 93 o J GAN Z P Bd5 2 1 LIT El z DG 1 dN z bH Ode T s S z r SN5 1 d O ZA T ZB B SNZ 71 T aNS YAS Gd as 1 dN Z PH 5979 193 C_BBP_D4B2_NPa_J_59 D L B8P 0402 ven 1 5d CLBBP D4B2 NPB 50 Di C371
10. 51 INSTRUMENTS C rae Products from Texas Instruments Now select the Debug tab and check for the following settings If different than shown in figure 28 make the required changes The most important setting here is the Preserve EEPROM contents when reprogramming device Click on the Apply buttons to update the project file aps and then click the OK button to continue 3 Connection Debug Status r General Bun timers in stopped mode JV Preserve EEPROM contents when reprogramming device IV Always activate extemal reset when reprogramming device v Disable use of BREAK in kpoints v Enable 1 0 Debug Register IDA in run mode tput windows uction for brea Program Startup Entry function main Y Warn and break if not found or not in section corresponding to boot reset fuses Restore Default Cancel Apply Figure 28 JTAG ICE mkll Debug Settings Window Since the IEEE address was erased when the program was initially downloaded when establishing a new project The address must be restored before debugging or normal operation begun Save project and exit debugging Follow procedure in the section Restoring the IEEE Address of the CC2420DB The next time the same debugging project is reloaded with AVR Studio the project settings are configured properly X5 TEXAS SWRUO43 Page 41 51 INSTRUMENTS C Chipcon Products from Texas Instruments In System Programming Usin
11. Baud rate error for different crystal frequencies and Baud rates CC2420 Software Download and Evaluation 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 Our SmartRF Studio cannot communicate with the CC2420DB but can be used to find register values for the CC2420 220V Power ao supply PC running AVRStudio Serial SCH CC2420DB OR AVR ISP Serial cable JTAG ICE Programmer Figure 17 Software download using AVR Studio 4 Preprogrammed 64 bit IEEE Address Each CC2420DB in a Demonstration Board Kit revision 1 6 or newer is preprogrammed with a unique 64 bit IEEE address These addresses are stored in Little Endian format in the lowest 8 bytes of the EEPROM of the Atmega128L microcontroller This places the least significant byte LSB at location 0x0000 and the most significant byte MSB at location 0x0007 The IEEE address is also displayed on a sticker affixed to each CC2420DB X TEXAS SWRU043 Page 30 51 INSTRUMENTS Chipcon Products from Texas Instruments 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 18 and 19 The CC2420DB is configured with the following fuses enabled 1 Note 0 00
12. CC2420DB revision 1 2 References to figures corrected Added antenna gain figure and information of Baud rate deviation on RS 232 interface to PC Included information about the protection bit that prevents accidental overwriting of the bootloader section of flash Description Changes 26 07 2004 Updated LED text layout and BOM with new crystal specifications according CC2420DB revision 1 4 Added information about external RAM ZigBee memory requirements low power mode and CC2420DB temperature range Updated microcontroller fuses and bootloader step by step procedure 03 11 2004 Updated memory requirements Added procedure on how to start a new debugging project with CC2420DB using JTAG ICE mkll Added details about the 64 bit IEEE address preprogrammed on the each CC2420DB Updated information about the preprogrammed fuse settings Added information about current measurements and RS 232 driver software control Updated Troubleshooting for bootloader X TEXAS SWRU043 Page 50 51 INSTRUMENTS C rae Products from Texas Instruments Address Information Web site http www chipcon com E mail wireless chipcon com Technical Support Email Technical Support Hotline support chipcon com 47 22 95 85 45 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 Cree
13. Ground N A 54 PF7 ADC7 TDI JTAG interface P10 pin 9 55 PF6 ADC6 TDO JTAG interface P10 pin 3 56 PF5 ADC5 TMS JTAG interface P10 pin 5 57 PF4 ADC4 TCK JTAG interface P10 pin 1 58 PF3 ADC3 Temperature sensor ADC P4 pin 9 59 PF2 ADC2 Joystick down P4 pin 7 60 PF1 ADC1 Joystick left P4 pin 5 61 PFO ADCO Potentiometer ADC P4 pin 11 62 AREF Reference voltage for ADC P4 pin 2 63 GND Ground N A 64 AVCC ADC voltage ref N A Y TEXAS INSTRUMENTS Table 3 AVR I O pins SWRUO043 Page 13 51 C Chipcon Products from Texas Instruments P3 pinout Pin Signal name in Pin usage AVR pin number schematic 1 N C N A N A 2 Unregulated supply voltage Insert R101 to connect 3 FORCE ON RS 232 on off 05 PE3 4 PE4 Yellow LED 06 PE4 5 PE2 Joystick centre push button 04 PE2 6 PEO ISP MOSI Joystick up 02 PEO 7 PG3 External 32 kHz crystal 18 PG3 General purpose UO 8 PE1 ISP MISO Joystick right 03 PE1 PG4 External 32 kHz crystal 19 PG4 General purpose I O 10 PES Push button S2 07 PE5 11 PE3 Red LED N A 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 Y TEXAS INSTRUMENTS Table 4 P3 pin
14. Top view Figure 3 Radiated pattern horizontal mounting Figure 3 depicts the antenna pattern while the CC2420DB is mounted horizontally with the antennas parallel section aligned to the 0 degree direction X TEXAS SWRU043 Page 6 51 INSTRUMENTS C ae Products from Texas Instruments Rei ae 18 12 03 CP 2442 000 Mit 5 abr aiv Ref Lev dim Horisontal Polarization Qian 0 degr 4 Antenna CC2420DB Top view Figure 4 Radiated antenna pattern vertical mounting Figure 4 depicts the antenna pattern while the CC2420DB is mounted vertically with the antennas parallel section aligned to the O degree direction The peak antenna gain is 5 dBi the corresponding peak field strength is 9dBuV m Power supply section The power supply section contains two voltage regulators a 3 3 V regulator for use by the microcontroller and the I O pins of the CC2420 The internal regulator of CC2420 is used to generate the 1 8 voltage 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 It is also possible to use 4 AA or AAA alkaline cells to power the CC2420DB if a suitable battery pack is used h TEXAS SWRU043 Page 7 51
15. of source files to ease and support the program development Besides the standard C libraries the source support files are divided into 4 main groups Hardware Definition Files Hardware Abstraction Library Basic RF library and finally application example Application Example Rf blink led source code gt Basic RF Librar Y Rf_basic_send_packet etc Standard C Hardware Abstraction Library RS232 SPI ADC etc Libraries Hardware Definition Files AVR and CC2420 register definitions etc Figure 32 Library stack Hardware Definition Files The hardware definition files include files define the hardware registers in the MCU and the CC2420 They also include useful macros for the CC2420DB and all definitions generally support the C language Hardware Abstraction Library HAL To support quick and easy program development Chipcon provides a library of macros and functions that simplify hardware access on the CC2420 These are located in the Hardware Abstraction Library HAL and implement a hardware abstraction interface for the user program As a result the user program can access the microcontroller peripherals etc via function macro calls without specific knowledge about the hardware details X TEXAS SWRU043 Page 45 51 INSTRUMENTS C KR Products from Texas Instruments Basic RF Library The Basic RF library contains simple functions for packet transmission and reception with the C
16. 02 Resistor 0603 10kO 296 R 10K 0603 G R603 Resistor 0603 10kQ 2 R 10K 0603 G R604 Resistor 0603 10kQ 2 R 10K 0603 G R605 Resistor 0603 10kQ 2 H 10K 0603 G R606 Resistor 0603 10kO 296 R 10K 0603 G R607 Resistor 0603 10kQ 2 R 10K 0603 G R608 Resistor 0603 10kQ 2 R 10K 0603 G R609 Resistor 0603 10kQ 2 R 10K 0603 G U10 32kB SRAM IDT71V256SA20YI U3 32kB SRAM IDT71V256SA20YI U6 Quad NAND gate 74HC00 U9 Octal latch with 3 74HC573 State output 3 TEXAS INSTRUMENTS SWRU043 Table 6 Bill of materials Page 29 51 C KR Products from Texas Instruments Using the CC2420DB Demonstration Board The CC2420DB Demonstration Board is designed for quick prototyping and also for quick practical evaluation such as range testing Software can be programmed into the AVR microcontroller either using an external programmer such as the AVR ISP programmer AVR JTAG ICE or using the serial port to communicate with the bootloader that is programmed into the MCU when the CC2420DB is shipped from the factory If the bootloader is overwritten when using an external programmer the AVR must be re programmed with the bootloader before it is possible to program the AVR via the serial port again Note that due to the 8 MHz crystal used with the Atmel controller some higher Baud rates cannot be supported for communication between computer and CC2420DB using the serial port There is a table in the Atmel ATmega 128 data sheet that list the
17. 0GCD D302 LED orange SMD LED EL11 21USOC D303 LED yellow SMD LED CL150YCD D304 LED red SMD LED CL150URCD L301 EMI filter bead BLM11A102S P10 Pin row 2x5 PINROW 2X5 P6 Pin row 2x3 PINROW 2X3 R301 Resistor 0603 2700 5 R 270 0603 J R302 Resistor 0603 2700 5 R_270_0603_J R303 Resistor 0603 47kQ 2 R_47K_0603_G SWRUO043 Page 26 51 EXAS INSTRUMENTS C KR Products from Texas Instruments Bill of materials CC2420DB MCU section Reference Description Value Part R304 Resistor 0603 2700 596 R 270 0603 J R305 Resistor 0603 2700 5 R_270_0603_J R306 Resistor 0603 47kQ 2 R 47K 0603 G R307 Resistor 0603 4TkO 296 R 47K 0603 G R308 Resistor 0603 47kQ 2 R 47K 0603 G R309 Resistor 0603 47kQ 2 R 47K 0603 G R310 Resistor 0603 47kQ 2 R 47K 0603 G R311 Resistor 0603 4TkO 296 R 47K 0603 G R312 Resistor 0603 00 R_0_0603 R313 Resistor 0603 47kQ 2 R_47K_0603_G R314 Resistor 0603 H 10K 0603 CG RT1 Trimming pot 10K R 0 10K TRIM knob S1 Push button SMD PUSH BUTTON S2 Push button SMD PUSH BUTTON U1 Atmel ATMEGA128 microcontroller MLF64 U2 Temperature sensor LM61 SOT23 U5 4 directional switch SKRHAB_E010 Joystick U8 Hex inverter oc 74HCO05 X2 Crystal HC 49 SMD X_8 000 20 30 10 16 SWRU043 Page 27 51 EXAS INSTRUMENTS C KR Products from Texas Instruments Bill of materials CC2420DB Voltage regulator section
18. 2 an ic page 6 Page 24 51 Products ipcon from Texas Instruments Ch ig ca EN fal eu RM sy E El ag 8 81 col Pats 8 Col eg s EEE a f E 5 3 EE 3 Su da Casa ES DeL Ta gin o 288 5 S as oN m Qu ans I 6 a za a se e ib ie Wee SIv 8V uv aal So Bei i big aay vivi giel ZY et gt Iv nad n gt u N NTH aNg za s un E 28 S ay Dn p Hei iv a El zv 8 8 Hau EV a D M av Zw H 2uw zv p a 23A piv AEST T E gt TAMZVSISZALZ OL T en o P d EE v gn Glv BYv 873 4 X EQ9G NOBI 1 BECHTER ARC gt 09 31 X ZN Bnv BG H X EBSU NBOL e 4E zag gt en 34v wm 31 ana par m g 0 Die Tuv ay 90 ga SV Sy a ar SCH ey 0 Ya TV EY ES ae ETY zo ea py ES E rem DE X H X EBSU ND BY amp J Eed gal j eae 1893 i i EZS2H Z A Zqv oadqv Ace CC2420DB schemat Figure 16 SWRU043 INSTRUMENTS da TEXAS C KR Products from Texas Instruments Bill of Materials Bill of materials CC2420DB Top level section Reference Description Value Part P1 DC jack 2 5mm DC JACK 2 5 centre pin P2 D
19. 8uuoa2 Avs1ieg AG 4 S0d AB NNOJ SdN Ap NND3 d Bd asuNn Addns Jemod euseyx3 Figure 14 CC2420DB schematic page 4 SWRU043 Page 22 51 INSTRUMENTS da TEXAS Products ipcon Ch from Texas Instruments C 9 S 1aaus 31v9S aanssr Zi vv a3533h3 AJH ON ma on wasi lazas O pg NH ZEZ SU BCE ama gival STvAOHddV Sv NOJdIHJ S8vcsz SWYN ANYdAO2 QN I2YHINOJ NO0 33H0 2897 OSA H X EBSB HBD EIERE JN OL SL inasy IMO ingew inazy inni ginozy AYANI 90659 3 aNg 5053 Bs aga A ABE Biyax gaat qanz a ieu NISH 4039404 Mir NO338404 Heute NULL A NIZL Fe NIEL inge px IN innz pa inno pe NIZH NI ADE zI 27 DR HZX ERSU NEO gt nea KYAJTBTI ALI SZ X HAXCEBBRINEE 3 GJ B X ESQ NODI Eds EvZEXVIN d iain Qu X 4X caa Nap 2 2081 SLITZEZSH qu zEzsu SLH ZEZ5SH OU Een aaBjJ2aiu ZEZGH OL ic page 5 CC2420DB schemat Figure 15 SWRUO043 Page 23 51 INSTRUMENTS da TEXAS 1919 1aaus aqvas a3nssi Cl vv a3533h3 Aau ON ma on wasi aas pa Hued Ave Bda zvzda ama 31ya STvAQHddV Sv NOJdIHJ Bvszu SYN ANVdAOS ON 12VHINOJ e ROPA an agHPe
20. AND EXAMPLES s eeeeeeeeeeee nasa wananuka nana namana nana aana aana NR ERR RR RR SNR NR RR RR RR dana 45 HARDWARE DEFINITION FILES ci iia 45 HARDWARE ABSTRACTION LIBRARY HAL 45 BASIC EI EE 46 SOFTWARE EXAMPLE PROGRAMMED ON CC2420DB trenes 46 DATA PACKET DESCRIPTION cir ii b ctas 47 DATA TRANSMISSION PROTOCOL s cescssescescesessesscsessessesecsessenecsesecsesuctesseseseesessesatseesesacsesneeaees 48 TROUBLESHOOTING esses namana waana mana wanan aa kk na kana RR ERAN RR ERR RR na nana NR ERAN R S REA RR 4 Rai dd d 49 beleen 49 CANNOT PROGRAM THE AVR USING THE SERIAL PORT 49 BOOT RESET VECTOR ENABLE ar dad 49 BOOTLOADER A a anes 49 REFERENCES conosca iii 50 ADDRESS INFORMATION coccccccocoocccnnnonononnanccnnnnnnonananonnanancrnnanaronananrrnnnnanrrnn anar RR EAR RR RR SR RR 4 KEN 51 X TEXAS SWRU043 Page 2 51 INSTRUMENTS C KR Products from Texas Instruments 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 CC2420DBK demonstration board kit is a complement to the development kit DK as the hardware is representative of an actual application and it is well suited as a prototyping platform for application code The CC2420DBK Demonstration Board Kit includes two CC2420DB Demonstration Boards These board
21. Brown out detection level at YCC 4 0 V BODLEYEL 0 ke Brown out detection level at VCC 2 7 V BODLEVEL 1 ke Brown out detection enabled BODEN 0 CKOPT fuse operation dependent of CKSEL fuses CKOPT 0 T Ext Clock Start up time 6 CK 0 ms CKSEL 0000 SUT 00 m v Auto Verify S Entering programming mode OK Writing fuses OxFF 0x1C OxBF OK Reading fuses OxFF 0x1C OxBF OK y G Fuse bits verification OK Leaving programming mode OK Figure 24 JTAG ICE mkll Fuses Dialog Window e Return to the Program tab and click on the Browse button in the EEPROM area to display the Open dialog window to browse to the appropriate folder to find the needed EEPORM data file e Select an EEPROM data file and click the Open button to return to the JTAG ICE JTAG ICE mkll or AVR ISP dialog window e Back at the respective programming device dialog window click the Program button in the EEPROM area to start the download process e Return to the Fuses tab enable the Preserve EEPROM memory through the Chip Erase Cycle fuse and click Program button Examine the fuses dialog window for proper fuse programming X5 TEXAS SWRU043 Page 37 51 INSTRUMENTS C rae Products from Texas Instruments A New Debugging Project With CC2420DB When AVR Studio opens a debugging file cof file generated by the GCC tools it looks for a previous project file aps with the same filename If none is f
22. CO gr de c Io On Chip Debug 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 Boot vector enabled default address 0000 Brown out detection level at VCC 2 7 V Brown out detection enabled Ext Crystal Resonator High Freq Start Up time 16CK 64 ms CKSEL 1111 SUT 11 When using the JTAG ICE mkll or the AVR ISP programmer the boot vector fuse must be disabled EXAS INSTRUMENTS Drac ic 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 I Serial program downloading SPI enabled SPIEN 0 ke Preserve EEPROM memory through the Chip Erase cycle EESA amp VE 0 Boot Flash section size 512 words Boot start address FE 00 BOOTS ke 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 v Boot Reset vector Enabled default address 0000 BOOTRST 0 Brown out detection level at VCC 4 0 V BODLEYEL 0 ke Brown out detection level at VCC 2 7 V BODLEVEL 1 ke Brown out detection enabled BODEN 0 CKOPT fuse operation dependent of CKSEL fuses CKOPT 0 T Ext
23. INSTRUMENTS C KR Products from Texas Instruments RS 232 interface A serial port is included on the CC2420DB This port is used when software is programmed into the AVR MCU using the bootloader and is also used by several of the example programs The port includes support for RTS CTS type hardware flow control handshaking 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 some general I O pins The MCU is also connected to four LED s a joystick and an extra button for user interface purposes The different examples use these peripherals differently An analog temperature sensor a potentiometer and 64K 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 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 with additional circuitry using these connectors External RAM The lower 4 Kbytes of the external RAM i
24. P4 pin 3 P6 pin 5 P10 pin 6 21 VCC Supply power N A 22 GND Ground N A 23 XTAL2 Crystal Oscillator N A 24 XTAL1 Crystal Oscillator N A 25 PDO SCL INTO FIFOP interrupt from CC2420 P4 pin 14 26 PD1 SDA INT1 FIFO interrupt from CC2420 P4 pin 12 27 PD2 RXD1 INT2 UART 1 RS232 RXD1 P3 pin 15 28 PD3 TXD1 INT3 UART 1 RS232 TXD1 P3 pin 19 29 PDA IC1 Polling SFD on CC2420 P4 pin 19 30 PD5 XCK1 UART 1 RS232 RTS P3 pin 13 31 PD6 T1 Polling CCA on CC2420 P4 pin 18 3 TEXAS INSTRUMENTS SWRU043 Page 12 51 C KR Products from Texas Instruments AVR UO pins AVR Pin AVR pin name Pin usage UO connector Number 32 PD7 T2 UART 1 RS232 CTS P3 pin 17 33 PGO WR WR N Write RAM N A 34 PG1 RD RD N Read RAM N A 35 PCO A8 RAM address N A 36 PC1 A9 RAM address N A 37 PC2 A10 RAM address N A 38 PC3 A11 RAM address N A 39 PC4 A12 RAM address N A 40 PC5 A13 RAM address N A 41 PC6 A14 RAM address N A 42 PC7 A15 Select RAM upper lower 32K N A 43 PG2 ALE Latch enable N A 44 PA7 ADT RAM address Data N A 45 PA6 AD6 RAM address Data N A 46 PA5 AD5 RAM address Data N A 47 PA4 AD4 RAM address Data N A 48 PA3 AD3 RAM address Data N A 49 PA2 AD2 RAM address Data N A 50 PA1 AD1 RAM address Data N A 51 PAO ADO RAM address Data N A 52 VCC Supply power N A 53 GND
25. Sub 9 pin female DSUB 9F P3 Pin row 2x10 PINROW 2X10 P4 Pin row 2x10 PINROW 2X10 P9 Pin row 2x5 PINROW 2X5 R101 Resistor 0603 00 R_0_0603 Not mounted Bill of materials CC2420DB RF Section Reference Description Value Part C101 Capacitor 0402 10nF 1096 C 10N 0402 X7R K 25 C11 Capacitor 0402 100nF 10 C 100N 0402 X5R K 10 C171 Capacitor 0402 68pF 596 C 68P 0402 NPO J 50 C251 Capacitor 0402 100nF 10 C 100N 0402 X5R K 10 C261 Capacitor 0402 100nF 1096 C 100N 0402 X5R K 10 C351 Capacitor 0402 100nF 10 C 100N 0402 X5R K 10 C371 Capacitor 0402 68pF 596 C 68P 0402 NPO J 50 C381 Capacitor 0402 27pF 5 C 27P 0402 NPO J 50 C391 Capacitor 0402 27pF 5 C 27P 0402 NPO J 50 C421 Capacitor 0805 10uF 1596 C 10U 0805 X5R L 25 C431 Capacitor 0805 10uF 1596 C 10U 0805 X5R L 25 C441 Capacitor 0402 68pF 596 C 68P 0402 NPO J 50 C481 Capacitor 0402 68pF 596 C 68P 0402 NPO J 50 C61 Capacitor 0402 0 5pF 0 25pF C OP5 0402 NPO C 50 C62 Capacitor 0402 5 6pF 0 25pF C 5P6 0402 NPO C 50 Not mounted C63 Capacitor 0402 5 6pF 0 25pF C 5P6 0402 NPO C 50 C71 Capacitor 0402 5 6pF 0 25pF C 5P6 0402 NPO C 50 C81 Capacitor 0402 0 5pF 0 25pF C OP5 0402 NPO C 50 L61 Inductor 0402 7 5nH 596 L 7N5 0402 J L62 Inductor 0402 5 6nH 0 3nH L 5N6 0402 S L81 Inductor 0402 7 5nH 596 L 7N5 0402 J SWRU043 Page 25 51 EXAS INSTRUMENTS C KR Products from Texas Instruments Bill of materials CC2420DB RF Section Reference
26. T noo E RTI El G H El Wa i ug i P2 DI L beL A Top Assembly q E sa P q BL E UL SE 5 548 Ema cds a m EJ E D401 i E E E Bottom Assembly Figure 10 CC2420DB PCB layout silkscreen SWRU043 Page 18 51 Products from Texas Instruments Chipcon a Schematic dd d dOl BIBZEZII pr OI Laag awas aanss Zl vv EEN Au ON ma ON Wass laas Org NM ve Sv NOOdIHI nen ANS Iluvd dd suusjue Did 9 payasuvos Ad ju O DN p73 10H ZH O Z 73 10H H C JYYATIVIINTI I Dh IH 3ivd S1vAOHddv GE erSsZza AE FS are ON LIVYLNOI eH SEN axe MOHNId E z La ah zt ah af Li CA e dvuls LE i Alddns H3 Od 5 B SXZ MOBNId D Ed E Fw s Le va med BIXZ MOHNId NO 33H03 7 AE A EE 88e1 0 pereueueg 10d AE E T 3133 33 Sau AE Hunn 43 K
27. 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 X TEXAS SWRU043 Page 11 51 INSTRUMENTS C Chipcon Products from Texas Instruments AVR I O pins AVR Pin AVR pin name Pin usage UO connector Number 1 PEN N C N A 2 PEO RXDO PDI Joystick up ISP MOSI P6 pin 4 P3 pin 6 3 PE1 TXDO PDO Joystick right ISP MISO P6 pin 1 P3 pin 8 4 PE2 XCKO AINO Joystick centre push button P3 pin 5 5 PE3 OC3A AIN1 Red LED P3 pin 11 6 PE4 OC3B INT4 Yellow LED P3 pin 4 7 PE5 OC3C INT5 Switch S2 P3 pin 10 8 PE6 T3 INT6 Interrupt from joystick P3 pin 12 9 PE7 IC3 INT7 General purpose UO P3 pin 14 10 PBO SS SPI Interface CSn CC2420 P4 pin 13 11 PB1 SCK SPI Interface SCLK CC2420 P6 pin 3 P4 pin 4 12 PB2 MOSI SPI Interface SI CC2420 P4 pin 8 13 PB3 MISO SPI Interface SO CC2420 P4 pin 6 14 PB4 OCO Orange LED P3 pin 18 15 PB5 OC1A VREG EN Enable volt P4 pin 10 regulator on CC2420 16 PB6 OC1B RESETn CC2420 P4 pin 16 17 PB7 OC2 OC1C Green LED P3 pin 16 18 PG3 TOSC2 External 32 kHz crystal P3 pin 7 General purpose UO 19 PG4 TOSC1 External 32 kHz crystal P3 pin 9 General purpose UO 20 RESET Reset Switch S2 ISP JTAG
28. e Chipcon Products from Texas Instruments User Manual Rev 1 3 CC2420DBK Demonstration Board Kit d TEXAS SWRUO43 Page 1 51 INSTRUMENTS C KR Products from Texas Instruments Table of contents INTRODUCTION rS 3 POB Ec 4 Pit ct aria WM 5 POWER SUPPLY SECTION ns 7 RS 232 INTERFACE acp rta mzima 8 MICROCONTROLLER AND USER INTERFACE 8 EXTERNAE EE 8 FLASH MEMORY REQUIREMENTS n askksssskkssoakk skdn kkkt dh kht ah kete A AEEA A AEEA ALEEA AE EEEE EEEE EAEE Eanan 8 CC2420DB Low POWER MODE suppopr 8 JUMPER SETTINGS FOR DEMONSTRATION BOARD CONTROL eee terere 9 CC2420DB CURRENT MEASUREMENT AND CONSUMPTION www 11 POBLAYOUE EES 16 BILL OF MATERIALS sciret dada oie 25 USING THE CC2420DB DEMONSTRATION BOARD eere nnn nan 30 CC2420 SOFTWARE DOWNLOAD AND EVALUATION USING AVR STUDIO 4 es 30 PREPROGRAMMED 64 BIT IEEE ApnpptEes u s iissssiossoikkt oh kt ehh kh ehk kh eeni n eer hr oeenn neran reann rrn rrrn 30 PREPROGRAMMED FUSES ttti ttt tr hebr tay ean Etha net tror 31 PREPROGRAMMED LOCK Bes 33 JTAG ICE OR JTAG ICE MI 33 SAVING THE IEEE ADDRESS OF THE CC2420DB essesssssssessesecseseesecersecsesensecsesecscsansnereeananers 34 RESTORING THE IEEE ADDRESS OF THE CC2420DB eeeeene tees 36 A NEW DEBUGGING PROJECT WITH CC2420DB eeee treten 38 BOOTLOADER A diee A 43 INTRODUCTION TO EXAMPLES PROVIDED WITH CC2420DB o aiiisiiinseiinieiiirerirreerirenrirrnrrrn 45 LIBRARIES
29. ection Mode 2 SPM prohibited in Boot Loader Section Boot Loader Protection Mode 3 LPM and SPM prohibited in Boot Loader Boot Loader Protection Mode 4 LPM prohibited in Boot Loader Section gt IV Auto Verify Entering programming mode OK Writing lockbits O EF OK Reading lockbits O EF DK Lock bits verification OK Leaving programming mode OK m Figure 20 AVR Studio Lock Bits Window JTAG ICE or JTAG ICE mkil The CC2420DB provides a connector for the JTAG ICE programmer to communicate with AVR Studio This interface can be used to debug or download source code using Coff files or hex files The JTAG connector is P10 The Coff files are built using the make file option make extcoff See the make file enclosed with our software example for details Step by Step procedure 1 Connect JTAG ICE to connector P10 on CC2420DB Please refer to figure 20 for location of the connector 2 Connect power to CC2420DB 3 Disable the Boot Reset Vector Enabled fuse X5 TEXAS SWRUO43 Page 33 51 INSTRUMENTS C ae Products from Texas Instruments 4 Start AVR Studio and establish a new project only one time See section on how to start a new debugging project 5 Load the select Coff file built using the make file option extcoff 6 Start debugging Note When using the JTAG ICE programmer the boot vector fuse must be disabled Ertu Figure 21 JTAG ICE connector P10 on CC2420DB Sav
30. es 4 signal lines These four lines can be accessed at the 6 pin connector P6 The pin out and description is listed in the table below Signal pin AVR programming socket pin Table 7 ISP header connector Bootloader The CC2420DB is shipped with a bootloader This loader communicates with AVR Studio After reset the bootloader must have a way to determine to start the program mode or to run the application software residing in the application code section of the flash To start the bootloader the push button S2 on CC2420DB is used to enter program mode This button is held low after reset while starting the AVR Prog from the Tools menu in AVR Studio until the bootloader program window is loaded Please see Figure 30 and Figure 31 Step by Step procedure 1 Connect the CC2420DB serial port to your PC COM port Connect power to CC2420DB Start AVR Studio Hold down the S2 push button Push and release the S1 reset button while still holding the S2 push button In AVR Studio select Tools gt AVR Prog from the menu See figure 22 Release the S2 push button ON X x oN Browse to find your application program hex file 9 Click on the Flash Program button to program the flash 10 Disconnect serial port 11 Reset CC2420DB 12 Start your application program X TEXAS SWRU043 Page 43 51 INSTRUMENTS C Chipcon Products from Texas Instruments AYRStudio MARA ES crm EA 9008 amp e zc E D mm e wm ICESO Self
31. essed down at startup 0x5678 if the joystick is moved in any direction at startup Please note that there is no so called PAN coordinator Data packets containing a 5 byte payload will be transmitted when the pot meter is turned or joystick center button is held down The first byte of the payload contains the pot meter value which is used to control the PWM duty cycle on the receiving node The other bytes are random never initialised The program uses the following LED indicators Red Transmission failed acknowledgment not received Yellow Transmission OK acknowledgment received Orange Remote controlled dimmer Green Packet received X TEXAS SWRUO043 Page 46 51 INSTRUMENTS C Chipcon Products from Texas Instruments Data packet description The frame formats used are data and acknowledges frames according to the IEEE 802 15 4 standard The Frame Control Field FCF is fixed address information field is short addresses only and the payload data is inserted by the application The preamble Start of Frame Delimiter the FCS is generated and inserted in the package by CC2420 The data frame and acknowledge frame is depicted in the Figure 33 and Figure 34 Octets 2 1 4 to 20 n 2 Data MAC Frame sequence Address i MHR MSDU MFR Octets 4 1 1 4to20 n PHY Preamble tart of Frame Frame layer Sequence Delimiter Length SHR PHR PSDU 11 41020 n PPDU Figure 33 IEEE 802 15 4 data frame Octet
32. g 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 AVRISP JTAG ICE AVRStudio De Project View Tools Debug Help DGHOOxsSmesocieug 444 244 PEDEDED amp n i waedesed axe xe O em Workspace gt m EIR NC BOP OO de v AVRISP Program Fuses LockBits Advanced Board Auto Erase Device IV Erase Device Before Programming IV Verify Device After Programming Parallel High Voltage Serial r Flash Use Current Simulator Emulator FLASH Memory Input HEX File G 02_Inteme_prosjekter 02500_inteme_tekn E Program Verity Read m EEPROM Use Curent Simulator Emulator EEPROM Memory InputHEXFilef A ee ae E Loaded plugin STK500 o 2 Setting device parameters serial programming mode OK Entering programming mode OK Reading fuses OxDOC4 OK Leaving programming mode OK zl 4 gt Build gt Messages a CAP NUM SCRL Figure 29 AVRISP Program Window used to program flash or EEPROM Note When using the AVR ISP programmer the boot vector fuse must be disabled X5 TEXAS SWRU043 Page 42 51 INSTRUMENTS C KR Products from Texas Instruments The device used for programming must be connected to the CC2420DB programming socket The programming interface us
33. hipcon CC2420 radio chip The intention of this library is mainly to demonstrate how the CC2420 is operated and not to provide a complete and full functional packet protocol The protocol uses 802 15 4 MAC compliant data and acknowledgment packets however it contains only a small subset of the 802 15 4 standard Association scanning beacons is not implemented No defined coordinator device roles peer to peer all nodes are equal Waits for the channel to become ready but does not check CCA twice 802 15 4 CSMA CA Does not retransmit packets Can not communicate with other networks using a different PAN identifier Short addresses only Software Example Programmed on CC2420DB The CC2420DB is preprogrammed with an RF link application example called rf blink led and the source code is available for download from our web site The program demonstrates the use of the CC2420DB libraries including the basic RF library The packet protocol being used is a small subset of the IEEE 802 15 4 standard It uses an 802 15 4 MAC compatible frame format but does not implement any other MAC functions mechanisms e g CSMA CA The Basic RF library can thus not be used to communicate with compliant 802 15 4 networks A pair of CC2420DBs running this program will establish a point to point RF link on channel 26 using the following node addresses PAN ID 0x2420 both nodes Short address 0x1234 if the joystick button is pr
34. ing the IEEE Address of the CC2420DB Before any debugging is preformed on the CC2420DB the content of the Atmega128L EEPROM memory must be read and saved to a disk file on the development computer This will allow the IEEE address to be restored if the EEPROM gets erased or corrupted The AVR Studio program in conjunction with the JTAG ICE or AVR ISP is applied to upload the EEPROM data from the Atmega128L microcontroller and recorded to the disk file specified by the user When a project is first created in AVR Studio the EEPROM will be erased when the cof file is downloaded to the CC2420DB Due to this it is important to save the EEPROM content to a disk file before creating the new project The following procedure can be applied to save EEPROM data initially or at any desired time e With power removed from the CC2420DB connect the JTAG ICE JTAG ICE mkll or AVR ISP to the their respective connectors on the CC2420DB Make sure the JTAG cable is oriented correctly Please refer to figure 21 to see where pin 1 is located X5 TEXAS SWRU043 Page 34 51 INSTRUMENTS Chipcon Products C from Texas Instruments e Open AVR Studio and click on the AVR button When AVR Studio detects the programming device connected to the CC2420DB the programming settings window will appear Please refer to figure 22 JTAGICE mkII Figure 22 JTAG ICE mkll Program Window d TEXAS SWRUO43 Page 35 51 INSTRUMENTS C rae Products from Texas I
35. ing to the User Manual Program the flash with the rf blink led example using bootloader AVR Prog and the rf blink led hex file Disconnect RS 232 cable and AVR ISP o Runtherf bink led code example using the CC2420DBK and verify correct performance Q 0 oO 0 00 O O e f you get the following message in AVR Studio when trying the bootloader o Programming Verifying error address 0x0000 Expect 0x940C Receive 0x0000 e Follow the procedure above to reprogram the bootloader with the latest version from the Chipcon web side and check Atmega128L fuse settings http www chipcon com index cfm kat_id 28subkat id 128dok id 115 X TEXAS SWRU043 Page 49 51 INSTRUMENTS C KR Products from Texas Instruments References CC2420 Datasheet 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 Atmel Application note AVR109 Self programming Bootloader CC2420DBK based on this application note http www atmel com dyn general tech doc asp doc id 8053 AVR Studio http www atmel com dyn products tools asp family id 607 AVR GCC http www avrfreaks net AVRGCC index php WinAVR http sourceforge net projects winavr IEEE 802 15 4 standard http standards ieee org getieee802 802 15 html Document History 31 03 2004 Initial release 06 05 2004 Updated schematics and BOM according to
36. k Blvd Cupertino CA 95014 2358 USA Tel 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 AS Unit 503 5 F Silvercord Tower 2 30 Canton Road Tsimshatsui Hong Kong Tel 852 3519 6226 Fax 852 3519 6520 Email Asiasales chipcon com Sales Office Japan Chipcon AS 403 Bureau Shinagawa 4 1 6 Konan Minato Ku Tokyo Zip 108 0075 Japan Tel 81 3 5783 1082 Fax 81 3 5783 1083 Email Japansales chipcon com wa TEXAS INSTRUMENTS 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 Sales Office Korea amp South East Asia Chipcon AS 37F Asem Tower 159 1 Samsung dong Kangnam ku Seoul 135 798 Korea Tel 82 2 6001 3888 Fax 82 2 6001 3711 Email KAsiasales chipcon com SWRU043 Page 51 51
37. ne as well as adequate routing space The laminate used is standard FR 4 board material The PCB is 1 0mm thick with layer 1 on the topside layers 2 and 3 are internal layers and layer 4 is on the bottom side Layers 1 and 4 are used for routing while layer 2 is a ground plane and layer 3 is used for power routing All areas in the RF section that are not utilized for routing are filled with copper connected to ground to provide RF shielding The ground planes on all layers are stitched together with closely spaced vias Please see figure 8 for a board stack up for the CC2420DB PCB 0 321 mm 4 n n lt 034mm Ji ed 0 321 mm 4 1 122 mm Figure 8 CC2420DB Layer Build Up X TEXAS SWRU043 Page 16 51 INSTRUMENTS C KR Products from Texas Instruments Figure 9 CC2420DB PCB layout X TEXAS SWRU043 Page 17 51 INSTRUMENTS C Chipcon Products from Texas Instruments da TEXAS HI P3 CC2420DB 1 2 FM3 C Chipcon A INSTRUMENTS BIR E us q Pa E jitac ure Up us P 323 T cses 2304 E D302 Set E
38. nstruments Troubleshooting It does not work e Make sure that the power supply is connected to the correct pins on the power connector e 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 I cannot program the AVR using the serial port e f you have programmed the AVR using an external programmer you must use an external programmer to program the AVR with the bootloader before you can use the serial port to program the AVR again Boot reset vector enable e fyouare using the JTAG ICE JTAG ICE mkll or AVR ISP with AVR studio you must use disable the boot reset vector enable Bootloader e If you get the following message in AVR Studio when trying the bootloader o No supported board found AVR Prog 1 37 e Make sure that the bootloader step by step procedure is followed If the procedure is followed the bootloader can be corrupted e Follow this procedure to reprogram the bootloader o Download bootloader for CC2420 from our web site Connect AVR ISP to connector P6 and a PC with running AVR Studio See chapter about bootloader for details Apply power Verify correct fuses settings according to CC2420DBK User Manual Program the flash with the downloaded bootloader a90 hex file Please remember to set the lock bit Mode 2 for the Bootloader Section Start the bootloader accord
39. nstruments e Click on the Read button in the EEPROM area to display the Save As dialog window Save as a Save in C3 Data f ek E3 laa 2004 40 002 hex File name 2004 40 001 hex Save as type Intel Hex Files hex s t Cancel AL Figure 23 EEPROM Save As Dialog Window e Browse to the appropriate folder to save the EEPROM data file For example the data can be stored at the following location C Chipcon Projects CC2420DB Data e Type a new filename and click on the Save button to start the upload and file saving process The example above shows filenames that were created using the serial numbers for each board in a kit e f you are going to save the EEPROM data for another CC2420DB board repeat this procedure Restoring the IEEE Address of the CC2420DB The Atmega128L EEPROM memory is used to store the Chipcon assigned unique 64 bit address Occasionally the content of the EEPROM content must be restored from a disk file The AVR Studio in conjunction with JTAG ICE JTAG ICE mkll or AVR ISP will be used to download the EEPROM data from a disk file specified by the user to the Atmega128L EEPROM memory When a project is first created in AVR Studio the EEPROM will be erased when the cof file is downloaded to the CC2420DB For this reason the EEPROM memory content must be reloaded from the previously saved disk file after creating the new AVR Studio project The following procedure can be used to rest
40. on bits after COM Port debugwIRE 0 Baud rate 119200 default Disable debug WIRE Fl Figure 26 JTAG ICE mkll Connection Settings At this point AVR Studio downloads the program into the CC2420DB Atmega128L Flash memory graphically showing progress at the bottom of the screen If successful the program counter is reset and AVR Studio enters debugging mode Completion or error status is shown in the message box at the bottom of the window X5 TEXAS SWRU043 Page 39 51 INSTRUMENTS C Chipcon Products from Texas Instruments The debugging dialog window will appear as depicted in figure 27 Now settings for subsequent downloading of project files can be specified and saved in the aps file Select the Debug tab on the menu of the AVR Studio window click JTAGICE mkll Options item on the menu Debug gt JTAGICE mklt Options AYRStudio rf sini x E Ele Project Edit view Tools Debug Window Help 8x DaGHgo sse amp nag ALAN Pg em THN Go RHP OE ww EEGs frac osas RA edo E aw s som Workspace x x void main void rt 8 W Register 0 15 DESCRIPTION j 000000 oc 94 3 g Register 16 31 A Startup routine and main loop 000009 63 00 al AA A A A aaa aa aaa aa aa aa aa aa aa aaa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aaa aa aa aaa m E Processor Maui asina i 000012 0C 94 m E Stack Moni
41. ore the initially EEPROM data e With power removed from the CC2420DB connect the JTAG ICE JTAG ICE mkll or AVR ISP to the their respective connectors on the CC2420DB Make sure the JTAG cable is oriented correctly Please refer to figure 21 to see where pin 1 is located e Open AVR Studio and click on the AVR button When AVR Studio detects the programming device connected to the CC2420DB the programming settings window will appear Select the Fuses tab Please refer to figure 24 e Disable the Preserve EEPROM memory through the Chip Erase Cycle fuse and click on the Program button Examine the fuses dialog window for proper fuse programming Please refer to figure 24 X5 TEXAS SWRU043 Page 36 51 INSTRUMENTS C SCH Products from Texas Instruments AA Program Fuses LockBits Advanced Board Auto ATmega103 Compatibility Mode M1030 0 Watchdog Timer always on W DTON 0 ke On Chip Debug Enabled OCDEN 0 v JTAG Interface Enabled JTAGEN 0 v Serial program downloading SPI enabled SPIEN 0 Preserve EEPROM memory through the Chip Erase cycle EESAWE 0 Boot Flash section size 512 words Boot start address FE 00 BOOTS kb Boot Flash section size 1024 words Boot start address F C00 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 I Boot Reset vector Enabled default address 0000 BOOTRST 0
42. ound new project or if the user answers no when prompted with A project already exists using this object file would you load this the Select device platform and device settings dialog window will appear This indicates that a new project file aps is being created and initialized Make the settings as shown in figure 25 and click the Finish button to continue Welcome to AVR Studio 4 m Select debug platform and device Debug Platform AYA Simulator ICE200 xj Figure 25 JTAG ICE mkll Device Platform Settings d TEXAS SWRU043 Page 38 51 INSTRUMENTS C rae Products from Texas Instruments Now select the Connection and check for the following settings If different than shown below make the required changes Since this is a new project settings for the Debug tab can t be specified the microcontroller s Flash and EEPROM will be erased before the program is downloaded to Flash Click on the OK button to continue Please refer to figure 26 for reference JTAGICE mkII i x Connection Debug Status JTAG connection Target clock frequency Accurate specification of the target device s clock frequency is necessary in order to correctly set the JTAG port clock frequency Over specifying this parameter will cause JTAG communications failure Daisy chain Target device is part of a JTAG daisy chain Devices before jo Instruction bits before Devices after jo Instructi
43. out SWRU043 Page 14 51 C Chipcon Products from Texas Instruments P4 pinout Pin Signal name in Pin usage CC2420 pin AVR pin number schematic 1 N C 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 CC2420 voltage regulator 41 VREG EN 15 enable 11 PFO 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 SWRU043 Page 15 51 EXAS INSTRUMENTS C rae Products from Texas Instruments PCB layout RF circuits operating at high frequencies are normally sensitive to the physical layout of the PCB Chipcon has carefully optimized the layout of the CC2420DB Demonstration Board and we therefore recommend that our customer copy at least the RF parts and the decoupling around the CC2420 when making their own PCB designs The PCB is of a 4 layer type in order to provide a well defined ground pla
44. pyd masi led Pr ab ous eaeu GR leqvl eva ss aga a usa PH Pu MEE e he Su gH zqv 7 lzavl zvd 3 Sik ge Gemen ls SXZ MOHNId KEE gt S ay NEYI iva Loi En 3d TZ Zud K 3 E UNE R aay Y Ip el avd B1NI EL Gad Y aad Lr E A e NOLLMS HSfld ee E IS1NI 2E20 S3d gad Zu z EH e ad Gl zJ vi 3d Irini e3d TZ 7 bad a AO uciing isse 10d1 9dw Sd NIV WEJO Edd Edd wliswi sadvi SJd IBNIWV QXIX z3d 7 t z3d KE 1AI1 I0Y tdd Oda dxXL 13a E 134 E dd ed SCH edel Edd 1dd 01X8 Gad t t gag E DES e lzadvi zdd ysnd aujuea 3 S unm yajims i f ri Ngavi bad 1asaul 13534 19001498401 pos aad adai add Nadl T 3 A SZIVSSWIV sp na in B z ysnd 4 3 Teas eH eig Vum 3HIN32 SA H gt AE 1 a lj ce greased DUES ER dn E g Y a m Z XZ MOUNId zl sn I Sd TERA H EGEH b DIN jm gsi AE ic page 3 CC2420DB schemat 13 Figure Page 21 51 SWRU043 TEXAS STRUMENTS i IN Products from Texas Instruments Chipcon C S v 13aus awas aanssi 2 vv a3533h3 Aau ON ama ON wasi azas org NMVHO Yoly ines 3avi oa Sdazvzaa ma alya STvAQHddV Sv NOJdIHJ Bvszu BAYN ANS ON LIVELNOI I LINDO NV LN I maax apzi znz 3 lara i BeH AE E Ajddns pejejn amp e2 A EE SZ X HX EIA NEE 3 gro ux gez ene 3 par fava i zara aNd ang lino W SHE E ESCH DEE n Jg123
45. q T Ext Crystal Resonator High Freg bk Ext Crystal Resonator High Freq Start up time 258 CK 4 ms CKSE Start up time 258 CK 64 ms CKSI Start up time 1K CK 0 ms CKSEL Start up time 1K CK 4 ms CKSEL Start up time 1K CK 64 ms CKSE Start up time 16K CK 0 ms CKSE Start up time 16K CK 4 ms CKSE Start up time 16K CK 64 ms CKS Verify Read da TEXAS Figure 19 AVR Studio INSTRUMENTS Fuses Window CC2420DB SWRU043 Page 32 51 C rae Products from Texas Instruments Preprogrammed Lock Bits The following lock bit is preprogrammed to protect the bootloader from accidental overwrites 1 Boot Loader Protection Mode 2 SPM prohibited in Boot Loader Section Note The only way to erase this bit is to use JTAG ICE mkll or AVR ISP and run an erase cycle of the flash using AVR Studio See figure 20 GER Program Fuses LockBits Advanced Board Auto v Mode 1 No memory lock features enabled Mode 2 Further programming disabled Mode 3 Further programming and verification disabled ke Application Protection Mode 1 No lock on SPM and LPM in Application Se Application Protection Mode 2 SPM prohibited in Application Section Application Protection Mode 3 LPM and SPM prohibited in Application Sec Application Protection Mode 4 LPM prohibited in Application Section Boot Loader Protection Mode 1 No lock on SPM and LPM in Boot Loader I Boot Loader Prot
46. s 2 1 2 Data MAC Frame Sequence sublayer Contro Number f MHR MFR i Octets 4 1 1 5 PHY Preamble Taror Frame layer Sequence Delimiter Length SHR PHR PSDU 11 Figure 34 IEEE 802 15 4 acknowledge frame d TEXAS SWRU043 Page 47 51 INSTRUMENTS Chipcon Products from Texas Instruments Data transmission protocol The data transmission protocol is very simple only using data and acknowledgement frames Step by Step procedure 1 Joystick is pressed on device 2 2 CC2420 device 2 transmits the data frame 3 CC2420 device 1 receives the data frame 4 Microcontroller uC device 1 gets the FIFOP interrupt from CC2420 RXFIFO is read frame is checked for FCS and the green LED is blinked 5 CC2420 device 1 waits 12 symbol periods before automatically transmitting the acknowledgement reply 6 CC2420 device 2 receives acknowledge frame 7 Microcontroller uC device 2 gets the FIFOP interrupt from the CC2420 RXFIFO is read and frame is verified for FCS 8 The yellow LED will blink without further reply indicating the acknowledgement If transmission failed no acknowledgement the red LED will toggle RF Device 1 RX 12sp TXACK FIFOP int uC Device 1 GLED RF Device 2 TX RX ACK NO ACK FIFOP int uC Device 2 Joystick pressed i YLED RLED EXAS INSTRUMENTS Figure 35 Data Transmission Protocol SWRU043 Page 48 51 C KR Products from Texas I
47. s contain a CC2420 with necessary support components an Atmel Atmega128L AVR microcontroller 32 kBytes external RAM a PCB antenna as well as a joystick buttons and LED s that can be used to implement a visual user application interface The demonstration board is also furnished with connectors where all of the internal signals on the PCB are available This User Manual describes how to use the CC2420DBK Demonstration Board Kit Atmel s AVR Studio and associated software is used to program and debug software Please see the reference section of this document for links to Atmel s documentation on how to use their tools Your CC2420DBK Demonstration Board Kit should contain the following items Kit contents Item Number of articles Demonstration Board CC2420DB 2 Quick Start instructions 1 CC2420DB Important Notice From revision 1 5 and newer 1 CC2420 sample kit 1 RS 232 cable 2 Important 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 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 X TEXAS SWRU043 Page 3 51 INSTRUMENTS C Chipcon Products from Texas Instruments PCB PCB depicts an overview of the CC2420DB with description of the various components
48. s overlaid by the Atmega128L internal register and RAM CC2420DB includes this memory because it can be used for debugging purposes to buffer and store data if desired The 32 kB RAM size is not a requirement nor necessary for a low cost a Full Functional Device FFD or Reduced Functional Device RFD Please refer to the Atmega128L data sheet for more details Flash Memory Requirements The flash requirement for a FFD device with the Chipcon MAC will be approximate 20 kBytes and 10 16 kBytes for a RFD Additional flash size must be available for the application Important The memory requirement will be dependant on compiler optimization level hardware platform and feature used in the stack CC2420DB Low Power Mode support To apply a low power mode with CC2420DB for application development it will be necessary to apply an additional clock source together with the 8 MHz crystal 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 Atmel does not recommend this method The 32 768 kHz crystal will clock the timer O and then the overflow or compare match timer interrupt is applied to wake up Atmega128 from power save mode
49. se current PCB board consumption J3 To always have the RS 232 This jumper can be driver enabled hence the disconnected and instead driver is forced on controlled by software if desired Y TEXAS INSTRUMENTS Table 2 Jumpers explanation SWRU043 Page 9 51 C rae Products from Texas Instruments j Jumper J1 Jumper J2 umper J3 Figure 6 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 X5 TEXAS SWRU043 INSTRUMENTS C ae Products from Texas Instruments 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 N A eae 12 P3 Figure 7 Connector P3 with ampere meter attached To help minimize the current consumption of the CC2420DB for a specific IEEE 802 15 4 devices 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
50. test Plugin Manager Customize Options Show Key assignments STKSOO AVRISP ITAG ICE Figure 30 Starting AVR Prog in AVR Studio Hex file fif blink led hex Browse EEPROM Program Verify Read Device ATmegal 28 BOOT 7 Advanced Figure 31 AVRprog bootloader Window Important If the AVR ISP or the JTAG ICE programmer is used to program application examples the bootloader will be deleted if no protection mode is applied to this section of the microcontroller flash The bootloader is modified source code from ATMEL AVR application note AVR109 Self programming and compiled with IAR Embedded Workbench X5 TEXAS SWRU043 Page 44 51 INSTRUMENTS C KR Products from Texas Instruments Introduction to Examples Provided with CC2420DB To develop software for the CC2420DB three tools are needed 1 Atext editor e g UltraEdit 32 with support for syntax highlighting and running a compiler 2 Acompiler assembler linker e g WinAVR The WinAVR is a suite of open source software development tools for the Atmel AVR series of RISC microprocessors for the Windows platform It includes the GCC compiler for C This tool provides a framework for most of the features supported by the Atmega128L microcontroller used with the CC2420DB Demonstration Board 3 Software platform provided by the processor manufacturer Libraries and Examples The CC2420 libraries and examples include a variety
51. tor UINT16 ledDutyCycle dimmerDif ference 00001B 63 00 E 1 0 ATmega128 UINT8 n 000024 0C 94 00002D 63 00 Initalize ports for communication with CC2420 and other peripheral units 000036 0C 94 PORT INIT 3 00 SPI INIT r EXT RAMO 000051 00 EO Initialize PUMO with a period of CLK 1024 00005 AO EO PUMO INIT TIMER CLK DIV1024 000063 0C 94 Donner FF 81 Initialize and enable the ADC for reading the pot meter 000075 C8 01 ADC_INIT 00007E CD BF ADC SET CHANNEL ADC INPUT 0 POT METER B ce ADC ENABLE Ke 000090 SE B9 Wait for the user to select node address and initialize for basic RF operation 000099 85 60 while TRUE 0000 2 37 9A if JOYSTICK CENTER PRESSED 0000AB 91 ED basicRfInit amp rfRxInfo 26 0x2420 0x1234 0000B4 04 CD rfTxInfo dest ddr 0x5678 l oo008D c 1 0000C6 80 93 ODODCF 31 E0 Ei rf blink led c zi Sp ayo info Loaded plugin STK500 X R00 0x80 B Loaded partfile C Program Files Bac 0x00 Loaded objectfile rf blink led c 2027 0x00 S RO3 OxBl 8 R04 0x04 ROS 0x0D R06 0x2 R07 0x40 ROB 0x40 R09 Get Rl0 OxDA Rll 0x01 Rl2 0x58 NATA pe el CC watch 4 UTE AWAIT AWAIT Pano a x YEM ATmega128 JTAGICE mkII USB Stopped Ln 118 Col2 CAP NUM SCRL Figure 27 AVR Debugging Dialog Window d TEXAS SWRU043 Page 40
Download Pdf Manuals
Related Search
Related Contents
manual de instruções UNI65 取扱説明書 ご使用前に必ずご確認ください Serie MFT1500 Probador de Aislamiento Manual de instrucciones Copyright © All rights reserved.
Failed to retrieve file