background image

Applications Engineering 

ZigBee Demo  
Kit (ZDK) 

RZB-ZMD16C-ZDK 

User’s Manual 

Version 1.2 
August 2006

 

www.renesas.com 

Summary of Contents for RZB-ZMD16C-ZDK

Page 1: ...Applications Engineering ZigBee Demo Kit ZDK RZB ZMD16C ZDK User s Manual Version 1 2 August 2006 www renesas com ...

Page 2: ...2 5 4 2 JP2 Power LED D4 and RS232 U7 Transceiver Power 13 5 4 3 Default Jumper Settings 13 5 5 LCD Liquid Crystal Display 13 5 6 ZigBee RF 13 6 0 Limitations of the ZbRom System 13 6 1 Timers 13 6 2 System Clock 14 6 3 Interrupts 14 6 4 Flash and RAM Usage 14 6 5 Stack RAM Usage 14 6 6 Global Variable RAM Usage 15 6 7 MAC Address Area 15 6 8 ZbROM Flash Size 15 6 9 ZbROM RAM Size 15 6 10 ZigBee S...

Page 3: ...blems 22 A 3 1 Erratic Debug Behavior 22 A 3 2 Cannot Connect to Target 22 A 3 3 Issues that May Arise During Debug Operations 23 Appendix B Reference Manuals 25 Appendix C Expansion Headers 26 Appendix D Board Schematic BOM 28 Appendix E RZB ZMD16C ZDK Printed Circuit Board 31 Appendix F Other Resources 33 RZB ZMD16C ZDK User s Manual Rev 1 2 3 33 August 2006 ...

Page 4: ...oUSB Programming software A real time source level debug environment is implemented using the HEW debugging interface with the RTA FoUSB MON Flash Programmer ICD The Flash over USBTM FoUSB Programmer software in combination with the ICD allows in system programming of the M16C 28 Flash MCUs on the ZDK and RF Sniffer target boards The ICD and firmware provide a convenient Universal Serial Bus USB i...

Page 5: ...ery Pack with 3 AA batteries 3 Powers the three ZDK boards CD ROM Auto install program RF Sniffer software HEW IDE debugger NC30WA C compiler assembler and linker FoUSB Programmer USB drivers Manuals Tutorials Sample programs 2 2 CD ROM The CD ROM contains the electronic manuals and software necessary for developing programs Your computer must have a web browser like Mozilla Firefox Netscape Brows...

Page 6: ...n or use of any product circuit or procedure described herein No other liability or warranty applies expressed or implied Software warranty is limited to replacement of the CD only While every attempt has been made to ensure accurate documentation Renesas Technology America Inc cannot be held responsible for errors or omissions and reserves the right to make changes without prior notice Flash Over...

Page 7: ... Computer supplied by user Three RZB ZMD16C ZDK Boards Three battery packs with AA batteries RF Sniffer Board RF Sniffer Interface RFSI Mini USB cable for RFSI 2 5 header target cable for RFSI RF Sniffer software and USB driver RF Sniffer ZigBee Coordinator ZigBee Router ZigBee Router Figure 4 1 ZigBee Demo Kit Setup RZB ZMD16C ZDK User s Manual Rev 1 2 7 33 August 2006 ...

Page 8: ...ment to be able to use the software that comes with the RZB ZMD16C ZDK is a PC with a USB port and Microsoft Windows 98 ME 2000 or XP 4 2 RZB ZMD16C ZDK Boards The three RZB ZMD16C ZDK boards are pre programmed with ZigBee demo firmware to provide a demo and evaluation environment for wireless ZigBee connectivity based on Renesas MCUs See section 5 0 for more details Hardware Hardware 4 3 RF Sniff...

Page 9: ...tend to develop and debug your own software If not powered by the ICD the kit s ZDK boards can be powered by the included battery packs 4 7 Software Development Tools The installer program offers you the option to install all the development tools For details on installation see the QuickStart Guide or instructions in Appendix A of this manual A brief description of all the included tools follows ...

Page 10: ...B Flash over USB Programmer The Flash Over USB Programmer application provides In System Programming capability for the starter kit or any target board using an M16C family flash MCU e g R8C M16C M32C Please see the RTA FoUSB MON User s Manual for more details RZB ZMD16C ZDK User s Manual Rev 1 2 10 33 August 2006 ...

Page 11: ...ote The RZB ZMD16C ZDK board is referred to as RZB ZMD28 BRD on the board s silkscreen and schematic drawing Figure 5 1 shows the RZB ZMD16C ZDK Board with major components identified Figure 5 1 RZB ZMD16C ZDK Board RZB ZMD16C ZDK User s Manual Rev 1 2 11 33 August 2006 ...

