Table of Contents

Advertisement

Quick Links

Applications Engineering
ZigBee Demo
Kit (ZDK)
RZB-CC16C-ZDK
User's Manual
Rev. 1.1
December 2006
www.renesas.com

Advertisement

Table of Contents
loading

Summary of Contents for Renesas ZigBee Demo RZB-CC16C-ZDK

  • Page 1 Applications Engineering ZigBee Demo Kit (ZDK) RZB-CC16C-ZDK User’s Manual Rev. 1.1 December 2006 www.renesas.com...
  • Page 2: Table Of Contents

    Applications Engineering Table of Contents 1.0 Introduction ............................. 4 2.0 Contents of Product Package......................... 5 2.1. RZB-CC16C-ZDK ZigBee Demonstration Kit Item List ..............5 2.1.1. CD-ROM............................5 3.0 Limited Guarantee and Support ......................6 4.0 System Connectivity ..........................7 4.1. Host Computer Requirements ......................8 4.2.
  • Page 3 Applications Engineering 7.7. User Program’s Real-Time Capability ..................... 21 7.8. Performing Debug Using Symbols ....................21 8.0 RZB-CC16C-ZDK Board Specifications ....................22 8.1. Hardware Specifications........................22 8.2. Power Supply Requirements ......................22 8.3. Operating Environment........................22 Appendix A. Troubleshooting Guide......................23 A.1 Manual Installation ...........................
  • Page 4: Introduction

    ZigBee network. For more information on the RF Sniffer software and hardware, see the RF Sniffer User’s Manual, accessible via Start > (All) Programs > Renesas > RF SnifferV.x.xx A RTA-FoUSB-MON Flash Programmer and In-Circuit-Debugger (ICD) included in the kit allows you to re-program the demo boards and to run and debug code.
  • Page 5: Contents Of Product Package

    Insert the enclosed CD into your computer and the installer will auto-start. The installer program will create C:\Renesas and C:\Workspace folders on your machine. NC30WA, FoUSB Programmer, Documentation, sample code, and other ZDK-related files are in the C:\Renesas folder. HEW is installed in the C:\Program Files folder by default.
  • Page 6: Limited Guarantee And Support

    180 days from the date of purchase. Settlement is limited to repair or replacement of the product only. Renesas Technology America, Inc., does not assume any liability arising out of the application or use of any product, circuit or procedure described herein. No other liability or warranty applies, expressed or implied.
  • Page 7: System Connectivity

    Applications Engineering 4.0 System Connectivity The following lists the hardware and software products required for using the RZB-CC16C-ZDK ZigBee Demonstration Kit. • Host Computer (supplied by user) • Three RZB-CC16C-ZDK Boards • Three battery packs with AA batteries • RF Sniffer USB Dongle •...
  • Page 8: Host Computer Requirements

    USB port and Microsoft Windows 98, ME, 2000, or XP. 4.2. RZB-CC16C-ZDK Boards The three RZB-CC16C-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 “6.0 Hardware ”...
  • Page 9: In-Circuit Debugger And Programmer (Icd)

    Applications Engineering 4.5. In-Circuit Debugger and Programmer (ICD) The ICD provides a plug-and-play debugging and programming interface to the ZDK board via the host computer’s Universal Serial Bus (USB). The USB port also provides power to the ZDK boards and ICD, thereby eliminating the need for an external power supply.
  • Page 10: Zigbee Evaluation Kit (Zek)

    ZigBee APIs before attempting to create a project using the “Empty Project” generator. See the ZigBee Stack API Specification document (Start > Programs > Renesas > RZB_CC16C_ZDK > All Manuals and Documents) for a detailed description of the available ZigBee API functions.
  • Page 11: Zek_Demo.c File

    ZbRom_CC28_RFD_Vxx.mot). 5.1.2. ZEK_Demo.c File The file ZEK_Demo.c, in the C:\Renesas\RZB_CC16C_ZDK\Sample_Code\ZEK_Demo\ZEK_Demo directory, contains the C-source code for the entire ZEK demo application. Reset Initialization: After the MCU comes out of RESET, the RTOS and ZigBee stack are initialized and then the user task function app_task() is called. This function would contain your user application code.
  • Page 12: Customization Of Settings

    Applications Engineering Phase M16C Linker starting C:\WorkSpace\test\test\sect30_zek28.inc(186) : Warning (ln30): C:\WorkSpace\test\test\Coord_Router\_ncrt0_zek28.r30 : 'DATA' section 'debugger_NE' is overlapped on the 'bss_NE' from 2380H to 2380H 5.1.5. Customization of Settings The following definitions can be changed at the top of the ZEK_Demo.c file to fit your requirements. /* ZigBee Configuration */ #define DEMO_CHANNEL 24...
  • Page 13: Limitations Of The Zigbee Evaluation System

    Applications Engineering 5.2. Limitations of the ZigBee Evaluation System The following is a list of limitations for the ZigBee Evaluation System (ZEK) platform. Due to the nature of this evaluation system, the MCU resources that you can use for your own application development are restricted.
  • Page 14: Mac Address Area

    C:\Renesas\RZB_CC16C_ZDK\Sample_Code\ZEK_Demo directory for your project. These start-up files will greatly minimize the complexity of correctly initializing the MCU and locating your user program code and data into the available memory areas. 5.2.5. MAC Address Area Every 802.15.4 radio needs a globally unique 64-bit MAC address. Therefore, your ZDK boards have been pre-programmed with such an address.
  • Page 15: Zigbee Stack Table Sizes

    The RZB-CC16C-ZDK provides sophisticated debugging features at a low cost, but it does have some limitations when used with the HEW software debugger and ICD. Those limitations are described in more detail in the RZB-CC16C-ZDK User manual (Start > (All) Programs > Renesas > RZB_CC16_ZDK > All Manuals and Documents).
  • Page 16: Hardware

    Applications Engineering 6.0 Hardware 6.1. ZDK Board (RZB-CC16C-ZDK) Note:The RZB-CC16C-ZDK board is referred to as RZB-CC28-BRD on the board's silkscreen and schematic drawing. Figure 5-1 shows the RZB-CC16C-ZDK Board with major components identified. Figure 6-1: RZB-CC16C-ZDK Board RZB-CC16C-ZDK User’s Manual Rev 1.1 16/ 39 December 2006...
  • Page 17: Rzb-Cc16C-Zdk Board Block Diagram

    The hardware and software manuals for the M16C/28 group of microcontrollers can be found under C:\Renesas\RZB_CC16C_ZDK\Docs folder on your PC or from the Start menu (Start > Programs > Renesas > RZB_CC16C_ZDK > All Manuals and Documents) after ZDK software installation.
  • Page 18: Jp2: Power Led (D4) And Rs232 (U7) Transceiver Power

    Applications Engineering 6.4.2. JP2: Power LED (D4) and RS232 (U7) Transceiver Power JP2 is used to connect the Vcc pin of the RS232 transceiver chip (U7) to the 3.3V supply of the board. It also connects the red Power LED (D4) to the board’s supply. It can be used to reduce the board’s power consumption by disconnecting the RS232 transceiver and Power LED.
  • Page 19: System Operation & Limitations

    Applications Engineering 7.0 System Operation & Limitations The RZB-CC16C-ZDK provides sophisticated debugging features at a low cost, but it does have some limitations when used with the debugger and ICD. Section 6.1 introduces the kernel (ROM monitor) program and its purpose. The limitations when this kernel is running with the user program are listed in Table 7-1 Table 7-1: System Limitations when Debugging Item...
  • Page 20: Register Operation Limitations

    Applications Engineering 00000h SFR Area 00400h 00400h User RAM Area Internal RAM Area - 8kB = 8064 Bytes 0237Fh 023FFh 02380h Kernel RAM (128 Bytes) Reserved 023FFh 0F000h High E/W 2kB data block Note: User programs must 0F800h not use shaded areas. High E/W 2kB data block 10000h...
  • Page 21: Stop Or Wait Mode Limitations

    To enable the [-g] option, perform the following: • Open the workspace and project in HEW. • Select [Renesas M16C Standard Toolchain] from the Options pull-down menu. • Click on the [Link] tab. • Select [Output] under the [Category] list box.
  • Page 22: Rzb-Cc16C-Zdk Board Specifications

    Applications Engineering 8.0 RZB-CC16C-ZDK Board Specifications 8.1. Hardware Specifications Table 8-1 lists the specifications of the RZB-CC16C-ZDK Board. Table 8-1: RZB-CC16C-ZDK Board Specifications Item Specification M30280FAHP Clocks Main Clock: crystal 10 MHz, PLL, or ring oscillator Sub Clock: 32.768 kHz crystal Memory RAM: 8kB (8064 Bytes user available due to kernel) (ICD)
  • Page 23: Appendix A. Troubleshooting Guide

    NOTE: If you are using Windows 2000 or XP, you will need Administrator privileges to be able to install the drivers. For cases where “Renesas FoUSB ICD” appears with a red X or yellow exclamation point in the Windows Device Manager, please try the following: 1.
  • Page 24: Debugging Problems

    If you encounter problems on installing the drivers, you can try the following: Windows 2000 a. Copy the fousb.inf and usbmon.inf files from the C:\Renesas\FoUSB\USB Drivers folder to the \WINNT\INF folder. b. Copy the fousb.sys and usbmon.sys files from the C:\Renesas\FoUSB\USB Drivers folder to the \WINNT\SYSTEM32\drivers folder.
  • Page 25: Issues That May Arise During Debug Operations

    Applications Engineering ‘Target’ position. The target board then must be provided with its own power supply and the target board’s power switch must be on in the correct position (toward the power connector). • USB was not selected on the HEW Init dialog box. Please select ‘USB’...
  • Page 26 Applications Engineering • Click the [OK] button on the error dialog box to close it. • When an Exit dialog box appears, click the [Cancel] button to close it. • Press the reset button on the ZDK board. • Click the HEW Reset icon. After initialization, debugging can resume.
  • Page 27: Appendix B. Updating The Zigbee Development Kit (Zdk) Board Firmware

    ICD connector. 3. Connect the ICD to the USB port of your PC 4. Start the FoUSB software (Start > All Programs > Renesas > Flash-Over-USB V.x.xx > FoUSB Programmer). To be able to program a target board successfully, both the selected MCU type of the FoUSB programming software and the MCU Monitor Image (MMI) loaded into the ICD must be identical to the MCU type that is on your target board.
  • Page 28 MCU type without having to select the device. Click Open in the left of the FoUSB program window and browse to the directory in which the demo firmware is stored (C:\Renesas\RZB_CC16C_ZDK\Demo).Select the firmware file ZDK_Demo_Vxx.mot, where xx is the version number of the code.
  • Page 29: Appendix C. Updating The Rta-Fousb-Mon Firmware

    USB Driver when doing this procedure for the first time. The Windows New Hardware Wizard should automatically start and guide you through the installation of the required USB driver. The driver is located in C:\Renesas\FOUSB\USB Drivers. 14. Open the Flash-Over-USB program. Note that the MCU device name displayed in green on the front screen will automatically change to M37641F8 (the MCU inside the RTA-FoUSB-Mon) without having to select that device.
  • Page 30 Applications Engineering Figure C-3: Load MMI Button 16. Select the MCU device of your target board to which you want to connect the RTA-FoUSB-Mon as an In-Circuit Debugger (not the MCU of the RTA-FoUSB-Mon unit) and click the OK button to load the selected MCU Monitor Image (MMI) to the RTA-FoUSB-Mon.
  • Page 31: Appendix D. Reference Manuals

    Manual. NOTE: The installer will copy all these manuals during installation. They can be accessed using the Document Descriptions file by clicking on Start > Programs > Renesas > RZB_CC16C_ZDK > Document Descriptions. RZB-CC16C-ZDK User’s Manual Rev 1.1 31/ 39...
  • Page 32: Appendix E. Expansion Headers

    Applications Engineering Appendix E. Expansion Headers The M30280FA MCU on the RZB-CC16C-ZDK target board is housed in an 80-pin QFP package. Pin 1 of the package is identified by a little white circle on the board’s top silkscreen. Connectors J1 to J4, located around the MCU, provide access to almost all of the MCU’s pins.
  • Page 33 Applications Engineering MCU Function MCU Function /RxD /CLK CTS / /OUTC1 /INPC1 /OUTC1 /INPC1 /OUTC1 /INPC1 /OUTC1 /INPC1 /OUTC1 /INPC1 /OUTC1 /INPC1 /OUTC1 /INPC1 /SCL /OUTC1 /INPC1 /SDA INT /INPC1 /IDU /IDW INT / /IDV AVss AVcc OUT4 RZB-CC16C-ZDK User’s Manual Rev 1.1 33/ 39 December 2006...
  • Page 34: Appendix F. Board Schematic & Bom

    The circuit board schematic and Bill-Of-Materials (BOM) are available as separate PDF documents. They can be accessed through Start > Programs > Renesas > RZB_CC16C_ZDK > Board Hardware, or by browsing to the folder C:\Renesas\RZB_CC16C_ZDK\Docs and opening the files: RZB_CC28_BRD_BOM.pdf...
  • Page 35 Applications Engineering RZB-CC16C-ZDK User’s Manual Rev 1.1 35/ 39 December 2006...
  • Page 36 Applications Engineering C119 68pF C118 0.1uF C117 0.1uF C116 0.1uF C115 0.1uF C114 68pF C113 0.1uF C112 0.1uF RZB-CC16C-ZDK User’s Manual Rev 1.1 36/ 39 December 2006...
  • Page 37: Appendix G. Rzb-Cc16C-Zdk Printed Circuit Board

    Applications Engineering Appendix G. RZB-CC16C-ZDK Printed Circuit Board Figure E-1: PCB Top View RZB-CC16C-ZDK User’s Manual Rev 1.1 37/ 39 December 2006...
  • Page 38 Applications Engineering Figure E-2: PCB Bottom View RZB-CC16C-ZDK User’s Manual Rev 1.1 38/ 39 December 2006...
  • Page 39: Appendix H. Other Resources

    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_CC16C_ZDK > RTA-FoUSB-Mon Manual). 2. For updates and other evaluation tools and sample programs for the RZB-CC16C-ZDK Kit, see: http://america.renesas.com/ZigBee.

Table of Contents