Home

Tutorial Guide

image

Contents

1. ID code ID850 TK Ri AN FR603 Incorrect ID Code The following Configuration screen is displayed when is pushed and input a correct ID code please xi name eo E SE Mame uP F F32BlY Main iis MHz E Cancel Internal Memory Restore Project About Multiply rate F ROM 394 KBytes RAM JerbO Bytes Data Flash D KBytes e Use Data Flash 4 Programmable 10 Area Start Address Have IF DCK 10MHz sub Hel Help Monitor ck C Sustem Peripheral Break C Break f User f Hon Break Mask I MIO F HM M Nnm F HLpRG F RESET erop D wal F DEINT l MODE 0 1 2 Target Depend Memon Mapping Access Size BBit C 1BBit C 32Bit Memory Attribute Mapping Address amp Chip Delete Target Add When the ID code is forgotten it is necessary to delete all flash memories with built in CPU Please delete the flash memory by installing PG FPL from CD of the attachment Please refer to Chapter 3 for the usage of PG FPL CHAPTER 2 PRACTICALS Introduction of integrated debugger ID850 TK ID850 TK displayed the CPU core s internal status and controls monitor program execution in the main window The initial screen of ID850 TK is as follows M Main window enu bar Tool bar ID850 TK SAMPLE_JG2 prj inl x File Edit View Option Run Event Browse Jump Wind
2. gt V850 Series Device Name gt uPD70F3281Y AN 02011 CATKBSO test CHAPTER 3 OTHER New WorkSpace Step 1 9 Workspace Information x Workspace File Name gt gt 1 Workspace Information 2 Select Tools fre 3 Select Real Time QS H 4 Startup Edel CAT K850 E ample Browse PS durs Project Group Name IX NC 6 Link Directive File Series Name Device Name EE vaso Series uPD70F3281 9 Confirmation Device Install V850 Series Only 3 6 Example Create Blank Workspace 8 Select Debugger This will set up the basic information about the workspace and the project lt Back D Cancel Help Press the button This folder cannot be found Do you wish to create iE Press the button New WorkSpace Step 2 9 Select Tools x Tool Set 1 Workspace Information 250 Series Software Package 4 1 0 E nd Gave Delete gt gt 2 Select Tools 3 Select Real Time OS 4 Startup Edel 5 Register Model Tool Versions B Link Directive File i 7 Setup Source Files v2 10 VII 8 Select Debugger Unused 9 Confirmation el 4 V850 Series Only 3 6 Unused b Detail Setting Please select the Tools from NEC Electronics to be used tea zs Press the Detail Setting button CHAPTER 3 OTHER x S CA850 STK850 J 1D850 TK Please select each tool version as
3. EDP x Standard Advance m Parameter file PRM File Read Ha Host connection Supply oscillator Port Frequency MHz Speed Multiply rate Operation Mode r Chip Start Block eral Area Show Addres Target Reset Message DK Cancel Push the PRM File Read button Open os Look in C5 PRM70F3286_V111 amp DI rh EE E 70F3284 CSID prm E 70F3274 CSID prm 70F3274 CsI3 prm lets ee 7 F3284 CSI3 prm i 70F3276_C510 prm 70F3283_CSIO prm 7 F3286 CSID prm 70F3276 CSI3 prm 7 F3283 CSI3 prm 70F3286 CSI3 prm i 70F3276H_CSIO prm E 70F3283H_CS10 prm E 70F3286H_CSIO prm FORS276H_CSI3 prm E 7O0F3283H_CSI3 prm E 7OF3286H_CSI3 prm EE DI Filename 70F3281_CSI0 prm Cp ee Files of type PRM Files PRM Cancel E XPRMXPRM70F3288 V111YX70F3281 CSIO prm of attachment CD is selected Prag x Standard Advance Parameter file F3281 CSIU prm P upply oscam HM File Head Host connections lt Ll Fort coms xl Frequency 5 00 MHz PE aam sl Multiply rate um O Ji e Operation Mode Chip Stark 000 C Block End a1 C Area Shaw amp ddres Port selects the COM port number where TK 850 is allocated Target Reset Message Only the COM port number that the personal computer has is displayed in this pull down menu Please select as follows Speed 38400 Frequency 5
4. 1 while g_start gt lt segLED Io if lt tP 4 AC og start 2 gt while g_start if g Led ada The status bar changes to red during program execution CHAPTER 2 PRACTICALS Next when you pushed SW2 on the CPU board of TK 850 SG2A 7seg LED starting count up When you pushed SW1 the count up interval becomes longer and confirm the stop SW1 SW2 DE EE sens sv Jet Sg EE SNR 2 MT POd IP C24 DJA b x EH z r d r e p dim T m cm pum mm d EE PECH me pon Si gie Pare Bue CN BEE eem e dCKKRKRRKRKRKKSRKRRKRRRH SS S i SS 4 7SegLED Reset SW Press SW2 to start counting up of 7segLED 7segLED counts up to 0 gt 1 gt 2 gt 9 gt 0 Press SW1 to stop counting up of 7segLED The count up interval becomes longer and finally stops Q The above described procedure checks that the 7seg LED count up program functions normally CHAPTER 2 PRACTICALS Stop the program Press the ID850 TK s Stop button I or in the menu select Run gt Stop 2 ID850 TK SAMPLE_SG2A prj pla Edit View Option Run Event Browse Jump Window Help Pe rr SEN gjela Olalelgl sl Silo C initialise c h initialO amp CA4jaUaAaaEACAV _initia aca javaaa aca ina EI lt gt e CPURRES IACI T while 1 gt g_start g_led_s g_count PICO WIMK while lt Avaia
5. 00 Multiply rate 4 00 Push the OK CHAPTER 3 OTHER 10 xi File Device View Help gt gt FlashO penning a Flash Open OK Name gt gt ParameterFile Reading Success Head FarameterFile Firmi Version gt gt COMMAND Device Setup E tCade PAM File Read OF Werder Parameter file Mame F3281 CSIU Format 0411 Version 1 10 Processor Ver 0200 Mame Date Chksum Area Connection to device Port COM4 Speed 33400 Range Chip Freg DUU Multiply 4 00 Erase The deletion of the flash memory begins when the button is pushed FarPL File Device wiew Help O x Erase ecking Mame Det 3461 lash Erasing chip erase finish Firm Version 1 04 Eat ode dFAU Vendor 10h Parameter file Mame FOF S281_CSI10 Format 0411 Version 1 10 Processor Ver 0200 Connection to device Port COM4 Speed 38400 Range Chip Freg DUU Multiply 4 00 If chip erase finish is displayed the deletion of the flash memory is completed Please end PG FPL It returns based on the set switch and completion SW3
6. Static performance analyzer Options c8 test Startup STK850 E Source Files Startup LDG H E Project Related Files dump8so Debugger Settings Register Ex tool Start up Ex tool gt File Compare Device File Installer PM Settings Font Customize Record the Key Operations Play Back Save the Key Operations Load the Macro File Play Back the Macro File Register the Macro Files Play Back the Register Macro A Set compiler common options In L 1 ix 1 Iv 1 CHAPTER 3 OTHER Compiler Common Options Startup Link Directive ROM Flas Device Browse prose Po Bro Click the Device tab Compiler Common Options LJ QD D amatar DEL Register Press the OK button Security ID settings are complete CHAPTER 3 OTHER The method for registering additional source files to a project is described below 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 ran PM plus test prw Project Window E 8 x File Edit Find Layer View Project Build Tool Window Help amp D Hl amp R sel ela test test v Debus Build DI D E Si X d FE Meo Files Memo
7. This contents of this document are subject to change without prior notice No part of this document may be reproduced without the prior written permission of NEC Electronics Corporation NEC Electronics Corporation does not make any guarantees nor does if grant any license regarding intellectual property rights or any other right of NEC Electronics Corporation or third parties pertaining to the use of the products and the use of the information described in this document NEC Electronics Corporation shall not be held liable for problems related to the rights of third parties that arise from the above uses The circuits software and appurtenant information described in this document is provided solely for the sake of semiconductor device operation examples or application examples Therefore in case these circuits software and or information items are to be used for a customer s equipment the design of said equipment shall be the responsibility of the customer NEC Electronics Corporation declines any and all responsibility for damages arising from the use of such circuits software and or information by a customer of a third party Trademark Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries Adobe and Acrobat are trademarks of Adobe Systems Incorporated Adobe System Incorporated Other company names and product names that appear in this document are the
8. follows CA850 W3 10 ID850 TK V1 04 V850 Series Software Package V4 20 Enalish Version V850 Series Software Package V4 10 English Version 850 Series Software Package V4 0D English Version Cancel Help Press the OK button New WorkSpace Step 2 9 Select Tools Tool Set 1 Workspace Information 2 Select Tools 3 Select Real Time OS 4 Startup File H 5 Register Mode t B Link Directive File t 7 Setup Source Files 8 Select Debugger 9 Confirmation 1 850 Series Only DEI Detail Setting Please select the Tools from NEC Electronics to be used lt Bac RE Cancel Help Press the button New WorkSpace Step 3 9 Select Real Time 05 E x Please select the Real Time OS RTOS RTOS 1 Workspace Information 2 Select Tools 3 Select Real Time OS RTOS Settings 4 Startup File 5 Register Mode B Link Directive Edel 7 Setup Source Files TK 850 does not use RTOS 8 Select Debugger 3 Confirmation 4 850 Series Only 3 6 Please select the Real Time OS RTOS from NEC Electronics to be used Only the installed RTOS from NEC Electronics can be selected Gg He Press the button CHAPTER 3 OTHER New WorkSpace Step 4 9 Startup File 2 Copy irom TL DIGWSE e C AATKS50 test crtE s Press the button New WorkSpace Step 5 9 Register Mode Press t
9. g_led_s 20 o count H PIC 6x 7 WIMK 1 while g start PICA 8x47 WIMK P9L 7 1 while g start 1 4 PsegLE if PG 4 gt lt sl E g start 2 E E gt mainc 18 hman Ss BREAK E CHAPTER 2 PRACTICALS Normally if communication with the CPU the following error messages are output A F01b0 Can not communicate with monitor program Please check the availability of communication port the setting of CPU board or the type of cable Retry Cancel If these errors occur check the following items Verification items 1 The CPU board is connecting to USB port on host machine correctly 2 Please confirm the switch on the board is set as follows SW3 Bit 1 ON 3 Is JP1 made 1 2 short and does power indication light LED1 light 4 Is the COM port number set by the COM port and Portconfig for ID850 TK allocated in TK 850 SG2A corresponding JP1 EE cet oe SES T a zm we 2 i UE ELI Do AGL EA Em e SN Deel vi SC 2 a r E zs i UI t s e Is TEES WONS A eE na es itis ee Lie eeseesesveeeeeveeeeeeeee es LED1 S After checking the above items start ID850 TK again CHAPTER 2 PRACTICALS When the ID code is wrong the following messages are displayed Also this message can be displayed at first start up In that case Please input FFFFFFFFFFFFFFFFFFFF 20 of F in
10. registered trademarks or trademarks of their respective companies This chapter provides an outline of the development tools used in this document and describes how to install the sample programs The sample program function only for the development tools listed as included in the TK 850 SG2A evaluation kit in this document CHAPTER 1 PREPARATIONS Used development tools This section outlines the development tools used in this document The name of the development tools and their main function are as follows Device file DF703283 V2 11 Since the device file contains the device specific information this file is required for using the development tools The sample used in this document has been created as a V850ES SG2A program Integrated development environment PM V6 11 This is an integrated development environment platform that operates on Windows An editor with an idea processor function is provided as the Edit window allowing efficient development linked with development tools such as a compiler and a debugger C compiler package CA850 W3 10 Size restriction Version This product generates execution code that can be executed in the V850 Series from C source programs and assembler source programs CA850 W3 10 in software development tools are put restrictions on object size to 128Kbyte If you already have release to manufacture V version please don t install CA850 in this product Monitor version int
11. sample programs f E Local intranet Ai When TK 850 SG2A Sample Program is clicked the following download confirmation window appears File Download E x 9 Some files can harm your computer If the file information below 4 looks suspicious or you do not fully trust the source do not open or save this file l File name TK850 exe File type Application From F SAMPLE DA This type of file could harm your computer if it contains malicious code Would you like to open the file or save it to your computer More Info I Always ask before opening this type of file Press the button CHAPTER 1 PREPARATIONS Fr Program Files WINNT WUTemp Mu Documents Mu Computer E 1 1 el EE Droen sl Lose P My Network F Save as type Application Cancel E After specifying the download destination folder press the button The self extraction sample program set TK850 exe is copied to the specified folder When TK850 exe file is executed the TK850 folder is created Also a folder containing the various sample programs are created below CHAPTER 1 PREPARATIONS Folder structure of sample programs When the sample program set is decompressed the files are organized according to the following folder structure TK850 L__ SAMPLE SG2A L SAMPLE SG2A prw Workspace file main c Source file This chapter lets the reader experience the operation of the c
12. 0 bin asi SC Include Files C Program Files NEC Electronics Tools CA850 W3 10 bin ldi ei 2 Project Related Files C Program Files NEC Electronics Tools Ca850 W3 10 bin hx CA Other Files i PM i Total warning s O EOF e J 13500 Build completed normally v 4 7 FT kirki Build processing has been normally completed CHAPTER 2 PRACTICALS CHAPTER 2 PRACTICALS The integrated debugger is provided as user application execution environments debuggers in the ID850 TK In this document the integrated debugger ID850 TK is started and the operation is checked using this debugger CHAPTER 2 PRACTICALS To use ID850 TK it is necessary to connect TK 850 SG2A s CPU board to the host machine with an USB cable and power it on After checking that the CPU board is powered start ID850 TK Select the Debug button of PM or in the menu select Build B Debug D If the debug button is not displayed in the menu select Tool Debugger Setting ID850 TK V1 04 Integrated Debugger ID850 TK for TK 850 CG PM SAMPLE SG2A prw OutPut File Edit Find Layer View Project Build Tool Window Help amp D oc I S X Ie Sh ece dees aal SAMPLE_SG2A SAMPLE_SG2A v Debug Build J siya BEE pm SE C Program Files NEC Electronics ToolsVCA850VW3 10YbinYcar C Program Files NEC Electronics ToolsCAS850W3 10Xbinca C Program Files NEC Electronics Tools Cas50 W3 10 bin cai C P
13. ALS In this chapter you will use an already created workspace Ep The method for creating a new workspace is described in CHAPTER3 OTHER The source file name of the 7seg LED count up program and the V850ES SG2 setting emulated with ID850 TK are saved to the workspace used in this chapter In the PM menu select File gt Open Workspace and specify SAMPLE SG2A prw S If you have not set an environment refer to Sample Environment cc 1 5 NEC PM plus No Workspace OutPut Bl x File Edit Find Layer View Project Build Tool Window Help SE ca perla ales lee Insert file LASA Close u pace Dm Open Workspace Glose Workspace Save Ghrl 5 Save s Ghange Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM plus Open an existing workspace Open Workspace Look in C3 SAMPLE 5824 amp fe px SAMPLE SG2 pra C mem Files of type workspace File pru Cancel Help E Click SAMPLE SG2A prw and then press the button File name CHAPTER 2 PRACTICALS The SAMPLE_SG2A prw workspace file is read Workspace file name SAMPLE_SG2A prw Em PM SAMPLE_SG2A prw OutPut J ES File Edit Find Laver View Project Build Tool Window Help S 2 S t I Whee elle gt SE SAMPLE_SG24 SAMPLE_SG24 gt Debug Build 5 Be EO SE 9 Project g
14. Compiler Options Assembler Options Add the source file to the project Ep xdv CO As Look in S tes EI ck E3 File name exe Been Files of type Source Files c c25 s DI Cancel Help Add Files from Folder E CHAPTER 3 OTHER PM plus test prw Project Window er Ie pewgleialupsel We gt leie l test test Debug Build A CHAPTER 3 OTHER It explains the method of deleting the flash memory with built in V850ES SG2A by using PG FPL When security ID etc are forgotten and ID850 TK cannot be connected PG FPL is used PG FPL cannot be installed from an integrated installer Please execute and install YFPLYfpl v150YSetup exe from the Explorer etc Please refer to PG FPL user s manual for details of the installation method However it is not necessary to install hardware driver As for TK 850 SG2A the hardware of PG FPL is built In The switch of TK 850 SG2A is set as follows and it connects it with the PC SW3 Please select Programs NEC Tools32 PG FPL of the Windows start menu The initial screen of PG FPL umm E Ini xj File Device View Help gt gt Flashi penning Flash Open DK Marne Firm Version Est ode V endar Parameter File Mame Format Version Processor Ver Connection to device Port Speed Range Freq Multiply Push the Setup button CHAPTER 3 OTHER
15. Welcome to the world of TK 850 This document described as part of the TK 850 SG2A evaluation kit using sample programs TK 850 SG2A Evaluation Kit Tutorial Guide Date published April 2008 1 Edition NEC Electronics Corporation 2008 Introduction Target Readers This document is intended for users who will use for the first time the V850 series development tools A basic knowledge of microcomputers C language assembles and Windows operating is assumed Purpose This document is designed to give readers an understanding of the basic operation methods for the V850 Series development tools provided with the TK 850 SG2A evaluation kit Readers will be able to further their understanding by actually using the development tool while reading this document How to Use this Manual This PDF file should be read with Adobe Acrobat Reader 5 0 or later Organization This manual consists of the following contents CHAPTER1 PREPARATIONS gt This chapter provides an outline of the V850 series development tools used in this guide and describes the sample program installation method CHAPTER2 PRACTICALS gt This chapter allows the reader to experience the basic operations of PM and the monitor version integrated debugger using sample programs CHAPTER3 OTHER gt This chapter describes how to create a new PM workspace project how to use the monitor program and gives an outline of the sample programs Cautions
16. ce Files Build Total error s O0 Total warning s O 4 Download C TK8SO SAMPLE SGZAa a out to the debugger ee RE Y Recent File Download C TK850V SAMPLE SGZ Ya out to the debugger c I 4 SR Download C TK850 SAMPLE SG21 a out to the debugger EOF Exit PM O EEE PM ends This chapter describes how to create a new PM workspace project required for debugging using the monitor version integrated debugger ID850 TK and how to use the PG FPL Creating a new PM workspace project Registering additional source files How to use PG FPL B5 CHAPTER 3 OTHER Create a new workspace and project With PM a project that includes the basic items required for build can easily be created by inputting each of various items step by step In the PM menu select File gt New Workspace i PM plus No Workspace OutPut File Edit Find Layer View Project Build Tool Window Help New CDN b 7 Open amo D el Al wl gt TUE Insert File Close E Heu Workspace l x Save Workspace close Workspace Save Gris Save As Change Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM The dialog box for creating Create a new workspace T bet bea fet new workspace is displayed lt Description of items gt New WorkSpace Step 1 9 Workspace In
17. egrated debugger ID850 TK V1 04 This is Windows based software that runs on a host PC It is integrated debugger that achieves debug at source level C Source debug of the reference the change in the variable and the step execution etc by such source line can be done easily and efficiently Program for writing to on chip flash memory of microcontroller PG FPL This a Window based software used to write programs to the on chip flash memory of a microcontroller It is possible to write delete it to a built in flash memory of TK 850 SG2A by connecting TK 850 SG2A with the PC with an attached USB cable The above listed development tools must be installed in order to operate the sample programs described in this document For the installation method refer to the TK 850 SG2A User s Manual Software version DOC TK850 TK 850SG2A_SW_E pdf Also refer to the TK 850 SG2A Users Manual for the restrictions on the development tools The documentation assumes that the name of the installation destination folder is C Program Files NEC Electronics Tools CHAPTER 1 PREPARATIONS Sample environment This section describes the preparations for the sample programs used in this document The preparations consist of installing the sample programs in the customers environment To uninstall the sample programs delete the folder that was specified as the installation destination The installation method and the installation destination are d
18. escribed below CHAPTER 1 PREPARATIONS Installing the sample programs Insert the CD ROM disk provided as part of the TK 850 SG2A evaluation kit in the CD ROM drive The NEC Electronics Microprocessor Development Tools Setup screen automatically appears If this screen does not appear automatically start setup exe from Explorer etc Press the Sample Program button to start the WWW browser and then click the TK 850 Sample Programs link d NEC Electronics Microcomputer Development Tools et Welcome to the NEC Electronics Microcomputer development tools setup program Before you execute this installer please exit all windows programs TK 850 SG24 171 00 April 2 Copyright C NEC Electronics Corporati The WWW browser start up Sample Programs Microsoft Internet Explorer Bl x File Edit View Favorites Tools Help d Back gt o A Qsearch Favorites media lt 4 B amp Address FApocisawPLE E HTML co Links sample Programs Welcome to TK 850 SG2A4 world The purpose of sample programs is to experience TK 850 SG2A Sample programs consist of the following items Copy them to the PC which TK 850 5G2 has installed e TK850 o SAMPLE G2A Sample program described in the TK 850 5G224 evaluation kit tutorial guide Kefer to the tutorial guide in each sample program folder for usage TK 850 SG24 evaluation kit tutorial guide e 850 SG24
19. formation E l x Workspace File Name Workspace File Name TE E gt Specify the name of the workspace file that Ge WEE manages the project files Create Blank Workspace i Select Real Time Deg prw is automatically suffixed as the file Bn lype Sere Bomo 5 Register Mode tt A project file prj of the same name is BE 6 Link Directive Filet simultaneously created 7 Setup Source Files Series Name Device Name V850 Series sl uPD70F3726 zd ooo Folder 9 Confirmation Device Install gt Specify the folder for saving the workspace V850 Series Only 3 6 file by 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 projects together in function units If nothing is specified this item is the same as the workspace file name lt Back Next Cancel _ Help Series Name gt Specify the series name of the device to be used Device Name gt Specify the name of the device to be used The concrete information set here is described on the following pages Input the workspace information settings as follows Workspace File Name gt test Folder gt C TK850 test Press the button Project Group Name gt Don t input this item Series Name
20. he button CHAPTER 3 OTHER New WorkSpace Step 6 9 LinkDirective File BODY Fom BIGWSE s C ATKS850 test test dir Press the button New WorkSpace Step 7 9 Setup Source Files pu Biz Remove All DD Press the button CHAPTER 3 OTHER New WorkSpace Step 8 9 Select Debugger ID850 TK 1 04 Press the button New WorkSpace Step 9 9 Confirmation 3 select Real lime WS Press the button CHAPTER 3 OTHER Los PM plus test prw OutPut d E x x File Edit Find Layer View Project Build Tool Window Help s SHS s RelA j e gt 222 ProjectWindow Include Files H E Project Related Files The test project has been registered Make file created successfully md mi Lit Kia yea This completes workspace and project creation Additional source files can be registered at any time thereafter E gt For details refer to Registering additional source files Next setup the security ID In the PM Tool Compiler common Options is selected Los PM plus test prw OutPut File Edit Find Layer View Project Build Tool Windo D M e DS In CE uum test lest Debu Compiler Options tf X itd GH Assembler Options IBEX inter one Files ann ROM Processor Options Hexa Converter Options ETES test 1 Project s
21. nu bar and the tool bar refer to the ID850 QB Integrated Debugger Operating Manual CHAPTER 2 PRACTICALS Next execute the program Select the ID850 TK s restart button ja or select Run R Restart R The LED count up program is executed amp ID850 TK SAMPLE_SG2A prj Edit View Option Run Event Browse Jump Window Help EL BE Olalelgl sl El SES initialise c interrupt c main c bh initial ACajavaaaeacay ei _EI 0 CPU SiR l i er a while 1 gt g_start g_led_s g_count PICO 8x80 WIMK 1 Wow og Ong wn Qu wn SW2i M while gy start gt AVAIAOREAC PICA 8x47 7 SW2i WIMK P9L 7 while g start 1 gt lt segLED Io if tP 4 gt lt og start 2 gt while g_start 5 ID850 TK SAMPLE_SG2A prj File Edit View Option Run Event Browse Jump Window Help If i gt gt ml gt ak Rlslel SES Olalelel sl EY E Source main c Search Watch a val Refresh c lose 7 void main initialise c interrupt c main c bh initial ACajavaaaeacay __ EI GPUea 9iR i eT ze while 4154 g start 8 gy led s 26 og count 8 PICO 8x87 WIMK 1 SW2i while g start AS Qvaiaoaeace PICO 80x47 7 SW2i WIMK P9L 7
22. oaeace PICO 7 SW2i WIMK P9L 7 1 while g_start 1 gt lt segLED l6 if lt tP 4 gt lt g start 2 ene wn Qu wn J while y start 2 lt if g led s gt 68 g start 6 P9L 7 8 Stop the program az ID850 TK SAMPLE SG2A prj File Edit View Option Run Event Browse Jump Window Help rw gt e pE peg OQ Alle El siele IReturn F7 BR Source main c J aout Search PS SE gt gt Watch Quick Refresh CI se Ly oid main gt citE s initialise c h initialO CA AU ACAV ee initia 3 aca javaaaeaca interrupt c EIQ CPU SiR l ide main c while lt 12 lt g_start g_led_s g_count PICO WIMK PICA WIMK AS P9L 7 1 while g start gt lt segLED _i if tP 4 lt g_start 2 gt while y start 2 lt if g led s gt 68 asai g_start P9L 7 8 CE EE DEE main c 33 main 00000884 BREAK Manual Break A ee Er LLIUO ALAA A A AGD C CGOAEEccoou easmssssss s When the program stops the status bar changes back to its original color CHAPTER 2 PRACTICALS In the ID850 TK menu select File gt Exit az ID850 TK SAMPLE_SG2A prj File Edit View Option Run Event Browse Jump Window Help Open Ctr O Save As Close source main c Download ach lt lt gt gt Watch Quick Refresh Close Load Mod
23. ompleted V850ES SG2A program using the monitor version integrated debugger ID850 TK This is a program in which pressing SW2 on the CPU board of the TK 850 SG2A evaluation kit causes 7segLED to count up and pressing SW1 causes the counting up interval to become longer and stop This chapter is designed to give an understanding of the concrete operation method of the development tools PM ID850 TK and the outline of the project files required when creating application programs through building of sample programs and operating ID850 TK 10 CHAPTER 2 PRACTICALS The overall flow is as follows Starting PM Executing program piod ram Closing PM CHAPTER 2 PRACTICALS Let s now actually use the development tools First start PM In the Windows Start menu select Program gt NEC Electronics Tools gt PM V6 11 CHAPTER 2 PRACTICALS Introduction to 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 or more project files are managed together as a workspace Menu bar Tool bar sa NEC PM plus No Workspace OutPut E inl x File Edit Find Layer View Project Bui Tool Window Help S Dengen gt Blta Il A ee ProjectWindos Files Memo el No Workspace For Help press F1 KN LU KKK P
24. ow Help i m gt amp SEM ayga aaae en ri BLE Ve 5 fain c 18 main 00000004 BREAK 4 Window display area Status bar 2 ID850 TK SAMPLE_SG2A prj File Edit View Option Run Event Browse Jump Window Help njej zje et Olalelgl Sal l Assemble Memory Watch Register I O Register Local Variable Stack Trace Trace Code Coverage Console ML 4 RRM 5 RunBreakTime 6 SymInspect Select Browse gt Other gt 2 List in the menu Then the list of Source file is displayed CHAPTER 2 PRACTICALS Memory Watch Register l O Register Local Variable Stack Trace Trace cade average Console Others Select Browse gt Source Text in the menu Then the program Source file is displayed ID850 TK SAMPLE_SG2A prj File Edit View Option Run Event Browse Jump Window Help Jr me gt 8 e go om aeg Olalelgl Sel Em t i 5 i5 _initia aCa javVaaa aCa cerita EI lt CPUSSESIRE 2051 while 12 g_start g_led_s g_count DICH 8x07 SW2i WIMK 1 while g start gt AVAIAOGEAC PICO 8x47 SM WIMK 8 P9L 7 1 whileX g start 2t segLED lo if tP 4 gt g start 2 gt gt while gy start 2 gt lt if g_led_s gt 68 gt lt g_start P9L 7 8 main c 18 man 0000004 BREAK E gt For details about the various areas the me
25. rogram Files NEC Electronics Tools CAa850 W3 10 bin cai Program Files NEC Electronics Tools Cas50 U3 10 bin asi C Program Files NEC Electronics Tools Cas50 W3 10 bin ldi C Program Files NEC Electronics Tools CA850 W3 10 bin hx fis SAMPLE_SG2A 1 Project s SAMPLE SG2A J Source Files ei Include Files ei Project Related Files Other Files Fae ae Ta ee et a Build Total error s 0 Total warning s O EOF ID850 TK starts and Configration screen is displayed CHAPTER 2 PRACTICALS Configuration BOCK Mam sc Multiply rate See sub WSL 2 Monitor Hock L System DCK 10MHz fe User NMIG F NMIT TNMwz IT HLDRG NAN RESET F STOF E wAT E DENT E MODE 01 2 zj Press the OK button Press the button and Load Module File download begins CHAPTER 2 PRACTICALS CATEROSOWSAMPLE_sGe A ae out object loading symbol loading Compiled Load Module File are downloaded to the flash memory with built in CPU Cancel When download ends normally the program source is displayed amp ID850 TK SAMPLE_SG2A prj File Edit View Option Run Event Browse Jump Window Help um e melon SEM EE aaae ES 3 t i 5 Source main c Search Ea Beal Watch Quick Refresh Close h_initial aACAjavaaaeacay EI CPU SiR ide while 1 gt g_start 6
26. roject window Output window Project window A window in which project names source files and include files are displayed using a tree structure Output window A window in which the build execution status is displayed SS For details regarding menu bars and tool bars refer to the PM User s Manual CHAPTER 2 PRACTICALS What is a project A project is the unit in which PM executes management and refers to an application system and environment development based on PM PM compiles project information and saves it in a project file from which it is then referenced What is a project file A project file is a file to which information such as the source file to be used in the project the device name the tool options for compiling and the editor and debugger to be used have been saved as project information The file name format is AAAA prj Project files are created in folders that are set when creating new workspaces What is a project group A project group is a group comprised of a number of projects in an application system The target devices of each project that can be registered to one project group must be the same What is a workspace A workspace is the unit used to manage all the projects or project groups required for one application system The file names of multiple project files are saved to a workspace file for referencing The file name format is AAA prw CHAPTER 2 PRACTIC
27. roup Other Files Project Only one SAMPLE SG2 A project is included in the SAMPLE SG2A prw workspace file The operations described below are done in relation to this SAMPLE_SG2A project CHAPTER 2 PRACTICALS Let s create the project s execution format This action is called build Enter press PM s Build button or select Build gt Build from the menu ZG PM SAMPLE_SG2A prw OutPut File Edit Find Layer View Project Build Tool Window Help amp D c amp amp B fee mle ala SAMPLE_sG24 SAMPLE_SG24 gt Ak A xX E Debug Build Project Window al SAMPLE_SG2A 1 Project s a CC Source Files H Include Files ec Project Related Files C3 Other Files HU Z T kikiki Build processing is executed Lo PM SAMPLE SG2A prw OutPut ici x File Edit Find Layer View Project Build Tool Window Help 0SH SRA e Afe zJ gt eml Ps SG2A SAMPLE SG2A _ Debug Build Vit RH AECH Terme lgxrfaa 3X X inbj C Program Files NEC Electronics Tools CAas50 U3 C Program Files NEC Electronics Tools CA850 W3 10 bin cam Pi SAMPLE_SG2A 1 Project s C Program Files NEC Electronics Tools CA850 W3 10 binicai amp SAMPLE_SG2A C Program Files NEC Electronics Tools CA850 W3 10 bin cai H E Source Files C Program Files NEC Electronics Tools CA850 W3 1
28. ule oid main Upload SE h initialO acajauaaaeacay ze _EI CPU SiR l THE Environment D while 1 gt H 26 8 8x87 SW2i 1 g_start g_led_s g_count PICO 0x47 8 P9L 7 1 while g start x segLED 6_i if lt tP 4 lt g start 2 gt gt while g_start gt lt if g_led_s gt 68 gt lt asa g_start 8B P9L 7 8 mainc 33 man opge BREAK Manual Break Z The Exit confirmation dialog box is displayed ID850 TK ED xi This will end your Debugger session Do you want bo save Ehe settings in the project File o zen Press the Yes button The current environment is saved and then ID850 TK ends ID850 TK ends without preserving a present environment if are pushed CHAPTER 2 PRACTICALS In the PM menu select File gt Exit PM m3 PM SAMPLE SG2A prw OutPut Insert Files ebug Build 4 TF x GS E E Program Files NEC Electronics Tools CA850 1W3 C Program Files NEC Electronics Tools CA850 1W3 C Program Files NEC Electronics Tools Cas50 U3 10 bin cai a D RE C Program Files NEC Electronics Tools Cas50 U3 10 bin cai Save C Program Files NEC Electronics Tools Cas50 U3 10 bin asi As C Program Files NEC Electronics Tools CA850 W3 10 bin ld C Program Files NEC Electronics Tools CA850 1W3 10 bin hx Change Source File Mame 4 Save All Sour

Download Pdf Manuals

image

Related Search

Related Contents

Betriebsanleitung  Trendnet TEW-820AP    CamOne Gravity Sports 3D Gimbal  Module - Kalisch Computer  Montagem, colocação em operação e manutenção de  TDP1500 1.5 GHz Differential Probe Quick Start User Manual  User manual EPL    FPCS-38CC  

Copyright © All rights reserved.
Failed to retrieve file