background image

Applications Engineering 

 
 

Table 7-3: Interrupt Vector Addresses 

Interrupt Cause 

M16C/28 Vector Address 

Kit Specification 

Undefined 

FFFDCh ~ FFFDFh 

User available 

Overflow 

FFFE0h ~ FFFE3h 

User available 

BRK Instruction 

FFFE4h ~ FFFE7h 

User inhibited 

Address Match 

FFFE8h ~ FFFEBh 

User inhibited 

Single-step 

FFFECh ~ FFFEFh 

User inhibited 

Watchdog Timer 

FFFF0h ~ FFFF3h 

User available  (Note 1) 

DBC 

FFFF4h ~ FFFF7h 

User inhibited 

NMI 

FFFF8h ~ FFFFBh 

User available 

RESET 

FFFFCh ~ FFFFFh 

Reset vector  (Note 2) 

 

NOTES: 

(1)  The Watchdog Timer vector is shared with the oscillation stop and voltage detection interrupts. 
The vector is available for oscillation stop and voltage detection interrupts, but you must avoid using 
the vector for watchdog timer interrupts. 
(2)  The kernel transparently relocates the Reset vector to FFFD8H. 

7.6. Stop or Wait Mode Limitations 

While running the kernel with an application that uses “STOP” or “WAIT” modes, care must be taken not 
to communicate with the MCU while “STOP” or “WAIT” is active (avoid RAM monitor or memory window 
refreshes, for example). Breakpoints (if used) should be set at points in the code where it is known that 
the BCLK is running at a frequency greater 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 

window is open. This window requires periodic communication with the MCU. This communication 
suspends normal application operation while servicing the request (approximately 2000 BCLK cycles for 
each 16 bytes of data displayed in the window are used per window update). The user must determine 
whether this behavior is acceptable. 

7.8. Performing Debug Using Symbols 

Normally when a new project is created using HEW, debugging symbols are enabled.  If you are unable 
to view the source properly during debug, add the debug option [-g] in HEW before compiling the 
programs.  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.  

  Click on the checkbox for [-g] ‘Outputs source debug information…’ 

  Click on the [OK] button 

 
For more information, see the HEW user’s manual. 
 

 

RZB-CC16C-ZDK User’s Manual Rev 1.1 

21/ 39 

December 2006 

 

Summary of Contents for 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: ...gs 12 5 2 Limitations of the ZigBee Evaluation System 13 5 2 1 Timers 13 5 2 2 System Clock 13 5 2 3 Interrupts 13 5 2 4 Flash and RAM Usage 13 5 2 5 MAC Address Area 14 5 2 6 ZbROM Flash Size 14 5 2...

Page 3: ...Behavior 24 A 3 2 Cannot Connect to Target 24 A 3 3 Issues that May Arise During Debug Operations 25 Appendix B Updating the ZigBee Development Kit ZDK Board Firmware 27 B 1 Programming the ZDK Board...

Page 4: ...nterface between the ZDK boards and the host PC This interface reduces resource requirements on the M16C 28 MCU and allows faster code downloads It also can be used with many other Renesas Flash MCUs...

Page 5: ...ers 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 1 1 CD...

Page 6: ...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 h...

Page 7: ...are and USB driver ZigBee ZigBee Router ZigBee Router Coordinator RF Sniffer USB Dongle Figure 4 1 ZigBee Demo Setup Optional only required if you want to update firmware and or develop code In Circui...

Page 8: ...to provide a demo and evaluation environment for wireless ZigBee connectivity based on Renesas MCUs See section 6 0 for more details Hardware 4 3 RF Sniffer Interface RFSI The RF Sniffer Interface RFS...

Page 9: ...nt tools and includes the C compiler assembler linker debugger and editor 4 6 2 NC30WA Evaluation Version C Compiler The evaluation version of the M3T NC30WA C compiler is provided with the same funct...