Page 12: ...e 5 2 RZB ZMD16C ZDK Block Diagram 5 3 M16C 28 Group of MCUs The M3028x group of 16 bit single chip flash microcontrollers MCU is part of the M16C 60 series CPU core The hardware and software manuals for the M16C 28 group of microcontrollers can be found under C Renesas RZB_ZMD16C_ZDK Docs folder on your PC or from the Start menu Start Programs Renesas RZB_ZMD16C_ZDK All Manuals and Documents afte...

Page 13: ...y with a KS0066 controller IC 5 6 ZigBee RF The ZigBee RF circuit utilizes a ZMD 44102 900MHz IEEE 802 15 4 compliant transceiver IC 6 0 Limitations of the ZbRom System The following is a list of limitations for the ZbRom system Due to the nature of this evaluation system the MCU resources that you can use for your own application development are restricted In addition many of the configurations a...

Page 14: ...tInt3Int long funct_addr DMA 0 void SetDma0Int long funct_addr DMA 1 void SetDma1Int long funct_addr 6 4 Flash and RAM Usage The memory areas shaded in turquoise are available for your use Table 6 2 Flash Memory Usage Flash Address Range Usage 0xFF800 0xFFFFF FoUSB Monitor Area 2KB 0xE8000 0xFF7FF User code const space 30KB 0xC0000 0xE7FFF ZbROM Area stack and RTOS 64KB 0x0F7FF 0x0FFFF User Data F...

Page 15: ...USB programming software Please make sure that the address you pick is unique and different from any address used by your other ZDK boards 6 8 ZbROM Flash Size The ZbROM area contains the ZigBee protocol stack and the RTOS used by the stack The ZbROM image occupies the two lower 32kBytes MCU Flash memory blocks for a total of 64kBytes This allocation was done to prevent the code from being erased ...

Page 16: ... of all the nodes currently on the network It is updated only by the coordinator define MAX_BOOK_ENTRIES 32 RECEIVE BUFFER define RX_BUFF_SIZE 256 Circular buffer size for data payload all data is held in this one buffer define RX_BUFF_ENTRIES 16 Number of buffered packet that can be queued up 6 12 Other Limitations The RZB ZMD16C ZDK provides sophisticated debugging features at a low cost but it ...

Page 17: ...iscussed from section 7 2 onward After starting a HEW debug session the ICD uploads the kernel to the M16C 28 if it does not exist e g a blank device or a device that was programmed with the FoUSB Programmer After downloading the kernel the M16C 28 is ready to download user code Connecting the ICD without starting HEW will not affect the signal lines connected between the ICD and the M16C 28 the I...

Page 18: ...egister contents are modified in any way kernel operation cannot be guaranteed Table 7 2 Limitations on Register Operation Register Name Restriction User and Interrupt Stack Pointers RAM memory range 02380H 023FFH is used by the kernel Do not set stacks in this area UART1 Transmit Receive Mode Register UART1 Transmit Receive Control Register 0 UART1 Transmit Receive Control Register 1 Do not chang...

Page 19: ...er than 250 kHz 7 7 User Program s Real Time Capability Please be aware that while the kernel is in a STOP state the hardware peripherals will continue to run Therefore interrupts may not be serviced properly In addition the watchdog timer will not be serviced and will likely time out if active While the kernel is in a RUN state there is no overhead on the application code unless a RAM monitor win...

Page 20: ...ton connected to Reset SW1 Power source select switch If set toward the ICD connector power provided by ICD If set toward the power connector power provided via power connector LEDs D1 Red User output connected to P3_4 D2 Yellow User output connected to P3_5 D3 Green User output connected to P3_6 D4 Red Power On if jumper JP2 shorted LCD 2 line 8 character LCD with KS0066 controller IC 8 2 Power S...

Page 21: ...install the USB drivers so that the ICD is not recognized An indication of this problem is the faster blink rate of the ICD s yellow Status LED of about 2 3 times per second When the driver is installed properly the yellow Status LED only blinks every second Before trying the following steps try re starting your PC to see if this resolves the problem You can check the USB Driver status using the W...

Page 22: ...same time as HEW can also result in erratic debug behavior Lastly having more than one ICD installed can also cause erratic problems or cause HEW to crash A 3 2 Cannot Connect to Target When the message Can t connect with the target is displayed when attempting to connect there are several reasons that may have caused this message to appear Each cause and its corresponding countermeasure is discus...

Page 23: ...on Registers SFRs Do not change UART1 SFRs in your code Breakpoints do not seem to work System is in FreeRun mode Change the RUN mode to Sampling from the Init window Emulator System icon HEW locks up cannot stop program or Communication error message is displayed Changes were made to the UART1 SFRs Do not change UART1 SFRs in your code Ensure that no limitations in Section 6 were violated Re init...

Page 24: ...he reset button on the ZDK board Click the HEW Reset icon After initialization debugging can resume However it is recommended that you download your program again before debugging RZB ZMD16C ZDK User s Manual Rev 1 2 24 33 August 2006 ...

