Home
User`s Manual TK
Contents
1. 50 TK 850 JG3 User s Manual 3 3 Hardware Functions 3 3 1 SW1 The bit 1 4 on SW1 are for mode settings Bit5 8 of SW1 are connected to P78 ANI8 P711 ANI11 for general purpose input port For the use of ID850QB EZ use following settings sWi When ID850QB EZ is used these terminals cannot be used because it communicates with the host machine by using and the terminal P30 and P31 To run the programs stored in built in flash memory by FPL use following settings and re supply power SW1 Please change to the following settings when writing it in the flash memory with built in CPU by using FPL The hardware of FPL is built into TK 850 JG3 SW1 Please change to the following settings when you connect N Wire emulator SW1 51 TK 850 JG3 User s Manual Bit5 8 of SW1 is connected with the following terminals CPU It s connected to GND if the switch is ON Set switch is on when you don t use terminals for A D input It becomes Low if the switch is ON and it becomes High if it is OFF SW 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 INTPO SW3 is the push switch connected to P03 INTPO pin in CPU When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this you need to set the microcontr
2. gt Specify the name of the workspace file that manages Workspace File Name the proje t files 1 Workspace Information JEC l E 2 Select Tools d d Create Blank Work prw is automatically suffixed as the file type Folder TTT 8 Select Real 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 m uPD78F1142 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 is gt Specify the name of the device to be used described on the following pages 58 TK 850 JG3 User s Manual New WorkSpace Step 1 9 Workspace Information x Input the workspace information Workspace File Name setting as follows
3. Check Point 1 Check if the settings of switches on the kit are correct with referring 2 7 Check Board Settings Check Point 2 Erase the flash memory with referring to 5 4 FPL Check Point 3 If above 2 check points are confirmed disconnect the USB cable from PC and re connect again And retry starting the debugger 56 TK 850 JG3 User s Manual This chapter explains some useful operation techniques of development tools and circuit diagram of the kit for developing of user programs 5 1 Create a new workspace project 5 2 Register additional source file 5 3 Debugger tips 9 4 FPL 5 5 Circuit diagram 5 TK 850 JG3 User s Manual 9 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 CrHN B e Macan v I si 2 Open Ctrl O TEET Gtrl 5 Save AS Ghange Source File Mare Save Al Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM New WorkSpace dialog opens Create a new workspace E ps t Re RS hi lt Description of items gt Wo rkspace Fi le Name New WorkSpace Step 1 9 Workspace Information x
4. Help Select SAMPLE JG3 prw then click E 32 TK 850 JG3 User s Manual Workspace name SAMPLE JG3 prw Em PM SAMPLE 3G3 prw DutPut File Edit Find Layer View Project Build Tool Window Help B DOSH Ali XE gm We Load the workspace file SAMPLE JG3 prw S 2 W I imm ESF Project group Source Files Include Files Project Related Files Other Files Project E d k F L kikiki z The workspace file SAMPLE JG3 prw contains one project called SAMPLE JG3 You will use this project SAMPLE JG3 GAUTION Please ignore when you get a prompt saying files could not be found This may occurred when the installation directory is not a default 33 TK 850 JG3 User s Manual 2 4 Set Options The compiler options have been set by project file However because some compiler options are useful following two settings are covered specifically in this section Enable C comments On chip debug Desable Enable security ID Select Tools on menu bar then Compiler Common options 2 4 1 Extend Tab Select Device tab on Compiler Common Options window and check following settings Compiler Common Options i x File Startup Link Directive ROM Flash Device 256M Bute Mode BPE Register Ss 2 em By checking this check box 256M6 mode is available When itis checked 256M option of the co
5. Search ex gt gt watch Quick Refresh Close 22 While 1 gst ar eae Move IMBEGQIC x 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 4 gl Come Here 2 Add Watch dialog opens Click x Name start MM Add Rade Proper Hex Dec C Oct C Bin String SIZE Adaptive Bute Halford C Word Humber Cancel Restore Help 3Adding a variable to watch window is completed EEE n Add Delete wd 70 TK 850 JG3 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 71 TK 850 JG3 User s Manual 9 4 FPL If you forgot the security ID or if you set On Chip Debug Option Byte to disable the on chip debug function you cannot start debugger In this case you need to delete the setting values of security ID and On Chip Debug Option Byte Use FPL to erase the flash memory FPL ca
6. assy z d eg HN TSOP SHOSBA ex es an OuqGTH eWod IX NOL EWOd 2 OUM OLOd SSA gt k OLOd gg EMU 29384 ely LLOd Zei HEEM n GGA ELO 9 ASV 9L0d oam lt oan4 e HX 919d sy SSA3 LZ W SHGd o 90a Ozv pHad 17 Oawo1ad LJ3HAV mE a LORD LONV LLd E cav eiad OONV OLd uno o gt uno o 34 savas uH E Se Ge Zi rav r1dd v EI 033HAV Jdxx Xxx gt Sooo KE 0J3HAV LJ3HAV aaa go vo GoovopPEPEPBPEOOLIgg uuvvc SOUDUUSOSGEROTLEZO uaeuo e SSE S ps X ZHINS SSO SB855990UUOxEA 2222222222 s P ZO UOGOO VOAgNON OOOUNOGROV O anyo anyo ango Neo joo 00 O0 O0 2 00 00 CO CO cO cO CO cO cO cO cO co X jo N oo co O git ges d 1 O0 OT I eo E Y ee S 63 Go ai N OJAHAV Ld3HAV daa 0t glo ITV LU ZY e2 ol SI AAA ANS CO1o MS 13934 S 16d 001 gute S6d 6d 880 SHO o o E ER 7g 94 Sd e1Ms ZMS Sd 880 SHO Lad o 6 d L L MS O adna Ed Ano p d 880 SHO I3S3H L um 9g ezo LEd 91MS Zbd G Ord 80 SHO aan bXxoor oNNV6OcCTOS SOd al 9g i E E dd en 0d S LMS E gr UC MOL MOL MOL MOL D o asa NN SH vH Eu cu Po m EN sa O CIA LH Alt 84d m Lid 033HAV aana O4AHAVOGA L43HAV 18 TK 850 JG3 User s Manual 94100891 JequinN 1ueunooq E asa SL L I LMS E dE Mor 020 en N adA sn b m adA sn OW0E20482ddn adAssn 9ad M endl end 09d S d ALdD0 EdLNI ZEd ky yl LENS szy YLADO ZdLNI LEd E A noana S n l en L T PRAJ SSA3 ISOL ISIL E
7. ea sikh i g amp T ae Environment k y led H w count H Reset while 6154 g_start H TMHEAICH Hx47 e PICH HxH PICH Hx4 7 UTME 1 TMBEQICH Bx ei P9L 7 1 while g start 1 54 fe 7segLE k Tu d Cr The exit confirmation dialog is displayed Imain cat33 main oooooscc dm 23s 898ms Manual Break E ID amp 50QB EZ E This will end your Debugger session Do you want to save Ehe settings in the project File TERNI If you click it saves the settings in the project file and then closes the ID850QB EZ It is recommended to save the settings as it saves the window you used window size layout etc If you click it does not save the settings and closes the ID850QB EZ 47 TK 850 JG3 User s Manual 2 12 Quit PM Select File on menu bar then Exit PM CG PM SAMPLE JG3 prw OutPut O x File Edit Find Layer View Project Build Tool Window Help New Ctrl h h Eu t By rece d Open Chr E LI Insert File Debug Build T E3 du ae A itd Lm Clase 9 Mew Workspace Program Files NEC Electronics ToaolsVCAG5O XT3 10bin cas50 C Program FilesVNEC Electronics Tools C 650503 10 bin ca so C Program Files NEC Electronics Tools CA850lW3 10hbin caB850 Open Workspace Save Workspace Cl
8. test 1 Workspace Information 2 Select Tools Create Blank Workspace 3 Select Real Time 0S Folder Workspace file name ue ee A StU 5 Register Mode H test Project Group Name MEE 6 Link Directive File t Microcontrollers Name Device Name 7 Setup Source Fies Folder eo Lepage e 8 Select Debugger C XTK850Xtest SEST atl 9 Confirmation 1 V850 Microcontrollers Only 4 6 Project Group Name no input This will set up the basic information about the workspace and the project Qe p Next Ja C Hel ac ance elp Click button Microcontroller Name V350 Series Device Name uPD70F3740 X PM 2011 CHT test Lu This folder cannot be found Do you wish to create it Click button New WorkSpace Step 2 9 Select Tools i x Tool Set 1 Workspace Information 2 Select Tools Gave Delete 3 Select Real Time S Selected 4850 Series Software Package V4 20 Enalish Versio Tool Versions 4 Startup File H 5 Register Mode H DUR Unused 6 Link Directive File IDS50QB Ez Unused 7 Setup Source Files 8 Select Debugger 9 Confirmation t 850 Microcontrollers Only 4 6 v Select only Installed Tools c 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 ID
9. 2 11 Close Debugger UD8DOOB EZN tette tette tete KR LKAA ARR RR AAA snos 47 242 Quit GO DATEI RUE WILEY Re prd rt RED OU EE t orit ARS 48 CHAPTER 3S HARDWARE SPEGIFIGA TIONS EE 49 3 1 Eayo torhardware Ee Leg EEN 90 32 Layout of solder short pad EE 50 9 9 Hardware tr LINN LODS edens alse O E DM O O E O O SE 51 ET A olus MUT 51 RO ON aa A T E T TTE T O E 52 FIR WN Eegenen 52 SoA WANTER EE 52 oO LEDI POWER EE 52 3 3 6 U2 7seg PED sl U 53 Um n 03 Sri KE 03 309 ip mi Ree 03 TK 850 JG3 User s Manual 34 solder hort ee HEI EE 54 CHAPTER4 TROUBLESHOOTING GE 59 4 1 If you cannot find USB driver when you connect PC to the kit 55 4 2 Error when you start the debugger ian anode dtes EE EE 55 4 2 1 Can not communicate with Emulator F0100 or A0109 se 55 4 2 2 Incorrect ID Code Ff603 EE 56 4 3 Monitor memory cannot be accessed Fei 56 CHAPTER 5S OTHERINFORMATION RE 57 9 1 Greateza New WOFKSPAC E ernn AA 58 92 Reiter addtional Source TII oe Musa uni DEDE M ee LLL EM M D LII 66 EE UID SSS o ru cM ud E 68 5 9 T Ghanse display ot Th e EE 68 9 3 2 Display source istand function ISC oos ione ses sone ete tetto ete oer roe Dii rene 68 5 39 Set delete ateliers 69 3 94 RE Ee ER 70 5 9 9 Display ocal Variables derriere ecce Lista oo ooo DU D n DEDE o 71 5 3 6 Display memory and SFR contents eese nennen nne
10. System devices Universal Serial Bus controllers The screen above shows that the COM port number is COM8 If ID850GB EZ is not in use you can use this port number for connecting TK 850 JG3 When you change the USB port connection the COM port number will be changed as well CAUTION Do not do Hardware Modification Scan when you communicate with the target device 26 TK 850 JG3 User s Manual In this chapter you will experience how to use the development tools with using the sample programs The development tools are Integrated Development Environment IDE PM Integrated Debugger ID850QB EZ You will use the programs that you prepared in 1 3 Sample Programs as the sample programs for TK 850 JG3 You will be able to understand how to use the development tools and the concept of project files which vou need for producing application programs 21 TK 850 JG3 User s Manual The overall steps are as follows 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 28 TK 850 JG3 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 Mo Workspace OutPut A D Je m 3 L WM mum TTI F u OTT EPETET 2 29 TK 8
11. The connectors and or device pins should not be touched with bare hands TK 850 JG3 User s Manual Contents OHARILER I PREPARATION rts K AOP ER E O O O O n eni Ud 8 1 1 Dev lopment Tools 7 Software cee oa tte eerte ese neba ees tete bete es eae bed ees moe 9 1 2 Installation oft Development TOOLS orenen porter rtt are tede deep deett eet ete rote od dad 10 T2 Installatiori Pac EEN 10 1 2 2 Installabionzoft Development Heure ege e 10 Ee e TT EE 15 2 1 Preparation of Sample PFOSFARS EEN 15 1 23 2 Overview of Sample POR FAIS arit Sazka ibat tubes abeo a e danda e bed de vei deos 18 1 4 Installation ot USB Di el utat xd ver aped t Orr et lo en On ter to vr eta t e Pre 19 LAI Tnstallatiori on WibdoWs AP EE 20 1 42 Installation o Windows 2000 cades etti usb i tis ea tS d ott ote n 23 14 Completion of USB Driver installation 34s eet 26 CRAPTER AZ AEAXPERIENGOES deaeque tetra eo nica denen oda aeter etd rne o ooo ob 27 E Een TEE 29 22 Whats PM Saca bota dad d a dn a rv ar Eo te pr brit eR eU HE t ok Ort EROR 30 2 3 Load Workspace project EEN 32 24 568b DEOS ocpestcrs n OBEC M I IM M MI IM E IM M I I EE 34 DAA Sado O cete O 34 2 4 2 Preprocessor Tab 35 29 Greate Load MOGULS TE 36 2 9 Gheck IDE DUG SEI Setting Sx edet a cette scatter eaae ea teste tee cate dre ed eai Dna UA cena 38 2 Gheck EE le EEN 40 2 8 Start Debugger ID850GB EZ eee tette tnter tette AE AE ttes Pte tt 4 ZO BAU Ae E Tt EE 44 2 10 Stop EEN 46
12. Tools Product CASSO W S 20 15 23B5KB LA 880 V3 20 Documents zB ZOO D PM Vb 31 17 B52UKB Ph B Documents 9 2406 LOG 1 21 b 36F B LOG v1 21 Documents 3 1 SBEB STEBS0 v2 13 256KB IDS5008 V850 Integrated Debugger 3 41 37 952KB E plain Drive Available Space el 15 47 0 628K B Destination Required Space CXProgram Files MEC Electronics Tools Browse 135 B51KB 4 Click when Install comfirmation dialog box is opened INSTALL x 22 Install the Tools and DeviceFile Cancel 12 TK 850 JG3 User s Manual 5 Read software license agreement and click for continuing the installation To stop the installation click Software License Agreement 6 Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard Please enter the product ID of the product netallsntela 7 It starts copying the files 13 TK 850 JG3 User s Manual 8 When the installation is completed the following dialog opens Click x AJ Installation Finished WV Cx p lt 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 th
13. click Click when the confirmation dialog for downloading load module file is opened Configuration Chip Mame uPD or Internal Memory ROM P 2 KBytes C RAM acoso Bytes Data Flash j gt KBytes Use Bata Flash d Programmable L O Area Start Address Monitor Glock System User Restore Project About Peripheral Break C Break f Han Break Mask F nm P NM P HME F HLOR RESET STOF wel p ENT HODE mi2 Target Depend r Memory Mapping SESS RER DEW SR en Bad Memory Attribute Mapping Address amp Chip Select Delete Port LI amp RTA ID8500B EZ X k 2 J WE ZOO Do you wank to download Load Module File VES No 42 TK 850 JG3 User s Manual Download ID850QB EZ starts and downloading the program to flash memory CATRBSBINSAMPLE Ja out object loading symbol loading Cancel When the download is completed the source code will be displayed js ID8500B EZ SAMPLE_JG3 prj Eje x File Edit View Option Run Event Browse Jump Window Help i um n Bejm Bee Ou sl Et Vl E Source main c Search lt lt gt Watch Quick Refresh Close void main ai h initial4 5 CajaUaaaeaCaV EIC gt ini a J vm CPUe a oiR i r x g led 8 og count 8 while 1 lt gy start 8 T
14. 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 31 TK 850 JG3 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 JG3 prw under the directory C XTK850YSAMPLE JG3 rm say PM No Workspace OutPut O x File Edit Find Layer View Project Build Tool Window Help New Ctrl N h Mac ADDR e Open Ctrl O pe 4 HAL ADR x d EE Insert File i E di A X d Close Glose Workspace Save Cctr 5 Save As Ghange Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File Recent Warkspace Exit PM Open an existing workspace ei E a e E Open Workspace Look in C3 SAMPLE JG3 amp t IRGESAMPLE 1G3 prwi File name SAMPLE J amp 3 prw C Open Files of type Workspace File pre L ancel
15. 50 JG3 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 x ProjectWindow Files Memo Hes No Workspace For Help press F1 Project Window Output Window Project window A window in which project names source files and include file are displayed using a tree structure Output window A window in which the build execution status is displayed For details regarding menu bars and tool bars refer to Help menu in PM Help on menu bar then PM Help 30 TK 850 JG3 User s Manual What is a project A project is the unit that is managed by PM A project refers to an application system and environment development based on PM PM saves project information in a project file What is a project file A project file contains project information that includes the source files device name tool options for compiling editor and debugger information The file name format is xxxxx prj Project files are created in the directory you specifies when you create a new workspace What is a project group A project group is a
16. 70F3743 CsID prm E 70F3746 CsIO prm 7 F3743 CsI3 prm E 70F3746 CSI3 prm 7 F3744 CSIO prm 7 F3744 CSI3 prm 5 Please select 70F3740 CSIO prm in the directory of YPRMYPRM70F3746 V101 in the CD ROM F Device setur O Standard Advance Parameter file FOF3740 C510 prm PRM File Read Host connection Operation Mode C Block sn t Area Show Addres C ox Cancel Port selects the COM port number where TK 850 JG3 is allocated X Only the COM port number that the personal computer has is displayed in this pull down menu Input 4 00 to Frequency Input 8 00 to Multiply rate Input 38400 to Speed and chick OK 74 TK 850 JG3 User s Manual In xl Fie Device View Help Ld 1 gt Flash penning he Flash Open OK Mame gt gt ParameterFile Reading Success Head ParameterFile Firm Version gt gt COMMAND Device Setup E t Cade PAM File Read OF lem dian Parameter file Mame ZU 241 Cl Format 0415 Version VI UU Processor Ver 0200 Mame Dale Chksum Area Connection to device Port COMS Speed 6400 Range Chip Freg 4 00 Multiply 5 00 D Erase The deletion of the flash memory begins when the button is pushed Firm lox Fie Dew amig Help Ld k f 5 N gt Flashi penring gt Flash Open OK Name gt gt ParameterFile Reading Success Head ParameterFile F
17. 850 ctronics Tools CA850 W3 10bin ca850 ctronics ToolsiCA850 W3 10Xbin as850 ctronics ToolsCA850 W3 10 bin as850 Ncronics ToolsCA850 W3 10Xbinld850 tronics ToolsCA850 W3 10Xbin hx850 A Hes SAMPLE_HG3 1 Project s amp SAMPLE HG3 H E Source Files e GC Include Files e GC Project Related Files rg Other Files Start up Ex tool gt Total warning s O EOF File Compare Device File Installer PM Settings onsen 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 gt vw 4 b E Change debugger settings L 1ki1lv9 z 38 TK 850 JG3 User s Manual Check if ID850QB EZ V3 41 V850 Integrated Debugger is selected on Debugger Debugger Settings L STESBSISSAMPLE HG3 a nut E Wownload the Debug Target Files in the same Project Group 30 TK 850 JG3 User s Manual 2 7 Check Board Settings Before connecting the PC and the TK 850 JG3 with USB you should check the setting of SW1 on the board D Set the SW1 of the TK 850 JG3 as follows SVO JL i ar 5 E EI f FUERTES wE a rau JE JE n HU e e Wm TK 880463 i 150 Ae MMHRHHMHBHSHHSHHHSHMHERMMM 40 TK 850 JG3 User s Manual 2 8 Start Debugger ID850QB EZ Click t
18. 850 JG3 User s Manual lt 3 gt 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 Click the Install 11 TK 850 JG3 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 JG3 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 D eviceFile DF 703745 Ver 10 M Search v Tool Install
19. 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 25 TK 850 JG3 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 EP SG a Ra OPTZIUL 4 Computer Z Disk drives E Display adapters bh DVDICD ROM drives ta Human Interface Devices ic IDE ATA ATAPI controllers ze Keyboards Mice and other pointing devices Find NEC Electronics Starter Kit 7 Monitors Virtual UART COMx BBA Network adapters JH Ports COM amp LPT Son on Fort COMI Computer ven Local ih System Tools Event viewer iJ Shared Folders Performance Logs and Alerts ri Device Manager Storage Removable Storage Disk Defragmenter Disk Management as Services and Applications Sound video and game controllers M
20. EOS SSCS 3 By loading the sample programs you can confirm running the board Input output for operation check use Seg LED Push switch TK 850 JG3 User s Manual Overview Reader Purpose This manual consists of the following contents Read chapter 1 and 2 first for installing the development tools and using the sample programs Read chapter 3 5 for customizing the sample programs and the hardware Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Preparations Install the development tools Experiences Experience the basic operations of integrated development environment PM and integrated debugger ID850QB EZ with using sample programs Hardware Specifications Explain the hardware of TK 850 JG3 Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger ID850GB EZ Other Information Introduce other information such as how to create a new workspace project on integrated development environment PM how to register additional source file and some useful tips of the integrated debugger The circuit diagrams of demonstration kit are included in this chapter This manual is intended for development engineers who wish to become familiar with the development tools for the V850 It is assumed that the readers have been familiar with basics of microcontrollers C and Assembler languages and the Windows operating system This manual
21. Ed vad M001 Sa OSOL OSLL ZL d noaszipzontzNs Leu Vote 880 SHO zad l 5 1asay LK er OF z 5 Sid gsn 9 x E x adna zna OA E OLS Ld 300 peus ina OT DES Feu 10Q409 ONTP4NS OLE er S v MS gen 8 ecd adaa aa a I noasz oeovwzNs d80 SHO oand LK St OZ 9 z F vsn 9 Z 1MS A te Moot ROM 614 aa a Ano vo aa aa asn ondasn wasn dasn ooauasn PPA SSA 39384 V0G90 IX L2 kd a0aDO M1IX3 2X GG Ld oand DEER IA KA Od LNI 0Z Ld 0001L 00d OOOL OLOIL LOd Ld LNI OEd Ano J3nr o 613 L 0L jnz 0 6 CA 913 8 1 3 a Z OH SA0N9L3O1SO MOL 924 9 noa L Z MOL SCH g Z m m aa asn Y Lad gt 0 i GNdL vndL Z 0dd LOGZ0DEDAIPZNS i Z YSI 29N eeu aa a aa asn LOGLODEONTHLNS Z MS ven led adaa aaaasn yOaSZLOLOATPZNS EHN MSL ced Li S0S 9d N18 EN S IER 429 aa asn 13S3H L Ano T aaa3 lt OXY 001 024 qa a Ano eco l1SS gA VO9Xf1 rasn 79
22. 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 m 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 Mew 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 ta continue sl I e 20 TK 850 JG3 User s Manual 3 Select Search for the best driver in these locations check Include this location in the search and then click Browse to select the driver directory path The path should be C XProgram Files NEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select TK driver under the installation directory Click Found Mew Hardware Wizard P
23. ID settings are complete 65 TK 850 JG3 User s Manual 9 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 5 5 PM test prw ProjectWindow In xl File Edit Find Layer View Project Build Tool Window Help S OaG SQ amp Be Gh VACADDR J ea Add the source file to the project z es D k W A 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 66 TK 850 JG3 User s Manual rg PM test prw ProjectWindow I T tke 4 67 TK 850 JG3 User s Manual 9 3 Debugger tips This section describes some useful techniques for the debugger ID850GB EZ 9 3 1 Change display of buttons Execution controls run stop step in debugging reset etc and opening functional window can be made by below buttons However it could be difficult to know which button does what e gt z m s ipm E In this case select Options on menu bar then Debugg
24. MGEGICA 8x47 PICO 06x97 while g start gt PICO 0x47 WIMK 1 TMGEQIC 8x87 P9L 7 1 while g start 1 X Imain c 16 main 00000004 0 0 msec Lh NOTE Completion of the download does not mean running the programs Therefore even though you press switch on the board it does not make anything happened To run the sample program demonstration see 2 9 Run Programs 43 TK 850 JG3 User s Manual 2 9 Run Programs Now you are ready to run the program Click the restart button L1 or select Run on menu bar then Restart The sample program runs 2 ID850QB E2 SAMPLE J6G3 prj File mem Option Run Event Browse Jump Window Help m m o e EBM mre m t eta E Te main c Search dx lt lt gt gt Watch Quick Refresh 0 ose mi main gt Speake h initial 5 Lea aCaj aUaaaeaCaV _ EI va CPUea 9iR i geT g led 8 g count 8 while 4154 gy start B TMGEQIC 8x47 PICO 8x07 Run the sample program while g start 23 PICO 0x47 r WIMK 1 TM EQI CO 8x87 P9L 7 1 while g start 1 gt lt ZC 4 ana A VF genat E H Imain c amp t16 main 00000004 0 0 msec V ID8500B EZ SAMPLE JG3 prj File Edit View Option Run Event Browse Jump Window Help mm gt ggm siele Ql Alea Sele E v 6 So
25. S50N W SM850 SM for V850 Tw 850 ee Click Detail Setting button 59 TK 850 JG3 User s Manual Tool Yersion Detail Setting Un P MUnused Unused Unused AINUN waa Men V121 je Select tools as above screenshot then click New WorkSpace Step 2 9 Select Tools Changed S elected01 V850 Series Software Package V4 20 En 3 select Real lime WS CA850 STK850 LDG ID8500B IDS500B EZ Jv Select only Installed Tools Click 60 TK 850 JG3 User s Manual New WorkSpace Step 4 9 Startup File 3 select Heal hime WS H Hop US 2 BODY fom H Wop BIOS e C AATKS50 test crtE s Press the button New WorkSpace Step 5 9 Register Mode 3 select Real lime WS Press the button 61 TK 850 JG3 User s Manual New WorkSpace Step 5 9 LinkDirective File a select Hieal hime WS H TT DIV So BODY Mom DIGWSE C ATKS50 test test dir Press the button New WorkSpace Step 7 9 Setup Source Files HETTIOVE a select Readme WS Remove Al Up Dov Press the button 62 TK 850 JG3 User s Manual me WorkSpace Step 8 9 Select Debugger S50QB EZ v3 41 V850 Integrated De z PAE IDS50Q0B E2 Vw 3 41 V350 Integrated Debugger 3 Select Real Time OS Press the button New WorkSpace Step 9 9 Confirmation a
26. User s Manual TK 850 JG3 Date published May 2008 Rev 1 0 TESSERA TECHNOLOGY INC 2008 Printed in Japan TK 850 JG3 User s Manual Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries The information in this document is current as of February 2007 The information is subject to change without notice For actual design in refer to the latest publications of the product data sheets No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the c
27. aters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers need to use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electronics willingness to support a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above CAUTION Do not give any physical damage to this equipment such as dropping Do not superimpose voltage to this equipment Do not use this equipment with the temperature below 0 C or over 40 C Make sure the USB cables are properly connected Do not bend or stretch the USB cables Keep this equipment away from water TK 850 JG3 User s Manual Take extra care to electric shock This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap
28. 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 P97 Short nans Open when using it for other usages FLMDO to P37 on CPU FLMDO Open a Short When built in flash memory is rewritten by self VDD EVDD EVDD Short RXD Short Open when P30 isn t used for USB1 communication interface P78 P 711 Short Open when P78 P711 isn t used for general purpose input SW 54 TK 850 JG3 User s Manual This chapter describes how to solve troubles you may face 4 1 If you cannot find USB driver when you connect PC to the kit Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if you installed NEC Electronics Starter Kit Virtual UART Driver in 1 4 Installation of USB Driver If not install the driver Check Point 3 If above 2 check points are confirmed disconnect the USB cable from PC and re connect again 4 2 Error when you start the debugger There could be several reasons to make errors
29. e 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 14 TK 850 JG3 User s Manual 1 3 Sample Programs This section explains the overview and preparation of sample programs 1 3 1 Preparation of Sample Programs D Insert the CD ROM disk in the CD ROM drive of your PC The NEC Electronics Microprocessor Development Tools Setup screen automatically appears if this screen does not appear automatically start setup exe from Explorer etc zi NEC Electronics Microcomputer Development Tools Seti X Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs TK 850IG3 71 00 May 25 2008 Copyright E NEC Electronics Corporation 2008 Readme First Install Documents Sample Program ectronics Microcomputer 2 Press the Sample Program button to start the WWW browser 15 TK 850 JG3 User s Manual e Sample Programs Microsoft Internet Explorer BE O m Bl x File Edit View Favorites Tools Help 4m Back fx at A Search j Fav
30. ed installing the software Far E MEL Electronics Starter Kt Sirtual UART Click Finish ta close the wizard 6 Goto 1 43 Completion of USB Driver Installation 22 Click Finish TK 850 JG3 User s Manual 1 4 2 Installation on Windows 2000 1 Once the TK 850 JG3 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 USE Device A device driver i a software needs driver files for your ned device installation click Nest Select Search for a suitable driver for my Click Next Cancel What do vou want thg fizard 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 23 TK 850 JG3 User s Manual 3 Select Specify a location Click Found New Hardware Wizard Locate Driver Fi
31. er Options Check Pictures and Text on setting area With this setting the buttons display the text as well so that it is easier to know what they are E E ell E RE SS O A SB Open Load Proj sro Asm Mem Weh Reg SFR Loc bI KN 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 zu ID x Leen I interrupt c FA main c E PEN 68 TK 850 JG3 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 gt gt Watch Quick R 4Hivoid maintvoid Ea E While 13 ml 4 EI amp k 4 69 TK 850 JG3 User s Manual 9 3 4 Display global variables With using Watch Window you can display global variables There are several ways to register global variables to watch window In this section how to register from source window is described DRight olick the variable on source window then select Add Watch BER
32. 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 55 TK 850 JG3 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 Options Also remember the code you set for the security ID After this erase the flash memory with referring to 5 4 FPL 4 3 Monitor memory cannot be accessed F0c72
33. he debug button zl 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 JG3 prw OutPut E In xl Prt WEI BAD EEL RTA Dei ELO YeD GA 3700 Ie penleinimgpl bes al gt cial SAMPLEJG3 SAMPLEJG3 lie Build Xl Jl sl Bere keng WEE Files Memo C XProgzram Files NEC Electronics Tools CAS50 W3 10 bin ca850 E C Program Files NEC Electronics Tools CAS50 W3 10 bin ca850 exe cpu F3745 cg SAMPLE JG3 1 7 n77x5 C Program Files NEC Electronics Tools CA850 W3 10 bin ca850 exe cpu F374 5 8 SAMPLE JG3 C Program Files NEC Electronics Tools CAS50 W3 10 bin as850 exe cpu F374 JT C Program Files NEC Electronics Tools CA850 W3 10 bin 1d850 exe BSAMPLE J Ea y AIA Ib C Program Files NEC Electronics Tools CAS5O0 W3 10 bin hx850 exe o a hex H E 475 024 DO BE SL Build Total error s 0 Total warninz s 0 C3 eoo gt ALERTADO F1 edP CUERO 1 x1 v8 z 41 TK 850 JG3 User s Manual Configuration dialog is opened Follow the settings below and click OK Enter A 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
34. ial vm aCajaUaaaBaCaY x EIC gt x GPUea 9iR i eT g led 8 og count 8 while 154 gy start 8 TMBEQICB 8x47 PICO 8x87 while gy start 23 PICA 8x47 WIMK 1 TM EQIC 8x97 P9L 7 1 E e gesat H while g start 1 gt lt ZC Z anf A NS Stop the program 3 ID8500B EZ SAMPLE J6G3 prj File Edit View Option Run Event Browse Jump Window Help i m gt n a Bem Seel Olalelel mJ ri salle E Source main c Search lt lt gt gt Watch Quick Refresh Close oid main h initial vm CajaUaaaEaCaY EI GPUea 9iR i T g led 8 og count 8 while 1 lt y start 8 TMBEQICB 8x47 PICO 8x87 PICO WIMK TM EQIC 8x87 P9L 7 1 sl 3 while g start 1 gt lt e segLE v ZC 7 ADO A NS H 9x47 1 Imain c amp t33 main ooooogce m 23s 898ms Manual Break A When the program stops the status bar changes back to the original color 46 TK 850 JG3 User s Manual 2 11 Close Debugger ID850QB EZ Select File on menu bar then Exit 45 IDB50QB E2 SAMPLE 1G3 prj File Edit View Option Run Event Browse Jump Window Help Open CEri o eh Eed BlE m E Close Download ch Quick Refresh Close Load Module in RER h initialO wm AGAJAUAASEACAY x PUES R EI gt fx GPll
35. irm Version gt gt COMMAND Device Setup Eat ode PRM File Read OF Media Parameter file Mame ZU 241 Cl Format 0415 Version 1 UU Processor Ver 0200 Connection to device Port COM Speed 36400 Range Chip Freg 4 00 Multiply 5 00 When you write the program click load then select writing HEX file 715 TK 850 JG3 User s Manual Hex file writing will be start by clicking AutoProcedure 16 TK 850 JG3 User s Manual 9 9 Circuit diagram From following page it shows the circuit diagram of the kit 71 TK 850 JG3 User s Manual G o Ae jo I jay 9ZL00SOL V JequinN 1ueunooq azis aAWLo V1 Of 0S8 ML en aaA3 S0zdzV9IS qa a Qqa a S041 920 30 88 aa 19uL codo E8 sere E 6 GND tia Samo O8 A ONE o8 Soe LR a SONS EE L GND 0 aN5 pa LOld9 001d9 anto Gud LEV sod 90 swa OY cod yoa 6v SSd pjaiys 190 BV vad p anaoa L aana evivaouL 3v zvivaoul IVIVOOUL MO 0vIvdouL 84 WIOOUL H3HIMN adsa VSQrS c v qos HE JIH 0Zd Lid 24d Zd vd S d 92d Zid SHOd vHQd HOd ZHad LHOd OHGd SH 1 d tdd 11dd Zzi1 d LLTOd otdd 61 d 81 d 210d 910d S 1 d V1ad l d 210d qd 010d 919d VLOd LLOd OLOd gNAOd aNOd HNOd Nod LLZd Ol d SL6d vl6d 16d 216d L 16d 016d 66d 86d junoyW ON uno ON junoW ON 031 ad Cl ASZ A
36. is intended to give users an understanding of the features hardware configurations development tools for the V850 TK 850 JG3 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 JG3 TK 850 JG3 User s Manual 1 1 Development Tools Software Device file DF703746 V1 10 A device file contains device specific information So users need a device file to use the development tools Integrated Development Environment IDE PM V6 31 The IDE works on Windows operation system Users can develop a system efficiently by using the editor with idea processor function compiler and debugger C Compiler CA850 W3 20 code size limited version C compiler for the V850 microcontrollers The object code size is limited to 128 Kbyte This compiles C code for V850 and ANSI C code program into assembler code This produces object code and linker V850 Integrated Debugger ID850QB EZ V3 41 This is the tool for debugging the object program generated by C compiler and assembler The debugger enables to do C source level debugging With the debugger you can debug the code easily and efficiently by refering and changing variables using step in debuging f
37. lease choose your search and installation options e 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 T aalss T K drive Don t search will choose the driver to install Choose this option to select the device driver fram a list Windows does 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 operation 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 21 TK 850 JG3 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 finish
38. les Where do you want Windows to search for driver files Search far driver files Far the following hardware device 7 USE Device bes 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 selected and then click OF Cancel Select the driver directory Click OK Copy manufacturer s files from C AFrogram Files NEC Electronics Tools T are v 24 TK 850 JG3 User s Manual 5 Click Driver Files Search Results The wizard has finished searching Far driver files for your hardware device The wizard found a driver for the following device y USB 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
39. lf 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 17 TK 850 JG3 User s Manual 1 3 2 Overview of Sample Programs The sample programs consist of following folders SAMPLE JG3 SAMPLE JG3 prw Work space file main c Source file 18 TK 850 JG3 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 JG3 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 XP Windows 2000 gt 1 42 Installation on Windows 2000 After the installation go to 1 4 3 Completion of USB Driver Installation 19 TK 850 JG3 User s Manual 1 4 1 Installation on Windows XP 1 Once the TK 850 JG3 is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found Mew
40. mpiler 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 34 TK 850 JG3 User s Manual If you forgot the security ID code stored in the address 70H 79H the debugger ID850QB EZ will not be able to start In this case you need to use FPL to erase the built in flash memory By erasing the flash memory the security ID is set to FFFFFFFFFFFFFFFFFFFF For details refer to 5 4 FPL 2 4 2 Preprocessor Tab Select Tool on menu bar in PM then Compiler Options Select Preprocessor tab and check Use C Style Comment This setting allow you to use the C comment using t is useful feature when editing programs Lompiler Options Ei Detail of Optimization External Register Output File Output Code Message As
41. n ca so c amp SAMPLE HG3 C Program Files NEC Electronics Tools CA850 W3 10 bin as850 2 1 Source Files C Program Files NEC Electronics Tools Cas50 W3 10 bin as850 H E Include Files C Program Files NEC Electronics Tools Cas50 W3 10 bin 1qa850 H Project Related Files C Program Files NEC Electronics Tools Ca850 W3 10 bin hx850 rg Other Files TILES xj l warning s O EOF L LD 13500 Build completed normally v 4 Z bikie z Build has been completed successfully 36 TK 850 JG3 User s Manual 3 7 TK 850 JG3 User s Manual 2 6 Check Debugger Settings After the build you should configure the debugger settings The debugger settings have been set by the project file as well However because those settings are important for debugging some settings are covered in this section Select Tools on menu bar then Debugger Setting Eos PM SAMPLE HG3 prw OutPut File Edit Find Layer View Project Build Tool Window Help S D a bd amp a Y i Compiler Common Options Section File Generator Options SAMPLE HG3 SAMPLE HG3 v Debu Compiler Options Assembler Options ProjectWindow DM Linker Options Files ROM Processor Options Hexa Converter Options Static performance analyzer Options p gt em E 3 A lol x ctronics ToolsiCA850 W3 10Xbinca850 ctronics ToolsiCA850 W3 10bin ca
42. n0L L AS2 JnZ V ZdL tdl BIO TI uo NS aA e 0 9 10 0 4003H taanoa E A n ENZ aaA3 aa a aaa ada aa asn ggAOXS Ano d 010 oand Loo aa a lt Od U u u u u u ul u u u u u u u u U U u 0 U UO 0 U o co co co co co co co o co o1 OF oj o Co CO af CO C9 Cd Co co Co Solo BY Cop Po 2 Sc BY Co PO 2 CO CO Co NIO N A Cop 5 Xv nan 9958 7 430 adn DEE 9LHd v ev by or 68 8 Ze 98 Se FC ce LE 08 6c 8c Ze 9c Ion IRS Olojo IN jon A W3MOd HeLLLOd daa DU D0 U U 0 U 0 0 0 0 0 UU UMM T UUU U U O KO KO KO KO CO CO CO Om O1 01 01 071 O1 C2 Q0 e lt U WWWWW EES REES SEET EE 03332422288888890 EE TTL KILN gE EE SNWWBRARNOPSADRAALS KSE 32922A DIS POL EES o005z zadddds aseksecy USO axd gege S99999UZagZxdddses S 2 0 rgSOS OVOXL OEd Q KH z z 86d L ae okokokn oy Ge DE Hi ss SNSSSRSSAVSOOO S5 OgoS cvd E 66d Se SalS Olv 0l6d Q 8S SEABREO dg 0109 0808 L d bd Ole 8OS LV LL6d m E EEN 3 L0VaS 0gIS 0rd Le ENEE LL6d FG o Se29g92i3 S ce Otd ki FERRING SAO 9 EdLNI 90d LS Ae dn eld ag aL NI eLv eL6d o 5838 g 41SHQ cdlNI SOd 90d US D 16d Fe I amp dOL IGdlL SdLNI PI V FL6d E 3 LAN L 30d E 0SdOL OSdlL 9dLNI SL V SL6d dg S DHLOaV OdLNI E0d v0d Sid g 81v zHad m IWN 20d S 0d 29 aap ZH d 68 6rv eHad S zx LZ 20d 08972 ON Hdg To LLWOWOd o UN HO 23 LD1O9 Od LASAH lt
43. nnot be installed from an integrated installer Please execute FPL FPL_E160a msi from the Explorer etc The hardware for FPL is incorporated in TK 850 JG3 Down loaded program by ID850QB EZ which is down load with monitor file for debugging is not run stand alone The program written by FPL which is not including the monitor file is able to run standalone D The switch of TK 850 JG3 is set as follows and connects TK 850 JG3 to PC SVO 12 TK 850 JG3 User s Manual G Please execute Programs NEC Electronics tools FPL FPL E160a FPL from the start menu if you find Security Warning click Run Irire IN ici Jj File Device View Help gt gt ashi penning A Flash Open OF Mame Firm version al ode Vendor Mame Format Version Processor Ver Connection to device Fort Speed Range Freq Multiply 3 Push the Setup button F Device setur O Standard Advance p Parameter file PAM File Head Host connection Supply oscillator Fort Frequency MHz Speed Multiply rate Operation Mode Chip Start C Block Emil Area Show Addres Push the PRM File Read button 73 TK 850 JG3 User s Manual C Als Look in PRM70F3746 V101 E e B E 70F3739 Cem pm E 70F3742 CS10 prm Ed z F3745 CSIO prm Set 70F3742 CsI3 prm E 70F3745 CSI3 prm esu
44. oller built in pull up resistor option registers PUO to ON 3 3 4 SW4 INTP1 SW4 is the push switch connected to P04 INTP1 pin in microcontroller When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this you need to set the microcontroller built in pull up resistor option registers PUO to ON 3 3 5 LED1 POWER This is the POWER LED It is lighted when it gets power supply 52 TK 850 JG3 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 l 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 s om 6 0835 OxA4 Oxf8 2 WEN 9 Ol N 3 3 7 JP 1 JP1 is the jumper switch pin to select power supply JP1 1 2 short Use power supply from USB power connected to USB1 2 3 short Use power supply from external connection 3 3 8 J1 This is the connector for external power supply DC5V 3 3 9 NWIRE1 Connector These are connector for N Wire emulator It can connect N Wire emulator of IE V850E1 CD NW etc NWIRE1 can connect to N Wire emulator by installing a connector 8830E 026 170S not mounted by KEL Corp 53 TK 850 JG3 User s Manual 3 4 solder short pad label When using a
45. orites Media ET E Sample Programs Welcome to TE 820033 world The purpose of sample programs is to experience TK 850 JG3 sample programs consist of the following items Copy them to the PC which TE 550 763 has installed e TK850 o SAMPLE JGS Sample program described m the TE 850 7653 evaluation kit tutorial guide Reter to the tutorial guide in each sample program folder for usage ew IR AVN ation kit tutorial guide e E 550 Tt73 sample programs E 2 Done Fi m m BR Local intranet Z 3 Click the TK 850 JG3 Sample Programs link the following download confimation window appears File Download E X d Some files can harm your computer IF the File infarmation below looks suspicious or vou do not fully trust the source do nat open or save this file File name TEKB5 exe File type Application Fram F ASAMPLE RV This type of file could harm your computer if it contains malicious cade Would you like ta open the file ar ave it to your computer pen Cancel More Info ny hg e ask before opening this type of file Click the butten 16 TK 850 JG3 User s Manual tj p E Documents and Settings Program Files WIMRT wLITemp Oezkta p S 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 se
46. ose Workspace C Program Files NEC Electronics Tools Cas50 W3 10 bin assso Save Chrl4 5 C Program Files NEC Electronics ToolsVCA850 W3 10 bin 10650 Save As C Program Files NEC Electronics Tools CAA85003 10 binihx850 Ghange Source File Name Build Total error s 0 Total warning s DO Save All Source Files bownload C TEBSOS SAMPLE JG3 a out to the debugger EOF Print Preview Print Ctrl F Recent File Recent workspace y X d Exit P4 cw Flu Exit PM and prompt En save the Files ii fei io 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 48 TK 850 JG3 User s Manual In this chapter the hardware of TK 850 JG3 will be explained u PD70F3740 XV850ES JG3 Clock External main system clock 32MHz 4MHz x8 Sub clock 32 768KHz Interface USB MINI B connecter Connecter for N Wire only pad Expansion connector 50Pin socket x2 only pad 89mm x 52mm Power supply voltage 49 TK 850 JG3 User s Manual 3 1 Layout of hardware functions J1 JP1 LEID SW1 ON1 USB FALECELLE 00 LE o i ae um ccn ERR SV FeSeseseseesseeeenerveeeer es U3 CN4 SW4 SW3 SW2 CN2 3 2 Layout of solder short pad FLMDO RXD P787 P711 pl AAA AOK P90 P9 7 EVDD AVREF1 DCVDD1 2 AVREFO
47. select Heal hime WS Press the button 63 TK 850 JG3 User s Manual F PM test prw OutPut File Edit Find Layer View Project Build Tool Window Help S DSH Si 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 Cornm e Ba A ee a E Esseg ator op es es Debu Compiler Options EN EC 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 I oo Project Related Files Debugger Settings es Other Files Register Ex tool Start up Ex Eaol la File Compare Device File Installer PM Settings Font DA TK 850 JG3 User s Manual Click the Device tab Compiler Common Options BEL Hester E FFFFFFFFFFFFFFFFFFFF Press the OK button Security
48. sembler Others General Input File Preprocessor C Language and Kanji Optimization and Debug Information Include Search Fath 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 35 TK 850 JG3 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 55 PM SAMPLE JG3 prw OutPut In x File Edit Find Layer View Project Build Tool Window Help B Ds 8B amp I B Wlece ze gt eml SAMPLE _JG3 SAMPLE JG3 v Debus Buid X m ll rn E Fies Memo EOF Pal SAMPLE J6G3 1 Project s SAMPLE JG3 Cj Source Files Include Files 0 1 Project Related Files 4 Hl Z TTT o kikika z Lee e Es PM SAMPLE HG3 prw OutPut In x File Edit Find Layer View Project Build Tool Window Help j amp DcBH amp xsm W Z em C Program Files NEC Electronics Toolsi CAS850 W3 10 bintcas50 C Program Files NEC Electronics ToolsiCA850 W3 10 bintca8s50 AE C Program Files NEC Electronics Tools Ca 50 U3 10 bi
49. tes etre tss rne tre tn sns 71 cdd e 72 APC MC NINE SCM EE 71 TK 850 JG3 User s Manual TK 850 JG3 is the evaluation kit for development using V850ES JG3 NEC Electronics 32bit all flash microcontroller The user only needs to install the development tools and USB driver and connect the host machine with the target board to start the code development build monitoring the output and debugging code This demonstration kit uses the on chip debug feature from the microcontroller itself without emulator connection Configuration for Debugging pem Lt re pre ETE C PL E ENEC T mame Gees EE ETE CR EE X FEM ull di DHAL Demonstration Program for TE T8FD73D PRIETO SAMPLE del 1 Peechisa fain E e inirialise c P Source Ve interrupt c prm amp gma eit Winclude em hh i extern void imieial s a SMSIPJOL INTPI SWdiPlzO 2 F TaegLED PI of Jur A Bea aen Cen e S Ke Zrresssseemeesensesreeeereereeeeereemreee ess eenres eene eseees E Si L g i DERE I Hh M n void maindi t n ow h amp nitimbil Zr Enitimlize T i EIN Zr CPU inzerrupc permit whale 1 64 Welsh g start Did IF H jk HFN G 1 4 ke Kee iiit SS m J o BEBE CH artip p ed RE lg WEN d II in z uu i rd mum m pm TK SO 3563 0812530 ie Be de A0 MT CESSES
50. unction and SO on Built in Flash Memory Writing Program FPL This is the Windows software to write programs on built in flash memory By connecting TK 850 JG3 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 JG3 User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package The attached CD ROM includes the development tools and documentations Users can use the installer to install those development tools and documentations 1 2 2 Installation of Development Tools D Please insert the CD ROM in the drive The installer will show up automatically If it does not start automatically please initiate it by double clicking the SETUP EXE rz MEC Electronics Microcomputer Development Tools Serd x Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programs ESTATE T1 00 May 25 2008 Copyright C HEC Electronics Corporation 2008 Readme First Documents Sample Frograrn Link to NEC Electronics Microcomputer Exil lt 1 gt Readme First The contents of the CD ROM and some notes are available Please read it at first lt 2 gt Install Click Install to start installation of development tools For details please refer to the next section 10 TK
51. urce main c Search IESSE Watch Quick Refresh se h initial aC ajavaaa aCay EIC gt fd CPUea 9iR i eT g led 8 og count 8 while 1 gt g start 8 TMBEQICB 8x47 PICO 6x07 whileC gy start gt PICA 8x47 UTMK 1 TM EQICA 80x60 P9L z while g start 1 At gesat 2 6 7 ADA A NS A When programs are running the status bar will be red 44 TK 850 JG3 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 ITT ur A oi a Kaes n a m Em a n a rg ted PE USS 7 Seg LED SW4 SW3 Reset SW Q You could confirm the sample program is working The programs downloaded by ID850QB EZ cannot be used without ID850QB EZ connection For stand alone operation write the HEX file with FPL For more information about the FPL refer to 75 4 FPL document 45 TK 850 JG3 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 je ID8500B EZ SAMPLE J6G3 prj Edit View Option Run Event Browse Jump Window Help mmm Belej OQ Alta Sal E Ve u Source main c Search lt lt gt gt Watch Quick Refresh Close h init
52. ustomer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The recommended applications of NEC Electronics products depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repe
Download Pdf Manuals
Related Search
Related Contents
army boxing army boxing association association aide memoire Samsung SFN-C40RT User Manual (XP) トマトだより 第 67 便 2013 年 8 月 22 日 partner 3 - proudrider.ca Medisana HKN Hoefer Multiple Gel Casters Peavey MegaBass User's Manual GE Profile Harmony DPGT750EC Electric Dryer Copyright © All rights reserved.
Failed to retrieve file