Home

User's Manual TK

image

Contents

1. LHN ASCII 9 TT au 8 Z z 9 S aang S v aang aaa 8 0 z I L L anyo Junowo so N j oana E ESCH o e dE 2s 66d S02d2w 918 1unouoN 1unouowN adaa WA Ln ou z al 02 OO rer x IdINI ed st Y DO 7 70 Ul 0 9 9 0 9 o 9 vl o co o CO CO CO co co co o1 on on o1 o1 G1 O1 LL x ooo A CO PO GS dd Gu KY Co Ro o 9L c Ol aadA 20 GL JASAH L dl kal adA3 EL y oan gute et 85 55 5s Es RS eS fS 888 3 8 IA KB Re HEOT SA0SBA o o e d y sa law aNd aaa SES god 96d For X QddGOoOdQdQdoGdOdoodqgododoz 2doodgQQoQo EMS EX SH KUI EE EE n L6 SH oodddddaszzopodadoonddd2 zZi EIS E 24 peius GK EE EE i CIdINI HX ons 225853822805 B T 325952 9 E S nei iEddgz2882823233 8800088 ambo z a EE 85858258 adna Trea OS 201 siu viu dS855295732daggg Seza DR Z 13534 e t BPSSSOAES IRERE gO335gid 8091 3nZ d SZZMACSS USE EISE ERR PISI 9 ogdooo xdOodzo Sekka O0OO8B SOQEOS o E zadna See EE adan ENZ aL e8 o gadaa Sao OH aana aona L dINI L3OS 66d m 5838 S66 30 204LNI r408 000xu 084 xu z 66d PIdLNI ZOOXL EsIS 016d oele zzo OLdINI OJMOS zrd L t iunouoN 016d SI dLNI ZOQXH EJOS 1 16d e Sag zB S08 0109 00XHu 03OS lvd 2 LL6d 4AIS ZL6d SEI zE 3 LOVGS POGXL OsIS 0Pd Ge 9LdINI JJOLGVOL EL6d S S POdLNI S0d sozrozoaoese eines mo E SEN SS E ue GG ad m 316d OHM O LOd ddan an
2. Computer ven Local ih System Tools Event viewer iJ Shared Folders Performance Logs and Alerts ri Device Manager Storage Removable Storage ze Keyboards Disk Defragmenter Mice and other pointing devices Find NEC Electronics Starter Kit Disk Management 2 Monitors Virtual UART COMx Bul Network adapters JH Ports COM amp LPT EE Fort COMI as Services and Applications Sound video and game controllers M System devices Universal Serial Bus controllers The screen above shows that the COM port number is COM8 If ID850QB is not in use you can use this port number for connecting TK 850 JG3H 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 25 TK 850 JG3H 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 You will use the programs that you prepared in 1 3 Sample Programs as the sample programs for TK 850 JG3H You will be able to understand how to use the development tools and the concept of project files which you need for producing application programs 26 TK 850 JG3H User s Manual The overall steps are as f
3. ID850QB starts and downloading the CATERGSO S4AMPLE_JG3H a out object loading symbol loading program to flash memory Cancel When the download is completed the source code will be displayed ig ID8500B Sample_JG3H prj O x File Edit View Option Run Event Browse Jump Window Help ir m gt n Bam Belej Ql Alea sl al t e Source main c Search lt lt ER Watch Quick Refresh Close h initial vim aCajavaaa aCayY x EI CPUERES IRE ide g led 8 g count 8 while 1 lt g start B TMGEQIC 8x47 PIC12 8x07 while g start AS PIC12 8x47 TCOMK 1 TM EQIC 0x87 P9L 7 1 while g start 1 5 4 gesat d P 4 ME b ann mainnc 16 mnoo 000004 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 42 TK 850 JG3H 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 Sample_JG3H prj File M miew Option Run Event Browse Jump Window Help me e Dm a ern m om pea o Ale s rs SS v i5 Source main c Search lt
4. TK 850 JG3H User s Manual prm 70F376 E 1 CSIDO prm 7 F3761 CSI3 prm 7 F3762 CSID prm 7 F3762 CSI3 prm 70F3763 CSI3 prm 7 F3764 CSID prm 7 F3764 CSI3 prm 70F3767 CSID prm 7 F3767 CSI3 prm Ed 70F3768 CSID prm 70F3768 CSI3 prm 7 F3769 CSIO prm 7 F3769 CSI3 prm 70F3770 CSID prm 70F3770 CSI3 prm File name v0F3760 CS10 prm Files of type PRM Files PRM Cancel E 5 Please select 70F3760 CSIO prm in the directory of YPRMYPRM70F3771 V100 in the CD ROM sw 2x Standard Advance Parameter file EZE CSID prm PRM File Read Hast connection Operation Mode Start OO w End DE E Show Addres Chip Block C Area Target Reset Message C oc b Cancel Port selects the COM port number where TK 850 JG3H is allocated Only the COM port number that the personal computer has is displayed in this pull down menu Input 6 00 to Frequency Input 8 00 to Multiply rate Input 38400 to Speed and chick OK 75 TK 850 JG3H User s Manual BER File Device View Help E gt gt Flashllpenning he Flash Open OK Mame gt gt COMMAND Device Setup gt gt COMMAND Device Setup Firm Wersion PAM File Head UK Evtl ode Vendor Parameter file Mame T F3r760 C510 Format 0415 Version E1 00b Processor Yer 0200 Name
5. Recent File Recent Workspace Exit PM New WorkSpace dialog opens Create a new workspace E ps t Re RS WA lt Description of items gt Wo rkspace Fi le Name New WorkSpace Step 1 9 Workspace Information x gt Specify the name of the workspace file that manages Workspace File Name the proje t files gt gt 1 Workspace Information JEC l E 2 Select Tools d d Create Blank Work prw is automatically suffixed as the file type Folder TTT 3 Select Rea Time OS i x i S 4 Startup delt A project file prj of the same name is Browse CHECA UM Project Group Name uS EU simultaneously created in itive Fe Microcontrollers Name Device Name 7 Setup Souca Fies Folder 78K0R EH uPD7eF1142 64 42 64 8 Select Debugger 3 Confirmation gt Specify the folder for saving the workspace file by __Device instal W nip 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 gt Specify this item if wishing to manage multiple es 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 i
6. 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 JG3H 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 d Tool Installer v DeviceFile Install DeviceFile DF FOS 1 Ver 00 v Search v Tool Install Tools CASO Ws 20 15 23BKB LA B8 V3 20 Documents zB ZOO D PM ME 2 17 52UKB P B Documents 9 24066 LOG 1 21 b 3B5KB LOG v1 21 Documents 3 1 SBEB STEBS0 v2 13 256KB D85008 V850 Integrated Debugger V3 50 37 952KB zl E plain Drive Available Space el 15 274 772K 8 Destination Required Space C AProgram Files MEC Electronics Tools Browse 134 858KB 4 Click when Install comfirmation dialog box is opened INSTALL C 22 Install the Tools and DeviceFile Cancel 11 TK 850 JG3H User s Manual 5 Read software license agreement and click for continuing the installation To stop the installation click Software License Agreement i X Please read the following license agreement Scr
7. B Sample JG3H 1 Project s Sample JG3H j Source Files g Include Files 0 Project Related Files AYA For Help press F1 Gab kiima z CC PM SAMPLE_JG3H prw OutPut lol x File Edit Find Layer View Project Build Tool Window Help Ie pegienlumemke KA Files Memo Program Files NEC Electronics Bal Sample JG3H 1 Project s EN Sample JG3H H E Source Files Include Files H Project Related Files fg Other Files Tools CA850 W3 20Xbinca850 C Program Files NEC Electronics ToolsXCA850W3 20Xbinica850 C Program Files NEC Electronics Tools Ca850 03 20 bin cas50O C Program Files NEC Electronics Tools Cas50 U3 20 bin as 850 C Program Files NEC Electronics Tools Cas50 U3 20 bin 1da850 C Program Files NEC Electronics Tools Cas50 U3 20 bin hx850 l warning s O EOF mm x LD 13500 Build completed normally zi je ol p ev PAC Build has been completed successfully 35 TK 850 JG3H User s Manual 36 TK 850 JG3H 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 m PM SAMPLE JG3H prw OutPut File Edit
8. If it does not start automatically please initiate it by double clicking the SETUP EXE NEC Electronics Microcomputer Development Tools Set D Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs TE 850JG3H T1 00 Oct 20 2008 Copyright E HEC Electronics Corporation 2008 Readme First Documents Sample Program Link to NEC Electronics Microcomputer E sit 1 Readme First The contents of the CD ROM and some notes are available Please read it at first 2 Install Click Install to start installation of development tools For details please refer to the next section TK 850 JG3H User s Manual 3 Documents Manuals of development tools 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 X4 Sample Program Click this button to start the WWW browser for the sample program and the tutorial 5 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 10 TK 850 JG3H User s Manual
9. Date Chksum Area Connection to device Port COMES Speed 38400 Range Chip Freg 6 00 Multiply 5 00 Erase The deletion of the flash memory begins when the button is pushed ES WriteEZ1 File Devipe Miew Help gt gt Flash penning A In x Flash Open OK Mame gt gt COMMAND Device Setup gt gt COMMAND Device Setup Firm Wersion PAM File Head OF Evtl ode Vendor Parameter file Mame T F3760 C510 Format 0415 Version E1 00b Processor Yer 0200 Connection to device Port COM Speed 38400 Range Chip Freg 6 00 Multiply 5 00 When you write the program click load then select writing HE file 16 TK 850 JG3H User s Manual writeEZ1 Hex file writing will be start by clicking AutoProcedure 71 TK 850 JG3H User s Manual 5 5 Circuit diagram From following page it shows the circuit diagram of the kit 78 TK 850 JG3H User s Manual 800c LO Jequiejdes leg DL Ae 6142008591 ev jequinN juewnsoq azis SINLOE VT HE9T 0S8 ML Ilf P8VIN000 9 69INDH 0V 3089Z 2 90E OW Ad6E LO 00L
10. Settings Font 065 TK 850 JG3H User s Manual Click the Device tab Compiler Common Options BEL Hester EEN FFFFFFFFFFFFFFFFFFFF Press the OK button Security ID settings are complete 66 TK 850 JG3H 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 zm sd File Edit Find Layer View Project Build Tool Window Help B D SH SR X Bs MATAA J se Add the source file to the project z es D kr W E Add Source Files test 3 xl Look in test m E b e ce Files af type Source Files c asm Cancel Help Add Files fram Folder File name Multiple source files can be selected by clicking them with pressing key 67 TK 850 JG3H User s Manual rg PM test prw Project Window I T tke z 68 TK 850 JG3H User s Manual 5 3 Debugger tips This section describes some useful techniques for the debugger ID850QB 5 3 1 Change display of buttons Execution controls run stop step in debugging reset etc and op
11. lt gt gt Watch Quick Refresh Close oid main gt h_initial aCajavaaa aCayY x _ EI CPUERES IRE ide g_led g_count while 1 gt lt g_start TMGEQIC 8x47 PIC12 8x87 Run the sample program while g start PIC12 8x47 RTCOMK 1 TMBEQICB 8x87 P9L 7 1 a while g start 1 gt lt x genat d P annn 4 NF H mainc 16 mein 00000004 0 0 msec 4 2 ID8500B Sample JG3H prj File Edit View Option Run Event Browse Jump Window Help n m gt gt e Eg om Belej Ql Alta sis Et Ve Source main c Search lt lt gt gt Watch Quick Refresh Close h initial 7 aCajavaaa aCay x _ EI CPUERES IRE ide g_led g_count while 1 lt g_start TMGEQIC 8x47 PIC12 8x87 while g start 8 PIC12 8x47 RTCOMK 1 TM EQIC 8x87 7 P9L 7 1 sl while g star 1 M V ni segLE J annn 4 NEF H When programs are running the status bar will be red 43 TK 850 JG3H 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 00000000080 000 00000 OT HS L eS SLT GC Ze E KSE E mee ida Li 1 TET o olo o o o O AONDOA OO OO OO 0000 7 Seg LED SW SW3 Reset SW You could confirm the sa
12. 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 V850 Integrated Debugger ID850QB V3 50 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 debuging function and SO on Built in Flash Memory Writing Program WriteEZ1 This is the Windows software to write programs on built in flash memory By connecting TK 850 JG3H 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 JG3H 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
13. Ctrl O pe 4 HAL ADR x d ell Insert File i E di A x d Close Glose Workspace Save Cctr 5 Save As Change Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM Open an existing workspace ei E a e E Open Workspace Look in SAMPLE_JG3H amp E File name SAMPLE J amp 3H prw C De j Files of type Workspace File pra L ancel Help Select SAMPLE JG3H prw then click A 31 TK 850 JG3H User s Manual Workspace name SAMPLE JG93H prw 5 PM SAMPLE 3G3H prw DutPut File Edit Find Layer View Project Build Tool Window Help B DSE Sli X 85 Bfiece Load the workspace file SAMPLE JG3H prw e T imm ECF Project group ource Files nclude Files raject Related Files ther Files Project F d k F For Help press Fl eat lia mg Nl E The workspace file SAMPLE _JG3H prw contains one project called SAMPLE JG3H You will use this project SAMPLE JG3H 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 Q2 TK 850 JG3H 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 t
14. EVDD is driven by other voltages VDD AVREFO AVREFO Open when AVREFO is driven by other voltages VDD AVREF 1 Open when AVREF1 is driven by other voltages VDD UVDD UVDD Short Open when UVDD is driven by other voltages P30 TCDDO RXD Short Open when P30 isn t used for USB1 communication interface SW1 5 8bit P78 P711 Short Open when P78 P711 isn t used for general purpose input SW P02 lt gt standby pin of 48MHz oscillator P02 Short Open when the standby pin of 48MHz oscillator isn t used for 54 TK 850 JG3H User s Manual P03 lt gt output pin of 48MHz oscillator Open when the output pin of 48MHz oscillator isn t used for P98 lt gt SW3 Open when using it for other usages P99 lt gt SW4 Open when using it for other usages P41 lt gt USB D pull up signal enable pin Open when you don t use USB D pull up enable signal with the P41 pin P42 lt gt USB D pull up signal pin Open when you don t use USB D pull up signal 4Pin U2 lt gt T RESET signal T RESET Short Open when the Reset IC isn t used for 55 TK 850 JG3H 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
15. Find Layer View Project Build Tool Window Help e D G H amp X gp Compiler Common Options e i R Section File Generator Options Sample JG3H Sample JG3H v Debu Compiler Options SA HE Assembler Options ProjectWindow DM Linker Options n x Files RETE ROM Processor Options Hexa Converter Options Sample JG3H 1 Project s Static performance analyzer Options amp Sample JG3H SsTTOD OD 0 H O Source Files dalo a F C Include Files Debugger Settings F Cj Project Related Files gg Other Files ctronics Tools CA850 U3 20 bin cas50 etronics Tools Cas50 W3 20 bin casso ctronics Tools Ca850 W3 20 bin casso ctronics Tools Ca850 W3 20 bin as 850 Hs Toolsi C4850 W3 20 bini 1d850 tronics Toolsi CA850 W3 20 binihx850 Start up Ex taol Total warning s 0 EOF File Compare Device File Installer PM Settings Font 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 Yv 4 Z Change debugger settings SS mi Fe Kr ke 4 3 7 TK 850 JG3H User s Manual Check if ID850QB V3 50 V850 Integrated Debugger is selected on Debugger Debugger Settings L STESBSUSSAMPLE JH a out E Wownload the Debug Target Files in the same
16. POP V eae aeaa 53 ARO hh EE 53 3 3 11 NWIRE1 Connector eee eee onen ena tntetn entrate tete tn enean Ba theta ta tese sa setate sess shes amaan 53 34 solder Short ee AE e 54 CHAPTER 4 TROUBLESHOOTING EEN 56 4 1 If you cannot find USB driver when you connect PC totbekt eee 56 4 2 Error when you start the let 56 4 2 1 Can not communicate with Emulator F0100 or A0109 eee 56 4 2 2 Incorrect ID Code Ff603 seen ttettnttetenttnttetttttte tette tte ttt tea 57 4 3 Monitor memory cannot be accessed F0c72 tette tette tete tentes 57 CHAPTER 5 OTHER INFORMATION cccscccsesesssscsesesesesssscscscsesesessscacsasesssesassesanesesacacsasssesesacsesanecseseaeeseceeseaeass 58 oJ Gfedte d NEW WOrKSDACE AA AA 59 9 2 Rebisto addtional Soi AA 67 99 RE EEN 69 5 9 1 Change display Ol DULCONS secede eee ee 69 9 92 Display source list and function MISE suec ouem EA eere eerta 69 5 3 3 set delete tee 70 5 34 RE Ee EE 71 939 Display ocal VallaDIeS euenit oie ettet cte D E D Eun o D ELTE 72 5 3 6 Display memory and SFR contents essent www 72 SX eii E 73 SEENEN 78 TK 850 JG3H User s Manual TK 850 JG3H is the evaluation kit for development using V850ES JG3 H 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
17. 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 Right click the variable on source window then select Add Watch BER Search ex gt gt watch Quick Refresh Close 22 while 1 TENENTD Move IMBEGQIC we PICH Add watch Symbol while Break when Access En this Variable O Go E Break when Write to this variable Break when Read From this variable P9L Event Information 1 gl Come Here 2 Add Watch dialog opens Click x Name start Add Rade Proper Hex Dec C Oct C Bin String SIZE Adaptive Bute Halford C Word Number Cancel Restore Help 3Adding a variable to watch window is completed LET n Add Delete wd 71 TK 850 JG3H 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 displayed when programs are running m Local Variable L im 9 3 6 Display memory and SFR contents By clicking the button below you can open the memory window Memory Search S ER Refresh 3 4 45 6 7 Emih Close 1 2 5 9 B 72 TK 850 JG3H User s Manual 9 4 WriteEZ1 If you forgot the
18. 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 WriteEZ1 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 WriteEZ1 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 B TK 850 JG3H 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 WriteEZ1 5 5 Circuit diagram 58 TK 850 JG3H 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 menu bar then New Workspace BER File Edit Find Layer View Project Build Tool Window Help New CtrtN B e Macan v I si 2 Open Ctrl O TEET Gtrl 5 Save AS Change Source File Mare Save All Source Files Print Preview Print Ctrl P
19. exe from Explorer etc zi NEC Electronics Microcomputer Development Too s St tu Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs TK S504IG3H 11 00 Oet 20 2009 Copyright E NEC Electronics Corporation 2008 Readme First Install Documents Sample Program 2 Press the Sample Program button to start the WWW browser 14 TK 850 JG3H User s Manual i Sample Programs Microsoft Internet Explorer File Edit View Favorites Tools Help gen Back p fx at A Search j Favorites Media Ca Et E Sample Programs Welcome to TE s50 7G5H world The purpose of sample programs is to experience TK 850 JG3H sample programs consist of the following items Copy them to the PC which TE 850 TG3H has installed e TES50 o SAMPLE JissH m SAMPLE IG3H prw Sample program described m the TE 850 TG3H evaluation kit tutorial guide Reter to the User s manual below for usage KE i Done mi EN m BR Local intranet Z Click the TK 850 JG3H Sample Programs link the following download confimation window appears File Download P OA d Some files can harm your computer IF the File information below o looks suspicious or you do not fully trust the source do nat open or save this file File name TK exe File type Application From FSSAMPLE RV This type of file could harm your compu
20. 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 an 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 required for one application system A workspace file contains one or more project files The file name format is xxxxx prw 30 TK 850 JG3H 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 JG3H prw under the directory C XTK850XSAMPLE JG3H rm say PM No Workspace OutPut O xl File Edit Find Layer View Project Build Tool Window Help New Ctrl N h Mac ADDR e Open
21. ta continue sl neo 19 TK 850 JG3H 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 New Hardware Wizard Please choose your search and installation options Gei Search for 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 TK drtve Don t search will choose the driver to install Choose this option to select the device driver fram a list Windows does on m the driver you choose will be the best match for your hardware Click Next d 4 If the following dialog is opened click 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 is important Continuing your installation of this software may impair or destabilize the correct operatio
22. 0 Microcontrollers Only 4 6 v Select only Installed Tools cmm 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 V850 Tw 850 Ee Click Detail Setting button 60 TK 850 JG3H User s Manual Tool Version Detail Setting a xl a DN Ve Ge ieee M Unused Iw Unused _ Select tools as above screenshot then click New WorkSpace Step 2 9 Select Tools Changed S elected01 MOD Series Software Package V4 20 En a select Real lime WS 3 Register Models v Select only Installed Tools Click 61 TK 850 JG3H User s Manual New WorkSpace Step 4 9 Startup File 3 select Real lime WS H Hop DIN SE 2 BODY fom H Wop BIOS e C AATKS50 test crtE s Press the button New WorkSpace Step 5 9 Register Mode a select Real lime WS Press the button 62 TK 850 JG3H User s Manual New WorkSpace Step 6 9 LinkDirective File a select Real lime WS H Hoe DUNN SC BODY Mom DIGWSE C ATKS50 test test dir Press the button New WorkSpace Step 7 9 Setup Source Files OEITONE a select Readme WS Hemoye Al Up Dov Press the button 63 TK 850
23. 1981 xg OL9d IHM LLOd wan goldo G t LLOd aan SIN 20149 t deng 9534 LN 6 QNO L t SSAA 13534 z 8 QNO rech aa a e aa a 9p s E Jano 82 LNOMTO IWOd IX 9 QNO 4 HNOd LIVM LLAVIL LLAVOL LLLAVOL 09d HE HOS8A SSA sano S5 dan 09d Gu 0LavoL oLaviL LdLavOL Lod 9534 QNO L H9d 8lSv eLavOL eLLavOL zod i dan QNO 3 dana 9d 0So Lavoul caL avO L tod oana z z QNO hi 9d ZSO ELAVIL E LAVOL ELLEVOL P9d WION DYLAW ZOd LNI E0d and L v9 SO 1aVLA3 edL avOL S9d IWN 20d 0 GND Hg S9d Odv o1ad L J3HAV E LOv L1 d LONV LLd LJ3HAV LOVE Lag zav z1ad 0ONV OLd 00140 LSE oan zidd Qv 1dd SSAV 1sud ldSdu 1dd vOV r1dd v 0d3HAV LIV 9Sd v1dd o oaa 0J3HAV swa OHW Sd o L gt Sime 0J3HAV LJ3HAV aaa moa pieius D gus Gp EE XU iaa SOG 9952 5 25253233333333 ONd3OuL Po ame ess SSSSsseSre gasenee e amp vivaoul SEBSOBBOOOOOUZZZZZZZZZ222 T econ yor SO UV DOGO vVORU OooOONoOUROV O JnL O anyo anyo 84 OWIVGOUL F 3 leo oo oo loo oo co on oo o Joo co o o xo co co Ico ko ko ko J eV o NI 00 co O INS 0d S 010 66 O N o B Kale 1 00 co JO GH vo 63 MTODHL X i L3HIMN d uj uj v uj v EE SS EE EES E UNOWON Sd Ba Fe Br co o VSQrS z VG0S HEJIH MS 13534 Od E 16d edd 8 001 aagaNDMS G6d tld I Qq a 6d ES 880 SHO 1 SSd TS DES Sd S0d 81MS l d Sad Zed 880 SHO eldd L LL1Od p 0 T Oa adna X 61dd L MS anyo Ged idd 880 S
24. 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 56 TK 850 JG3H User s Manual 4 2 2 Incorrect ID Code Ff603 This error occurs when the security ID stored on microcontroller built in flash memory 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
25. 850 H Q Include Files C Program Files NEC Electronics Tools Cas50 W3 20 bin hx850 e Project Related Files Z Other Files Build Total error s 0 Total warningis 0 EOF ID850QB is launched d Z For Help press F1 jn jo poen e eot RE 40 TK 850 JG3H User s Manual Configuration dialog is opened Follow the settings below and click OK Enter 6 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 Configuration BENT x Chip Clock mcm M ame upp 70F3760 reen f ance Internal Memor 1 CD Restore ROM 256 E KByte 7 Pyme Project Jm Data Flash EB hes ID Cade Use Data Flash Programmable IO Area Start Address Monitor Clock System Peripheral Break Break Target Device Connection Fort JUARTCO C User f Hon Break Mask OEM M Wei E Miz E HLoRG RESET E STOP welt TE DENT T MODE DI Target Depend sl Memory Mapping Access Size Ce BBit 1EBit C 32Bit Memory Attribute Mapping Address amp Chip Delete Target Add Click when the confirmation dialog for downloading load module file is opened IDG amp 50QB X K WE ZOU Do you want to download Load Module File Ves No 41 TK 850 JG3H User s Manual Download
26. 87 while g start gt PIC12 8x47 RTCAMK 1 TM EQICO 8x87 P9L 7 1 Z while g start ya segLE sz anni H P mainc 16 main Ss 00000004 BREAK Z4 When the program stops the status bar changes back to the original color 45 TK 850 JG3H User s Manual 2 11 Close Debugger ID850QB Select File on menu bar then Exit 45 1D8500B Sample JG3H prj File Edit View Option Run Event Browse Jump Window Help Open Cirio E SS E ESI Saves Close Download ch Quick Refresh Close Load Module dm OGC E h initialO ACAjaUaadeacay Project E EI fs GPl a eiR i eT Environment t w led 8B gy count B Debugger Reset while 4154 Exil g start H TMBEGICA Hx47 PIC12 HxH 7 b while g start Y va u lal PIC12 Hx47 n RTCHHM i IMHEQICH HxH 7 F L 7 1 D while g start 1 34 eech E The exit confirmation dialog is displayed main c 16 main 00000004 BREAK YA IDE500Q6 P This will end your Debugger session Do you want to save Ehe settings in the project File e con If you click it saves the settings in the project file and then closes the ID850QB It is recommended to save the settings as it saves the window you used window size layout etc If you click i
27. HO d SICH e dei Led _ 1dd LL 62d evd x dd EMS a e 880 5H9 aan LLOd zio lt B m o E gia z Jas3H1 K ZL6d S MS E 13534 L JWOd 01 MOL Mor Mor 66d Su vu u eu aa l d dh o 04 99g b L L E tH at Ad 69d B E Lid 19d OSaYAV dana JUNOWON VSGrvS c v q0S HEJIH 0J3HAVQGA L33HAV 79 TK 850 JG3H User s Manual jo z Saus 61Z00SOL JequinN 1ueunooq HESf 0S8 XL SOPMYALNO T S d 9dd vad Cu a PSOL MPaLNO ZYN anto a80 SH2 Sco AA C AIAZ LO LOATPLNS Ano MS Leu L LMS Ano Ano ZB XOL 20 zzo tzo z oloo 2888 T adA sn aaA sn ang D E aaaasn 9N0 038 Qd ANTI Oo O aa asn 3da 9i L d ondasn e endl endL i zr 094 wasn Lo i e a lz szy zr 81 000 edLNI zed dasn Let i CH Se ZER SNIA m CG MS S0S OdLvW18 ISS gA voexn mem gi V Q00 2dLNI I6d oo3uasn er uvm EN oO O Znal 9NdL 02 PPAZ PPA ei ss ss R a a For dnzp 0 ASIA V T 029 i m zz 90L siL eed 9034 Ce X004 zai gg O90L 0S1L 21d VOGDO IX IZId rs 619 noaszioeoNT4NS e 924 LIZ ea zai yg HOL aoaooprioxarexieetd 7 wegen i diea MOL Scd L 13938 Ko og De gg Std oand Le STATE i E m MOL vou x LMS seq durs idssH Fc z Si 9GXL ELd IAX3 0dLNI OZ Ld i E aa asn Z 2 Ldd O NE e ena OT SSES ORDO sn L vn L a ena OA pz DUR OOOL OLOLL
28. JG3H User s Manual me WorkSpace Step 8 9 Select Debugger IDS5006 Vw 3 50 Y850 Integrated Debugger 3 Select Real Time OS Press the button New WorkSpace Step 9 9 Confirmation a select Heal hime WS Press the button 64 TK 850 JG3H User s Manual ios PM test prw OutPut File Edit Find Layer View Project Build Tool Window Help S DSH S Be Ar 2 s3 lIumai 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 Toc indo elg Se D um ki amp ES H PG Co ion Options mpiler Comm e Ba A ee a E TIT S l ator op ltest tet Debu Compiler Options But A m Assembler Options Steen BER Files Memo ROM Processor Options Hexa Converter Options Er 5 test 1 Project s Static performance analyzer Options 5 8 test j gt Source Files dump850 GG Include Files is Project Related Files Debugger Settings es Other Files Register Ex tool Start up Ex Eaol la File Compare Device File Installer PM
29. LOd sa mm i peus Luut gg DOE idLNI OEd z 5 13s381 an 80 SHO BEN osn 8 m OU ge ou Seu gana v TMS anto BEN 810 bed aa asn aa a adaa LOGLODEDATPZNS v NOdSZLDZOAIYZNS Z T axu 880 SHO i von 8 oana o Oo BEN Shee Moor 0cu adna Z LMS 614 aa asn S dana L9 aaA3 80 TK 850 JG3H User s Manual Sa HeLLLOd Fam DEE eH df YAMOd 61200801 1equinN 1ueuinooq YAMOd Hd3l Nvc 244 ad Hd3IAVE D33 ad Jaydepy 2v z HI c 1 AS2 4N0 dr LA NOoOIgpL GdL o ON n T 4J49MOd ggg eLno LLNO ino odi zNa LNA NA oqi LNIMS NIA 0 9 10 02 0935H YNO Acl anko ASc AnZ v 83 LH d3lNve 244 caa asn aa ssn asn 088 CA gsn 3nqeq z 1 JeMog JSN N dOS ZHN8r 01 98 Q o i gt vo Pius o pays clm ask o ad i 0d S Z0d o o z om aro 0 9 adna gt r aana LO jns E AOOSAVSN 629 pieius 08 2 Coen lt gt aan 820 e ECH p lt gt sian l1SS dA vooxn casn 21 S0s29dvW 18 eaa asn ed X WO Eft ad MOGSZLOLONTPZNS MOAZELDLOA IHL cvd e o1 AN us adan 8n 0 Z ug ango jni o 129 929 aaan aana we C zu P eo KK ltd ld 2 91 EdL L 81
30. Project Group 38 TK 850 JG3H User s Manual 2 Check Board Settings Before connecting the PC and the TK 850 JG3H with USB you should check the setting of SW1 on the board D Set the SW1 of the TK 850 JG3H as follows SVO 2 After the switch settings are completed connect the PC to USB1 on TK 850 JG3H with USB cable 0000000000000000000 ms d ran Ad S NA C357 038 et SUE m s D k d Si a kA e use p E 9529 1 R2LEL TT ENZ E La E B 30 TK 850 JG3H User s Manual 2 8 Start Debugger ID850QB Click the debug button Fr 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 ZG PM SAMPLE JG3H prw OutPut Dl xl File Edit Find Layer View Project Build Tool Window Help B pDewgleialirelg rece sel e gt eal Sample JG3H Sample JG3H Debug Build J AA S A ei Des Files Memo C Program Files NEC Electronics Tools Cas50 W3 20 bin cas50 C Program Files NEC Electronics Tools Cas50 W3 20 bin cas5so Sample JG3H 1 Project s C Program Files NEC Electronics Tools Cas50 W3 20 bin casso Sample_JG3H C Program Files NEC Electronics Tools Ca850 W3 20 bin ase50 7 1 Source Files C Program Files NEC Electronics Tools Cas50 W3 20 bin 14
31. Users Manual TK 850 JG3H Date published Oct 2008 Rev 1 0 TESSERA TECHNOLOGY INC 2008 Printed in Japan TK 850 JG3H 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 is subject to change without notice No part of this document may be copied or reproduced in any form or by any means without prior written consent of TESSERA TECHNOLOGY INC TESSERA TECHNOLOGY INC assumes no responsibility for any errors that may appear in this document TESSERA TECHNOLOGY INC 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 TESSERA TECHNOLOGY INC 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 TESSERA TECHNOLOGY INC 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 customer TESSERA TECHNOLOGY INC assumes no responsibility for any losses incurred by customers or thi
32. ase 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 18 TK 850 JG3H User s Manual 1 4 1 Installation on Windows XP 1 Once the TK 850 JG3H 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 Windows will search for current and updated software by looking an Your computer on the hardware installation CD or on the Windows Update Web site with your permission Head our privacy policy Sp oy an Windows connect to Windows Update to search for Select No not this time software C Yes this time only CO Yes now and every time connect a device Mo nat this time Click Next ue ee Click Next ta continue 2 Select Install from a list or specific location and click Found New Hardware Wizard This wizard helps vou install software Far USB Device Select Install from a list or specific If your hardware came with an installation CD location E or floppy disk insert it now What do vou want the wizard to do O Install the software automatically Recammendec Install from a list or specific location Adva Click Next Click Next
33. e hardware of TK 850 JG3H Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger ID850QB 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 This manual is intended to give users an understanding of the features hardware configurations development tools for the V850 TK 850 JG3H 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 JG3H TK 850 JG3H User s Manual 1 1 Development Tools Software Device file DF703771 V1 00 A device file contains device specific information So users need a device file to use the development tools Integrated Development Environment IDE PM V6
34. ed power from AC adapter 3 3 8 JP3 JP3 is jumper pin for LED1 connection setting JP3 LED1 turn on at power supply LED1 doesn t turn on 52 TK 850 JG3H User s Manual 3 3 9 CN4 CNA is the power supply connecter of the AC adaptor You can supply the power by setting the JP2 to 2 3 short and connect AC adapter 3 3 10 J1 This is the connector for external power supply DC5V 3 3 11 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 1708S not mounted by KEL Corp 53 TK 850 JG3H 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 7SegLED P90 P9 7 Short Sea Open when using it for other usages FLMDO to P37 on CPU FLMDO Open SC Short When built in flash memory is rewritten by self VDD EVDD EVDD Short S Open when
35. ening functional window can be made by below buttons However it could be difficult to know which button does what je e m er t EE EZ In this case select Options on menu bar then Debugger Options Check Pictures and Text on setting area Tool Bar Pictures With this setting the buttons display the text as well so that it is easier to know what they are E E ell E RE SS A dul E Open Load Proj sro Asm Mem Wich Reg SFR Loc ES bi H 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 C camman c I initialise c I interrupt c E E main c E BER 69 TK 850 JG3H 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 breakpoint is set Breakpoints are deleted by clicking B BER Search SC HE Watch Quick R 4Hivoid maintvoid feo E While 13 ml 4 EI amp k 4 70 TK 850 JG3H User s Manual 5 3 4 Display global variables With using Watch Window you
36. his 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 i x File Startup Link Directive ROM Flash Device 256M Bute Mode BPE Register Ss I em By checking this check box 256M6 mode is available When itis checked 256M option of the compiler the assembler 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 FFFFFFFFFFFFFFFFFFFF When you erase the data in the flash memory the ID is set to this value 33 TK 850 JG3H User s Manual If you forgot the security ID code stored in the address 70H 79H the debugger ID850QB will not be able to start In this case you need to use WriteEZ1 to erase the built in fla
37. id 19 1 4 2 Installation on Windows 2000 22 1 43 Completion of USB Driver iii eee ib tvi bib EE 25 CHAPTER Eeer 26 M circ ier nd V PPR ate TET EET 28 22 What KSS PM Eritre pia a E A AENEAN E T T 29 2 3 Load Workspace prolect kenken Annak tnter rentes tiens se seen sd 31 24 SeP ODEPOS csi Someries even EE CLE EID Ede M EL E p CHR LM O EI CU LE I Er LB EN ELLE 33 DAN 05110 M8 E EE 33 2 4 2 Preprocessor Tab 34 2 9 Create Load Module Files 00 cc cccssssscssssesssssscsesssscsesesscsesesscaesesesaessssssesasssaesasesaesasssssseuscaesesecaesesecaesecseaeseses 39 20 GNHECK DebHsser OeELIIE EE 37 Dis VAC CI Board EEN x A XI ELI d D EK DI E EE 39 2 8 Start Debugger UD SSO QE teet ot tte et d te diae buit 40 2 RUN PrO T AN eebe Eet 43 21O Stop Pros EE 45 2 11 Close Debugger UD8ODOOR E 46 242 QuiE GO 47 CHAPTER Bee RUE E GET eene LEE 48 3 1 Layout of hardware FUNCTIONS ooo eeeessescessesssssssecsessecsecseeseesaesacsacsacsansausacsaasansausansausacsaasausausansansaneansansaneaneas 49 92 Layout or solder Short LEE 49 239 Hardware FUNCTORS raien achat eats LM MM UCM DU IM dante ON bo AIDE 50 SN E 50 E RE 51 o0 WA E PT EE 51 Sr Bo CHR S X 51 290 BEDA ENEE 51 3 3 6 U3 7seg LED o c cesceccecsecsecsccessessessessescsecsecsessessessessesucsecsecsessessessesacsassucsessessessessesatsacsussessessessesatsatsissetsetsess 52 SE WA E HE 02 di9 O XII EE 02 TK 850 JG3H User s Manual d e
38. ion file Device File For 850E5IG3 H C Device File For 850E5 G3 U C Device File Far 850E5JH3 H C Device File Far 850E5 H3 U D 9 When the installation is completed the following dialog opens Click x J Installation Finished Lx D L 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 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 13 TK 850 JG3H 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
39. mple program is working The programs downloaded by ID850QB cannot use without ID850QB connection For stand alone operation write the HEX file by WriteEZ1 For more information about the WriteEZ1 refer to 5 4 WriteEZ1 document 44 TK 850 JG3H User s Manual 2 10 Stop Programs Now you are going to stop the program Click the stop button II or select Run on menu bar then Stop 2 ID8500B Sample_JG3H prj Edit View Option Run Event Browse Jump Window Help PN gt 2 Bizle aeg Ql alma sis El 1 9 5 o Source main c Search lt lt gt gt Watch Quick Retesh Close h initial aCajavaaa aCayY x EIQ va GPUea oiR i eT og led 8 g count 8 while 4154 g start TMBEQICB 8x47 PIC12 8x87 whileX g start 23 avaao PIC12 Reide RTCGMK 1 IMBEGICA 60x07 m P9L ES while g start 1 5 4 ya segLE sz ZC 7 annl 4 ME Stop the program 2 ID850QB Sample JG3H prj File Edit View Option Run Event Browse Jump Window Help Tjej n oto BBm mises ola s 4 Sisi Source main c Search d s lt lt gt gt meet Quick Refresh CI ose h initial aCaj avaaa aCalY x EI GPUea 9iR i eT og led 8 g count B while 1 gt g_start TMBEQICB 8x47 PIC12 8x
40. n o zubem either immediately or in the future j i Click Continue Anyway recommends that you stop this inst contact the hardware vendor for so passed Windows Logo testing Continue Anyway STOP Installation 20 TK 850 JG3H User s Manual 5 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Click Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software Far E MEL Electronics Starter Kt Sirtual UART Click Finish ta close the wizard 6 Goto 1 4 3 Completion of USB Driver Installation 21 Click Finish TK 850 JG3H User s Manual 1 4 2 Installation on Windows 2000 1 Once the TK 850 JG3H 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 Far 4 hardware device Click Next To continue click Next Back Ere Cancel 2 Select Search for a suitable driver for my device Click Found New Hardware Wizard Install Hardware Device Drivers device driver i a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device y USB Device A device driver i a software need
41. nual In this chapter the hardware of TK 850 JG3H will be explained u PD70F3760 3X V850ES JG3 H Clock External main system clock 48MHz 6MHz x8 Sub clock 32 768KHz Interface USB x2 MINI B connecter Connecter for N Wire only pad Connecter for MINICUBE2 only pad Expansion connector 50Pin socket x2 only pad 89mm x 52mm Power supply voltage 48 TK 850 JG3H User s Manual 3 1 Layout of hardware functions CNA Ji LEID JP3 JP2 JP1 CNT USBI A R EI 2 D 3 O DE tpug zd Mrs J USB2 CN2 U3 SW4 SW3 NWIRE1 SW1 SW2 CN3 3 2 Layout of solder short pad P03 P02 AVREFO EVDD AVREF1P90 P97 FLMDO RXD ges W cal p Ny a Go EDT RM FCSOOZIEPSS L pum 2 a i P42 UVDD P41 P99 P98 P78 P711 T RESET 49 TK 850 JG3H User s Manual 3 3 Hardware Functions 3 3 1 SW1 The bit 1 4 on SWT are for mode settings Bit5 8 of SWT are connected to P78 ANI8 P711 ANI11 for general purpose input port Q For the use of ID850QB use following settings sWi When ID850QB is used these terminals cannot be used because it communicates with the host machine by using and the terminal P30 and P31 Please change to the following settings when writing it in the flash memory with built in CPU by using WriteEZ1 The hardware of WriteEZ1 is built into TK 850 JG3H SW1 To run the programs stored in built in flash memory by WriteEZ1 use following settings and re
42. nufacturer s files from C AFrogram Files NEC Electronics Tools T are v 23 TK 850 JG3H 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 7 USE Device Windows found a driver for this device To install the driver Windows found click Next c program files nec electronics taols tk drreersmabzsall inf Click Next Back Ce Cancel 6 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Found New Hardware Wizard Completing the Found New Hardware Wizard O MEL Electronics Starter Kit Virtual UART Windows has finished installing the software for this device Click Finish To close this wizard click Finish mw Lance 7 Go to 1 4 3 Completion of USB Driver Installation 24 TK 850 JG3H User s Manual 1 4 3 Completion of USB Driver Installation Confirm the USB driver is installed on PC Start Device Manager and find NEC Electronics Starter Kit Virtual UART without mark under the Ports COM amp LPT Device Manager L Computer Management mi Fie Action View Window Help le x e mm SG a Ra Sc OPT IOL 4 Computer g Disk drives E Display adapters bh DVDICD ROM drives ta Human Interface Devices ic IDE ATA ATAPI controllers
43. oll down to see the rest of the agreement USER LICENSE AGREEMENT IMPOURTANT READ CAREFULLY This User License Agreement ULA amp is a legal agreement between you either a natural person or an entity and MEC Electronics Corporation NEC for the SOFTWARE PRODUCT As used herein SOFTWARE PRODUCT means the NEC s computer software products provided with this ULA which includes computer software and may include associated media printed materials and online files or data By installing and using the SOFTWARE PRODUCT vou agree to be bound by the terms of this ULA F vou do nat agree to the terms of this ULA do nat install ar use the SOFTWARE PRODUCT is Do you accept all the terms of the preceding License Agreement To install this product you must click Yes to accept If you choose No Setup will exit Be ve D No _ WW Enter the product ID and click The product ID is available on the other sheet X InstallShield Wizard Please enter the product ID of the product Enter Product ID Product ID ig written an the case ar in the accompanying documents Product ID InstallShield lt Back C Next gt D Cancel 7 It starts copying the files 12 TK 850 JG3H User s Manual If the install Wizard Kind of File dialog displayed Select Device File For V850ES JG3 H Click Install Wizard Kind of File X Select the kind of installat
44. ollows 2 1 Start PM 2 3 Load Workspace 2 4 Set Linker Options 2 9 Set Compiler Options 2 6 Greate Load Module Files un Programs 2 9 Start Debugger 2 TK 850 JG3H 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 CG PM No Workspace OutPut A D Je m 3 L WM mum TTI F u CA mint 2 28 TK 850 JG3H User s Manual 2 2 What is PM In PM application 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 s PM No Workspace OutPut File Edit Find Layer View Project Build Tool Window Help B DSH SR ProjectWindow Files Memo Bel 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 For details regarding menu bars and tool bars refer to Help menu in PM Help on menu bar then PM Help 29 TK 850 JG3H User s Manual What is a project A project is the unit that is managed by PM A
45. rd parties arising from the use of these circuits software and information 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 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 using the wrist strap The connectors and or device pins should not be touched with bare hands TK 850 JG3H User s Manual Contents CHAPTER PRE FA KA TON ela dea a dh do A SE ho SN AR SU SDO O DD R k k 7 1 1 Development Tools Software wwwwwwwwwwmewamwamanwamwnwamiwwwwamiim wiki 8 1 2 Installation or Development EE 9 1 21 Installatori Tac kde us deuote uM E LM E M PE 9 1 2 2 Installation of Development Tools 9 ko Samp Ee EE 14 13 1 Preparation of Sample ST TEE 14 1 3 2 Overview of Sample Programs esses tnter ARA EAA ARA Rate tata sss nnne 17 RE dfnstallation of USB RE 18 1 41 Installation on WIDdoWs XP ist idearum bonor Ll a ER v des Lol un x D c LED D
46. s gt Specify the name of the device to be used described on the following pages 59 TK 850 JG3H User s Manual New WorkSpace Step 1 9 Workspace Information E x Workspace File Name Input the workspace information setting as fol lows test 1 Workspace Information 2 Select Tools Create Blank Workspace 3 Select RealTime 0S Folder Workspace file name CATKS50 test Browse 4 Startup File tt Project Group Name 5 Register Mode test i Kee IT O O 6 Link Directive File t Folder Microcontrollers Name Device Name T oep Salata Me V950 E SEK 8 Select Debugger C TK850 test 9 Confirmation 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 Cancel Device Name uPD70F3760 Click button X PM N 02011 CATRGSOstest H This folder cannot be found Do you wish to create td Click button New WorkSpace Step 2 9 Select Tools l x Tool Set 1 Workspace Information Selected01 w350 Series Software Package V4 20 E nalish Versio DI 2 Select Tools Save Delete 3 Select Real Time US Tool Versions 4 Startup File H 5 Register Model IDSS0QB Unused 6 Link Directive File tt 7 Setup Source Files 8 Select Debugger 3 Confirmation tt 85
47. s driver files for your ned device installation click Nest Select Search for a suitable driver for my Click Next Cancel What do vou want theAzard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can chod driver 22 TK 850 JG3H 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 Search far 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 M ext IF vau are searching an a floppy disk or LD DOUM drive or D 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 Program 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 Dk L selected and then click OK Cancel Select the driver directory Click OK Copy ma
48. 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 WriteEZ1 to erase the flash memory WriteEZ1 cannot be installed from an integrated installer Please execute YWriteEZ1XWriteEZ1 exe from attached CD The hardware for WriteEZ1 is incorporated in TK 850 JG3H Down loaded program by ID850QB which is down load with monitor file for debugging is not run stand alone The program written by WriteEZ1 which is not including the monitor file is able to run standalone D The switch of TK 850 JG3H is set as follows and connects TK 850 JG3H to PC SW1 73 TK 850 JG3H User s Manual Please execute YWriteEZ1YWriteEZ1 exe from attached CD lo xl Device View Help Se Openning a Flash Open DK Mame Firm version Eat ode Vendor Mame Format Version Processor Ver Mame Date Lhksum Area Connection to device Fort Speed Range Freq Multiply 3 Push the Setup button Standard Advance o Parameter file d PAM File Read Host connection Supply oscillator Part Frequency MHz Speed Multiply rate Operation Mode e hip Start v C Block End Sea Show Addres Target Reset Message Push the PRM File Read button 74
49. sh memory By erasing the flash memory the security ID is set to FFFFFFFFFFFFFFFFFFFF For details refer to 5 4 WriteEZ1 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 t is useful feature when editing programs Compiler Options Ei Detail of Optimization External Register Output File Output Code Message Assembler Others General Input File Preprocessor C Language and Kanji Optimization and Debug Information Include Search Path Edit Define Macro Di Edit Undetine Macro Ll Edit Limit of Number of Macra m Preserve Preprocessor Comment C Use Trigraphi v Use C Style Comment Xexecom Command Line Option cpu F xcxxcom g Cancel Apply Help 34 TK 850 JG3H User s Manual 2 9 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 or select Build on menu bar then Build CG PM SAMPLE JG3H prw OutPut In x File Edit Find Layer View Project Build Tool Window Help a OSHSA Sel Ape azllegt Ile Sample JG3H Sample JG3H v Debus Buid A XZ HE In x Ge E Fies Memo EOF
50. supply power SWI Please change to the following settings when you connect N Wire emulator SW1 50 TK 850 JG3H User s Manual Q Bit5 8 of SW1 is connected with the following terminals CPU It is 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 GW P78 P79 P711 3 3 2 SW2 This is the reset switch You can reset the microcontroller by pressing this switch 3 3 3 SW3 INTP12 SW3 is the push switch connected to P98 SOF1 INTP12 pin in CPU There are connecting to pull up resister When the switch is pushed down it sends the signal of Low 3 3 4 SW4 INTP13 SW4 is the push switch connected to P99 SCKF1 INTP13 pin in CPU There are connecting to pull up resister When the switch is pushed down it sends the signal of Low 3 3 5 LED1 POWER This is the POWER LED It is lighted when it gets power supply 51 TK 850 JG3H User s Manual 3 3 6 U3 7seg LED Jseg LED of U3 can be lit with P90 P97 Please set the port mode to the output and output Low signal from the port U3 P95 P91 P94 P93 O The figure of 0 9 can be displayed by writing the following values in P9 register Example of displayed figure and set data o o SES 3 3 7 JP 1 JP1 JP2 are the jumper switch pin to select power supply or It is suppli
51. t does not save the settings and closes the ID850QB 46 TK 850 JG3H User s Manual 2 12 Quit PM Select File on menu bar then Exit PM P nm PM SAMPLE JG3H prw Project window File Edit Find Layer View Project Build Tool Window Help nix New Ctrl M Cu Open cuo E Sak KR mm de file Debug Build J amp REA HR Close owt oix Files NEC Electronics Tools Ci6504 03 New Workspace hor Program 20 bin casso Open Workspace ee AA C Program Files NEC Electronics Tools amp C g50 W3 20hbinVcas5Dn chess z C Program Files NEC Electronics Tools amp C g50 W3 20 hbinVcas5Dn PAE C Program Files NEC Electronics Toolsi CAs50403 204binyass50 Save Ctrl 3 C Program Files NEC Electronics ToolsSCcA850 W3 20 binlda850 sy C Program Files NEC Electronics Tools Ca s50 03 20 bin hex 50 Build Total error s 0 Total warning s 0 eo Download C TEGSOVSAMPLE JG3HYa out to the debugger EOF Change Source File Name Save Al Source Files Pring Preview Print ckr H P Recent File Recent Workspace Exit PH F k Exit PM and prompt to save the Files Es L Ee z PM is closed The experiences section ends now You can find more information how to use the development tool and information about other useful features in Chapter 5 Other Information 47 TK 850 JG3H User s Ma
52. ter if it contains malicious code Would you like ta open the file or sawe it to your computer Click the butten 15 TK 850 JG3H User s Manual p ES Documents and Settings Program Files WINNT WUTemp Dezkto p Lo My Documents Mu Computer w File name Save My Network P Save as type Application Cancel KE 5 After specifying the download destination folder click the button 6 The self extraction sample program TK850 exe is copied to the specified folder The folder that the TK850 folder is made when this file is executed and the sample program is stored under the TK850 folder 16 TK 850 JG3H User s Manual 1 3 2 Overview of Sample Programs The sample programs consist of following folders SAMPLE JG3H SAMPLE JG3H prw Work space file main c Source file 17 TK 850 JG3H 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 JG3H 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 CAUTION 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 Ple
53. 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 mm Lt TEF pre ETE SLE ENEC T ES LJ 34L7 RT EET 7E CT RE mE ja PEOLE X eRe aia ZP Dpemonsrrarionm Frogram for TE TBFD73D Wa mpp7aro730 W za tal im 4 d inirialise c Wa interrupt W Hpragma eik Fine luge m s Ah Extern void B imirial r ZUSIPJIDO INTIPI SUA PIZZA d TaeglLED PL void mainii d h amp nitimbil r Initialize s t EIL CPU incercupe permit while 1104 l A arr Did IF H 6 s jv HRAN G 1 4 By loading the sample programs you can confirm running the board Input output for operation check use eg LED Push switch TK 850 JG3H 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 with using sample programs Hardware Specifications Explain th

Download Pdf Manuals

image

Related Search

Related Contents

Section IV. TROUBLESHOOTING 3-6. General This section  TP-Link TL-WDN3800 User Guide  60428IST Tonic  User manual  MSI Classic CR640-221ZA notebook  Decorrugation (T32) - Intrepid Geophysics  Proxiguard PG-2002S Lector de Ronda  Samsung M5  Manuel d`utilisation HB4056-01(EN)  Bulletin CA71E Handy Calibrators CA51/CA71  

Copyright © All rights reserved.
Failed to retrieve file