Page 25: ...C language programming guide for the M16C 20 60 series MCU 7 M16C 20 60 Series Assembler Language Programming Manual Assembly language programming guide for the M16C 20 60 series MCUs 8 HEW User s Manual This document describes installation and operation of this Integrated Development Environment for Renesas Tools 9 AS30 User s Manual Guide for AS30 assembler 10 NC30 User s Manual Guide for NC30WA...

Page 26: ...mapping of J1 J4 pins to MCU pins and signal names J1 Pin MCU Pin MCU Function J2 Pin MCU Pin MCU Function 1 1 P95 AN25 CLK4 1 21 P76 TA3out 2 2 P93 AN24 2 22 P75 TA2in W 3 3 P92 TB2in 3 23 P74 TA2out W 4 4 P91 TB1in 4 24 P73 2 CTS 2 RTS TA1in V TXD1 5 5 P90 TB0in 5 25 P72 CLK2 TA1out V RXD1 6 6 26 P71 RxD2 SCL TA0in CLK1 7 7 27 P70 TxD2 SDA TA0out 8 8 28 P67 TxD1 9 9 29 P66 RxD1 10 10 30 P65 CLK1...

Page 27: ...0 8 48 P23 OUTC13 INPC13 8 68 P107 AN7 3 KI 9 49 P22 OUTC12 INPC12 9 69 P106 AN6 2 KI 10 50 P21 OUTC11 INPC11 SCLMM 10 70 P105 AN5 1 KI 11 51 P20 OUTC10 INPC10 SDAMM 11 71 P104 AN4 0 KI 12 52 P17 5 INT INPC17 IDU 12 72 P103 AN3 13 53 P16 4 INT IDW 13 73 P102 AN2 14 54 P15 3 INT TRG AD IDV 14 74 P101 AN1 15 55 P14 15 75 AVss 16 56 P13 AN23 16 76 P100 AN0 17 57 P12 AN22 17 18 58 P11 AN21 18 78 AVcc ...

Page 28: ... circuit board schematic and Bill Of Materials BOM are available as separate PDF documents They can be accessed through Start Programs Renesas RZB_ZMD16C_ZDK Board Hardware or by browsing to the folder C Renesas RZB_ZMD16C_ZDK Docs ZDK_Manuals and opening the files RZB_ZMD28_BRD_BOM pdf RZB_ZMD28_BRD_Schematic pdf RZB ZMD16C ZDK User s Manual Rev 1 2 28 33 August 2006 ...

Page 29: ...D1 P70 TxD2 SDA TA0out P71 RxD2 SCL TA0in CLK1 P72 CLK2 TA1out V RXD1 P73 C RTS2 TA1in V TXD1 P74 TA2out W P75 TA2in W P76 TA3out P77 TA3in P80 TA4out U P81 TA4in U P82 INT0 P83 INT1 P84 INT2 Zphase P85 NMI SD P86 Xcout P87 Xcin P90 TB0in P91 TB1in P92 TB2in P93 AN24 P100 AN0 P101 AN1 CNVss P102 AN2 P103 AN3 P104 AN4 KI0 P105 AN5 KI1 P106 AN6 KI2 P107 AN7 KI3 Vss Vref AVcc Vcc Xin Xout RESET P07 A...

Page 30: ...VDD N C N C N C N C N C ALE RD WR SCK CLKO DA0 DA1 DA2 DA3 DA4 DA5 DA7 DA6 DVSS AVSS AVSS AVSS AVSS MISO MOSI RTC1 RTC2 RFIO RFO LPF2 LPF1 RSN XTAL1 XTAL2 GPD SS IRQ N C C35 1uF C46 DNI C6 3900pF C2 22pF C49 1 8pF C34 100pF U1 LP2992AIM5 2 5 1 5 2 3 4 Vin Vout GND ON OFF BYPASS R20 0 1 2 C13 10uF C28 43pF C32 15pF L2 8 2nH C48 1 8pF C47 0 1uF F1 FIDUCIAL F2 FIDUCIAL R4 100K 1 2 C8 0 01uF Y3 24 MHz...

Page 31: ...Applications Engineering Appendix E RZB ZMD16C ZDK Printed Circuit Board Figure E 1 PCB Top View RZB ZMD16C ZDK User s Manual Rev 1 2 31 33 August 2006 ...

Page 32: ...Applications Engineering Figure E 2 PCB Bottom View RZB ZMD16C ZDK User s Manual Rev 1 2 32 33 August 2006 ...

Page 33: ...urces 1 For details on how to use the In Circuit Debugger and Programmer please see the RTA FoUSB MON User s Manual Start All Programs Renesas RZB_ZMD16C_ZDK RTA FoUSB Mon Manual 2 For updates and other evaluation tools and sample programs for the RZB ZMD16C ZDK Kit see http america renesas com zigbee ...

Reviews: