Home
Renesas HEW Target User's Manual
Contents
1. Powerful Processors Easy to Use HEW larget Server Demo Kit User s Manual Rev 1 0 December 2007 44 NESAS Table of Contents 1 0 Preface iii e no n a deae E 3 A As CAUTIONS M T TT 3 1 2 Trademarks dees te A ee dera a pea pd edet amd 3 LS Ee del 3 20 Introduction EE 3 3 0 Gontents of Product Package 4 is ree A ete tener 4 3 1 HATS Demo Kit Item List edo rep ote Pet tr Er det e Ee PARRA 4 o il ODROM mE LA o RD IE tua A A IE o UE A 4 4 0 Limited Guarantee and Ee ojo o r r 5 RER le LEE 6 5 1 Host Computer Requirement eene enne aa aa ana n eren nnne ener nennen nnns 7 5 2 HT S Demo Kit Boards a TA A 7 5 3 Software Development Tools eee on ee ee 00000000 tr eee n nn eene enne nennen rnnt nnn enne 7 9 3 1 HEW High performance Embedded Workshop see eme 7 5 3 2 NC30WA Evaluation Version C Compiler ee eee nn 7 9 953 HEW Debug Blue Ee 7 5 3 4 Flash Development Toolkit sess emere nennen enne 7 6 0 Hardware eet ee Ree estet vibe Pa a dede eh bes var Lease 8 0 1 HTS DBemio Kit Board goes eeh tec ae leet eye bae e d re ete beg 8 6 2 HTS Demo Kit Board Block Diaoram nennen nnne nnns 9 6 3 M16C 26A Group of MGUS reno ee oed detest ee tend e ia Pea aes ea baeo eene eb rae et dead 9 7 0 System Operation amp Limitations sse nennen nemen neret nennen nennen 10
2. 7 1 Kernel ROM Monitor Introducton no o rn nnne nennen 10 7 2 Pin and Peripheral Limitations enne ener nennen nn nennen 10 7 3 Memory Map idt ete ttc v VY de at v ei ai v neuve v k 11 7 4 Register Operation Limitations rr cnc canon cnn naar nn na area nenne enne enne 12 7 5 Limitations on Interrupts Vectors that Reside in the Hardware Vector Table 12 7 6 Stop or Wait Mode Lumttatons nn emere nennen nnne nennen 12 7 7 User Programs Real Time Capability Very Important Please Read eee 12 7 8 Performing Debug Using Symbols eee eee eee ener nenne nennen 13 8 0 HTS Demo Kit Board Specifications o o nennen 14 8 1 Hardware Speciiications 2 m an ain eC ede DC ebd ust d adh nee dicke tod 14 92 HTS Demo Kit Status LED uss i ia et ee Do et RO ID ee etre Bio Ta Ee 14 8 3 Power Supply Requirements no o s nme ersten nnne rennen innen nennen 14 8 4 Power Up Behavior oinnes A tin quta treo endet au ia 14 98 5 Operating Envirorimient dL P E ie do REG EO E PEE e EC EO E EE ave cde vana 15 Appendix A Expansion Headers nn ttc TN na 16 Appendix B Board Schematic amp BON 17 Appendix C HTS Demo Kit Printed Circuit Board 20 HTS Demo Kit V1 0 December 2007 s ENESAS 1 0 Preface 1 1 Cautions This document may be wholly or partially subject to change without notice All rights reserved No one is permitted to reproduce or duplicate in any
3. Renesas website http www America Renesas com HTS 3 Online User Forums FAQs technical papers downloads and more at http renesasrulz com 4 Renesas Technical Support Center email at techsupport rta renesas com General information on Renesas Microcontrollers can be found at the following URL http www renesas com HTS Demo Kit V1 0 5 20 December 2007 44 NESAS 9 0 System Connectivity The following lists the hardware and software products required for using the HTS Demo Kit Host Computer supplied by user HTS Demo Kit Board Mini USB cable Software Tools HEW IDE NC30 Compiler Linker Flash Development Toolkit Programmer Optional Hardware User supplied Stereo Headphones or amplified speaker s Tm 1777 ZN A8 6 83288 333 aa UW Renesas HTS Demo Board MISE Target MCU ra r mI PC with Windows XP or Vista Figure 5 1 HTS Demo Kit Connectivity HTS Demo Kit V1 0 6 20 December 2007 s ENESAS 5 1 Host Computer Reguirements The minimum requirement to be able to use the software that comes with the HTS Demo Kit is a PC with a USB port and Microsoft Windows XP or Vista 5 2 HTS Demo Kit Board The HTS Demo Kit board provides an evaluation and development environment for the M16C family MCUS See section 6 0 Hardware for more details 5 3 Software Development Tools The installer program installs all the development tools For details on installation see the QuickStart Guide A
4. Kit board and the board s ICD MCU HD64F2215RUBR Do not connect these pins to any other circuit as SIO UART 1 cannot be used in the user program while using the Debugger HTS Demo Kit V1 0 10 20 December 2007 44 NE SAS 7 3 Memory Map The amount and locations of memory used by the kernel on the HTS Demo Kit board s M16C 26A MCU are shown in Figure 7 1 00000h SFR Area 00400h Internal RAM User RAM Area 1920 Bytes 2 kByt 00BFFh yses Note Kernel RAM location can be 00C00h Reseved Kernel RAM user defined in HEW Reserved 128 Bytes OEFFFh OFOOOh High E W Block Note User programs must 4kBytes not access shaded areas OFFFFh Flash Data 10000h Reserved User Program Area Kernel Program 2 kBytes EFFFFh F0000h Flash ROM 64kBytes Note Kernel Program memory location can be user defined in HEW FFFFFh Figure 7 1 M30260F8AGP Memory Map with the Kernel Program When the High performance Embedded Workshop is used in Download emulator firmware mode a dialog box is displayed that allows you to place the kernel anywhere in the available user RAM and Flash ROM Specify an area that is not used by your application software When the High performance Embedded Workshop is started in Does not download emulator firmware mode the program area for the emulator kernel cannot be changed because the previous setting remains effective When you need to change the progra
5. Switches S1 Pushbutton connected to P9 0 TB0in LEDs D1 Amber AMB User LED connected to P7 2 D2 Green Debugger Status Power D3 Green GRN User LED connected to P7 4 D4 Orange ORG User LED connected to P7 6 D5 Red RED User LED connected to P7 0 Photo Sensor R17 Connected to AN1 analog input Audio Amplifier U8 LM4808 Stereo Amplifier connected to PWM Timer outputs TA2out and TA3out 8 2 HTS Demo Kit Status LED The green Status LED D2 indicates operating status of the HTS Demo Kit board The board s HD64F2215RUBRHP MCU that controls the In Circuit Debugging and Programming functionality of the board also controls the LED The LED is on when the board is connected to a USB port and receives power 8 3 Power Supply Requirements The HTS Demo Kit Board is powered by the USB bus It will draw about 50mA with no LEDs on 8 4 Power Up Behavior The audio example tutorial code is pre programmed into the Renesas M16C 26A microcontroller If connected to a computer s USB port without having installed the required Renesas software tools and drivers the board s RED and AMB user LED s will flash in an alternating pattern The green Status LED and the GRN and ORG user LEDs will be on The RED and AMB LED s blinking frequency will vary with the light intensity measured by the board s photo sensor HTS Demo Kit V1 0 14 20 December 2007 44 NESAS 8 5 Operating Environm
6. Undefined FFFDCh FFFDFh User available Overflow FFFEOh FFFE3h User available BRK Instruction FFFE4h FFFE7h User inhibited Address Match FFFE8h FFFEBh User inhibited Single step FFFECh FFFEFh User inhibited Watchdog Timer FFFFOh 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 Heset vector to FFFD8h 7 6 Stop or Wait Mode Limitations The kernel cannot be run in STOP or WAIT modes Do not use these modes when debugging your program 7 7 User Program s Real Time Capability Very Important Please Read 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 HTS Demo Kit V1 0 12 20 December 2007 s ENESAS When RAM Windows or Variable Watch Windows are refreshed significant target processing time is consumed during which user application code is not executed Use caution in using refreshing windows as it affects the real time behavior of your ap
7. brief description of all the included tools follows Please refer to the individual tool manuals for detailed information 5 3 1 HEW High performance Embedded Workshop HEW provides a Graphical User Interface GUI that integrates the software development tools and includes the C compiler assembler linker debugger and editor 5 3 2 NC30WA Evaluation Version C Compiler The evaluation version of the M3T NC30WA C compiler is provided with the same functionality as the commercial version except that link size will be restricted to 64 kBytes after 60 days from when you begin using the compiler Contact your local sales representative if you wish to purchase a full license 5 3 3 HEW Debug Interface HEW communicates with a kernel i e a ROM monitor program on the target MCU through the ICD This debug interface provides a highly efficient evaluation environment Features include Source level debugging for assembly and C language Single step command unlimited breakpoints Run command with 6 breakpoints for the M16C 26A RAM monitor function C variable watch window 9 e o o o Note The number of breakpoints will vary depending on the M16C Flash MCU used 5 3 4 Flash Development Toolkit The Flash Development Toolkit 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 Flash Development Toolkit User Guide
8. form a part or this entire document without the written permission of Renesas Technology Corporation 1 2 Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations 1 3 Copyright Renesas Technology Corporation 2007 All rights reserved Website http www renesas com 2 0 Introduction The Renesas HEW Target Server HTS Demo Kit is a low cost development environment for evaluating M16C family microcontrollers MCU and Renesas software development tools The kit comes with a complete software development tool chain for Renesas MCUS including High performance Embedded Workshop HEW which consists of Integrated Development Environment IDE Graphical User Interface GUI and Software Debugger NC30WA C compiler assembler and linker and Flash Development Toolkit FDT programming software The HTS Demo Kit features on board in circuit debugging and programming support eliminating the need for an external In Circuit Debug ICD unit All that is required for in circuit debugging and programming with the HTS Demo Kit is a USB connection to a PC and the included development tool software A real time source level debug environment is implemented using the HEW software debug interface in conjunction with the HTS Demo Kit board The Flash Development Toolkit Programmer software allows in system programming of the HTS Demo Kit board s M16C 26A
9. Flash MCU The HTS Demo Kit board features an M16C 26A group MCU switch LEDs photo sensor serial external Flash and audio amplifier circuit for user experiments Example application code and peripheral device initialization code are provided on CD ROM This manual provides the technical details of the HTS Demo Kit hardware The Quick Start Guide provides details on the software installation and usage of the debugging environment HTS Demo Kit V1 0 3 20 December 2007 44 NESAS 3 0 Contents of Product Package This section describes the contents of the HTS Demo Kit product package When unpacking your HTS Demo Kit please check to see that all items listed below are included 3 1 HTS Demo Kit Item List Table 3 1 lists the items included in the HTS Demo Kit Table 3 1 HTS Demo Kit Item List Item Name HN Remarks HTS Demo Kit board M16C based board with integrated in circuit debugging VM programming support 3 Mini USB Cable Connects HTS Demo Kit board to Host PC CD ROM Auto install program HEW IDE 8 debugger NC30WA C compiler assembler and linker Flash Development Toolkit Programming Software USB drivers Manuals Tutorials Sample programs 3 1 1 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 Browser or Microsoft Internet Explorer to view the help files and Adobe Ac
10. V1 0 16 20 December 2007 s ENESAS Appendix B Board Schematic amp BOM The circuit board schematic and Bill Of Materials BOM are available as separate PDF documents They can be viewed via Start gt Programs gt Renesas gt HTS Demo Kit or by browsing to the folder C Program Files Renesas Hew HTS Demo Kit Docs and opening the files HTSdemoKit RevB pdf HTSdemoKit BOM RevB pdf HTS Demo Kit V1 0 17 20 December 2007 EEEZERERE x o Ka tf HTS Demo Kit V1 0 18 20 December 2007 OOOOO rid Eid Rid Dabit 2 2001 1008 19 20 December 2007 HTS Demo Kit V1 0 Appendix C HTS Demo Kit Printed Circuit Board s ENESAS c o m E uo33ngusng MI6C Tiny IT q TTE Tru mm E E mi i na m m eamm sm ja Zeg erum m co HN Mad Bee eum m T 1s u m m tano izom m Sub GE FMBSLNI B41LGY ramu OBUTIYL ZSLU LO 4NOTYL ZNTJ OBUTOVL 20x4 EO 3n0091 z0x1 FTT ENY Renesas HTS Demo Board ZD OTA NY SG EI you 00G arget MCU E11 miim amit J L n a D DI o A b U u C279 Figure E 1 PCB Top View 20 20 December 2007 HTS Demo Kit V1 0
11. ent Table 8 2 lists the environmental conditions for using and storing the HTS Demo Kit board Store the board in a conductive bag inside the original factory packaging Table 8 2 Operating and Storage Environments Ambient Humidity Environmental Condition Ambient Temperature Operating 0 to 55 C 30 to 8096 non condensing No corrosive gas allowed Storage 30 to 75 C 30 to 8096 non condensing No corrosive gas allowed HTS Demo Kit V1 0 15 20 December 2007 434 NESAS Appendix A Expansion Headers The M30260F8AGP MCU on the HTS Demo Kit target board is housed in a 48 pin QFP package Pin 1 of the package is identified by the number 1 on the board s top silkscreen The MCU I O solder pads located below the Renesas HTS Demo Board sticker provide access to some of the MCU s pins You can use MCU I O as test points to check MCU signals or by mounting your own header to connect your own external circuitry The silkscreen identifying the connectors is at the top of the HTS Demo Kit board The following table shows the mapping of MCU I O solder pads to MCU pins and signal names UF s Vec 11 46 Vec Vrer AVac 47 AN4 40 P10 AN4 Klo ANS 39 P105 ANs KL TxD2 25 P7o TxD2 TAOour RxD2 24 P74 RxD gt TAON CLK2 23 P74CLK TA1our V RTS2 22 P7JCTS RTS TAN V ADTrg 36 P1s INT AD tro IDV GND 9 44 V JAV 5 HTS Demo Kit
12. for more details HTS Demo Kit V1 0 7 20 December 2007 41 NESAS 6 0 Hardware 6 1 HTS Demo Kit Board Figure 6 1 shows the HTS Demo Kit Board with major components identified Mini USB Power Status Connector LED M User LEDs ML 4 Pushbutton AN Photo Sensor Audio tiit Amplifier S MC16C 26A MCU M30260F8A GP Serial Flash Headphone Jack Figure 6 1 HTS Demo Kit Board HTS Demo Kit V1 0 8 20 December 2007 s ENESAS 6 2 HTS Demo Kit Board Block Diagram The HTS Demo Kit board incorporates an M30260F8AGP 48 pin GFP from the M16C 26A group of microcontrollers designated as U6 Figure 5 2 shows the HTS Demo Kit block diagram Photo Sensor U3 Xin Xout XCin XCout HD64F2215RUBR MCU In System Debugging amp User LEDs Programming U6 Red Amber Green Orange M30260F8AGP LED LED LED LED Power MCU U9 AT26DF081 SIO UART O P7 6 Serial Flash E U8 LM4808 Audio Amplifier MCU I O Header Figure 6 2 HTS Demo Kit Block Diagram Stereo Phonejack 6 3 M16C 26A Group of MCUs The M16C 26A group of 16 bit single chip Flash microcontrollers MCU is part of the M16C Tiny family and utilizes an M16C 60 series CPU core The hardware and software manuals for the M16C 26A group of microcontrollers can be found in the C Program Files Renesas Hew Manuals Renesas PDFs folder on your PC from the Start menu Start gt Programs gt Renesas gt HTS Demo Kit
13. m area for the emulator kernel restart the High performance Embedded Workshop in Download emulator firmware mode HTS Demo Kit V1 0 11 20 December 2007 s ENESAS 7 4 Register Operation Limitations Table 6 2 lists the limitations on register operation The registers are inhibited from any modification If register contents are modified in any way kernel operation cannot be guaranteed Table 7 2 Limitations on Register Operation Register Name User and Interrupt Stack Pointers Restriction RAM memory range 0B80H OBFFH is used by the kernel Do not set stacks in this area UART1 Transmit Receive Mode Register Do not change UART1 Transmit Receive Control Register 0 UART Transmit Receive Control Register 1 UART Interrupt Control Register 0 Do not change UART Transmit Receive Control Register 2 Do not change bits 0 and 2 UART Transmit Buffer Register Do not write to this register UART Receive Buffer Register Do not read this register Port 6 and Port 6 DDR To prevent changes on P6 4 data and direction use read modify write only instructions BSET BCLR AND OR etc 7 5 Limitations on Interrupts Vectors that Reside in the Hardware Vector Table Table 7 3 lists the limitations on hardware interrupt i e fixed vector addresses Table 7 3 Interrupt Vector Addresses Interrupt Cause M16C 26A Vector Address Kit Specification
14. or from the HEW Manual Navigator after HTS Demo Kit software installation HTS Demo Kit V1 0 9 20 December 2007 s ENESAS 7 0 System Operation amp Limitations The HTS Demo Kit board provides sophisticated debugging features at a low cost via its on board in circuit debugging and programming circuitry ICD For M16C boards without on board debugging programming circuitry Renesas offers the functionally equivalent standalone E8 in circuit debugger programmer You can find detailed information on the E8 and its functionality in the E8 Emulator User s Manual which you can view via the HEW Manual Navigator The HTS Demo Kit board does have some limitations when used with the HEW software debugger and the board s ICD circuit 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 Please Refer To 7 2 Pin and Peripheral Limitations 7 3 Memory Map User Limitations 7 4 Register Operation Limitations 7 5 Limitations on Interrupts Vectors that Reside in the Hardware Vector Table 7 6 Stop or Wait Mode Limitations The kernel cannot be run in STOP or WAIT modes Do not use these Debugger Limitations modes when debugging your program 7 7 User Program s Real Time Capability 7 1 Kernel ROM Monitor Introduction During debug a small prog
15. plication code 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 Lol 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 lt OK gt button For more information see the HEW user s manual HTS Demo Kit V1 0 13 20 December 2007 44 NESAS 8 0 HTS Demo Kit Board Specifications 8 1 Hardware Specifications Table 8 1 lists the specifications of the HTS Demo Kit Board Table 8 1 HTS Demo Kit Board Specifications Item Specification MCU M30260F8AGP Clocks Main Clock 5 MHz resonator PLL or ring oscillator Sub Clock 32 768 kHz crystal Memory RAM 2kB 1920 Bytes user available due to kernel High E W Data Block 2kB x 2 Flash ROM 62kB 63 744 Bytes U9 AT26DF081A 8 Megabit Serial Flash connected to UARTO SIO Connectors E8 SW1 2 pin solder pads to mount Boot Mode header MCU 10 9 pin single row solder pads to access selected MCU pins J1 Mini USB connector for connection of board to PC J2 Stereo Phone jack connected to board s audio amplifier
16. ram called a kernel is uploaded to the M16C 26A M30260F8AGP MCU The kernel communicates with HEW through the ICD portion of the HTS Demo Kit board regarding MCU status during user code debugging operations There are no special steps required in the user program to make use of the ICD portion The operation of the kernel is transparent to the user but there are some limitations These are discussed from section 7 2 onward After starting a HEW debug session the ICD uploads the kernel to the M16C 26A if it does not already exist e g on a blank device or a device that was programmed with the Flash Development Toolkit Programmer After downloading the kernel the M16C 26A is ready to download user code Connecting the HTS Demo Kit board without starting HEW will not affect the signal lines connected between the ICD MCU HD64F2215RUBR and the M16C 26A the ICD MCU keeps the signal lines in high impedance state The ICD MCU only drives the pins after HEW or the Flash Development Toolkit Software attempts to connect After completing program debug and verification with HEW you can create an image of your code in Intel hex or Motorola mot file formats This image can be programmed into the M16C 26A using the Flash Development Toolkit programming software This procedure erases the kernel and leaves only the user program 7 2 Pin and Peripheral Limitations SIO UART pins are used for communication between the M16C 26A kernel on the HTS Demo
17. robat Reader to view the manuals Insert the enclosed CD into your computer and the installer should auto start The installer program will create the C Workspace folder on your machine HEW and Flash Development Toolkit programming software are installed in the c Program Files Renesas folder by default If the installer program does not start browse to the CD s root folder and double click on HTSdemoKit installer exe to start the installation See the QuickStart Guide for more details HTS Demo Kit V1 0 4 20 December 2007 44 NESAS 4 0 Limited Guarantee and Support Renesas Technology America Inc warrants the HTS Demo Kit to be free from component or assembly defects for a period of 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 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 Support for the HTS Demo Kit is provided via the following channels 1 HEW Target Server Contest website http www Renesaslnteractive com HTScontest2008 2
Download Pdf Manuals
Related Search
Related Contents
Harbor Freight Tools Diesel Engine Compression Tester 20 Pc Product manual Copyright © All rights reserved.
Failed to retrieve file