Renesas RZB-ZMD16C-ZDK manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Renesas RZB-ZMD16C-ZDK, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Renesas RZB-ZMD16C-ZDK one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Renesas RZB-ZMD16C-ZDK. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Renesas RZB-ZMD16C-ZDK should contain:
- informations concerning technical data of Renesas RZB-ZMD16C-ZDK
- name of the manufacturer and a year of construction of the Renesas RZB-ZMD16C-ZDK item
- rules of operation, control and maintenance of the Renesas RZB-ZMD16C-ZDK item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Renesas RZB-ZMD16C-ZDK alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Renesas RZB-ZMD16C-ZDK, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Renesas service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Renesas RZB-ZMD16C-ZDK.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Renesas RZB-ZMD16C-ZDK item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Applications Engineering ZigBee Demo Kit (ZDK) RZB-ZMD16C-ZDK User’s Manual Version 1.2 August 2006 www.renesa s.com[...]

  • Page 2

    Applications Engineering Table of Contents 1.0 Introdu ction ............................................................................................................................................. 4 2.0 Contents of Product Package ................................................................................................ ................[...]

  • Page 3

    Applications Engineering 8.3. Operating Environm ent ..................................................................................................... ............... 20 Appendix A. Troubles hooting Guide .............................................................................................. ............. 21 A.1 Manual In stallation ....[...]

  • Page 4

    Applications Engineering 1.0 Introduction The RZB-ZMD16C-ZDK kit is a low-cost ZigBee dem onstration kit for evaluating wi reless ZigBee connectivity solutions based on the Re nesas M16C/28 grou p of microcontrollers (MCU). A small ZigBee Personal Area Network (PAN) can be set up, monitored and analyze d with the included hardwar e and softw are. T[...]

  • Page 5

    Applications Engineering 2.0 Content s of Product Package This section describe s the contents of the RZB- ZMD16C-Z DK product package . When unpacki ng your RZB-ZMD16C-ZDK, please che ck to see that all items listed below are incl uded. 2.1. RZB-ZMD16C-ZDK ZigBee De m onstration Kit Item List Table 2-1 Table 2-1 RZB-ZMD16C-Z DK Item List lists the[...]

  • Page 6

    Applications Engineering 3.0 Limited Guarantee and Support Renesas Technology America, Inc., warrants the RZB-ZMD16 C-ZDK to be free from component or assembly defects for a pe riod of 180 days from the date of purchase. Settlement is limite d to repair or replacement of the product only. Renesas Te chnology America, Inc., does not as sume any liab[...]

  • Page 7

    Applications Engineering 4.0 System Connectivity The following lists the hardware and software produ cts required for using the RZB-ZMD16C-ZDK ZigBee Demonstration Kit. • Host Computer (supplied by user) • Three RZB-ZMD16C -ZDK Boards • Three battery packs with AA batteries • RF Sniffer Board • RF Sniffer Interface (RFSI) • Mini USB cab[...]

  • Page 8

    Applications Engineering Optional (only required if you want to update firmware and/or develop code). • In-Circuit Debugger and Programme r (ICD) • Mini USB cable for ICD • 2×5 header target cable for ICD • Software Tools (HEW IDE, NC30 Comp iler/Linker, FoUSB Programmer) Figure 4-2 Figure 4-2 ZDK Development Sy stem Connectivity shows an [...]

  • Page 9

    Applications Engineering on the board hardware, and the RF Sniffer Use r’s Manual for more information on RF Sniffer usage and features. 4.4. RF Sniffer Interface (RFSI) The RF Sniffer interface is an RTA-F oUSB-MON unit that comes pre-program med with firmware to allow the RF Sniffer software running on the Host PC to take control of the RF Snif[...]

  • Page 10

    Applications Engineering *Note: The number of breakpoints will va ry dependi ng on the M16C flash MCU used. 4.7.4. FoUSB (Flash-over-USB ™ ) Programmer The Flash Over USB Programmer application provides In-Syste m Program ming capability for the starter kit or any target bo ard using an M16C fam ily flash MCU (e.g. R8C, M16C, M32C). Please see th[...]

  • Page 11

    Applications Engineering 5.0 Hardware 5.1. ZDK Board (RZB-ZMD16C-ZDK) Note:The RZB-ZMD16C-ZDK boa rd is referred to as RZB-ZMD28-BRD on the board' s silkscreen and schematic drawing. Figure 5-1 shows the RZB-ZMD1 6C-ZDK B oard with major components identified. Figure 5.1: RZB-ZMD16C-Z DK Board RZB-ZMD16C-ZDK User’ s Manual Rev 1.2 11/ 33 Aug[...]

  • Page 12

    Applications Engineering 5.2. RZB-ZMD16C-ZDK Board Block Diagram The RZB-ZMD16C-ZDK board incorp orates an M30280FAHP (80-pin QFP) from the M16C/28 group of microcontrollers designat ed as U4. Figure 5 -2 shows the RZB-ZMD1 6C-ZDK block diagram. S1 S2 S3 S4 R3 RT1 R44 P10_4 P10_5 P10_6 Reset AN2 AN1 AN0 Y1 10MHz Y2 32kHz Xin Xout XCin XCou t U4 M30[...]

  • Page 13

    Applications Engineering 5.4.2. JP2: Power LED (D4) and RS232 (U7) Transceiver Pow er JP2 is used to conne ct the Vcc pin of the RS232 tra nsceiver chip (U7) to the 3. 3V supply of the board. It also connects the red P ower LED (D4) to the bo ard’s supply. It can be used to reduce the board’ s power consumption by disconnec ting the RS232 tran [...]

  • Page 14

    Applications Engineering 6.2. System Clock After reset, the main system clock (denoted in the spec as f1) is set up to run at 20MHz. The ZigBee stack assumes that the M CU is runni n g at this operating frequency. Please do not make any changes to the clock. 6.3. Interrupts The interrupt vector table is located in the ZigB ee stack and real-time op[...]

  • Page 15

    Applications Engineering 6.6. Global Variable RAM Usage You may create as many global variabl es for your us er program a s RAM space is available (896 bytes). A virtual RAM section at the start of the debugger’ s RAM has been created to wa rn you if you try to allocate too much global RAM. Below is an example of t he linker warning you will rece[...]

  • Page 16

    Applications Engineering 6.11. Customization of Demo Program Settings The following definitions can be ch anged at the top of the ZDK_Demo.c file to fit your requirements. /* ZigBee Configuration */ #define DEMO_CHANNEL 1 #define SCAN_CHANNELS ((DWORD)0x1 << DEMO_CHANNEL) /* Only scan our demo channel */ //#define SCAN_CHANNELS 0x7FFF800 /* S[...]

  • Page 17

    Applications Engineering 7.0 System Operation & Limit ations The RZB-ZMD16C-ZDK provides sophi sticated debug ging 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 ker nel is running with the user prog[...]

  • Page 18

    Applications Engineering Reserved SFR Area Inter nal RAM Area - 8kB Reserved User Flash ROM A rea - 96kB User RAM Ar ea = 8064 Bytes User Program Area - 94kB Kernel Program Special Pag e Are a Fixed Vector Are a 00000h 00400h 023FFh E8000h FFFFFh FF900h Kernel RAM (128 Bytes) Note: User programs must not use shaded areas. FFE80h FFFDCh High E/W 2kB[...]

  • Page 19

    Applications Engineering Table 7-3: Interrupt Vector Addresse s Interrupt Cause M16C/28 Vector Address Kit Specification Undefined FFFDCh ~ FFFDFh User available Overflow FFFE0h ~ FF FE3h User available BRK Instruction FFFE4h ~ FFFE7h User inhibited Address Match FFFE8h ~ FFFEBh User inhibited Single-step FFFECh ~ FFFEFh User inhibited Watchdog Tim[...]

  • Page 20

    Applications Engineering 8.0 RZB-ZMD16C-ZDK Board S pecifications 8.1. Hardware Specifications Table 8-1 Table 8-1: RZB-ZMD16C-ZDK Board Specificatio ns lists the specifications of the RZB-Z MD16C-ZDK Board. Item Specification MCU M30280FAHP Clocks Main Clock: crystal 10 MHz, PLL, or ring oscillator Sub Clock: 32.768 kHz crystal Memory (ICD) RAM: 8[...]

  • Page 21

    Applications Engineering Appendix A. T roubleshooting Guide This section discusses possible p roblems you ma y encounter while installing the development tool software, USB drivers, or running the HEW debugge r and FoUSB Programmer applications. This section also discusses the countermeasures an d solutions to resolve these problem s. For troublesh[...]

  • Page 22

    Applications Engineering If you encounter problems on installing the drive rs, you can try the following: Windows 2000 a. Copy the fousb.inf and usbmon.inf files from the C:RenesasFoUSBUSB Drivers folder to the WINNTINF folder. b. Copy the fousb.sys and usbmon.sys files from the C:RenesasFoUSBUSB Drivers folder to the WINNTSYSTEM32driver[...]

  • Page 23

    Applications Engineering • USB was not selected on the HEW Init dialog b ox. Please select ‘USB’ from the Init dialog box that is displayed right after you start a debug session. • The selected MCU on the ICD board an d the ac tual target MCU (M16C/28) do not match. Close the error message by clicking o n the ‘OK’ bu tton, then click on[...]

  • Page 24

    Applications Engineering • Press the reset button on the ZDK board. • Click the HEW Reset icon . After initialization, debugging can resume. However, it is recommende d that you downl oad your program again before debugging. RZB-ZMD16C-ZDK User’ s Manual Rev 1.2 24/ 33 August 2006[...]

  • Page 25

    Applications Engineering Appendix B. Reference Manuals Item Title Description 1. Renesas ZigBee Demonstration Kit (ZDK)Quick Start Guide Document that will help yo u get started on using the ZigBee Demonstration Kit. 2. RZB-ZMD16C -ZDK User’s Manual This document. 3. RF Sniffer User's Manual Document describing t he ZigBee RF Sniffer hardwar[...]

  • Page 26

    Applications Engineering Appendix C. Exp ansion Headers The M30280FA MCU on the RZB-ZMD 16C-Z DK target board is housed in an 80-pin QFP pa ckage. Pin 1 of the package is identified by a li ttle 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. Y ou can use J[...]

  • Page 27

    Applications Engineering J3 Pin MCU Pin MCU Function J4 Pin MCU Pin MCU Function 1 41 P6 2 /RxD 0 1 61 P0 6 /AN 06 2 42 P6 1 /CLK 0 2 62 P0 5 /AN 05 3 43 P6 0 / 0 CTS / 0 RTS 3 63 P0 4 /AN 04 4 44 P2 7 /OUTC1 7 /INPC1 7 4 64 P0 3 /AN 03 5 45 P2 6 /OUTC1 6 /INPC1 6 5 65 P0 2 /AN 02 6 46 P2 5 /OUTC1 5 /INPC1 5 6 66 P0 1 /AN 01 7 47 P2 4 /OUTC1 4 /INP[...]

  • Page 28

    Applications Engineering Appendix D. Board Schematic & BOM Note:The RZB-ZMD16C-ZDK board is referred to as RZB-ZMD28-BRD on the board's silkscree n and schematic drawing. The circuit board schematic and Bill-Of-Materials (B OM) are available as separat e PDF documents. They can be accessed through Start > Programs > Renesas > RZB_[...]

  • Page 29

    Applications Engineering RZB-ZMD16C-ZDK User’ s Manual Rev 1.2 29/ 33 August 2006 5 5 4 4 3 3 2 2 1 1 D D C C B B A A In Circuit Debug por t 3. 4V t o 16. 0V In p ut Vo l t ag e SCH-9063-04 E RZB-ZMD 28-BRD Zigbee D evelopment Kit B 12 Friday, July 14, 2006 Title Siz e Document Number Rev Date: Sheet of DVDD_3.3V DVDD_3.3V DVDD_5.0V DVDD_3.3V DVD[...]

  • Page 30

    Applications Engineering 5 5 4 4 3 3 2 2 1 1 D D C C B B A A NOTE: SEPARATE XTAL CIRCUIT FROM LOOP FILTER AS FAR AS POSSIBLE. BEST WITH ONE ON BOTTOM, ONE ON TOP. 50 OHM TRACE SCH-9063-04 E RZB-ZMD28- BRD Zigbee Devel opment Kit B 22 Friday, July 14, 2006 Title Siz e Document Number Rev Date: Sheet of VDD_2.5V DVDD_3.3V VDD_2.5V VDD_2.5V VDD_2.5V V[...]

  • 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

    Applications Engineering RZB-ZMD16C-ZDK User’ s Manual Rev 1.2 33/ 33 August 2006 Appendix F. Other Resources 1. For details on how to use the In-Circuit Debugger and Prog rammer, please see the RTA-Fo USB-MON User’s Manual (Start > (All) Prog rams > Rene sas > RZB_ZMD16C_ZDK > RTA-FoUSB-Mon Manual). 2. For updates and other evaluat[...]