Home

User`s Manual

image

Contents

1. 23 C1 C2 C3 C4 C5 C6 C9 C11 ceramic cap 0 1uF 15 17 18 19 23 24 25 27 28 33 C34 C35 C36 C37 C38 C45 C50 222 14 13 415 MR3 MR2 NWIRE1 R1 R20 R21 R22 R27 R31 R34 R43 R2 R3 R4 R5 R6 R7 R8 R9 R11 R12 R14 R15 R16 R17 23 Not mounted L6 Common mode filter 45 510 2 148 102J Chip resister 1 R55 R62 1 __ ____ _ 5 R24 R25 R30 R44 GW 02 GW C NI NI N N POP N N O o BY C amp S dw R10 R13 R45 R46 R47 R48 Not mounted Not mounted 80 TK 850 JH3E NET User s Manual SW2 SW3 SW4 SKQMBB ALPS TPU1 TPU2 TPU3 TPU4 TPU5 Check terminal Not mounted TPU6 TPU7 TPU8 TPU9 e wr pm RARHE Lm z usus 008 _ Dm 1 uw C _ 1 pu _ m u pem _ p uw LEES mr Ew z _ m1 uw T pecs 0 N _ 00 _ _ K resonator _____ _ _ pr D ARRAGON
2. Load the Parameter of FlashROM to RAM param load Interrupt Enable __ 1 Network initialization cnet init Setting of network interface netif setup Start of HTTP server cnet_httpdinit Seg init seven_seg_init gt while 124 Execution of sample program of mail pr mail_sample gt E 2 ms 2 When programs are running the status bar will be red 44 TK 850 JH3E NET User s Manual Confirm if 7SegLED U3 on TK 850 JH3E NET is lighted 22 TESSERA HADE JH JAPAN ME iE d UT jo s ac fr POWERS 4 B 7 Seg LED Y You could confirm the sample program is working The programs downloaded by ID850QB cannot use without ID850QB connection For stand alone operation write the HEX file by WriteEZ5 For more information about the WriteEZ5 refer to 5 4 WriteEZb document 45 TK 850 JH3E NET User s Manual 2 10 Stop Programs Now you are going to stop the program Click the stop button or select on menu bar then Stop 2 ID8500B cnet prj dit View Option Run Event Browse Jump Window Help Ci e aime 2 5018 Egi 91 12 Search pes Esset Watch Quick Refresh Close
3. MESE MB Mb SB Sb MESE SE SB SB Sb x a lt 204 LY 66 LOd LNI 20g8VOL 2O8VIL Ocd 00 20108 200 264 08 90 1 964 SSAA 90d LNI SSOLVVOL IEVVOL F CVV OZVVOL OZVVIL 08 0 4 5 64 LEWVOL LIVWIL OE CXL PAIS EEd 01 1 01 24 5 0 8 264 10 1 10 2405 090 164 00VVOL OOVVI L C31S 00 QXL O d ASHQ LEdLNI PSd SINQ OLd LNI ESd MOC 60d LNI 2Sd 4 IQQ Z0dLNI 0Sd Qv 0oO0dLNI E0d 204 LIX ldSdu ox SS 9944 ddan S0dLH LPVVOL LeVVILL O3MOS Svd Ouq1H vr0d1H VOQXH 03OS rvd 0 1 0415 6 c0d LH OP VVOL Ot VV LL O34OS cVd LOdLH L010S 0QXU 0HOS Lvd 0041 10 05 6020 1 0 15 0 SSAV 0d3HAV 00 114 2041 1 2 18 108 1 108 11 224 1 091 008 41 008 11 124 01 024 Scl 92 201 801 d 2 024 lt 824 v 001 gNLIOE V1 ASc 3n l 919 Sg8NOMS r YMS 8IdINI B Ly li 01 01 LaL 020 aNd Pie gag 949 5 VOX SEd ved lt 2
4. TK 850 JH3E NET User s Manual 9 4 WriteEZ5 Since the program downloaded by ID850QB includes monitoring files for debugging it cannot run stand alone However if you use WriteEZ5 to write programs it does not write monitoring files Therefore it can run stand alone Also 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 WriteEZ5 to erase the flash memory WriteEZ5 is installed at 1 2 2 Installation of Development Tools Start WriteEZ5 by selecting Windows Start menu Programs NEC Electronics Tools WriteEZ5 V1 00 and WriteEZ5 The hardware for WriteEZ5 is incorporated in TK 850 JH3E NET D The switch of TK 850 JH3E 4 NET is set as follows and connects TK 850 JH3E NET to PC SW1 OFF ON 75 TK 850 JH3E NET User s Manual 2 Please execute WriteEZ5 bx Filg Device View Help Flash Open Mame Firmware Mame Version Mame Chksum Area Connection ta device Speed Range Freq Multiply SCRL 3 Push the Setup button F Device Setup MENO X Standard Advance Parameter file d File Head Host connection Supply oscillator Fort
5. Frequency MHz Speed Multiply rate Operation Made hip Start Block Endi Area Show Addres Target Reset Message 4 Push the PRM File Read button 76 TK 850 JH3E NET User s Manual c 31 xl Look in PRMT F3786 E100 dm 778 CsIO prm 7023781 CsID prm 70F3784 CSIO prm 0 3778 CsI3 prm 70 781 2513 7023784 CSI3 prm Bo e CSIO prm CSIO prm 510 70 3779 CsI3 prm 8 70F3785_ CSI3 prm 70 780 2510 prm Rt 3 7063786 CSIO prm 780 CSI3 prm 70F3786 CSI3 prm 5 Please select 70F3783 CSIO prm in the directory of PRMXPRM70F3786 E100 in the CD ROM E Device Setup X Standard Advance Parameter file T0F3783 CSID prm File Read Host connection Fort Speed 39400bps 27 Operation Mode Black ER Area Show Addres Cancel Port selects the COM port number where TK 850 JH3E NET is allocated Only the COM port number that the personal computer has is displayed in this pull Target Reset Message down menu Input 6 00 to Frequency Input 8 00 to Multiply rate Input 38400 to Speed and chick OK 71 TK 850 JH3E NET User s Manual x File Device View Help Ld gt Flash penning E Flash Open Mame
6. Optional search locations Floppy disk drives CD ROM drives 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 under the installation directory Click Found Mew Hardware Wizard Insert the manufacturer s installation disk into the drive selected and then click Select the driver directory Click manufacturer s files from JC Prograrn Files NEC Electronics TK drreer 23 TK 850 JH3E NET User s Manual 5 Click Driver Files Search Results The wizard has finished searching Far driver files your hardware device The wizard found a driver for the following device y USB Device Windows found a driver for this device install the driver Windows found click Next files nec electronics Click Next lt 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 lt gt MEL Electronics Starter Kit Virtual UART Windows has Finished installing the software for this device Click Finish close this wi
7. blemon Mapping Access 5122 v BBit 1681 C Memory Attribute Mapping Address amp Chip Delete Target Add Click when the confirmation dialog for downloading load module file is opened 1085008 X hy P WFFOO Do vou want download Load Module File Yes 42 TK 850 JH3E NET User s Manual Download CATRBSINIHSE CNE object loading symbol loading Cancel When the download is will be displayed 2 ID8500B cnet prj File Edit View Option Run Event Browse Jump Window Help ar ome 29 7 Source main c Search lt lt gt gt Quick Refresh Close oid void gt Fs hw_initialize gt Load the Parameter of FlashROM to RAM param load Interrupt Enable __ 1 Network initialization cnet init Setting of network interface netif lt 52 Start of HTTP server cnet_httpdinit Seg init seven_seg_init gt while 124 Execution of sample program of mail pr mail_sample gt ms 1 lt 1 gt main c 106 00000004 2 ID850QB starts and downloading the program to flash memory completed the source code NOTE Completion of the download does not mean running the pro
8. gp 402970 188 407 ISOL LSLL EEd 2934 vad 6 a m 020 2001 0901 09 14 1214 4 c 8 1 2 8 Z A FT HOL 9Ld 1 T ouESADNBIJOLSO 28 77 a 0L 18538 lt Og z 5 bie gg Std oand arn 9 x YOL veu MN us 9aXu rld 13934 9QXL Eld IATXA 0d LNI OZ Ld aa asn E ena OA 0105 14 0001L 00d 1 2 O3 2 1 10Q 09 0A NS 001 peus inui Ot zg 09108 014 2 S 19538 1 M 10070960 LNS osn m aK Oy S Gan anyo Aen asn 619 aa asn LOALODEOATPLNS 7 lt 880 SHO 0013 sjo 9 2 d ED 001 ven 9 ozy 2 1 8 001 819 TK 850 JH3E NET User s Manual 600c 60 snony S8LOOSOL SL jequinN 1ueunooq 19 3 098 410 L AG2 ANOL 1 260 7 8 19 avi LNOA NIA 2 T 2M 159 9 1 09 n casn 21 5092 Ld3lN89 0443 aa asn 0115
9. pm i uM 196 _ 81 TK 850 JH3E NET User s Manual 143 1991 233 26 918 4001 8 4 AS E 033HAV 18534 LNO S8LOOSOL SL JequinN 1ueunooq 264 864 S6d 96d 2164 864 664 _ 0164 LL6d 2164 401170 6164 69 no SL6d LWOd 60 ONOd 0104 Qd 5104 AOL 7109 6 66 V d 9104 26 1144 S6 109 8104 86 61104 610d 16 21104 01104 68 11104 28 01104 21144 S8 6104 41170 51104 88 8104 18 qd 99 62 9104 21 94 4 LZ qd 69 Qd 29 S9 9 199 19 69 48 H d 99 59 LHOd IS 6 9104 47 vlOd Sv v 0194 2504 62 0SOd 42 96 LE 6164 vl6d 6164 52 c 12 0164 61 66d 21 86d SL 264 L 96d LL S6d 6 L 6d g 264 164 06d 2425 Zd UO ul OF 05 o o 45 OV cLdLNI OBM LEGVIL LEaVOL LLEaVOL 06d W OLGVOL LHM OLBVIL LHLGVOL L6d LaL NI ZUM cLaVILL Fa VOL GL FH VOL c6d Ld LNI EBM LavOuL cd d VOL E6d vYV SLdLNI FHM EL8VIL E LH VOL ELLGVOL P6d SV 9 Ld LNI SHM LG LA3 8L8VO L S6d 9V 00LOL 9YM O0LIL OY OAL 96d ZW LOLOL ZYM FOLLL OOONAL Z6d 8V Z Ld LNI LOONAL 86d 6v eov as sD aXL L3IS 66d 0LV 010S SD GXu L3OS 0L6d LEV OSVV
10. Search gt gt Watch Quick R 20 maintvoid While 4195 ml 4 EI amp 4 71 TK 850 JH3E NET User s Manual 5 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 15 described Right click the variable on source window then select Add Watch Search ex gt Watch Quick Refresh Close 22 while 419 2 Move IMBEGIC PICA Add watch Symbol while lt x Break when Access En this Variable Ur a _ Break when Write bo Ehis Variable Break when Read From this variable P9L 7 Event Information 4 _ Come Here 2 Add Watch dialog opens Click start Add Proper Hes Dec Oct Bin String Adaptive Halford Word Humber _ Cancel Restore Help 3Adding a variable to watch window is completed Bi watch 1515 Add Delete NE x5 72 TK 850 JH3E NET User s Manual 5 3 5 Display global variables internal RAM while programs are running RAM general purpose register and SFR can be referred by the pseudo real time monitor function even when the programs are running Select Option menu gt Extended Option Follow belo
11. 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 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 JH3E NET 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 JH3E NET TK 850 JH3E NET User s Manual 1 1 Development Tools Software Integrated Development Environment IDE V6 31 The IDE works on Windows operation system Users can develop a system efficiently by using the editor with idea processor function compiler
12. 0115 MOAZELOLOATHZ 02 21 tal 069 10 02 094 0 05 2 ceu 953 sey YNO peius lt lt peius a a lt 84 TK 850 JH3E NET User s Manual 81719 V1lL 19915 88100801 51 JequinN 1ueuinooq MEO 961001 aa 0 2 04 2070 1 6 67 123 ALIAIIOV 1 6 67 1 6 67 1 66 5009948 MEO 960721 9S4 vX1 H3 XL LNIU VIV LX NDETIO AHd ALIALLOV AHd PINIT 0QqvAHd 00Ld33dS 00 9 1 4409394 719 Xu LEN OVIA SSA w 02 02 689 9 412 7 jnr o 259 959 aa 31 santo janyo Seo 789 559 qaqa Lvo QNO an vOv AHd SHO XL 001 0994 AG Xu S 001 5125 I3a0W Laxu 001 Zk 001 279 001 TIHSLNIU EQXH 001 oIa MOL vv 3nr o 860 5009948 81 LNS0095d8 4 v1 SN
13. 2 Overview of Sample Programs sse tette tne then tne tre tn sts sn stre tn sns sns tss 17 UA Installation op SB taraen hi hia eoi od bet ta bti cen chis 18 1 41 Installation on WIDdoWs XE 19 1 4 2 Installation on Windows 2000 esses eene tn tete tn tn tnra tn tete tns state tnnt 22 9 Completion 25 CHAPTER Z S 26 IM RERO 28 22 What iS 29 2 3 Load Workspace project 31 2A GEODON eU 33 DAN 33 2 4 2 id EIN E M 34 243 Preprocessor Rede E co 34 2 9 Greate Load Module tota ee a ete 36 20 NGO CK 06048868 cp I LE Ld LIII E MI E EM 38 2 1 Check Board SEUNG S 40 20 Stam Debugger ID8500B dated bte 41 cuu E M D 44 2 10 550 EREE Amm 46 2 11 Close DebusserXID3850OQB ELLO REO COEM E LE 47 242 QUC PM dst tM MEI MD M E 48 CHAPTER HARDWARE SPECIFICATIONS ccccsscssscsesesesecscscsesesessescacsesasssaesesasesesesesacaesesaseeseaesesanseseseaeeesens 49 Layout hardware TUNC
14. Comment 34 TK 850 JH3E NET User s Manual This setting allow you to use the C comment using It is useful feature when editing programs Lompiler Options sinclude include setherl 00 5 5 417 35 TK 850 JH3E NET 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 select Build on menu bar then Build is PM cnet prw OutPut File Edit Find Layer View Project Build Tool Window Help S 58 850 153 850 3 Debus Build B Fies Memo B 850 Jx3 E 1 Project s 6 TK 850 Jx3 E Source Files Include Files 8 2 Project Related Files 4 14 For Help press F1 x cnet prw OutPut 18 File Edit Find Layer View Project Build Tool Window Help X Je gt amit lE 0 L ow fs TK 850 Jx3 E 1 Project s TK 850 Jx3 E 8 23 Source Files H Include Files H Q Project Related Files g Other Files Build has been completed successfully Program Program Program Program Prog
15. Electronics Electronics Electronic Electronic Electronics 0 Total war 41 Toolsi C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Tools C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Tools C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Tools 850 Tools ID850QB is launched 303binca850 303binNca850 303bincas850 0 850 0 850 850 850 850 850 2177 4 TK 850 JH3E NET User s Manual Configuration dialog is opened Follow the settings below and click Enter 6 in Main OSC Enter 8 in Multiply rate Enter FFFFFFFFFFFFFFFFFFFF 20 in ID Code Select in Port at Target Device Connection area then click Lonfiguration X nii poses miu gie uPD UP3753 S 000 E 12 mm Internal Memory Restore 2 E Project DataFlash 0 KBytes ID Cade Use DataFlash Programmable L Area Start Address Monitor Clock System Target Device Connection Port JUARTCO Break Break C User Break Mask F onmo RESET STOP DENT P MODE 01 2 T arget Depend
16. Gd 3401 390 254 ro 19 504 O 0 4089 90 ON 204 098114 X lt 19899 2 ZX 2 3 1X 2 T lt oawis ddan ee ae x 2 89 19 044 7 033HAV 5021 920 40688 1981 1 10009 6 20199 6 8 4 9 LOld9 00149 15 oaa SING pieius 01 1 LIMS 880 SHO FE 7 1959 71 lt 9 1 8 880 SHO Og SL S LMS 0L E 033uAV evivdour ZVIVGOUL LVLIWGOUL OVLVGOUL 82 600c 60 1snony S8100SOL SL jequinN l3N 3E Hf 0S84L 80 SHO ae 91 L LMS E eu 5 9 35aS2L9LONTPANS ysi LEH 83 TK 850 JH3E NET User s Manual wzo 220 S22 esi 5 0382 v gr 99 endi 81 ALGOO Ed LNI ZEd dasn j a n I 72H S0SZDd 156 9 Lb EI VEGOO d LNI LEd ooauassn FG EJ 9041 M PRA gr 1 5 88 ss 2
17. NET Sample Programs link the following download confimation window appears File Download lt 3 looks suspicious or you do not fully trust the source do not open 2 Some files can harm your computer IF the File infarmation below save this File File name exe File type Application From This type of file could harm your computer if it contains malicious code Would you like ta open the file it to your computer 4 Click the butten 15 TK 850 JH3E NET User s Manual tj FA Documents and Settings Program Files WIMRT wLITemp Dezkto p Documents Computer w File name Save Network P Save type Application Cancel 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 JH3E NET User s Manual 1 3 2 Overview of Sample Programs The sample programs consist of following folders cnet cnet prw Work space file Source file 17 TK 850 JH3E NET User s Manual 1 4 Installation of USB Driver NEC Electronics Starter Kit Virtual UART USB driver must be install
18. and debugger C Compiler CA850 W3 30 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 60 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 50 on Device file DF703786 V1 00 A device file contains device specific information So users need a device file to use the development tools Built in Flash Memory Writing Program WriteEZ5 This is the Windows software to write programs on built in flash memory By connecting TK 850 JH3E NET PC with bundled USB cable you can write delete programs on the built in flash memory Q Sample program This is the sample program to run the Web server and to send receive email TK 850 JH3E NET User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package 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
19. important for debugging some settings are covered in this section Select Tools on menu bar then Debugger Setting Los PM cnet prw OutPut 0 ad File Edit Find Layer View Project Build Tool Window Help 88 850 Debu Compiler Common Options Section File Generator Options Compiler Options Assembler Options 9 5 gt Linker Options lol xl Files Memo ROM Processor Options ctronics Tools CA850 03 30 bin cas50 Hexa Converter Options ctronics ToolsCAS850W3 30 bin ca850 TK 850 Jx3 E 1 Project s Static performance analyzer Options ctronics 13 4 850 30 1 850 850 Jx3 E ertum Object Analysis Toor ctronics Tools Cas50 U3 30 bin ass850 Source Files tronics 13 850 03 30 850 Include Files Debugger Settings 2 ronics 13 850 93 30 51 850 8 Project Related Files ctronics Tools CA850 W3 30 bin casso Other Files ctronics 13 4 850 3 30 51 850 gh ctronics Tools Cas50 W3 30 bin casso File Compare ctronics Tools Cas50 W3 30 bin cas50 Device File Installer ctronics ToolsCA850 W3 303bin ca850 ctronics ToolsCA850W3 30 Dm5inasS850 Settings etronics 1 50 3 30 1 850 Font ctronics 1 50 03 8
20. the following pages 60 TK 850 JH3E NET User s Manual New WorkSpace Step 179 Workspace Information E Workspace File Input the workspace information setting as fol lows test 1 Workspace Information 2 Select Tools Create Blank Workspace 3 Select RealTime 05 Folder Workspace file name CATKB50 test Browse 4 Startup 1 5 Register st Project Group Name man 2 B Link Directive File t F d er Microcontrollers Name Device Name 7 Setup Source Files vaso uPD OF 3783 8 2 C TK850 test 9 Confirmation 8 850 Microcontrollers Only 4 5 Project Group Name no input This will set up the basic information about the workspace and the project Microcontroller Name V850 Series Cancel Click button Device Name uPD70F3783 X 012011 This Falder cannot found Do you wish to create it Click button New WorkSpace Step 2 9 Select Tools x Tool Set 1 Workspace Information 850 Series Software Package V4 20 E Versio 2 Select Tools Gave Delete Select Real Time 05 Tool Versions 4 Startup File H 5 Register Mode H B Link Directive 8 7 Setup Source Files 8 Select Debugaer 3 Confirmation 8 850 Microcontrollers Only
21. up automatically If it does not start automatically please initiate it by double clicking the SETUP EXE NEC Electronics Microcomputer Development Tools X Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs TE SSDAIHSE MET 71 00 Aug 1 2003 Copyright NEC Electronics Corporation 2009 Readme First Install Documents Sample Pragram Link to NEC Electronics Microcomputer E xit 1 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 TK 850 JH3E NET 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 4 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 6 Exit Terminate the setup 2 Click the Inst
22. w Source main c 195 14 1 lt void gt A hw_initialize gt E Load the Parameter of FlashROM to RAM param load Interrupt Enable Network initialization cnet_init 4 Setting of network interface netif setup Start of HTTP server cnet_httpdinit gt Seg init seven_seg_init gt while 124 Execution of sample program of mail pr mail_sample gt E ms 1 lt 1 gt Stop the program 2 ID8500B cnet prj File Edit View Option Run Event Browse Jump Window Help ir m gt 8116 2185 ES 7 5 Source ether driver c Search lt lt gt gt Watch Quick Refresh Close 8 26 Function MII URITE Inputs UINT8 PHY register address UUINT16 wdata write data Outputs 4 if amp MIND_SCANA gt lt 5 MCMD MCMD_SCANC BUSY bit check B MADR lt XXUINT32 PHV f DDRESS 85 MUTD udata ether driver ct 877 read reg 1 00008 Sm 41s 049ms Manual Break When the program stops the status bar changes back to the original color 22 46 2 TK 850 JH3E NET User s Manual 2 11 Close Debugger ID850QB Select File on menu bar then Exit 1085008 cnet prj File Edi
23. 4 6 Select only Installed Tools em 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 5 850 5 for V850 850 Click Detail Setting button 61 TK 850 JH3E NET User s Manual Tool Version Detail Setting E 1 360 1 Select tools as above screenshot then click xi New WorkSpace Step 2 9 Select Tools Changed Selected 1 V850 Series Software Package V4 20 En 3 select WS W3 30 Unused Unused 3 60 IV Select only Installed Tools Click 62 TK 850 JH3E NET User s Manual New WorkSpace Step 4 9 Startup File 3 select WS Hrnuse DIUVYSt qon BIOS C AATKS50 test crtE s Press the button New WorkSpace Step 5 9 Register Mode 3 select WS Press the button 63 TK 850 JH3E NET User s Manual New WorkSpace Step 679 LinkDirective File 3 select WS TOV SC Mom DIGWSE C ATKS50 test test dir Press the button New WorkSpace Step 7 9 Setup Source Files 3 select WS HEmogvE Up Dov Pre
24. 5 Read software license agreement and click for continuing the installation To stop the installation click Software License Agreement 3 X Please read the following license agreement Scroll down to see the rest of the agreement USER LICENSE AGREEMENT CAREFULLY This User License Agreement is legal agreement between you either a natural person an entity and MEC Electronics Corporation NEC for the SOFTWARE PRODUCT 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 or data By installing and using the SOFTWARE FR BLICT you agree to bound by the terms of this ULA do nat agree to the terms of this ULA do nat install or use the SOFTWARE PRODUCT Do you accept all the terms of the preceding License Agreement install this product you must click Yes to accept If choose Setup will exit lt Back yes Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard 6 Please enter the praduct ID of the product Enter Product Product ID ig written an the case ar in the accompanying documents Product ID InstallShield lt Back Cancel 7 It starts copying t
25. 50 Customize ctronics 13 850 3 30 1 850 ctronics ToolsCAS850 W3 30 bin 850 Play Back ctronics Tools Cas50 U3 30 bin 19850 mee om B ctronics 13 850 3 30 1 rompe Sas the ctronics Tools Cag50 W3 30 bin 850 Load the Macro File Play Back the Macro File Total 0 EOF Register the Macro Files Play Back the Register 4 Change debugger settings 38 4 TK 850 JH3E NET User s Manual Check if ID850QB V3 60 V850 Integrated Debugger is selected on Debugger Debugger Settings CATESBOSIHE HET senetsromp out Wownload the Debug Target Files in the same Project Group 39 TK 850 JH3E NET User s Manual 2 7 Check Board Settings Before connecting the PC and the TK 850 JH3E NET with USB you should check the setting of SW1 on the board D Set the SW1 of the TK 850 JH3E NET as follows SW1 OFF Bit2 ON Bits ON Bid ON 2 JP1 to 1 2 short 3 After the switch settings are completed connect the PC to 0581 on TK 850 JH3E NET with USB cable 15 j 1 20 TESSERA tal 500185 uz k POWER Adapter JP1 Swi USB
26. 7 SW3 is the push switch connected to P98 TENC01 INTP17 A8 in CPU There are connecting to pull up resister When the switch is pushed down it sends the signal of Low 3 3 4 SWA INTP18 SW4 is the push switch connected to P912 TOAB1OFF INTP18 A12 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 3 3 6 LED2 LED3 The table shows the status of Ethernet transceiver Function LED2 LINK Link ON Indication LED3 ACTIVITY 52 TK 850 JH3E NET User s Manual 3 3 7 U3 7seg LED 75 LED of U3 can be lit with P90 P97 Please set the port mode to the output and output Low signal from the port 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 0 3 3 8 JP1 are the jumper switch pin to select power supply It is supplied power from USB1 connector for debug It is supplied power from USB2 connector for V850ES JH3 E internal USB It is supplied power from AC adapter 5V connected to 3 3 9 is the power supply connecter of the AC adaptor You can supply the power by setting the JP1 to 5 6 short and connect 5V AC adapter 3 3 10 J1 This is the connector for
27. H3E NET User s Manual Workspace name cnet prw 1 A PM cnet prw OutPut Load the workspace file cnet prw Fille Edit Find Layer View Project Build Tool Window Help amp D E I STA 5 ce TK 850_Jx3 E TK 850 453 Debua Build 4 Rw tA HE 1012 Files xi O 850 Ix3 E 1 Project s Ei 850 Jx3 E _ Source Files Include Files Project Related Files Other Files Project group Project 4 2 27 For Help press F1 The workspace file cnet prw contains one project called cnet prw You will use this project TK 850 Jx3 E 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 32 TK 850 JH3E NET 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 MAC address setting Enable C comments On chip debug Disable Enable security ID Select Tools on menu bar then Compiler Common options 2 4 1 General Tab Select Tool on menu bar then Compiler Options Select General tab and specify the MAC address in Define macro field as described below You can find the MAC addres
28. Layout of solder short pad FP1 1 _ 9 08 0 E d 7 Pho IN JARAN T POWER AC Adapter US 28 irm 5 EIER E USB1 USB2 NWIRE1 50 TK 850 JH3E NET User s Manual 3 3 Hardware Functions 3 3 1 SW1 The bit 1 4 on SW1 are for mode settings Bitb 8 of SW1 are connected to P76 ANI6 P79 ANI9 for general purpose input port Set as shown in the following table if you wish to debug using bundled ID850QB through 0581 When you debug through 0581 it communicates with the host machine through P30 and P31 pins Therefore you cannot use these pins Please change to the following settings when writing it in the flash memory with built in CPU by using WriteEZ5 The hardware of WriteEZ5 is built into TK 850 JH3E NET To run the programs stored in built in flash memory by WriteEZ5 use following settings and re supply power Please change to the following settings when you connect N Wire emulator 51 TK 850 JH3E NET User s Manual Q Bit5 8 of SW1 is connected with the following terminals CPU There are connecting to pull up resister When the switch is pushed down it sends the signal of Low SW1 P76 p77 P78 P79 3 3 2 SW2 This is the reset switch You can reset the microcontroller by pressing this switch 3 3 3 SW3 INTP1
29. M 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 Electronics Microcomputer Development Tools X Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs TE 850JHSE NET 171 00 amp ug 1 2009 Copyright Electronics Corporation 2009 Readme First Install Documents Sample Frogram ectronics Microcomputer 2 Press the Sample Program button to start the WWW browser 14 TK 850 JH3E NET User s Manual E Sample Programs Microsoft Internet Explorer File Edit View Favorites Tools Help O x 2 Po seach 6932 1253 3 Address E DOC SAMPLE_E HTML Sample Programs Welcome to TE 650 HSE NET world The purpose of sample programs is to experience Th 850 JH3E NET sample programs consist of the following items Copy them to the which TE 850 JHSE NET has installed TES5 o JH3EFNET m Chet cnet prw IFSample program described in the TE 850 JHSE NET evaluation kit tutorial guide Refer to the User s manual below for usage TE 58 er annal sample programs Done 11 Computer E 3 Click the TK 850 JH3E
30. O 4S AS 0 SQ0 0 0 130 9 924 Ezd lt 13 3 91 4 00 114 4 OXY ld 21 rend 85 TK 850 JH3E NET User s Manual 10 S 19906 6002 60 15 Aepuoyy oed S8LOOSOL SL JequinN 1ueuinooq l3N 3 Hf 0S824L va 5284 521 141 S42Q0H LOSOLWPL SEVI S6 ASHP INVO 42 018 88910 ouo SNVO ON 86
31. OL OSVVIL L33OS 16 eI V 8LdLNI J3JOLGVOL ZL6d L V 6LdLNI LBOXLL EJIS E L6d VI V OZdLNI LH QXU EJOS v L6d SILV ISVVOL ISVVIL EJMOS 916 1 9944 SSAA LIVM ONOd 1 KL aw13 sav s1 d 9qv 91dd Zqv Z1dd 8dv 81dd 0rav or1ad LELOV LETOd 10 01104 10 61104 SSAA 041 1 001025 10 0 1 05 OxVVIAGOn SOd LNI LEVVO L LeVVI L 9Gd 0OuVIAGQ 0 vVO L OEVVI L LJ49S Scd L3IS 9LV 0HOd H3OS ZIV LHOd vLOV v SLQV SETOd 99999 m m 22 8 1 6 80 SHO SSAA 1 009 5 15 8 4 L339S 81 V cHOd Ezd 19 09 69 SG 109ld 1 87 H3XHdld axuld 0dXuld 14 14 540485 5 0 0194 56 1194 99 719 16 9194 059 0594 824 224 924 8 4 NV vZd 614 224 NV LZd 2590 250 SS 3 cl 9 4 S d 8 2 9 9 lt Ezd v 5491 4 14 u3xuld
32. T ION seseseseeeenetn sa sns tate 59 Os Create a new WOIKSDBOGB umen A TU 60 S esister additiofial source TIIO EU 68 70 9 3 1 70 9 0 2 016 T 70 5 3 9 Set delete 71 3 8 4 it alas E 72 5 3 5 Display global variables internal RAM while programs are 73 5 3 0 Display Jocal VA ONS a rie 74 9 9 7 WISDIAY MEMORY and SFR 74 IES A 75 99 Parts iSt Circul 80 TK 850 JH3E NET User s Manual TK 850 JH3E NET is the evaluation kit for development using V850ES JH3 E 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 d
33. UONS ta dpud Deere 50 32 Layout orsolder short pad I DI tees 50 3 3 Hardware Functions 51 51 52 Sec 52 IS ASWAN TP TO sehen 52 LEDI POWER A I EU 52 Ssmo EED LED Sipan a 52 LED 53 TK 850 JH3E NET User s Manual 53 Ee MH X 93 53 ita cete 54 CER RO ER 54 USB lara A 54 54 94 33 16 TR 54 os 12 5 0 E 55 CHAPTER 4 97 4 1 If you cannot find USB driver when you connect to the 57 4 2 Error when you start the debugger o a ater 5 4 2 1 not communicate with Emulator F0100 or 0109 57 4 2 2 Incorrect ID Code 71603 ait eae tira de eeu ied 58 4 3 Monitor memory cannot be accessed F0c72 stet tete teens 58 CHAPTER 5 OTHER INFORMA
34. User s Manual TK 850 JH3E NET Date published Aug 2009 Rev 1 0 TESSERA TECHNOLOGY INC 2009 Printed in Japan TK 850 JH3E NET 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 customer
35. 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 100 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 57 TK 850 JH3E NET 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 erasing check if you actually set the security ID with referring to 2 5 Set Op
36. all 10 TK 850 JH3E NET 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 JH3E NET 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 Install DF703786 v 1 00 Search DeviceFile iic Install Tool Install Tools Get Software W S 30 15 2 30 Documents 2 P 31 17 20 Documents 24 LOG v1 21 3B5KB LOG v1 21 Documents STKBSBU 2 14 256KB 285008 V850 Integrated Debugger 43 50 37 852 T E sit E plain Drive Available Space 25D 428KB Destination Required Space Files MEC Electronics Tools Browse 135 338KB 4 Click when Install comfirmation dialog box is opened DINEM 22 Install the Tools and DeviceFile Cancel 11 TK 850 JH3E NET User s Manual
37. cable 40 TK 850 JH3E NET User s Manual 2 8 Start Debugger ID850QB Click the debug button 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 i PM cnet prw OutPut File Edit Find Layer View Project Build Tool Window Help d ecc TK 850 J 3 E TK 850 Build 3 ici x Files Memo C Program C Program 5 TK 850 Jx3 E 1 Project s C Program B TK 850 Jx3 E CIN Program H Source Files C Program Include Files Program 8123 Project Related Files L C Program Dther Files Program C Program C Program C Program C Program C Program C Program C Program C Program C Program C Program C Program For Help press F1 Build Total Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC error s ve Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics Electronics
38. dows does the driver choose will be the best match Far your hardware Click Next 4 If the following dialog is opened click Hardware Installation The software are installing for this hardware MEL Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows Tell me why this testing 1 important Continuing your installation of this software may impair or destabilize the correct operation of vour system either immediately ar in the future 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 JH3E NET User s Manual 5 installation of Electronics Starter Kit Virtual UART driver is completed Click Found Hardware Wizard Completing the Found Mew Hardware Wizard The wizard has finished installing the software E MEL Electronics Starter Kt UART Click Finish Finish Cancel Click Finish to close the wizard 6 Goto 1 4 3 Completion of USB Driver Installation 21 TK 850 JH3E NET User s Manual 1 4 2 Installation on Windows 2000 1 2 Once the TK 850 JH3E NET is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found New Hardware Wiza
39. e 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 managed together as a workspace Menu bar Tool bar i PM 4 No Workspace OutPut File Edit Find Layer Project Build Tool Window Help Files Memo 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 Help on menu bar then Help 29 TK 850 JH3E NET User s Manual What is a project project is the unit that is managed by project refers to an application system and environment development based on 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 project group is a group comprised of a number of projects in an application system The target device of each p
40. ebug feature from the microcontroller itself without emulator connection Configuration for Debugging DE PP SAMPLE ELTE SAMPLE THEO Ed Find Layer View Project Bukd Todd Window Help telae SAMPLE vero oum 210 xi Se 45 Demonsrrarion Frogram for TE TB8F0730 7 01 DE i tal im 2 fe inirialise c yd interrupt c DI Hpragma eik exrerm void b SUS PJOL IHTPI 4 12 TaegLED Pl1 void mainii i h inibimir Initialise CPU inzerrupc permit while 1164 0 4 D 4 1 4 TK 850 JH3E NET 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 and integrated debugger ID850QB with using sample programs Hardware Specifications Explain the hardware of TK 850 JH3E NET
41. ed on PC before you start using the TK 850 JH3E NET 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 Please check your Windows version and follow the instructions Windows XP gt 1 4 1 Installation on Windows 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 JH3E NET User s Manual 1 4 1 Installation on Windows XP 1 the TK 850 JH3E NET 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 current and updated software by looking an Your computer the hardware installation or on the Windows Update Web site with your permission Head our privacy policy P Windows connect to Windows Update to search Select No not this time software Yes this time only CO Yes now and every time connect a device nat this time Click Next Click Next to continue 2 Select Insta
42. er will be changed as well Select this COM port number when you use WriteEZ5 CAUTION not do Hardware Modification Scan when you communicate with the target device 25 TK 850 JH3E NET User s Manual In this chapter you will experience how to use the development tools with using the sample programs The development tools are ntegrated Development Environment IDE Integrated Debugger ID850QB You will use the programs that you prepared in 1 3 Sample Programs as the sample programs for TK 850 JH3E NET 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 JH3E NET User s Manual The overall steps are as follows 21 Start Load Workspace 2 4 Set Linker Options 2 5 Set Compiler Options 2 6 Greate Load Module Files un Programs 2 9 Start Debugger 2 10 Run Programs 2 TK 850 JH3E NET User s Manual Let s start using the development tools First start the Select Windows Start Menu gt Program gt NEC Electronics Tools gt PM 6 31 Workspace OutPut A m 3 mum F EPETET 2 28 TK 850 JH3E NET User s Manual 2 2 What is application programs and environment setting ar
43. external power supply 53 TK 850 JH3E NET User s Manual 3 3 11 NWIRE1 Connector These are connector for N Wire emulator It can connect N Wire emulator of IE V850E1 CD NW etc The connector from KEL Corp 88302 026 1705 7 is mounted on NWIRE1 3 3 12 FP1 This is the interface for connecting MINICUBE2 As a connector is not mounted you need to solder 16pin connector C FFC 16BMEP1 from Honda Tsushin Kogyo Co Ltd on 3 3 13 USB1 This is the USB interface for debugging You can use this when you need to debug or make serial communication using P30 and P31 3 3 14 USB2 This is V850ES JH3 E built in USB interface 3 3 15 This is the interface for CAN communication Connector and other peripheral parts are not mounted 3 3 16 TR1 This is the interface for Ethernet communication TLA 6T718 from TDK Corp is used for RJ 45 connector LAN8700C from SMSO is used for Ethernet transceiver 54 TK 850 JH3E NET User s Manual 3 4 solder short pad label When using a circumference board connector CN1 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 S
44. gister address Debugger Reset UUIMNT16 wdata write data amp 5 gt 4 MCHD MCMD_SCANC Jee e a BUSY hit check 1 T MADR CCUINT32 gt PHY_ADDRESS lt lt 8 gt CCUINT32 2 HUTD a ether _driver c 677 phy reg 00084 415 049ms Manual Break E 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 48 TK 850 JH3E NET User s Manual In this chapter the hardware of 850 will be explained Microcontroller Sub clock 32 68KHz Interface USB x2 MINI B connecter Connecter for N Wire KEL connecter Connecter for MINICUBE2 only pad Connecter for Ethernet 80 45 TDK TLA 6T718 Connecter for CAN Connector and other peripheral parts are not mounted Expansion connector only pad Dimension 90mm x 60mm Power supply voltage 49 TK 850 JH3E NET User s Manual 3 1 Layout of hardware functions 76 79 LEDI SW4 912 98 SW3 U3 P90 P97SW2 RESET LED2 1794 9 ef be 1 ul _ HADE IH JAPAN POWER AL Adapter 8 0 USB nini 11 ii MERC S gt sai Ay 1 y E 483 DCVDD1 2 5411 RXD AVREFO UVDD FLMDO 42 41 LED3 3 2
45. grams 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 JH3E NET User s Manual 2 9 Run Programs Now you are ready to run the program Click the restart button gt or select on menu bar then Restart The sample program runs 2 ID8500B cnet prj Fil Option Run Event Browse Jump Window Help gt aes 215412 11 Source main c Search lt lt gt gt Quick Refresh Close oid 1 lt void gt hw_initialize gt Load the Parameter of FlashROM to RAM param load Interrupt Enable Network initialization cnet init Setting of network interface netif setup Start of HTTP server enat hetpdiniet Run the sample program init seven_seg_init lt while 124 Execution of sample program of mail pr mail sample 2 ms 1 lt 1 106 main 00000004 0 0 msec 2 2 ID8500B cnet prj File Edit View Option Run Event Browse Jump Window Help s 115 9 Source main c Search lt lt Watch Quick Refresh Close hw_initialize gt
46. gt gt COMMAND Device Setup Firmware File Read Mame T F3783 510 Version Connection to device Speed 38400 Hange Chip Freg 6 00 Multiply 8 00 nm D Erase The deletion of the flash memory begins when the button is pushed File Dew gigi Help 785 gt FlashO penning Flash Open gt gt COMMAND Device Setup Firmware File Head Mame T F3783 510 Version 1 00 Chksum Area Connection to device COME Speed 38400 Range Chip Freg 6 00 Multiply 5 00 SCRL When you write the program click load then select writing HEX file 78 TK 850 JH3E NET User s Manual E WriteEZ5 9 file writing will be start by clicking AutoProcedure 79 TK 850 JH3E NET User s Manual 9 9 Parts list Circuit diagram From following page it shows the parts list and the circuit diagram of the kit Mount Quantity Mount Parts Reference Un mount Parts Reference Parts No 1 1 FLMDO DCVDD1 DCVDD2 P41 P42 Solder short pad SS FLMDO gt short P76 P77 P78 P79 P90 P91 P92 P93 P94 P95 P96 P97 P98 P912 UVDD T RESET RXD CTXD CRXD AVREFO 2 9 Fumooms E Ht mowed
47. he files 12 TK 850 JH3E NET User s Manual Check the item specified below is selected when Kind of File dialog displays Click Next Install Wizard Kind of File X Select the kind of installation Far 850ESAIH3 E 5 Cancel 9 When the installation is completed the following dialog opens Click xi AJ Installation Finished 5 q x D 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 Limitation Assembler RA850 and C compiler CA850 limit the object size to 128Kbyte 13 TK 850 JH3E NET 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 RO
48. ips 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 opening functional window can be made by below buttons However it could be difficult to know which button does what m er t 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 8 2 8 8 Open Load Froj Reg SFR 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 PETERS eamman c initialise c 1 interrupt c main c 70 TK 850 JH3E NET User s Manual 5 3 3 Set delete breakpoints Breakpoints are executed by clicking lines in which is displayed is displayed the line where a breakpoint is set Breakpoints are deleted by clicking 15
49. le Compare Device File Installer PM Settings Font 66 TK 850 JH3E NET User s Manual Compiler Common Options Click the Device tab Compiler Common Options LI Register FFFFFFFFFFFFFFFFFFFF Press the button Security ID settings are complete 067 TK 850 JH3E NET 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 with source file 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 PM test prw Project Window Bl x File Edit Find Layer View Project Build Tool Window Help s DEH ZR X SA vac aon gt I mIi IONS ptions Add the source file to the project es 2 Add Source Files test Look in test b c ec Files of type Source Help Add Files fram Folder File name Multiple source files can be selected by clicking them with pressing key 68 TK 850 JH3E NET User s Manual ng test prw ProjectWindow amp amp Be 69 TK 850 JH3E NET User s Manual 5 3 Debugger t
50. ll from a list or specific location and click Found New Hardware Wizard This wizard helps install software Far USB Device Select Install from a list or specific 51 your hardware came with an installation CD location floppy disk insert it now What vou want the wizard to do CO Install the software automatically Recommended Install from a list or specific location Adve Click Next Click Next to continue ee 19 TK 850 JH3E NET 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 gt Search for the best driver in these locations Use the check boxes below to limit or expand the defa paths and removable media The best diver Found will Select the driver directory Search removable media floppy CD ROM Include this location in the search C Program Files MEC Electronics Toole T K drive O Dont search will choose the driver to install Choose this option to select the device driver from a list Win
51. ns Create a new workspace z x 72 Description of items Wo rkspace Fi le Name New WorkSpace Step 1 9 Workspace Information gt Specify the name of the workspace file that manages Workspace File h fi 1 Workspace Information the project 165 r 2 Select Tools 1 Create Blank Work is automatically suffixed as the file type 212 EI 8 Select Real Time 05 i 5 i i 4 Startup Filel A project file prj of the same name is Browse Project Group Name cal simultaneously created Microcontrollers Device Name 7 Setup Source Files Folder wm wornas gt 9 Confirmation gt Specify the folder for saving the workspace file by __Device instal it V850 Microcontrollers Only 4 6 writing its absolute path This item can be selected from a reference dialog box by pressing the button This will set up the basic information about the workspace and the project Project Group Name 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 Specify the name of the device to be used The concrete information set here is described on
52. older short pad opened shape Shorted shape Solder short State when Connection pad name shipping it 7SegLED P90 P97 Short ea Open when using it for other usages FLMDO to P37 on CPU FLMDO Short Short When built in flash memory is rewritten by self VDD lt gt AVREFO AVREFO Short i Open when AVREFO is driven by other voltages lt gt Regulator output DCVDD1 2 Short Open when you supply the power from VDD lt gt 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 P76 P79 Short Open when P76 P79 isn t used for general purpose input SW P98 lt gt SW3 P98 Short Open when using it for other usages P912 lt gt 5 4 P912 Short Open when using it for other usages 55 TK 850 JH3E NET User s Manual Open when you don t use USB D pull up enable signal T RESET SHORE Open when the Reset IC isn t used for 56 TK 850 JH3E NET 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
53. ompiler Common Options X File Startup Link Directive ROM Flash Device 256M Bute Mode BPE 2 By checking this check bos 256M6 mode is available When itis checked 256M option of the compiler the assembler and the linker ts sel 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 FFFFFFFFFFFFFFFFFFFE When you erase the data in the flash memory the ID is set to this value 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 WriteEZ5 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 WriteEZ5 2 4 3 Preprocessor Tab Select Tool on menu bar then Compiler Options Select Preprocessor tab and check Use Style
54. ram Program Program C Program C Program C Program C Program Y Build Total Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Files NEC Electronics Electronics Electronics Electronics Electronics Electronics Electronics Files NEC Electronics Files NEC Electronics Files NEC Electronics Files NEC Electronics error s 36 O Total warning s ToolsCA850 W3 ToolsXCA850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Tools C4850 W3 Tools C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Toolsi C4850 W3 Toolsi C4650 W3 13 4 850 W3 Toolsi C4650 W3 ToolsXCAB850VW3 ToolsXCAB850VW3 Toolsi C4650 W3 Toolsi CA8650 W3 Toolsi C4650 W3 ToolsXCAB850VW3 Toolsi C4850 W3 0 850 303binca850 303binca850 30Xbinas850 850 850 850 850 850 850 850 850 30 bin cas5o 30XbinMca850 850 850 14850 0 romps 30 bin hxs850 EOF 4 TK 850 JH3E NET User s Manual 37 TK 850 JH3E NET 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
55. rd Welcome to the Found New Hardware Wizard This wizard helps you install a device driver Far hardware device Click Next To continue click Next lt Back Cancel Select Search for a suitable driver for my device Click 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 2 USB Device device driver software needs driver files for your nev device installation click Nest Select Search for a suitable driver for my Click Next Cancel What da want to do Search for a suitable driver for my device recommended Display a list of the known drivers for this device that can chod driver 22 TK 850 JH3E NET User s Manual 3 Select Specify a location Click Found Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search far driver files Far the following hardware device y USB Device suitable drivers its driver database on your computer and in search locations that you specify Select Specify a location lick M ext IF vau are searching an a floppy disk or drive before clicking Click Next
56. roject 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 30 TK 850 JH3E NET 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 cnetprw under the directory C TK850 JH3E NET cnet 1015 File Edit Find Layer View Project Build Tool Window Help Mew Ctrl N h ADDR tt Ez Open Insert file Close Ur RS 4 Open Workspace Lj Glose Workspace Save Ghl 5 Save As Ghange Source File Mare Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit Open an existing workspace us ES ud 72 Workspace Look cnet dm bin ifs include lib E src cnet prey File name pr C Open Files of type workspace File prey Cancel Help E Select cnetprw then click 31 TK 850 J
57. s on the back side of substrate To Specify MAC Address physical address Add lt 5 0 00 0 11 0 22 0 33 0 44 0 55 in Define macro field if the MAC address is 00 11 22 32 44 55 on the back of substrate Compiler Options 3 x Detail af Optimization External Register Output File Output Code Message Assembler Others General Input File Preprocessor C Language Optimization and Debug Information Use Common Optimization Option Assembler Source Fs Browse Optimization Lewel Optimize Far D ebugaina d Assemble Browsen Generate Debug Infarmatian g Warning Level Output Source Comment Xc Level 1 Verbose M acra D 5 75 MACADDR D D0 011 0522 0x33 0844 0 55 Command Line F3783 include sipied include ISincluidesethert DONEC DCMET 0575 DSPEC MACADDBR sOO0 11 022 0x33 0444 55 scs com pro runtimezaff 0d g Apply Help Caution MAC address is not specified in the sample program as default This causes a compiling error when you compile it Therefore set the MAC address before building it 33 TK 850 JH3E NET User s Manual 2 4 2 Extend Tab Select Device tab on Compiler Common Options window and check following settings C
58. s or third parties arising from the use of these circuits software and information CAUTION not give any physical damage to this equipment such as dropping not superimpose voltage to this equipment not use this equipment with the temperature below 0 or over 40 Make sure the USB cables are properly connected 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 user operator must be grounded using the wrist strap connectors and or device pins should not be touched with bare hands TK 850 JH3E NET User s Manual Contents CHAPTER TON en EH ds 7 1 1 Development Tools eerte tenete ttes eter te 8 I 2 Installation or Development tetendit evello ubt et 9 1 2 1 108 81 ae KaBe uos M DE LR M E DM E E DE UI 9 1 2 2 Installation of Development Tools essent ttes 9 SONI audeo saltu S E RAE ON RED Ren RE MU 14 I9 L Breparatiod ofr Sample VOSA IS icici 14 1 3
59. ss the button 64 TK 850 JH3E NET User s Manual New WorkSpace Step 8 9 Select Debugger 2 select WS Press the button New WorkSpace Step 9 9 Confirmation 2 select WS Press the button 065 TK 850 JH3E NET User s Manual ios PM test prw OutPut File Edit Find Layer View Project Build Tool Window Help 2 s3 lIumai 28 Project Related Files Dther Files 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 For details refer to Registering additional source files Next setup the security ID In the Tool Compiler common Options is selected 15 test prw OutPut File Edit Find Layer View Project Build Tool Window elg D Y _ ia test test v Debu Compiler Options Assembler Options D Linker Options xl Files Wann ROM Processor Options Hexa Converter Options test 1 Project s Static performance analyzer Options test Source Files dump850 24111 Include Files Project Related Files Other Files Register Ex tool Start up Ex tool Fi
60. t View Option Run Event Browse Jump Window Help Open Close Download Quick Refresh Close Load Module return CUINTi62MRDD Project a Environment HII WRITE PHY register address 8 wReg 16 wdata write data amp MIND_SCANMA gt 4 MCMD MCMD_S CANC MADR CCUINT32 gt PHY_ADDRESS lt lt 8 gt 1 CUINT32 gt 2 u dat a The exit confirmation dialog is displayed driver c amp 877 phy read reg 00084 5m 415 049ms Manual Break 2 1085006 7 This will end your Debugger session Do vau want to save Ehe settings in the project File gt 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 it does not save the settings and closes the ID850QB 47 TK 850 JH3E NET User s Manual 2 12 Quit Select File on menu bar then Exit 28 ID850U0B cnet prj File Edit Option Run Event Browse Jump Window Help Open EE A x 0 Close Download ch Refresh Close Load Module Upload return CUINT16 gt MRDD Project 22 E Enviranment fion HII WRITE wReg PHY re
61. tions Also remember the code you set for the security ID After this erase the flash memory with referring to 5 4 WriteEZ5 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 WriteEZ5 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 58 TK 850 JH3E NET 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 5 4 WriteEZs 5 5 Parts list Circuit diagram 59 TK 850 JH3E NET User s Manual 5 1 Create a new workspace Now create a new workspace and project allows you to create new workspace with following New WorkSpace dialog Select File on menu bar then New Workspace File Edit Find Layer View Project Build Tool Window Help New Open Ctr o Save As c Ghange Source File Name Saye All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit New WorkSpace dialog ope
62. w settings Extended Option x Trace Timetae Count Rate Size Glear trace memory Before run Trace Branch Access Data Mode f Speed Priority f Trace Pry Complement Data Add Point Timer Count Rate r RAM Monitor Break When Readout Whole v IRAM R Off 500 break Hard break erity Check Redraw Interval On Mouse Click Break Sound Glear register when reset Check moni ing when dewnloading Restore Help Note he user program momentarily breaks upon a read Do not use the pseudo real time monitor function while using the memory window It uses the system resources significantly as it monitors the displaying memory as well t is recommended to close the memory window when you use the pseudo real time monitor function 73 TK 850 JH3E NET User s Manual 5 3 6 Display local variables Local variable window 15 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 Local Variable 9 3 7 Display memory and SFR contents By clicking the button below you can open the memory window Memory search e E Refresh 2 3 4 45 6 DMM Close 1 8 4 74
63. zard click Finish mw Eancel 7 1 4 3 Completion of USB Driver Installation 24 TK 850 JH3E NET 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 2 mark under the Ports COM amp LPT Device Manager L Computer Management Fie Action View Window Help la x 75 f A se zu OPTZIUL Computer S Disk drives E Display adapters 2 DVDICD ROM drives Human Interface Devices ic IDE ATA ATAPI controllers Computer Management ih System Tools Event viewer Shared Folders Performance Logs and Alerts 3 Device Manager Storage Removable Storage c Keyboards Disk Defragmenter Mice and other pointing devices Find NEC Electronics Starter Kit Disk Management Monitors Virtual UART COMx eee eo eee oe EIS EIS ISI Network adapters Ports COM amp LPT F Communications Port COMI Services and Applications 9 Sound video and game controllers M System devices Universal Serial Bus controllers The screen above shows that the COM port number is 8 If ID850QB is not in use you can use this port number for connecting TK 850 JH3E NET When you change the USB port connection the COM port numb

Download Pdf Manuals

image

Related Search

Related Contents

Bedienungsanleitung  TRZ2, Q manual French, 12.04.2010    EXPERT PN110  Project Based Homework – Parent/Pupil User Guide 1) Go to the  faça do MANUAL DE UTILIZAÇÃO DO SILO  Estación meteorológica inalalámbrica con  Anzeige - Electrocomponents  Dixon 14295-1005 Lawn Mower User Manual  ADanger - Metabo  

Copyright © All rights reserved.
Failed to retrieve file