Page 10: ...atch is quite involved and the detailed steps to do this are not discussed in this manual To create a new ZigBee application using the HEW project wizard you have two options 1 You can use the ZEK Dem...

Page 11: ...the function AppGetNextRxPacket to retrieve the data payloads that were saved in the circular buffer by the AppDataIndication function It is recommended that you follow the same procedure for processi...

Page 12: ...tion define DEMO_CHANNEL 24 define SCAN_CHANNELS DWORD 0x1 DEMO_CHANNEL Only scan our demo channel define SCAN_CHANNELS 0x7FFF800 Scan every channel ASCII Input define MAX_SERIAL_INPUT 20 Address Book...

Page 13: ...MHz The ZigBee stack assumes that the MCU is running at this operating frequency Please do not make any changes to the clock 5 2 3 Interrupts The interrupt vector table is located in the ZigBee stack...

Page 14: ...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 by the debugger when downloadi...

Page 15: ...able 15 0 Broadcast Transmission Table 20 20 5 2 11 Other Limitations The RZB CC16C ZDK provides sophisticated debugging features at a low cost but it does have some limitations when used with the HEW...

Page 16: ...ote 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 CC16...

Page 17: ...6 2 RZB CC16C ZDK Block Diagram 6 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 fo...

Page 18: ...RS232 transceiver and Power LED For normal operations JP2 must be shorted JP2 is shorted by default 6 4 3 Default Jumper Settings Table 6 1 Default Jumper Settings Jumper Default Setting JP1 MCU Powe...

Page 19: ...scussed 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 Prog...

Page 20: ...gister 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 0...

Page 21: ...r 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 p...

Page 22: ...n 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 c...

Page 23: ...is that Windows did not properly 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...

Page 24: ...re that one instance of HEW is open during a debug session erratic behavior can result Running the FoUSB Programmer at the same time as HEW can also result in erratic debug behavior Lastly having more...

Page 25: ...ations Table A 3 Problem Possible Cause s and Solution After stepping a few instructions HEW cannot stop Changes were made to the UART1 Special Function Registers SFRs Do not change UART1 SFRs in your...

Page 26: ...alog 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 However it is recommended that you downl...

Page 27: ...led USB monitor code it will prompt you to update that code However before you click OK on the popup window that offers to update your ICD you must determine the correct course of action Is the ICD s...

Page 28: ...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 6 A popup window displays the ID code of the firmware file you just...

Page 29: ...100 mil jumper This will configure the ICD to run in boot mode when it is powered up Figure C 2 Boot Jumper Location 12 Make sure that the power switch is set to the USB position so that the unit is...

Page 30: ...onitor Image MMI to the RTA FoUSB Mon Figure C 4 Chip Selection Window 17 Unplug the USB Cable remove the jumper and enclose the board back into its case Now re attach the ribbon cable to your target...

Page 31: ...language programming guide for the M16C 20 60 series MCU 7 M16C 20 60 Series Assembly Language Programming Manual Assembly language programming guide for the M16C 20 60 series MCUs 8 HEW User s Manua...

Page 32: ...pping 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...

Page 33: ...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 IN...

Page 34: ...ng 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...

Page 35: ...54 53 52 43 42 41 40 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 8 7 5 4 3 2 76 74 6 73 72 71 70 69 68 11 77 78 13 12 10 9 60 61 62 63 55 56 57 58 59 32 33 34 35 1 80 79 AVss P20 OUTC10 INP...

Page 36: ...DD_RAM N C N C N C N C N C FIFO FIFOP CCA SFD CSn SI SCLK VCO_GUARD AVDD_VCO AVDD_PRE AVDD_RF1 AVDD_SW AVDD_RF2 AVDD_IF2 AVDD_XOSC AVDD_CHP AVDD_IF1 SO RESETn VREG_EN ATEST2 ATEST1 GND RF_P TXRX_SWITC...

Page 37: ...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: ...ources 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 oth...

Reviews: