Home

User`s Manual

image

Contents

1. gt Specify this item if wishing to manage multiple TN projects together in function units If nothing is specified this item is the same as the workspace file name Microcontroller Name gt Specify the name of the microcontroller to be used Device Name The concrete information set here is E Specify the name of the device to be used described on the following pages 58 TK 850 HG3 User s Manual New WorkSpace Step 1 9 Workspace Information E x Input the workspace information Workspace File Name setting as follows test x 391 Workspace Information 2 Select Tools Create Blank Workspace 3 Select RealTime OS Folder Workspace file name CATKE5OMest Browse 4 Startup File tt Project Group Name 5 Register Mode H test i ee ta B Link Directive File Fo d er Microcontrollers Name Device Narne 7 Setup Source Files 850 Series uPD70F3757 8 z n C XTK850Xtest S 9 Confirmation Device Instal t 850 Microcontrollers Only 4 6 Project Group Name no input This will set up the basic information about the workspace and the project Microcontroller Name V850 Series dara D Cancel Help Click button Device Name uPD70F3752 x PM A 02011 CATRGSOstest This folder cannot be found Do you wish to create it Click button New WorkSpace Step 2 9 Select Tools i I x
2. iml d o By loading the sample programs you can confirm running the board Input output for operation check use Seg LED Push switch TK 850 HG3 User s Manual Overview Reader Purpose This manual consists of the following contents Read chapter 1 and 2 first for installing the development tools and using the sample programs Read chapter 3 5 for customizing the sample programs and the hardware Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Preparations Install the development tools Experiences Experience the basic operations of integrated development environment PM and integrated debugger ID850QB EZ with using sample programs Hardware Specifications Explain the hardware of TK 850 HG3 Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger ID850GB EZ Other Information Introduce other information such as how to create a new workspace project on integrated development environment PM how to register additional source file and some useful tips of the integrated debugger The circuit diagrams of demonstration kit are included in this chapter This manual is intended for development engineers who wish to become familiar with the development tools for the V850 It is assumed that the readers have been familiar with basics of microcontrollers C and Assembler languages and the Windows operating system Th
3. 0 M chri a a gt mee os LLC CLL Le pe TIED 2 Us ON MM S lcm m immi REB E Li f a p P ox Wit e p po Cu r pa i u E 2 U E CG ti ve AS A a A yyy o 2 Se ees TEREE 40 TK 850 HG3 User s Manual 2 8 Start Debugger ID850QB EZ Click the debug button zi or select Build on menu bar then Debug If you do not see the debug button go to 2 7 Check Debugger Settings for changing the settings The steps to start the debugger will be explained below pp PM SAMPLE_HG3 prw OutPut I E x File Edit Find Layer View Project Build Tool Window Help amp DG MW amp ie We ole gt Bm SAMPLE HG3 SAMPLE HG3 m bewgsui amp k sm xw m Fies Memo isl SAMPLE_HG3 1 Project s 2 6 SAMPLE HG3 zi Source Files H E Include Files Project Related Files i Other Files ID850QB EZ is launched For Help press F1 pj n ais 41 TK 850 HG3 User s Manual Configuration dialog is opened Follow the settings below and click OK Enter 4 in Main OSC Enter 8 in Multiply rate Enter FFFFFFFFFFFFFFFFFFFF F x 20 in ID Code Select UARTDO in Port at Target Device Connection area then click Z p ance D Pro
4. 32 TK 850 HG3 User s Manual Workspace name SAMPLE HG3 prw RA PM SAMPLE HG3 prw OutPut File Edit Find Laver View Project Build Tool Window Help DSM SA x T m Sh Load the workspace file SAMPLE HG3 prw mu MA m A E E i E0F Project group 3 Source Files J Include Files se C Project Related Files n Other Files l Project For Help press F1 AL The workspace file SAMPLE HG3 prw contains one project called SAMPLE HG3 You will use this project SAMPLE HG3 CAUTION Please ignore when you get a prompt saying files could not be found This may occurred when the installation directory is not a default 33 TK 850 HG3 User s Manual 2 4 Set Options The compiler options have been set by project file However because some compiler options are useful following two settings are covered specifically in this section Enable C comments On chip debug Desable Enable security ID Select Tools on menu bar then Compiler Common options 2 4 1 Extend Tab Select Device tab on Compiler Common Options window and check following settings Compiler Common Options E x File Startup Link Directive ROM Flash Device 256M Bute Mode BPE Heqgltster Bem 2 By checking this check box 256M6 mode is available When itis checked 256M option of the compiler the ass
5. Tool Set 1 Workspace Information 2 Select Tools Save Delete 3 Select Real Time OS Selected 14850 Series Software Package 4 20 English Versio Tool Versions 4 Startup File H 5 Register Mode H ID8500B Unused 6 Link Directive File ID8500B EZ Unused 7 Setup Source Files 8 Select Debugger 9 Confirmation tt 850 Microcontrollers Only 4 6 v Select only Installed Tools Detail Setting Please select the Tools from NEC Electronics to be used The following tools have been excluded from selection because they are not installed CA850 STK850 LDG ID850 IDS50N W SM850 SM for 850 TW 850 EIS Click Detail Setting button 59 TK 850 HG3 User s Manual Tool Yersion Detail Setting Select tools as above screenshot then click New WorkSpace Step 2 9 Select Tools Changed S elected01 V850 Series Software Package V4 20 En w 3 select heal lime US CA850 STK850 LDG IDS500B IDS50QB EZ v Select only Installed Tools Click 60 TK 850 HG3 User s Manual New WorkSpace Step 4 9 Startup File 3 select Heal lime US T TVS e BODY TOT D reuse BIOS e C AATKS50 test crtE s Press the button New WorkSpace Step 5 9 Register Mode 3 select heal lime WS Press the button 61 TK 850 HG3 User s Manual New WorkSpace Step 6
6. gt Bb aja Q stale Sall El Tel Source main c Search lt lt gt gt Watch Quick Refresh Close h_initialC gt o aCajaU aaaeaCalY EI gt CPUea 9iR i eT g led B g_ count B while 1 lt g_ start B TMBEQICB 8x47 y PICA 8x87 while g start gt amp vaiao PICO 8x47 Y WIMK 1 TMBEQICB 80x87 P9L 7 1 El lt while g start 1 gt x LENT Je 2 Ana A NF T When programs are running the status bar will be red 44 TK 850 HG3 User s Manual If you push SW3 the 7 seg LED segments rotates You push the SW4 and confirm the display of number after a while U2 7segLED hi lid amp i PETEN EEEE le ot 2 a TIMID T int F rj T 799 BN ked EP To Mew E k s se m En p ar VF N ph pa z aj AE mlt y pun m m w I S ss It f Tso COCO AMO Fe e Seo SW4 SW3 SW2 You could confirm the sample program is working The programs downloaded by ID850QB EZ cannot be used without ID850QB EZ connection For stand alone operation write the HEX file with FPL For more information about the FPL refer to 75 4 FPL document 45 TK 850 HG3 User s Manual 2 10 Stop Programs Now you are going to
7. 20 200KB PM 6 31 17 520 B P 6 30 Documents 9 24066 LOG 1 21 b 36KB LOG v1 21 Documents 3 135KB S5TK85U v2 13 256KB D85008 V850 Integrated Debugger W3 41 37 952KB Y E plain Drive Available Space El 82 803 BbAKB Destinations Required Space C Program Files NEC Electronics Tools Browse 135 651 KB 4 Click when Install comfirmation dialog box is opened INSTALL C 22 Install the Tools and DeviceFile Cancel 12 TK 850 HG3 User s Manual 5 Read software license agreement and click for continuing the installation To stop the installation click I Software License Agreement 6 Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard Please enter the product ID of the product stale 7 It starts copying the files 13 TK 850 HG3 User s Manual 8 When the installation is completed the following dialog opens Click x L Installation Finished y e T Cx p eee Notes on the installation authority To install this tool in Windows 2000 or XP the authority of an administrator is necessary Therefore please login as an administrator Notes on the install directory Please do not use 2 byte characters such as umlaut in the directory name where the product is to be installed Note on the version of Windows If the language of the Windows is not English a file transfer error during
8. count B while 1 gt lt gy start B TMBEQICB 8x47 PICA 8x87 while lt g start gt v l l PICA 0x47 UTMK 1 TMBEQICA 8x87 E P9L 7 1 l El while g start 1 M segLE y w main c 16 mai 100000004 0 0 msec 7 NOTE Completion of the download does not mean running the programs Therefore even though you press switch on the board it does not make anything happened To run the sample program demonstration see 2 9 Run Programs 43 TK 850 HG3 User s Manual 2 9 Run Programs Now you are ready to run the program Click the restart button or select Run on menu bar then Restart The sample program runs 2 ID8500B EZ SAMPLE HG3 prj File mem Option Run Event Browse Jump Window Help gt o gt 0 2 Bam me Oase mr En t i 5 E Source main c Search Ea al Watch Quick Refresh Close h_initialC gt o aCajaU aaaeaCalY E 5 E C x CPUes diR l i r g_led B g_ count B while 1 lt g start B TM9EGICA 68x47 E PICA 8x87 Run the sample program while lt g start B gt av lao ICO 8x47 WIMK 1 TMBEQICA AxA7 i P9L 7 1 h while g_start 1 gt 7eooLE 2 6 j4 ana A NF E main c 16 mai 100000004 0 0 msec 7 2 ID8500B EZ SAMPLE HG3 prj File Edit View Option Run Event Browse Jump Window Help i fam gt gt
9. following terminals CPU It s connected to GND if the switch is ON Set switch is on when you don t use terminals for A D input It becomes Low if the switch is ON and it becomes High if it is OFF SW Bits P78 P79 3 3 2 SW2 This is the reset switch You can reset the microcontroller by pressing this switch 3 3 3 SW3 INTPO SW3 is the push switch connected to P03 INTPO pin in CPU When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this you need to set the microcontroller built in pull up resistor option registers PUO to ON 3 3 4 SW4 INTP1 SW4 is the push switch connected to P04 INTP1 pin in microcontroller When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this you need to set the microcontroller built in pull up resistor option registers PUO to ON 3 3 5 LED1 POWER This is the POWER LED It is lighted when it gets power supply 52 TK 850 HG3 User s Manual 3 3 6 U2 7seg LED seg LED of U2 can be lit with P90 P97 Please set the port mode to the output and output Low signal from the port U2 P95 I P9 P94 l P93 The figure of 0 9 can be displayed by writing the following values in P9 register Example of displayed figure and set data o oo s o 6 oe OxA4 0
10. programs and environment setting are handled as a single project and series of actions such as program creation using the editor source management build and debugging are managed Also one of more project files is managed together as a workspace Menu bar Tool bar i PM No Workspace OutPut File Edit Find Layer View Project Build Tool Window Help B DOSH SR 4 ProjectWindow Files Memo Hes No Workspace For Help press F1 Project Window Output Window Project window A window in which project names source files and include file are displayed using a tree structure Output window A window in which the build execution status is displayed gt For details regarding menu bars and tool bars refer to Help menu in PM Help on menu bar then PM Help 30 TK 850 HG3 User s Manual What is a project A project is the unit that is managed by PM A project refers to an application system and environment development based on PM PM saves project information in a project file What is a project file A project file contains project information that includes the source files device name tool options for compiling editor and debugger information The file name format is xxxxx prj Project files are created in the directory you specifies when you create a new workspace What is a project group A project group is a group comprised of a number of projects in a
11. that the TK850 folder is made when this file is executed and the sample program is stored under the TK850 folder 17 TK 850 HG3 User s Manual 1 3 2 Overview of Sample Programs The sample programs consist of following folders SAMPLE HG3 SAMPLE_HG3 prw Work space file main c Source file 18 TK 850 HG3 User s Manual 1 4 Installation of USB Driver NEC Electronics Starter Kit Virtual UART USB driver must be installed on PC before you start using the TK 850 HG3 Please follow the instruction below to install the driver Starter Kit USB Driver must be installed on the PC If not please refer to 1 2 Installation of Development Tools to install the driver first GAUTION Do not use a USB hub for connecting TK 850 First connect the TK 850 to PC with USB Depending on the version of Windows OS the installation will be differed Please check your Windows version and follow the instructions Windows XP gt 1 4 1 Installation on Windows XP Windows 2000 gt 1 42 Installation on Windows 2000 After the installation go to 1 4 3 Completion of USB Driver Installation 19 TK 850 HG3 User s Manual 1 4 1 Installation on Windows XP 1 Once the TK 850 HG3 is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will searc
12. 50QB EZ Select File on menu bar then Exit 2 IDB5OOB EZ SAMPLE_HG3 prj File Edit View Option Run Event Browse Jump Window Help Open Ctr O p h Save As Close Download tch Quick Refresh Cloze Load Module jin ad h initialO ACAjauaaaeacay x Project 3 EI gt fx CPUERES Re i ey Environment k y led B qg count B Debugger Reset while 1 Exit og start Hi IMBEQICH Hx47 PICA HxH7 gt PICA Hx47 UTME 1 TMBEQGICH HxH N P9L 7 1 while qg start 1 gt lt segLE The exit confirmation dialog is displayed main c 33 main aodaascce 15m 59 815 Manual Break E 1055006 EZ k pa This will end your Debugger session Do vou want to save Ehe settings in the project File w coma If you click It saves the settings in the project file and then closes the ID850QB EZ It is recommended to save the settings as it saves the window you used window size layout etc If vou click it does not save the settings and closes the ID850QB EZ 47 TK 850 HG3 User s Manual Select File on menu bar then Exit PM 2 12 Quit PM jo PM SAMPLE_HG3 prw OutPut lO x File Edit Find Layer View Project Build Tool Window Help amo pe Jle eale RETTENT Insert file Debug Build Close OI x New Workspace X c Open Work
13. 814 qqA3 3n1 0 449 1SS IN VOXN rasn 79
14. 9 LinkDirective File 3 select heal lime WS m c DT OV SO BODY Tam DIOWSE e C ATKS50 test test dir Press the button New WorkSpace Step 7 9 Setup Source Files a select heal lime US HEmove Remove ll Up Down Press the button 62 TK 850 HG3 User s Manual mm WorkSpace Step 8 9 Select Debugger ID8500B EZ Vw 3 41 850 Integrated Debugger 3 select heal lime WS Press the button New WorkSpace Step 9 9 Confirmation 3 select Heal lime WS Press the button 63 TK 850 HG3 User s Manual is PM test prw OutPut File Edit Find Layer View Project Build Tool Window Help S Dae Si 2 Pe m Ar I RE P The test project has been registered Make file created successfully This completes workspace and project creation Additional source files can be registered at any time thereafter 5 For details refer to Registering additional source files Next setup the security ID In the PM Tool Compiler common Options is selected 15 PM test prw OutPut File Edit Find Layer View Project Build Tool Window E E ERE c HE EE i 2 D ki amp a a Common SERE md 5 lea 2 test test y Debu Compiler Options i gt X itd Assembler Options 21513 unker options ET Files Memo ROM Processor Option
15. AR T Click Finish ta close the wizard 6 Goto 1 4 3 Completion of USB Driver Installation 22 Click Finish TK 850 HG3 User s Manual 1 4 2 Installation on Windows 2000 1 Once the TK 850 HG3 is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver For a hardware device Click Next To continue click Next Back ose J Cancel 2 Select Search for a suitable driver for my device Click Found New Hardware Wizard Install Hardware Device Drivers device driver is a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device p USE Device A device driver i a software needs driver files for your nev device installation click Nest Select Search for a suitable driver for my Click Next Cancel What do vou want thg lzard to do Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can chod driver 23 TK 850 HG3 User s Manual 3 Select Specify a location Click Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files S
16. Ord S0d 0d 13838 L oana ae 8 d Lid Od3dAV GGA GQ 3 78 TK 850 HG3 User s Manual SZL00SOL ASHI JequinN 1ueunooq DH 0S8 ML 880 SHO L 13s38 amp lt gt gt s OF LMS 880 SHO L ax lt lt ST O v LMS MSL 024 qqA3 880 SHO L oana O Oz z LMS 3n1 0 YLO Eme 9 L LMS anyo MOL 023 62d aa asn qa asn aaaasn 90d k 6NdL endL Sad la E IUS ist 9zu noqawvi e I Em O O Znal 9NdL 0c E vad e M001 ES dd c NOASZLDZOATPLNS SzH 0d ve S pior Ge E E 3001 A paS ina O T DE eeu LOGZODEONIYZNS S abn 8 adaa NOASZLOZOANTHLNS end O zna OT ven 9 001 218 aa a gt u 3n1 0 3nr o 613 Ico aa asn 9IN0 204387 Qd 19d ondasn 09d wasn GlLGOO EdLNI ZEd dasn V 10090 2d1N1 L d oD3uasn PPA3 PPA SSA3 SSA LSOL ISIL d 90348 0SOL OSIL ZI d V0G90 IX L2 Ld LHOL 9 Ld 80090 4190X3 2X 23 Ld Sid oand 90XH v Ld 1dS3u 9QXL Eld INX3 0d1N1 03 Ld 0LOS ZLd 0001L 00d OLIS LLd 000L 0LOLL LOd 0LM9S OLd bd LNI OEd OL 6 ie 8 I LIS ea L OH ESAONSL3OISO MOL ved 9 noawis L H MOL EZH g L Z Es e aa asn Y Lad O O 3 sndl vndL z 0dd LOALODEOATPLNS L Z AS orn Hed aa a aa asn 190 00 89NTbZNS Z 91 vin 614 aa a aa Aasn ADASZLOLONTHLNS AS 08d H S0S 9d W18 L ASZ 4N p T AND aanasn lt 13938 1 3n10 SLO aa a lt OXY 001
17. Program Files NEC Electronics ToolsiCA850XW3 10Xbin ca850 E SAMPLE HG3 1 Project s C Program Files NEC Electronics Tools1CAS501W3 101bin1ca850 amp SAMPLE HG3 C Program Files NEC Electronics Tools Cas50 W3 10 bin ase50 H Source Files C Program Files NEC Electronics Tools Cas50 U3 10 bin as850 6 43 Include Files 4 C Program Files NEC Electronics Tools CA850 U3 10 bin 1d850 Project Related Files C Program Files NEC Electronics Tools Cas50 W3 10 bin hx850 c mm xj l varning s O EOF L LD 13500 Build completed normally A 4 Ny bikie y Build has been completed successfully 36 TK 850 HG3 User s Manual 37 TK 850 HG3 User s Manual 2 6 Check Debugger Settings After the build you should configure the debugger settings The debugger settings have been set by the project file as well However because those settings are important for debugging some settings are covered in this section Select Tools on menu bar then Debugger Setting Eos PM SAMPLE HG3 prw OutPut File Edit Find Layer View Project Build Tool Window Help 5 D a ki a I Compiler Common Options Section File Generator Options SAMPLE HG3 SAMPLE_HG3 v Debu Compiler Options Assembler Options Project Window DM Linker Options Files num ROM Processor Options Hexa Converter Options Static performance ana
18. User s Manual This chapter describes how to solve troubles you may face 4 1 If you cannot find USB driver when you connect PC to the kit Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if you installed NEC Electronics Starter Kit Virtual UART Driver in 1 4 Installation of USB Driver If not install the driver Check Point 3 If above 2 check points are confirmed disconnect the USB cable from PC and re connect again 4 2 Error when you start the debugger There could be several reasons to make errors happen The solving processes differ depending on errors Please check the error message first The solving processes for each error are as follows 4 2 1 Can not communicate with Emulator F0100 or A0109 Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if the settings of switches on the kit are correct with referring 2 7 Check Board Settings Check Point 3 Confirm the USB driver installation with referring to 1 4 Installation of USB Driver Check Point 4 If above 3 check points are confirmed close the debugger and disconnect the USB cable from PC Re connect USB cable properly to both the PC and the kit and then re start the debugger hh TK 850 HG3 User s Manual 4 2 2 Incorrect ID Code Ff603 This error occurs when the security ID stored on microcontroller built in flash memo
19. User s Manual TK 850 HG3 Date published May 2008 Rev 1 0 TESSERA TECHNOLOGY INC 2008 Printed in Japan TK 850 HG3 User s Manual Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries The information in this document is current as of February 2007 The information is subject to change without notice For actual design in refer to the latest publications of the product data sheets No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the cus
20. Z eee eee nr 47 O RE R ka 48 CHAPTERS HARDWARE SPECIFICA TON Sada 49 3 WIEAVOUERGOR hardware TUlieblOlis uso nid actio eser c ea AA dz Qa Rektor 90 3 2 Layout of solder short pad src NA E 50 9 9 Hardware FONGUORNG xad O a Me Debs o toD E Meo OMM DM tU um LEM 91 RS oT 51 ZA VN 02 333 We UNTRO m na 02 op m cU MP RIA osae 02 3 39 5 EDIS POWER Ita 52 390 U2 7seg LED uu uu u disidenti dud s ob bn dik on 53 YAP m O mu O O u n oa 53 9 EI A EE E E E A A AE PE EE AE E TE AT Na 53 So JNWIRE1GoOnnectoF asrki 53 TK 850 HG3 User s Manual oe solder Nort Dag abel ns k AA RO O O awan aa O ETE PT 54 CHAPTER 4 TROUBLESHOO T IN Quuu u 1 l L R n 55 4 1 If you cannot find USB driver when you connect PC to the kit 55 4 2 Error when you start the debugger U U U U ooo 55 4 2 1 Can not communicate with Emulator F0100 or A0109 J aa 55 4 2 2 Incorrect ID Code Ff603 anna 56 4 3 Monitor memory cannot be accessed F0c72 IIIa aaa 56 CHAPTER 5 OTHER INFORMA MON rain 57 AA o e A o ase ere 58 92 Register adaitiofidl SOUFGB filu u uuu u u u nu ooo 66 O O E aaa O P au 68 39 1 Ghanse display ot DUTON S unas 68 5 3 2 Display source hstand function Su e ose ner toten om t o ena ue ee o ee 68 5 3 3 Set delete breakpoints uuu un uu ete ted ete tp te etes te iz ta tata 69 3 29 44 Display globa
21. and the evaluation kit are available in PDF files When this button is clicked the WWW browser will start Adobe Acrobat Reader is available in the CD ROM lt 4 gt Sample Program Click this button to start the WWW browser for the sample program and the tutorial lt 5 gt Link to NEC Electronics Microcontrollers Click this button to start the WWW browser display the link to the NEC Electronics Microcontroller web site http www necel com micro index_e html The NEC Electronics Microcontroller web page provides with the latest product tool information and FAQs lt 6 gt Exit Terminate the setup 2 Click the Install 11 TK 850 HG3 User s Manual 3 Tool Installer dialog box is opened Select products that you need to install as default all the products that you need to use the TK 850 HG3 are selected Explain area displays an explanation of the selected product To change the installation destination click When all the settings are completed click Install In this document it is assumed that users install the programs under NEC Electronics Tools directory default installation directory Users can find the tools by selecting Start Menu gt Programs gt NEC Electronics Tools 3 Tool Installer X Z DeviceFile Install D eviceFile DF 703757 Vert 00 ki Search Z Tool Install Tools CASSO Ws 20 15 235FB LA 880 V3 20 Documents
22. bmersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers need to use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electronics willingness to support a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above CAUTION Do not give any physical damage to this equipment such as dropping Do not superimpose voltage to this equipment Do not use this equipment with the temperature below 0 C or over 40 C Make sure the USB cables are properly connected Do not bend or stretch the USB cables Keep this equipment away from water TK 850 HG3 User s Manual Take extra care to electric shock This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded u
23. ctronics Starter Kit Virtual UART driver is completed Found New Hardware Wizard Completing the Found New Hardware Wizard lt MEL Electronics Starter Kit Virtual LIAR T Windows has Finished installing the software for this device Click Finish To close this wizard click Finish Com Eancel 7 Go to 1 4 3 Completion of USB Driver Installation 25 TK 850 HG3 User s Manual 1 4 3 Completion of USB Driver Installation Gonfirm the USB driver is installed on PC Start Device Manager and find NEC Electronics Starter Kit Virtual UART without mark under the Ports COM LPT Device Manager L Computer Management QA mi Fie Action View Window Help le x e mm m PR m a OPTZIUL 4 Computer See Disk drives E Display adapters 5 DVDICD ROM drives 43 Human Interface Devices ic IDE ATA ATAPI controllers ze Keyboards Mice and other pointing devices Find NEC Electronics Starter Kit Monitors Virtual UART COMx BA Network adapters 4 Ports COM LPT nn Fort COMI Computer TERES Local ji System Tools Event viewer iJ Shared Folders Performance Logs and Alerts i Device Manager iy storage Removable Storage Disk Defragmenter Disk Management da Services and Applications 5 Sound video and game controllers M System devices Universal Serial Bus controllers Th
24. daxL oed 2U M 0g8MOS cvrd AM 080S yd 04 gt 09 S 0bd Ed 1NI 90d LSYO EdLNI SOd Ld LNI VOd LYVWVOL LOVVIL DYULOV OdLNI E0d OVVVOL OPVVLL INNN 20d lx LIX 13838 ex LKg0g8VO L 208VO L 208V I L LHM LGd LLOgVO L LO8VO L LOSVI L OHM O0Sd Idq e108vO L 08VO L 08V IL L CHM cSd EDH S410G8A IX SSA 9938 GGA im oan OEvVOL OEvVIL LOd LEVYOL LEVYIL 00d aana OLALNI L La INNON ON v1dd 033HAV KaW14 g1ad NV SLZd NV v1Zd NV ELZd NV Z1Zd NV LLZd NV 0LZd NV 62d NV 82d NY ZZd NY 92d NV SZd NV vZd NV 4d NV 2Zd NV LZd NV 0Zd 91dd Z1ad 81dd 61dd 0l1dd Had akad eF1ad SI vl el dl 97 Z 82 62 08 18 28 8 v8 S8 98 18 88 26 6 v6 S6 96 26 86 66 001 84d lid 9d S d vid d ld LZd 02d 82dY Z JASAH L lt 4 G OL cu SL ky aaA3 SgNWO S de 2 m vod PMS ASZ 4NL b IdINI T senos Laaaoa 0 9 10 0 v033H DE ET 0d ma dan NZI EMS Od NI Xxv n3N 9939 8304d4N INNOW ON INNON ON uaMOd LG LAN W3 9 33 weed A DG NI z ee gsn LMOHS in aaAasn dada oee 94 qqA z AdOk do 0V 3089Z c 90 ON E 001 13s3u z lt E eiu yup m zu f ax lt 0qW14 i x INNON ON INNON ON o438Av Od3HAV GAS GGA X ZHN SILSO MS 13538 001 Sanos LEd L NS E INNON ON VSQrvS cV Q0S HE JIH Z6d S6d 6d L6d SSd Sd LSd 6 d aaA3 Ed S d d vd
25. e screen above shows that the COM port number is COM8 If ID850GB EZ is not in use you can use this port number for connecting TK 850 HG3 When you change the USB port connection the COM port number will be changed as well CAUTION Do not do Hardware Modification Scan when you communicate with the target device 26 TK 850 HG3 User s Manual In this chapter you will experience how to use the development tools with using the sample programs The development tools are Integrated Development Environment IDE PM Integrated Debugger ID850QB EZ You will use the programs that you prepared in 1 3 Sample Programs as the sample programs for TK 850 HG3 You will be able to understand how to use the development tools and the concept of project files which vou need for producing application programs 21 TK 850 HG3 User s Manual The overall steps are as follows 2 1 Start PM 29 Load Workspace 2 4 Set Linker Options 2 5 Set Compiler Options 2 6 Greate Load Module Files un Programs 2 9 Start Debugger 28 TK 850 HG3 User s Manual Let s start using the development tools First start the PM Select Windows Start Menu gt Program gt NEC Electronics Tools gt PM V6 31 F PM No Workspace OutPut k ZA dd EH mm mmm mmm wn PSE TT EPETET z 29 TK 850 HG3 User s Manual 2 2 What is PM In PM application
26. earch for driver files Far the following hardware device 7 USE Device bee for suitable drivers in its driver database on your computer and in optional search locations that you specify Select Specify a location lick Nest IF you are searching on a floppy disk or CO ROM drive or CO before clicking Next Click Next Optional search locations Floppy disk drives CD ROM drives v Specify a location Microsoft Windows Update Cancel 4 Select the driver directory path The path should be C YProgram Files NEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select TK driver under the installation directory Click Found Mew Hardware Wizard Insert the manufacturer s Installation disk into the drive OK selected and then click OR Cancel Select the driver directory Click OK Copy manufacturer s files from C AFrogram Hles MEC Electronics Tools T F driver v 24 TK 850 HG3 User s Manual 5 Click Driver Files Search Results The wizard has finished searching Far driver files for your hardware device The wizard found a driver for the following device y USE Device Windows found a driver for this device To install the driver Windows found click Next c program files nec electronics Eaols tk drreersmabzsall inf Click Next Back Ce Cancel 6 The installation of NEC Ele
27. elcome to TE s50 Hts3 world The purpose of sample programs is to experience TE 850 HG3 sample programs consist of the following items Copy them to the PC which TE S50 HG3 has installed TES50 o SAMPLE HG3 Sample program described m the TE 5303 evaluation lat tutorial guide Reter to the tutorial guide in each sample program folder for usage Po E Done po m po BR Local intranet Z 3 Click the TK 850 HG3 Sample Programs link the following download confimation window appears File Download x 9 Some files can harm your computer IF the File information below A looks suspicious or you do not fully trust the source do not open or save this file File name TEKB5 exe File type Application Fram FAS54AmMPLE fy This type of file could harm your computer IF it contains malicious code Would you like to open the file or save it to your computer Oper Lancel Mare Info nf Z e ask before opening this type of file Click the butten 16 TK 850 HG3 User s Manual Deskto p My Documents MRE E 2 hy Computer te My Network P Documents and Settings Program Files WIMRT wLITemp File name Save as type Application b After specifying the download destination folder click the button Save Cancel E 6 The self extraction sample program TK850 exe is copied to the specified folder The folder
28. embler and the linker ts sel Cancel Apply Help Set the security ID The security ID is a specific ID code 10 bytes used for the authentication when the debugger is starting The security ID is stored at the address 70H 79H in the microcontroller built in flash memory The security ID in the flash memory and the ID entered in the configuration dialog are compared when the debugger is starting When the ID does not match the debugger cannot be started Therefore it is useful to protect the program data in the memory from others If you do not need to care about the security it is recommended to enter FFEFFFFFFFFFFFFFFFFF When you erase the data in the flash memory the ID is set to this value 34 TK 850 HG3 User s Manual If you forgot the security ID code stored in the address 70H 79H the debugger ID850QB EZ will not be able to start In this case you need to use FPL to erase the built in flash memory By erasing the flash memory the security ID is set to FFFFFFFFFFFFFFFFFFFF For details refer to 5 4 FPL 2 4 2 Preprocessor Tab Select Tool on menu bar in PM then Compiler Options Select Preprocessor tab and check Use C Style Comment This setting allow you to use the C comment using It is useful feature when editing programs Compiler Options X Detail of Optimization External Register Output File Output Code Message Assembler Oth
29. ers General Input File Preprocessor C Language and Kanji Optimization and Debug Information Include Search Pathl 1 Edit Define Macra D Edit Undetine Macro L Edit Limit of Number of Macro lt m Preserve Preprocessor Comment C Use Trigraphi Z Use C Style Comment Xcx corn Command Line Option cpu F3752 cxecom g Cancel Apply Help 35 TK 850 HG3 User s Manual 2 5 Create Load Module Files After developing the source code you have to create load module files by compiling assembling and linking This process is called build Click the build button ES or select Build on menu bar then Build ha PM SAMPLE HG3 prw OutPut x File Edit Find Layer View Project Build Tool Window Help 8 DSE 8B x Be m ec mle gt Sia SAMPLE_HG3 SAMPLE_HG3 v Debus Buid x m In d ETA E Fies Memo EOF a SAMPLE_HG3 1 Project s 6 SAMPLE_HG3 H E Source Files g Include Files J Project Related Files Other Files 4 b For Help press F1 je iz iki z n iw PM SAMPLE_HG3 prw OutPut i In x File Edit Find Layer View Project Build Tool Window Help SHS e je jd e em SAMPLE HG3 SAMPLE HG3 l w Debug Buid CIA NE uix ETT NEN Files Memo C Program Files NEC Electronics ToolsXCA850XW3 10Xbinca850 C
30. h for current and updated software by looking on Your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy m y ari Windows connect to Windows Update to search hor Select No not this time software O Yes this time only ez now and every time connect a device No nat this time Click Next ue ena Click Next ta continue 2 Select Install from a list or specific location and click Found Mew Hardware Wizard This wizard helps pon install software Far USB Device Select Install from a list or specific If your hardware came with an installation CD location or floppy disk insert it now What do vou want the wizard to do O Install the software automatically Recompendes Install from a list or specific location Adva Click Next Click Next to continue ah neo J 20 TK 850 HG3 User s Manual 3 Select Search for the best driver in these locations check Include this location in the search and then click Browse to select the driver directory path The path should be C XProgram Files NEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select TK driver under the installation directory Click Found Mew Hardware Wizard Please choose pour search and installation options e Search f
31. installation might be observed In this case please abort the installation in the language and re install it in an English version of Windows The identical problem may be observed if a language other than English is specified as the system language in the Regional Settings Properties tab Assembler RA850 and C compiler CA850 limit the object size to 128Kbyte 14 TK 850 HG3 User s Manual 1 3 Sample Programs This section explains the overview and preparation of sample programs 1 3 1 Preparation of Sample Programs D Insert the CD ROM disk in the CD ROM drive of your PC The NEC Electronics Microprocessor Development Tools Setup screen automatically appears if this screen does not appear automatically start setup exe from Explorer etc zi NEC Electronics Microcomputer Development Tool Setu Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programa TE 850 HG3 71 00 April 25 2008 Copyright E NEC Electronics Corporation 2008 Install E nn Sample Program Link to NEC FIfctorics Microcomputer 2 Press the Sample Program button to start the WWW browser 15 TK 850 HG3 User s Manual 3 Sample Programs Microsoft Internet Explorer BE E JD X File Edit View Favorites Tools Help qe Back p fx at A Search Le Favorites Media ET E Sample Programs W
32. is manual is intended to give users an understanding of the features hardware configurations development tools for the V850 TK 850 HG3 User s Manual This chapter describes following topics Overview and installation of development tools Installation of development tools Overview and preparation of sample programs Users can experience the development flow such as coding build debugging and test by using the development tools bundled with TK 850 HG3 TK 850 HG3 User s Manual 1 1 Development Tools Software Device file DF703757 V1 10 A device file contains device specific information So users need a device file to use the development tools Integrated Development Environment IDE PM V6 31 The IDE works on Windows operation system Users can develop a system efficiently by using the editor with idea processor function compiler and debugger C Compiler CA850 W3 20 code size limited version C compiler for the V850 microcontrollers The object code size is limited to 128 Kbyte This compiles C code for V850 and ANSI C code program into assembler code This produces object code and linker V350 Integrated Debugger ID850QB EZ V3 41 This is the tool for debugging the object program generated by C compiler and assembler The debugger enables to do C source level debugging With the debugger you can debug the code easily and efficiently by refering and changing variables using step in deb
33. isplayed when programs are running Local Variable lm 5 3 6 Display memory and SFR contents By clicking the button below you can open the memory window we Memory Search lt gt gt Refresh 3 4 5 6 Emih Gloze 1 2 8 9 E C 71 TK 850 HG3 User s Manual 9 4 FPL If you forgot the security ID or if you set On Chip Debug Option Byte to disable the on chip debug function you cannot start debugger In this case you need to delete the setting values of security ID and On Chip Debug Option Byte Use FPL to erase the flash memory FPL cannot be installed from an integrated installer Please execute FPL FPL_E160a msi from the Explorer etc The hardware for FPL is incorporated in TK 850 HG3 Down loaded program by ID850QB EZ which is down load with monitor file for debugging is not run stand alone The program written by FPL which is not including the monitor file is able to run standalone D The switch of TK 850 HG3 is set as follows and connects TK 850 HG3 to PC SW 7 TK 850 HG3 User s Manual Please execute Programs NEC Electronics tools FPL FPL_E160a FPL from the start menu if you find Security Warning click Run FrarPL AE File Device View Help gt gt riasnpenning A Flash Open OF Mame Firm Version EstCode Vendor Mame Format Version Processor Ver Co
34. ject About M Configuration Chip Mame UF 70r3752 Internal Menor ROM jase KBytes 3 Sub OSE EHz2 RAM 16384 Butes E dii 22 768 gt Data Flash g EButes Use Data Flash j Programmable L Area Start Address Ferpheral Break r Monitor Clock 4 r Target Device Connection Break System Port JUARTDO 7 rate Restore f Hon Break C User uw NMI HH2 M HLDRG RESET STOF wall DENT F MODE 01 2 Target Depend j Memory Mapping Access Size SBit C 1BBit C 32Bit Memory Attribute Mapping Address amp Chip Delete Target Add Click when the confirmation dialog for downloading load module file is opened ID8500B EZ m A WFFOO Do you want to download Load Module File Yes Mao 42 TK 850 HG3 User s Manual Download ID850QB EZ starts and downloading the CATKBBSUNSAMPLE H G33a out object loading symbol loading program to flash memory Cancel When the download is completed the source code will be displayed ID8500B EZ SAMPLE HG3 prj al xd File Edit View Option Run Event Browse Jump Window Help uie Pal eni ig mj Bee ola ale Sala El t s7 E Source main c Search ES rag Watch Quick Refresh CI se h_initialC gt aCa aja aVaaaga Ca Y EIC pas CPUea 9iR i eT g led B 9g
35. l Variable S optado 70 5 9 9 DIsblavMocal VabldDIGS cei u obdob ooo DL DL DEDE o E 71 9 3 6 Display memory and SFR contents eese nennen nennen treten etes trennen 71 O 72 E ute tum UR UM UE DU M M ID E I MU M 71 TK 850 HG3 User s Manual TK 850 HG3 is the evaluation kit for development using V850ES HG3 NEC Electronics 32bit all flash microcontroller The user only needs to install the development tools and USB driver and connect the host machine with the target board to start the code development build monitoring the output and debugging code This demonstration kit uses the on chip debug feature from the microcontroller itself without emulator connection Configuration for Debugging DE PP A LE BE TK eee Fie Bde Find Layer View Project Buki Tod Wade Hep O M GA s UR Whe ee mal 2 FAHLE tF0730 SAMPLE TOFD Debug Budd kie x ME TETO T Demonsrrarion Program for TE 79F0730 Wpp7aFa7301 SAMPLE FEFU 1 Pimelia hin initialise c Sy Source Files fw detercupe e F E aunke e Wpragma eii include common 7h extern void B imirial ri 4 e SUS PJOL IHTPI guii PLIG Fi 1 TaegLED PL r4 7 VECES k s PST rdi riri TT ETT TATE Te reri erii rre meri sf void maini 4 h snirimi i fw Inirialize Tfi Eldhs CPU inzerrupc permit Sis whale 1764 q mtart 074 IF H HRAN G 1 4
36. lyzer Options E ea X 3 FG nix ctronics ToolsCA850 W3 10Xbin ca850 ctronics ToolsCA850W3 10Xbin ca850 ctronics ToolsCA850 W3 10bin ca850 ctronics ToolsiCAS850 W3 10bin as850 ctronics ToolsiCA850 W3 10 bin as850 Ncronics ToolsCA850 W3 10Xbinld850 tronics ToolsCA850 W3 10Xbinhx850 Es SAMPLE HG3 1 Project s amp SAMPLE HG3 J Source Files H E Include Files H E Project Related Files 9 Other Files Start up Ex tool gt Total warning s O EOF File Compare Device File Installer PM Settings Foros Customize Record the Key Operations Play Back Save the Key Operations Load the Macro File Play Back the Macro File Register the Macro Files Play Back the Register Macro y 4 bi Z Change debugger settings Laa los z 38 TK 850 HG3 User s Manual Check if ID850QB EZ V3 41 V850 Integrated Debugger is selected on Debugger Debugger Settings L STESBSISSAMPLE HG3 a out Ei LI Download the Debug Target Files in the same Project Group 39 TK 850 HG3 User s Manual 2 7 Check Board Settings Before connecting the PC and the TK 850 HG3 with USB you should check the setting of SW1 on the board D Set the SW1 of the TK 850 HG3 as follows SW1 OFF Bit2 ON Bits ON Bit4 ON 2 After the switch settings are completed connect the PC to USB1 on TK 850 HG3 with USB cable
37. n application system The target device of each project must be the same within a project group What is a workspace A workspace is the unit used to manage all the projects and project group reguired for one application system A workspace file contains one or more project files The file name format is xxxxx prw 31 TK 850 HG3 User s Manual 2 3 Load Workspace project In this section you will use the workspace that you created in 1 3 Sample Programs For creating a new workspace refer to Chapter 5 Other Information The workspace has information about the build environment for the sample programs Select File on menu bar and Open Workspace Then select SAMPLE_HG3 prw under the directory C YTK850YSAMPLE_HG3 cc say PM No Workspace OutPut ID x File Edit Find Layer View Project Build Tool Window Help New Ctrl N h Macapbn U Open Ctrl O pe ka a do s 2 ala Insert file x 2 E m Close Close Workspace Saye Gres Save S Change Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM Open an existing workspace 5i d T Ko XR Open Workspace Look in C3 SAMPLE HG3 amp t Filename SAMPLE H amp 3pm C Open y Files of type workspace File pre L ancel Help Select SAMPLE HG3 prw then click 2
38. nnection ta device Fort Speed Range Freq Multiply Push the Setup button LT O Standard Advance m Parameter file PAM File Read Host connection Supply oscillator Fort Frequency MHz Speed Multiply rate Operation Made Chip Start C Block End Area Show Addres Push the PRM File Read button 73 TK 850 HG3 User s Manual Es 70F3747 prm 7 70F3757 prm p File name 70F3752 prm Files of type PRM Files PRM Cancel E 5 Please select 70F3752 prm in the directory of YPRMYPRM70F3757 V100 in the CD ROM Hl Device Setup NS Standard Advance Parameter file FOF 3752 prm PAM File Read ti illa Operation Made v Chip Start 000 v Block a fee j Area Show Addres Port selects the COM port number where TK 850 HG3 is allocated Only the COM port number that the personal computer has is displayed in this pull down menu Input 4 00 to Frequency Input 8 00 to Multiply rate Input 38400 to Speed and chick OK 74 TK 850 HG3 User s Manual D xj File Device View Help P gt gt Flashllpenning he Flash Open DK Name gt gt COMMAND Device Setup PAM File Read OF Firm Version ExtCode Vendor Parameter file Mame FOF 3752 Format 0417 Version 41 00 Pr
39. ocessor Wer 0200 Mame Date Chksum rea Connection to device Port COM Speed 38400 Range Chip Freg 4 00 Multiply 8 00 D Erase The deletion of the flash memory begins when the button is pushed cedat i In x gt gt Flashllpernring he Flash Open OK Name gt gt COMMAND Device Setup PAM File Read OF Firm Version Ext Lade Vendor Parameter file Mame FOF 3752 Format 0417 Version 41 00 Processor Ver 0200 Connection to device Port COM Speed 38400 Range Chip Freg 4 00 Multiply 8 00 When you write the program click load then select writing HEX file 715 TK 850 HG3 User s Manual Hex file writing will be start by clicking AutoProcedure 16 TK 850 HG3 User s Manual 9 9 Circuit diagram From following page it shows the circuit diagram of the kit 71 GZLOOSOL JequinN juswns0q adaa adsa INNOW ON S0Z1 920 30 88 ad 15HL zoldo 2 8 ug 3nr 0 93 GaGAa preius Ida zd eVLVGOUL ZVLVGOUL ji LWLVGOUL M OVLWADEL TK 850 HG3 User s Manual 119941 H38IMN VSGrS c vaos He dlH 02d ld tld 9d LOd LSDd lt td bl d 11d0d LV1Gad 610d 210d G1ad 1 d Mad aa a 9LOd LLOd ENOd LWOd LLZd Sl6d l6d LL6d 66d LZd 4d S d 1d 00d 0SOd LlZd Std bad OL T d 81dd 910d Vlad zidd 010d bl
40. ood OLOd lt Od ONOd OL d vlL6d 216d OL6d 86d INNON ON 66d OL6d LL6d 216d L6d vl6d SL6d ON ZIN EN LL vL a ja ja ja ja ja p ja ja a 07104 ad 210d 1dd v1dd 880 SHO 6 8 8 1 MS 880 SHO INNON ON gol Zdl A aNd Z6d 96d 08VOL 08VIL LHOS 86d 008VOL 008V LL L850S 66d Ol6d LL6d Zl6d 1Id pdLNI EL6d 00VGS Sd1LNI rL6d 0019S 9d LNI SL6d 0SOd ISDd OWOd LNOMID IWOd WOd ENOd OLOd LLOd vLOd 919d SSAd qaAq 01dd Had 2 1qd 1dd INNON ON E INNOW ON L ASZ 302 p Hh Ela ASc JnZ v ad seul obo kal qaAq CUA aa a aa a GGA E aa a aa anyo 013 oand O oadw adra lt au WO u 7 70 01 vf v u 7 u 0 9 u 9 x u u v CO O CO CO COFCO co co O1 aa aa O1 oc Co c GO CO COFCO Co Go co NI Of Cop Po 2 O O1 BY Co Po O CO 00 NIO Of Co Po RIB B pip IB B IB B 09 00 00 00 C0 00 00 G2 0 19 ND ND o co Oo N O O1 0 h5 O ojo 1 O O1 I C0 PO O CO 00 O S L6d 1 96d 1 S6d 1 v6d 1 6d 1 26d LevVOL Lovv O0ravol orgav ILavol erav zIavol erav LLAVOL L Lav 02zvvO L OcvvI L Lg LaaxH LaM L6d Laax 1 98M 06d SINQ E808VO L SUM SSd MOG E108VO L FHM vSd OQQ c808VO L 008VO L 008V I L EHM ESd 200X1 8 d 8d 1N1 200XY 6 d LIWWOL LEWVIL SEd OLVVOL OLVVIL VEd LOVWOL LOVVIL EEd Zd 1NI 000XY4 1 d OOVVOL OOVVIL LOVWOL OGMOSW 2Ed 0
41. or the best driver in these locations Use the check boxes below to limit or expand the deta paths and removable media The best driver Found will Select the driver directory Search removable media floppy CD ROM Include this location in the search C Program Files WEC Electronics Tools T K drive Don t search will choose the driver to install Choose this option to select the device driver fram a list Windows does y m the driver you choose will be the best match for your hardware Click Next I 4 If the following dialog is opened click I Hardware Installation The software vou are installing For this hardware MEL Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows P Tell me why this testing ls important Continuing your installation of this software may impair or destabilize the correct operation o zubem either immediately or in the future I i Click Continue Anyway recommends that you stop this inst contact the hardware vendor For so passed Windows Logo testing Continue Anyway STOP Installation 21 TK 850 HG3 User s Manual 5 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Click Found Mew Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software Far E MEL Electronics Starter Kt Virtual LI
42. point is set Breakpoints are deleted by clicking B Source mainc E Search z lt gt gt watch Quick R 2Huoid maint void gt El Fi While 13 Bl 4 EI amp k 4 69 TK 850 HG3 User s Manual 9 3 4 Display global variables With using Watch Window you can display global variables There are several ways to register global variables to watch window In this section how to register from source window is described DRight click the variable on source window then select Add Watch lol x Search lt lt gt gt Watch Ouick Refresh Close 22 while 13 u Stars Move IMBEGQIC jx PICH Add Watch Symbol while Break when Access En this Variable T Mi E Break when Write to this variable Break when Read From this variable P L 7 Event Information 4 pr Come Here 2 Add Watch dialog opens Click x Mame start Add Rade Proper Hes Dec C Oct Bin String SIZE Adaptive Byte Halford Word Humber Lancel Restore Help 3Adding a variable to watch window is completed CHESS n Add Delete x 78 70 TK 850 HG3 User s Manual 5 3 5 Display local variables Local variable window is used to display local variables By clicking the button below you can open the local variable window Unlike global variables local variables cannot be d
43. ry is different from the ID code you entered at the start of debugger Security ID entry area at the start of debugger ID Cade Check Point 1 Enter correct security ID and click OK on the configuration window Check Point 2 If you forgot the security ID you have to erase the microcontroller built in flash memory Before erasing check if you actually set the security ID with referring to 2 5 Set Options Also remember the code you set for the security ID After this erase the flash memory with referring to 5 4 FPL 4 3 Monitor memory cannot be accessed F0c72 Check Point 1 Check if the settings of switches on the kit are correct with referring 2 7 Check Board Settings Check Point 2 Erase the flash memory with referring to 5 4 FPL Check Point 3 If above 2 check points are confirmed disconnect the USB cable from PC and re connect again And retry starting the debugger 56 TK 850 HG3 User s Manual This chapter explains some useful operation techniques of development tools and circuit diagram of the kit for developing of user programs 5 1 Create a new workspace project 5 2 Register additional source file 5 3 Debugger tips 9 4 FPL 5 5 Circuit diagram 57 TK 850 HG3 User s Manual 5 1 Create a new workspace Now create a new workspace and project PM allows you to create a new workspace with following New WorkSpace dialog Select File on PM men
44. s Hexa Converter Options Er 5 test 1 Project s Static performance analyzer Options 8 test A nTM Source Files dump850 Include Files i af Project Related Files Debugger Settings u Other Files Register Ex tool Start up Ex Eaol File Compare Device File Installer PM Settings Font 64 TK 850 HG3 User s Manual Apply Click the Device tab Compiler Common Options LI BRL Register sFFFFFFFFFFFFFFFFFFFF Press the OK button Security ID settings are complete 65 TK 850 HG3 User s Manual 5 2 Register additional source file Now register additional source files The following example shows the additional registration of source files b c and c c with source file a c already registered Place the cursor on the source file in the Project window of PM and select Add Source Files displayed in the right click menu rp PM test prw Project Window Bl x File Edit Find Layer View Project Build Tool window Help s DEH la X Be SA MAC aon J gt ez ee IONS ptions Add the source file to the project s E L F i Lm Z Add Source Files test FEE Look in E test m E be cc Files af type Source Files c asm Cancel Help Add Files from Folder File name Multiple source files can be selected by clicking them with pressing ke
45. sing the wrist strap The connectors and or device pins should not be touched with bare hands TK 850 HG3 User s Manual Contents CHAPTER PREPARATION dna yu unku ays atan ta 8 1 1 Development Tools Software A di 9 1 2 Installation of Development Tool uuu aaah a 10 CAI lastallation Packa naar 10 122 Installation of Development Ton Said 10 ISA APO A A a 15 L3 Preparation otr Sampie O o ala 15 13 2 Overview f Sample Programs u uu tdi dais 18 1 4 Installagion or USB Driver aa n eta t e Oe 19 LA Instaltalon op Windows KP arial 20 1 42 Installation orn Windows 2000 sirena iir ati ee SR RI POR ER tta n 23 1 43 Gompletion of USB Driver Installallolasesdsesduesduim etel urt desee tto bm odolat diky 26 CHAPTER ZA EXPERIENGES cialis 27 ONO 29 22 WAS PME A vt te par AAA ETA 30 2 3 Load Workspace project usui ede decente e eterne tentes tcd eal ecertentstacsenbose seacdetbesectochetanle tod octets 32 24 56 ODDS spur pue m ren Pa E PM M I M M MT IM E II I MM EE 34 ZA E end Tai iS 34 2 4 2 Preprocessor Ma es 35 29 Greate Load Module Fleitas 36 2 9 Gheck D buszer Setting Si AAA oo oso sos 38 2 Gheck Board Setter 40 2 8 Start Debugger ID850QB EZ cccscessecssseccecsesecsecsessesecsesecsecsessesucsesarsesassussecsessesersesatsecsesarsessesstsatsesatseeseseeseee 4 ZU m EO a do a ein ian 44 2 10 toD FO SPAIN S uy sn dirae diea San a usta eld ML o ua qa aaa Saa aa 46 2 11 Close Debugger ID850QB E
46. space C I Save Workspace e Close Workspace C Save Ctrl 5 re Save As PE Change Source File Name Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace rr A ina Exit PM Exit PM and prompt to save the files PM is closed The experiences section ends now Program Program Program Program Program Program Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Build Total error s Electronics Electronics Electronics Electronics Electronics Electronics Tools CAS50 W3 Tools CAS50 W3 O Total varning s O rro S la Toolsi C4850 W3 Tools C4850 W3 Toolsi CAS501 03 Toolsi C4850 13 10 bini 1d850 101bin1 hx850 10 binicas50 10 binicas50 101bin cas50 101bin asa50 Download C TKSSO SAMPLE HG3 a out to the debugger EOF W Io fifa frio z You can find more information how to use the development tool and information about other useful features in Chapter 5 Other Information 48 TK 850 HG3 User s Manual In this chapter the hardware of TK 850 HG3 will be explained Microcontroller u PD70F3752 2 V850ES HG3 Clock External main system clock 32MHz 4MHz x8 Sub clock 32 68KHz Interface USB MINI B connecter Connecter for N Wire only pad Expansion connector 50Pin socket x2 only pad Dimension 89mm x 52mm Power s
47. stop the program Click the stop button II or select Run on menu bar then Stop 2 ID8500B EZ SAMPLE_HG3 prj Edit View Option Run Event Browse Jump Window Help E zm aleja Ool4 B E V 6 3 Source main c Search E Wach Quick Refresh e lose 1 h_initialC gt aCajaV da alCaY EIC gt x CPUea 9iR i eT g_led g_count while 4154 ES g start B TMBEQICA 8x47 PICA 8x87 while g start gt PICA 0x47 WIMK 1 TMBEQICA 8x07 P9L 7 1 while g start 1 5 x 7eosLE Stop the program 2 ID8500B EZ SAMPLE HG3 prj File Edit View Option Run Event Browse Jump Window Help oo n e BB BEE Q Aloe Saal Em t s 5 Source main c Search deg lt lt gt gt watch Quick Refresh Close oid main BARA h_initialC gt he acaj avaaae ACY EI CPUes diR l ide g led B g_ count B while lt 1 gt lt g start B TMBEQICA 8x47 PICA 8x87 PICO 8x47 WIMK 1 TMGEGICA 6x07 P9L 7 1 i A while g start 1 gt segLE y Z ana 4 A MF E main c 33 main ooooogcc 15m 59 815 Manual Break V When the program stops the status bar changes back to the original color 46 TK 850 HG3 User s Manual 2 11 Close Debugger ID8
48. tomer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The recommended applications of NEC Electronics products depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment su
49. u bar then New Workspace F File Edit Find Layer View Project Build Tool Window Help New CrHN B e Macan v MP Gi c mia 2 Open Ctrl O K s X 8 Ctrl 5 Save As Ghange Source File Mame Save Al Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM New WorkSpace dialog opens Create a new workspace zu i ES Be fia hi lt Description of items gt Wo rkspace Fi le Name New WorkSpace Step 1 9 Workspace Information Lx gt Specify the name of the workspace file that manages Workspace File Name th t fil 1 Workspace Information e projec es 2 Select Tools Create Blank Work I prw is automatically suffixed as the file type Folder A 3 Select ReahTime OS i x i 4 Startup Filet A project file prj of the same name is Browse es Project Group Name Eo UN PNE simultaneously created oo Q ProO II BL rive Microcontrollers Name Device Name 7 Setup Souca Fies Folder Peron eoe j o 9 Confirmation gt Specify the folder for saving the workspace file by _ DeWeeieta 1 V850 Micron niy 4 writing its absolute path This item can be selected from a reference dialog box by pressing the button Project Group Name This will set up the basic information about the workspace and the project
50. uging function and so on Built in Flash Memory Writing Program FPL This is the Windows software to write programs on built in flash memory By connecting TK 850 HG3 and PC with bundled USB cable you can write delete programs on the built in flash memory Q Sample program for User s manual Demonstration program using the seg LED and push switch TK 850 HG3 User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package The attached CD ROM includes the development tools and documentations Users can use the installer to install those development tools and documentations 1 2 2 Installation of Development Tools D Please insert the CD ROM in the drive The installer will show up automatically If rt does not start automatically please initiate it by double clicking the SETUP EXE 3 NEC Electronics Microcomputer Development Tools Set n Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programa TE 850 HG3 71 00 April 25 2008 Copyright E HEC Electronics Corporation 008 lt 1 gt Readme First The contents of the CD ROM and some notes are available Please read it at first lt 2 gt Install Click Install to start installation of development tools For details please refer to the next section 10 TK 850 HG3 User s Manual lt 3 gt Documents Manuals of development tools
51. upply voltage 49 TK 850 HG3 User s Manual 3 1 Layout of hardware functions J JP1 LED SW1 CN1 OTT e o S Eu TAO T ae AE I PUAT le s ku vul tae ud m le J ORS Hin titt HH SS CCC ple elejee veve CE TR PTY TTT U2 CN4 SW4 SW3 SW2 3 2 Layout of solder short pad FLMDO RXD P787 P711 4 we A m que E a nd i t d l mm paa lt r3 We I u o UU P90 P9 7 EVDD BVDD AVREF DCVDD1 2 50 EL HR es loge DE USB1 TK 850 HG3 User s Manual 3 3 Hardware Functions 3 3 1 SW The bit 1 4 on SW1 are for mode settings Bit5 8 of SW1 are connected to P78 ANI8 P711 ANI11 for general purpose input port For the use of ID850QB EZ use following settings SW When ID850QB EZ is used these terminals cannot be used because it communicates with the host machine by using and the terminal P30 and P31 To run the programs stored in built in flash memory by FPL use following settings and re supply power SW Please change to the following settings when writing it in the flash memory with built in CPU by using FPL The hardware of FPL is built into TK 850 HG3 SW1 Please change to the following settings when you connect N Wire emulator SW 51 TK 850 HG3 User s Manual Bit5 8 of SW1 is connected with the
52. xf8 Ol N 2 3 3 7 JP1 JP1 is the jumper switch pin to select power supply JP1 Use power supply from external connection Use power supply from USB power connected to USB1 3 3 8 J This is the connector for external power supply DC5V 3 3 9 NWIRE1 Connector These are connector for N Wire emulator It can connect N Wire emulator of IE V850E1 CD NW etc NWIRE1 can connect to N Wire emulator by installing a connector 8830E 026 170S not mounted by KEL Corp 53 TK 850 HG3 User s Manual 3 4 solder short pad label When using a circumference board connector CN1 2 without using a circuit on board in order to separate a circuit on board the terminal of CPU can be customized by making the pad for solder short opening Pad for solder short has shape like the figure below When you make an open circuit cut the narrow part of the Pad with a knife To make short circuit join the separated Pad with a soldering iron etc Solder short pad Solder short pad opened shape Shorted shape Solder short State when Connection pad name shipping it SegLED P90 P97 Short AO Open when using it for other usages FLMDO to P37 on CPU FLMDO Open Short When built in flash memory is rewritten by self VDD EVDD EVDD Short RXD Short Open when P30 isn t used for USB1 communication interface P78 P711 Short Open when P78 P711 isn t used for general purpose input SW 54 TK 850 HG3
53. y 66 TK 850 HG3 User s Manual rg PM test prw ProjectWindow um B A k h lr a 67 TK 850 HG3 User s Manual 9 3 Debugger tips This section describes some useful techniques for the debugger ID850GB EZ 9 3 1 Change display of buttons Execution controls run stop step in debugging reset etc and opening functional window can be made by below buttons However it could be difficult to know which button does what A BB E In this case select Options on menu bar then Debugger Options Check Pictures and Text on setting area With this setting the buttons display the text as well so that it is easier to know what they are B A E M R A dul E Open Load Proj sro Asm Mem Weh Reg SFR Loc Fi Ret Step Ower Res 5 3 2 Display source list and function list When you wish to see source file list or function list select Browse on menu bar then Other gt List to open the list window The information in the windows is synchronized Therefore it is not just for referring to the list but it is useful when you wish to update files or functions J interrupt c A main c El En 68 TK 850 HG3 User s Manual 5 3 3 Set delete breakpoints Breakpoints are executed by clicking lines in which is displayed B is displayed in the line where a break

Download Pdf Manuals

image

Related Search

Related Contents

JVC GR-SXM767 Camcorder User Manual  Working With Raster Graphic Images In Origin Importing And Plotting    universidade federal de campina grande pró-reitoria  

Copyright © All rights reserved.
Failed to retrieve file