Home
User`s Manual StickLIN-78K0
Contents
1. 29 StickLIN 78K0 User s Manual 2 3 Load Workspace pro ject In this chapter you will use an already created workspace gt The method for creating a new workspace is described in Chapter 5 Other Information The source file name of the LED blinking program and the uPD 8F8020DA setting emulated with IDI8KO QB EZ are saved to the workspace used in this chapter In the PM menu select Fi le F Open Workspace W and specify SAMPLE Stick LIN 78KO prw ub ir you have not set an environment refer to Sample Environment a M utgixd File Edit Find Layer View Project Build Tool Window Help New CN E Ir y Open Ctri O E e GN EE Pala Insert file X di A x EI Close New Workspace Glose Workspace Save Gtrl 5 Save As Change Source File Mame Save Al Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM Open an existing workspace im L 1 ki Mi P Look ir Is SAMPLE Stick LIN 78KD de t SAMPLE Stick LIN 7BKD presi File name SAMPLE _ Stick UN OK D pry Files of type Workspace File pres Cancel Help Click SAMPLE Stick LIN 78K0 prw and then press the button 30 StickLIN 78K0 User s Manual The SAMPLE Stick LIN 78KO0 prw workspace file is read Workspace file name SAMPLE Stick LIN 78KO0 prw ina PM SAMPLE St
2. 03 New WorkSpace Step 7 9 Setup Source Files REMOVE Remove AN 5 Link Directive tuell Jp Down Click StickLIN 78K0 User s Manual New WorkSpace Step 8 9 Select Debugger clie New WorkSpace Step 9 9 Confirmation 3 select heal lime WS 4 Startup nel 3 Register MadelH 5 Link Directive big Click 04 StickLIN 78K0 User s Manual Le PM test prw OutPut Mex mE Mecoon e al Y Debug Build ll A SI 1n x LEUTE HEIT This completes workspace and project creation Additional source files can be registered at any time thereafter gt For details refer to Registering additional source file Next on chip debug function can be used Tool Linker Options is selected EE PM test prw OutPut H zi Si Linker Options Source Files 3 Include Files 1 Project Related Files i Other Files Start up Ex Eao Play Back Save the Key Operations Play Back the Register Macro 05 StickLIN 78K0 User s Manual Linker Options X Checks are put in On Chip Debug and SIZE Then input a default value of 256 into the SIZE A check is put in Security ID he actualities of FFFFFFFFFFFFFFFFFFFF are taken if there is no problem in the value of ID in security Output Output Library Others
3. 001 6LH anyo 919 qan n12026920A194NS z Z a anyo L asn 119 220 aan wn ig aaa daa LI S0SZ9d tia L ASc AnZ v aa asn 029 5 StickLIN 78K0 User s Manual his chapter describes how to solve troubles you may face 4 1 f 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 4 2 Error when you start the debugger here could be several reasons to make errors happen he solving processes differ depending on errors Please check the error message first he solving processes for each error are as follows 4 2 1 No response from the Emulator A01a0 Check Point 1 Check if the settings of switches on the kit are correct with referring 2 8 Check Board Settings Check Point 2 Erase the flash memory with the Nr iteE23 Check Point 3 If above 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 58 StickLIN 78K0 User s Manual 4 2 2 Can not communicate with Emulator FO100 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 sw
4. 35 StickLIN 78K0 User s Manual PM SAMPLE Stick LIN 78K0 prw OutPut File Edit Find Layer View Project Build Tool Window Help Je penl bji teje s luw a SAMPLE_Stick_LIN 78K0 SAMPLE v Debug Build qJ RH E Project Window ad xj Output C Program Files NEC Electronics ToolsCC78K0 W4 00 4bin cc78k0 exe Compilation complete 0 error s and O warning s found G l SAMPLE Stick LIN 78K0 1 Project s C Program Files NEC Electronics Tools CC78KO W4 00 bin cc78k0 exe e SAMPLE Stick LIN 78K0 Compilation complete 0 error s and O warning s found a Source Files C Program Files NEC Electronics Tools CC78KO W4 00 bin cc78k0 exe 7 C Include Files Compilation complete O error s and O warning s found CQ Project Related Files C Program Files NEC Electronics Tools RA7SKO U4 01 bin ra78k0 exe fwor E Other Files Assembly complete 0 error s and O warning s found C Program Files NEC Electronics Toolsi RA 78K0 W14 011bin Ik78k0 exe fin Link complete 0 error s and O warning s found C Program Files NEC Electronics Toolsi RA78KO W4 01 bin oc78k0 exe fa I xi 0 error s and D warning s found A A 13500 Build completed normally warning s O EOF HE T kikiki 4 Build has been completed successful ly 36 StickLIN 78K0 User s Manual 2 1 Check Debugger Settings After the build you should configure the debugger settings The debugg
5. E D ee Command Line U oons na Imf go256 giFFFFFFFFFFFFFFFFFFFFh pa map bc lib bel lib EclOr lib i C Program Hles MEL Electronics Tools CEROS DDSIb ABK Cancel Apply Help 32 StickLIN 78K0 User s Manual Output File Name filed at Load Module File specifies the path and file name of output load module file When Output Symbol Information is checked it outputs the local symbol information in the load module file On Chip Debug specifies if you need to use on chip debug or not Check this when you wish to use on chip debug In this case you cannot locate segments in the address from 02H to 03H and from 8FH to the bytes specified at SIZE 1 Security ID is the ID code to protect the memory data from others The ID code is set with hexadecimal number The security ID is stored at the address 85H 8EH For that reason when a security ID is set you cannot locate segments in the address 85H 8EH f there is a security ID set in the assembler source code and another security ID in this option the system uses the one in this option If you forgot the security ID code in the address 0x85 0x8E or you write 0x00 at 0x84 ID78K0 QB EZ will not be able to connect In this case run WriteEZ3 and erase the built in flash memory For details refer to 5 4 WriteEZ3 33 StickLIN 78K0 User s Manual 2 5 Set Compiler Options The compiler options have been set by p
6. and find NEC Electronics Starter Kit Virtual UART without mark under the Ports COM amp LPT Device Manager L Computer Management E iz E i si Fil Action View Window Help eo EIS G 9 RA Computer Management Local Sch OPTE1OL CR System Tools Computer Event viewer z Disk drives LJ Shared Folders E Display adapters Performance Logs and Alerts s DVD CD ROM drives Device Manager 3 Human Interface Devices Storage ic IDE ATA ATAPI controllers ES Removable Storage x Keyboards Find NEC Electronics Starter Disk Defragmenter Y Mice and other pointing de Kit Virtual UART COMx Disk Management Monitors c s Services and Applications Bai Network adapters S Ports COM amp LPT H Communications Port CO A A A Ee Ee E MEC Electronics Starter Kit virtual UART COME eer Processors sound video and game controllers System devices Universal Serial Bus controllers The screen above shows that the COM port number is COM8 If ID78KO QB EZ is not in use you can use this port number for connecting StickLIN 78K0 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 24 StickLIN 78K0 User es Manual This chapter lets the reader experience the operation of the completed StickLIN 78K0 program using the i
7. JIM 11280 I ceuq E Leta NIT SL LUH ML H K K HeLLIOd 007SSL eagai LO dflSA K elds ad Ant A 90xL a d 90XH ad aa asn E E aaa I Y 1 9228 MS 0 ZL p idi Gal LL S AGE ANZY dno Em X01 010 a da 24 69 a alo NO lt vLad0 zd GE ioo o e2 no o v ro o ro o ro ro J Th ewou gan Pi ESSET i hifi i E as bt Ti DUVUVVUD REE n100 0 0L 3348352 i eld E SE a 19 LINV SOSISTE 0 6 Jnzg 0 EIN E SE O a g 99 anto P aiaoo edLNl zed ra lt gido0 a d au so pre LOOLL SOd lt O Sdi ec LOOL LLOLL 90d S _ Jdl 96 ILE vua ae bALNI SOL LSILIEEd E Odd ST Ee s ap a dat OE re DER CO i 3 SCHO ml 9954 ada XOL E vodoo ix izta L sa E er 9 L lead yy L goaooprioxa exiaetd X sa a sr HO UU re e DON zd R Old 00vSSL Oid Sp Lea N S dE SS K IMS L zr Z Zld HZLLLOd MLV 9r 001L 00d T can WS 7 E 9H ve S G 0 6 4 s E yes KEEEEER 9dl soo ARSRESS EN C ZGQSSOBSZEZEZEO i ZOCCSSSTHARAN SO SH vd i 4 eo1o1o01 01 101101 01 gt o O ina o o m eo co O G9 en saa daol 11 a daa ZHNOZ 39189 dNSA LA OL 6 pa 2 TI gt gt gt IX Z Z Zi N 8 rug 0t NO9LgH szzaH j sja F9 9 S zena g IR un v Lug x S e L O O Ir CO Bed 28 edl Pdl S 2gH zo za TE lt 00XxL ad KOaxH zd anyo im Lo ja
8. 2 Hardware Overview 1 PDTEFBSZODAGR 20M main Interfaces USB connector TypeA Expansion interface J1 5 OV by USB 7 0V 18 0V by Expansion interface 3 1 3 Attached goods list O StickLIN 78K0 Development tool Manual CD ROM O Expansion interface cable for LIN separate cable with cl ip 48 StickLIN 78K0 User es Manual 3 1 4 Block Diagram By 5V 8 5V uPD78F0730 uPD78F 8020D ee 1 0 1 F 8 bit Micro USB I F Writer SW 78K0 KE2 PO ml 0CD18 P70 i Logic mm P17 circuit OCDTA Analog Logic Driver P15 circuit RESET Logic P11 circuit Logic UART6 circuit POO P30 49 StickLIN 78K0 User s Manual 3 2 Interface Connection 3 2 1 JI Expansion Interface J1 J1 Hirose DF11 10DP 2DS Oli eme J Genncetion to microcontroller ors 0 0R22 Low side driver Dr22 output 6 DR22 Dr22 Driver 22 control signal input High side driver Dr output 1Pin 9P in 2Pin 10Pin Location of J1 TOP VIEW 50 StickLIN 78K0 User es Manual 3 3 Switches and LEDs 3 9 1 Switch Debug SW The mode selection for Debugging with the ID78K0 QB EZ Writer SW Programming mode selection for Flash EEPROM on the MCU with WriteEZ3 Writer SW Debug SW Setting Setting Status Normal Mode Debugging Mode Flash Programming Mode Forbid SW to set Writer S
9. Aa A a A RRA A E E EE E AA 21 2 27 WAE E enee dete de pete e d EL UM E D ee 28 2 3 Load ee Re 30 24 Set AAR OPCON tdt dot Noe ER ood ieu arias de he e il de 32 2 4 1 OME DUN WA SE 32 2 9 SCE era A gh ODT A A e e A 34 2 5 1 En le AM EE 24 2 0 Greate Load Module T EE 35 2 4 Check Debugger SECEINGS gt dai bd ER CERO CES S BA eed oe 31 228 Check BOALO SebblliPs opted os S ee EE 39 2 0 Slab deg BP ee du uere Eurus bleu ee pra E No fot Ee A ER tu AT 40 LN ME ao decli RR EET CETTE ad dese dee en as ected eg ie eet Bom eae acetate rae eee 43 2 11 DEO Wee 45 212 Ghose Deb Ol oi toc teu re remoti EES gent sb ESE EP deus 46 2 19 HU PEE phones ep EE uer EE IE S E EE M LA AN 4 CHAPTER 3 Hardware Specifications RR 48 pedi HERE ege datos O ee E AR CL LES EE 48 3 1 1 BS UE arate nse AE dt A ee ae ME MU te 48 3 1 2 Hardware Overview EE tt thas se ee ee nose 48 3 1 3 Attached goods list 48 3 1 4 a ea AM Fr dili aei d nase cone des Latte nat md dine hated EEN 40 o2 terrace o o dures etos ense d EH atin RS cta en eset a Us a Str Seres ben ted carita ER o ctm 50 3 2 1 cT 50 Doo Witches and LEDS e SA nta doe 51 3 9 1 o TEE EEN 51 9 9 2 Pip pM Ix O E E AEA 52 9 9 9 LEDZ ROWER Ima Caco cts pid attendent SER mm Ee Ei E CLER E LE 52 SNC WIRE 53 StickLIN 78K0 User s Manual Duis FONE SOLI OO s Ee e a he Ee A EE ce Ke 54 329 WE Se Li ai aon cauce pte RE II Be SES Geek oput SS ad GRY Seed SE See 55 00 1 GRU SENN
10. Cancel Restore Help 3 Adding a variable to watch window is completed 1 StickLIN 78K0 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 S IOl xi 5 3 6 Display memory and SFR contents By clicking the button below you can open the memory window ce Memory Search A 2 Refresh DOMM Close 1 TU 4 FUU17 I FL FI FL FI FI app FR o co co co co co en co 00 co ca 12 StickLIN 78KO User s Manual 9 4 WriteEZ3 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 WriteEZ3 to erase the flash memory WriteEZ3 cannot be installed from an integrated installer Please execute Wr i teEZ3XWr i teEZ3 exe from the Explorer etc The hardware for WriteEZ3 is incorporated in StickLIN 78KO0 D The switch of StickLIN 78K0 is set as follows and connects StickLIN 78K0 to PC Debug OFF 2 Please execute WriteEZ3 WriteEZ3 exe if you find Security Warning click Run Ii WriteEz3 E Dif xi Plee Rmevire View Help E E f d EN Ze gt gt
11. Find Layer View Project Build Tool Window Help S DSR X Bo f Gh AC ADDR di limma test test v Debug Build DI E Ea moie X id ES Compiler Options bler Options Add the source file to the project Ei TH CH o E Add Source Files test 2 x Look in Is test de D I O E File name b c gg C tren Files of type Source Files c asm Cancel Help Add Files from Folder S Multiple source files can be selected by clicking them vvith pressing key 61 StickLIN 78K0 User s Manual PM test prw ProjectWindow 5 Es E sh L Project Related Files Other Files Loe ee Z 68 StickLIN 78KO User s Manual 5 9 Debugger tips This section describes some useful techniques for the debugger ID78K0 QB EZ 5 3 1 Change display of buttons Execution controls run stop step in debugging reset etc and opening functional window can be made by below buttons However it could be difficult to know which button does what jme e m mi on Ee ES In this case select Options on menu bar then Debugger Options Check Pictures and Text on setting area Tool Bar Pictures 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 wi
12. FlashOpennina E Flash Open OF Mame Firm Version Eat ode Vendor Parameter file Mame Format Version Processor Ver Connection to device Port Speed Range Freq Multiply 3 Push the Setup button 13 StickLIN 78K0 User s Manual Ime Device Setup 4 Push the IPRM File Read button Open Eise E o PRM Files PRIM 5 Please select 78F8020DA prm in the directory of PRM in the CD ROM JA StickLIN 78K0 User s Manual FE Device Setup standard Advance Parameter file T8FS02 DA prm PRM File Read Host connection Supply oscillator R rt Eom Ka Frequency 20 00 MHz Speed 145200 htultipi ete DO Operation Mode C Block End 127 C Area I Show Address Target Reset Message OK A etl Port selects the COM port number where StickLIN 78KO0 is allocated X Only the COM port number that the personal computer has is displayed in this pull down menu Input to Frequency Input to Multiply rate and chick OK Fee riteEZ3 File Device View Help b FlashOpennine Flash Open OK Mame 2 O0MMAND Device Setup Cancel Device Setup Firm Version COMMAND Device Setup ExtiGnde PRM File Read OK Vendor Parameter file Mame TBFaSu20D Format 0414 Version VI DU Processor Wer 0200 Connection to device Port G
13. Load Module File a Output File Mame amt Browse Output Symbol Infarmatian 3 Create Error List File 8 gutput File Hame Ja cik e Drowse ss v On Chip Debug qa P SIZE 256 bytes w Security ID gi A A Command Line Cate preme al op Cancel Apply Help Push the DN button Next please add the following word asm file and set the method of attesting security ID as the setting of the option byte Please refer to the user s manual of the device for details of the option byte Refer to a notice point in use of ID78KO QB for the details of the security ID word asm please the file must be included in the sample program and copy this file and use it Please refer to Registering additional source file of next page for the method of adding the file ORG 80H setting of option byte DB 0 0 0 0 ORG 84H DB 3 The authentication of the security ID is indispensable end he example of word asm 66 StickLIN 78K0 User es Manual 5 2 Register additional source Tile 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 55 PM test prw ProjectWindow i Bl xi File Edit
14. ToolsCC78K0W4 00 4bincc78k0 Compilation complete 0 error s and O varning s found C Program Files NEC Electronics Tools CC78K0 W4 00 bin cc78k0 exe Compilation complete 0 error s and O warning s found Source Files C Program Files NEC Electronics Tools CC78KO W4 00 bin cc78k0 exe C Include Files Compilation complete O error s and O warning s found C Program Files NEC Electronics ToolsiRA7SKOW4 013binVra78k0 exe Assembly complete 0 error s and O varningis j found C Program Files NEC Electronics ToolsiRA7SKOW4 013binM 1k78k0 exe Link complete 0 error s and O warning s found C Program Files NEC Electronics Toolsi RA78KO W4 01 bin oc78k0 exe fa t Object Conversion Complete 0 error s and O warning s found t Build Total error s O frotal warning s O EOF 40 StickLIN 78K0 User s Manual Configuration dialog is opened Enter FFFFFFFFFFFFFFFFFFFF F x 20 in ID Code then click OK Configuration allt i OS MET H amp A tei L I LIA Po lock board ti External System d Gas PME Pall Sane Break Metal HMI Click when the confirmation dialog for downloading load module file is opened ID 78k O0B Ez 41 StickLIN 78K0 User s Manual ID 8K0 QB EZ starts and downloading Download the program to flash memory CATR FGROVSAMPLE_Stick_Lih ok0 e lt object loading Cancel When the d
15. found C Program Files NEC Electronics ToolsYRA7SKO W4 01 4binra78k0 exe Assembly complete 0 error s and D warning s found C Program Files NEC Electronics ToolsYRA7SEDW4 01 bin lK78k0 exe BEE Link complete 0 error s and O warning s found i SE C Program Files NEC Electronics Tools RA78KO W4 01 bin oc78k0 exe Horn 4 Object Conversion Complete 0 error s and 0 warning s found Y Build Total error s O Total varning s O 4 D Download C TK 78KO SAMPLE Stick_LIN 78K0O a lmf to the debugger EOF DA TEE A PM is closed 47 Ss StickLIN 78K0 User s Manual 3 1 Introduction u PDISF8020DA is the NEC Electronics 8 bit single chip microcomputer The features and hardware specification of StickLIN 78K0 are described 3 1 1 Features Features of the StickLIN 78K0 are as follows O The evaluation board used the NEC Electronics 8bit single chip microcontroller sPD 8F8020DA The part of 8 bit microcontroller is same as 78K0 KE2 All of the ROM RAM circumference circuit and LIN transceiver are efficiently built in one chip on a StickLIN 78KO0 High speed operation is realized via the 20MHz internal clock 128 Kbytes of Flash EEPROM available on the chip StickLIN 78K0 is programmable and debuggable from PC via USB connection without any additional hardware tools O u PD78F0730 NEC Electronics 8bit single chip microcontroller is available on board for USB interface 3 1
16. of the machine language The output object program becomes an input of the flash programmer and debugger OQ 18KO integrated debugger IDISKO QB EZ V3 00 his 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 WriteEZ3 This is a Windows 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 uPD78F8020DA by connecting StickLIN 78K0 with the PC StickLIN 78KO User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package he attached CD ROM includes the development tools and documentations Users can use the installer to install those development tools and documentat ions 1 2 2 Installation of Development Tools D Please insert the CD ROM in the drive The installer will show up automatical ly If it does not start automatically please initiate it by double clicking the SETUP EXE 3 NEC Electronics Microcomputer Development Tools Sett Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please eut all windows programs SHCckELIN 28K0 T2 00 February 2 2009 Readme Fir
17. parties pertaining to the use of the products and the use of the informaiton describes in this document NEC Electronis Corporation shall not be held liable for problems related to the right of third parties that arise from the above uses This circuits software and appurtenant information describes in this document is provided solely for the sake of semiconductor device operation examples or application examples Therefore in case these circuit software and or information items are to be used for a customer s equipment the design of said equipmentt shall be the responsibility of the customer NEC Electronics Corporation declines any and all responsibility for damage 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 registered trademarks or trademarks of their respective companies StickLIN 78K0 User s Manual This chapter provides an out ine of the development tools used in this document and describes how to instal the sample programs The sample program function only for the development tools included in the StickLIN 78K0 evaluation kit in this document StickLIN 78K0
18. will set up the basic information about the workspace and the project Microcontroller Name 78K0 Device Name uPD 8F8020 Click button PM 02011 CATE ZEK Ostest E E This folder cannot be found Do you wish to create iE X Click button New WorkSpace Step 2 9 Select Tools x Tool Set 1 Workspace Information gt gt 2 Select Tools Selected01 78K0 Software Package V4 00 English Version 3 Select Real Time 0S 4 Startup File H 5 Register Model ID 78K0 QB v3 00 i Link Directive File ID78K0 QB EZ Unused Tool Versions g k 7 Setup Source Files 8 Select Debugger 3 Confirmation tt 850 Microcontrollers Only 4 6 Detail Setting Please select the Tools from NEC Electronics to be used v Select only Installed Tools The following tools have been excluded from selection because they are not installed CC78K0 RA478KO SK78K0 ID78K0 NS SM78K0 SM for 78K0 BS78K0 a ee Click Detail Setting button 02 StickLIN 78K0 User s Manual Tool Version Detail Setting eS Unused Unused aw 4 00 jw WA 01 O EE x Jnzexoae e New WorkSpace Step 2 9 Select Tools ChangedjiS electedo1 78KO Software Package V4 00 EnglishV w ID78K0 QB E2 IV Select any Installed Tools Click Unused sm L2 D Select tools as above screenshot then click
19. y c 04d 096 Gat MOL v 001 OLY zu LH EIER VIS aaa ES aaa O Sdl 56 StickLIN 78K0 User s Manual V420 13S T OOZECESSSS JequinN 1ueuinooq 1 3N1 0 19098919 INS E Kat 9 E 0N8 NI DIOS Z MS GOO G Ant i oy daa OF 420 TA Doxy gsn9gaxL XALAJO E daa MOAIZLDLOATPLNS i saxa K y Z ergoe 00 222SSSS iur LC aaa n2gS2L920ATP NS PP L 1d4 E S gen 9 N co daa daa OL BIR E E ADUSZLOLOATHZNS Ley anyo YSL peu anyo ks anyo 629 ezo Szo aaagsn Se aa sn aahesn ENS OW0 038 Qn aaagsn 903 ondasn Le endl end 09d wasn E nq Ss er E 81 090 d1N1 Z8d dasn La i co 72H E ja COGI VEGOO 2d LNI LEd ooaugsn pe IT ha O O RN M L 9NdL BRAS sad rr 3n1 0 ss ss 29 m or dn p 0 LSOL ISIL EEd o63u Le Ka is O00 0SOL OSIL Z Ld VOAJONXIL Ld 619 SS n2gS2L920ATP NS PP 92H E C ER ZA Ce LHOL 9Ld BOGOOMTOXAIeK2Z Ld J E i aer Scd O ven 9aXu vid L3s38 T sgu MOL FH fr i X TEM aanasn EE A 9QXL Eld OdLNI OZLd Le gsn 19 daa O O D i ena OA Te 0LOS ZLd 0001L 00d enar dns ET T angi 07 i ee 0LIS LLd Med MOdSZLDLOATPLNS m I peius ina OS 0LMOS OLd ires CERT 8sn9dxr v z i E n aa asn BEN AN L la x00L anyo zzy IZH MOaZEOLOATrZ_ IN 819 aaa I o PA an i SES MS 190 ad 3001 8 rz Ge jim 0109GXL FIC y 0H d I 8Ld20 vaoo pjes E T en 1 lz anyo 001 pt daagsn daagsn MS 190 NDASZLOZIATHLNS 0074 sx 9 e Gan ven 9 Ge lo
20. A ge 56 CHAPTER 4 TroubleshoOoElfB ui da ode ob rs 58 4 1 If you cannot find USB driver when you connect PC to the kit 58 4 2 Error when you start the debugger so ANE NEES es 58 4 2 1 No response from the Emulator A0lat cee eee eee 58 4 2 2 Can not communicate with Emulator F0100 or A0109 59 4 2 3 Incorrect 1D Code XET60S Za Be date esc vase Ee BEN e atr Ga MER AE aha Deen a 59 CHAF TER EE On MAL AE dee EE LA E Lauda eer AL rr 60 Dll Create a new NO KS PAQE su neve cies See ee eee E Rott Eee om CR ATL Rc RES DG LU S 61 5 2 Register additional source file 67 9 DEDUCE XETDSS EE 69 5 3 1 Change display of eh EEN 69 5 3 2 Display source list and function Iist ee ee ee ee ee ee ee ee ea 69 5 3 3 Set delete breakpoints ccc ccc RR lll 70 5 3 4 Display global variables ccc cence ee ee ea JA beach Display local variables anaana naaa aa 12 5 3 6 Display memory and SFR contents na i sken idilike 12 S EE cy ee et bes es Ss crt so bet Nn e ee E ee as eee es Pree ee 13 StickLIN 78K0 User s Manual Target Reader Purpose How to use this manual Organization This document intended for users for the 78K0 series microcomputer development tools A basic knowledge of microcomputers C language assembles and Windows operating is assumed This material has aimed the understanding of the customer of a basic operation method of the development tool fo
21. EZ SAMPLE Stick LIN 78K0 prj File Edit View Option Run Event Browse Jump Window Help ae co jea aaae Sala gal v vs Close Download esh Close Upload Stick LIN 78K8 Project Environment Debugger Reset Il Exit 1 CATKZGKGISAIMPLE Stick LIN 78K ta lmf 13 14 15 17 18 19 20 21 p oid main h initial he exit confirmation dialog is displayed main c 19 main 00276 im 03s 592ms Manual Break AUTO INS Ph ID 78K OB EZ L This will end your Debugger session Do you want to save the settings in the project File e cma If you click It saves the settings in the project file and then closes the IDISKO QB EZ It is recomnended 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 ID7 8K0 QB EZ 46 StickLIN 78K0 User s Manual Select File on menu bar then Exit D Le PM SAMPLE Stick LIN 78K0 prw Project Window Fie Insert filer C Program Files NEC Electronics Tools CC78K0 W4 00 bin cc78k0 exe Compilation complete 0 error s and O warning s found C Program Files NEC Electronics Tools CC78K0 U4 00 bin cc78k0 exe Compilation complete 0 error s and O warning s found C Program Files NEC Electronics ToolsYCC78K0 W4 00 4bincc78k0 exe Compilation complete 0 error s and D warning s
22. Installation The software vou are installing for this hardware MEL Electronics Starter Kit Virtual LART 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 of vour system either immediately or in the future e Se x recommends that you stop this insti Click Continue Anyway contact the hardware vendor for so passed Windows Logo testing Continue Anyway STOP Installation 19 StickLIN 78K0 User s Manual 6 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Click Found New Hardware Wizard Completing the Found Mew Hardware Wizard The wizard has finished installing the software Far E 4 MEL Electronics Starter Kit Virtual LART Click Finish Click Finish ta close the wizard 1 Go to 1 4 3 Completion of USB Driver Installation 20 StickLIN 78K0 User es Manual 1 4 2 Installation on Windows 2000 1 Once the StickLIN 78K0 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 a hardware device Click Next To continue click Next lt Back ose TI Cancel 2 Select Search for a su
23. K dr iver as default installation If the installation directory is not default then select TK driver under the installation directory Click OK Found Mew Hardware Wizard Click OK E E Insert the manufacturer s installation disk into the drive X selected and then click OF Cancel Select the driver directory Copy manufacturer s files from C Program FilesSMEC Electronics T oalz TE driver ti Browse 22 StickLIN 78K0 User es Manual 5 Click Driver Files Search Results The wizard has finished searching for driver files for your hardware device The wizard found a driver for the following device IE USB Device Windows found a driver for this device To install the driver Windows found click Next c program files nec electronics tools t drirersmabzsall inf Click Next 6 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Click Finish Found New Hardware Wizard Completing the Found New Hardware Wizard gt MEL Electronics Starter Kit Virtual UART Windows has finished installing the software Far this device Click Finish To close this wizard click Finish feet Lance 7 Go to 1 4 3 Completion of USB Driver Installation 23 StickLIN 78K0 User s Manual 1 4 3 Completion of USB Driver Installation Confirm the USB driver is installed on PC Start Device Manager
24. OMS speed 115200 Range Chip Freq 0 00 Multiple 1 00 D Erase The deletion of the flash memory begins when the button is pushed StickLIN 78K0 is detached from the PC 15
25. User s Manual 1 1 Development tools Software his section outlines the development tools used in this document he name of the development tools and their main function are as follows Device file DF 88020 V1 00 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 StickLIN 78K0 uPD78F8020DA integrated development environment PM V6 30 his is an integrated development environment platform that operates on Windows An editor with an idea processor function is provided as the Edit window allowing effcient development linked with development tools such as a compiler and a debugger O C compiler CC 8KO W4 00 size restriction version It is Object size restriction 32Kbyte compiler for 78K0 series It is a program that translates the source program written by C language for 78K0 series and C language in accordance with ANSI C into the machin language The source program written by C language is input and the object program that becomes an input of the source program and the linker that becomes an input of the assembler for 78K0 series is output O Assembler RA7SKO W4 01 size restriction version It is Object size restriction 32Kbyte assembler for 78K0 series The source program written by the assembly language for 78K0 series is input and the generic name of a series of program that object program
26. User s Manual sti ckL IN 8K0 Date published March 2009 Rev 3 1 TESSERA TECHNOLOGY INC 2009 Printed in Japan StickLIN 78K0 User s Manual Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and or other countr ies The information is subject to change without notice No part of this document may be copied or reproduced in any form or by any means without prior written consent of TESSERA TECHNOLOGY INC TESSERA TECHNOLOGY INC assumes no responsibility for any errors that may appear in this document TESSERA TECHNOLOGY INC does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of TESSERA TECHNOLOGY INC products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of TESSERA TECHNOLOGY INC or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer TESSERA TECHNOLOGY INC assumes no responsibility for any losses incurred by customers or t
27. W e OFF e Writer Debug OFF May StickLIN 78K0 Debug SW SW layout TOP VIEW 5 StickLIN 78K0 User s Manual 3 3 2 LED LED1 is connected to Low side driver DR3 LEDI status P33 Output data ORS status l5 LED1 ON Writer ET 78K0 LED1 TOP VIEW 3 3 3 LED2 Power Indication LED2 is a green LED to indicate the availability of power LED2 status Power OFF ON tickLIN 78K0 Writer a 0 LED2 LED2 TOP VIEW 52 StickLIN 78K0 User s Manual 3 3 4 LED3 LED3 indicate LIN Bus Pull up LED3 status P70 Output data LIN Bus Pul l up tow Pull up enable Waster Green Pul I up disable Slave ON Writer a StickLIN 78K0 JFF mmm LED3 LED3 TOP VIEW 53 StickLIN 78K0 User s Manual 3 4 Power Source StickLIN 78K0 are able to choice two ways of power source Microcontroller power VDD and driver module power VSUP are both supplied when power source are supplied from either USB or expansion interface VSUP If you supply power using the expansion interface VSUP then keep power source voltage DC 7 OV DC 18 OV 54 StickLIN 78K0 User s Manual 3 5 Design Data 55 StickLIN 78K0 User s Manual ICS ircuit Schemat C 3 9 1 groen 9 VZ20 LAS JequinN 1ueunooq K A Helll9d edal 06 94 ad Ano AQL ANS Elo ad jnr o 3001 vH E
28. al 5 1 Create a new workspace Now create a new workspace and project PM allows you to create a new workspace with following New WorkSpace dialog Select File on PM menu bar then New Workspace co 15 PM No Workspace OutPut E loj x File Edit Find Layer View Project Build Tool Window Help New Ctrl N Es Mac ADDR si Ir dii ela H Open Ctrl O Ja ag tagji Insert file Glose Workspace Save Gtrl s Save As New WorkSpace dialog Change Source File Mame Save Al Source Files Print Preview Print Ctrl P opens Recent File Recent Workspace Exit PM lt Description of items gt je pes ee s las Workspace File Name gt Specify the name of the workspace file that manages the project files prw is automatically suffixed as the file type A project file prj of the same name is simultaneously created New WorkSpace Step 1 9 Workspace Information i xi Workspace File Name m I gt gt 1 Workspace Information 2 Select Tools l Create Blank Workspace 3 Select Flea Time DS Folder 4 Startup File mmmmmm Browse 4 Startup File H i 5 Fiegister Mode Project Group Name SE IH NENNEN 6 Link Directive File R 7 Setup Source Files Folder i Microcontrollers Name Device Name gt Specify the folder for saving the workspace Pecos Ins Sete Debugg
29. ation author ity 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 instal l directory Please do not use 2 byte characters such as umlaut in the directory name where the product is to be instal led Note on the version of Windows If the language of the Windows is not English a file transfer error during installation might be observed In this case please abort the installation in the language and re install it in an English version of Windows The identical problem may be observed if a language other than English is specified as the system language in the Regional Settings Properties tab Assembler RA78KO and C compiler CC78K0 limit the object size to 32Kbyte 12 StickLIN 78K0 User s Manual 1 3 Sample environment his section describes the preparations for the sample programs used in this document The preparations consist of installing the sample programs in the customer s environment To uninstall the sample programs delete the folder that was specified as the installation destination The installation method and the installation destination are cescribed below 13 StickLIN 78K0 User s Manual Installing the sample programs Inset the CD ROM disk provided as part of the StickLIN 78K0 products in the CD ROM drive The NEC Electronics Microprocessor Development Tools Setup screen aut
30. de common h extern weld h initialt 13 weld malint 15 while 21903 When programs are running the status bar will be red 43 StickLIN 78K0 User s Manual Next confirm the LED1 and LEDS blinking LED1 OFF ELSE ON Writer Sha J T Debug OFF Ma Q The above described procedure checks that the LED blinking program functions normally AA StickLIN 78K0 User s Manual 2 11 Stop Programs Now you are going to stop the program Click the ID 8K0 QB EZ s stop button uri or select Run on menu bar then Stop fe gt p lt po mist WEA aale 215 E siele Wach Dek event Close maim c gel initial c el include commen MT Western void h initialt HHHHHHHHHHHHHHHHHHHHHHMMMMMMM E NNN un coo Stop the program 1D TOKO 0 Ee e Sti k LIN TER D pir Pie Edt view Option Bun Event Brows Am Window Hep ujele ajzu SEa giele ajeti gail ri 119 10 Wach Oach fies Deg Alen Demonstration Frogran for Stick LIN FARI ge UPD2RESHZBD PAKAJKES NY rain i initial e dp interrupt c pragma ei ae lude common h extern vold hlindtialt wald malint h initialt EIC When the program stops the status bar changes back to the original color Ab StickLIN 78K0 User s Manual 2 12 Close Debugger Select File on menu bar then Exit s ID78KO QB
31. ect Build Tool Window Help SHR ssela 4 s iisial Files Memo qe No Workspace For Help press F1 TTT Eikii 4 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 2 For details regarding menu bars and tool bars refer to Help menu in PM Help on menu bar then PM Help 28 StickLIN 78K0 User s Manual What is a project A project is the unit that is managed by PM A project refers to an appl ication 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 project group is a group comprised of a number of projects in an application system he 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
32. er file by writing its absolute path This item can be selected from a reference dialog box by pressing the button 9 Confirmation Device Install i V850 Microcontrollers Only 4 6 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 i will set up the basic information about the workspace and the project es Microcontroller Name gt Specify the name of the microcontroller to be used The concrete information set here is described on the following pages Device Name Specify the name of the device to be used 61 StickLIN 78K0 User s Manual New WorkSpace Step 1 9 Workspace Information a xi Input the vvorkspace information setting Workspace File Name test 1 Workspace Information 2 Select Tools x q 3 Select Real Time 05 Folder IC es m Startup Filet 5 Le i te y E Project Group Name 3 Fegisiar blades mm 5 Link Directive File 7 Setup Source Files as follows Create Blank Workspace Workspace file name test Microcontrollers Name Device Name veko DI uPD 78F 8020 8 Select Debugger 9 Confirmation Device Install i 850 Microcontrollers Only 4 6 Folder C Y78K0Ytest Project Group Name no input This
33. er 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 File Edit Find Layer View Project Build Tool Window Help Se DG H amp H i Compiler Options Structured Assembler Options SAMPLE Stick LIN 78KO SAMPLE w Debu Assembler Options Linker Options Files Memo Object Converter Options List Conve E SAMPLE Stick LIN 78K0 WE amp SAMPLE Stick LIN 78K0 J Source Files o CC Include Files o CC Project Related Files des ele CEET d er Options iles NEC Omplete es NEC omplete iles NEC omplete iles NEC Electronics ToolsCC78KO0W4 00 3bincc78k0 O error s and O warning s found Electronics ToolsCC78KO0 W4 00Xbincc78kD0 O error s and O warning s found Electronics Toolsi CC78K01 W4 00Xbincc78kD0 O error s and O warning s found Electronics ToolsYRA7SKOW4 01Xbin ra78kD0 Debugger Settings A Register Ex tool Start up Ex tool File Compare E C Other Files Device File Installer lete O error s and O varningisj found PM Settinas iles NEC Electronics ToolsiRA7SKOW4 013bin lk78kO0 E Mun O erroris and O varningisj found ee iles NEC Electronics Tools RA78KO 4 01 bin oc78k0 Customize Record the Key Operations Sion Complete 0 error s and O warningi
34. fic location Cr If your hardware came with an installation CD s or floppy disk insert it now What do vou want the wizard to do Install the software automatically Recommendaz 5 Install from a list or specific location Adve Click Next Click Next to continue sl Sei 18 StickLIN 78K0 User s Manual Z 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 YProgramF i esXNEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select TK driver under the installation directory Click Next gt Found New Hardware Wizard Please choose your search and installation options 9 Search for the best driver in these locations Use the check boxes below to limit ar expand the defa 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 aalssTE drive Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does oy P the driver you choose will be the best match for your hardware Click Next d kn 4 f the following dialog is opened click Continue Anyway Hardware
35. ful this file type can 7 potentially harm your computer If you do not trust the source do not run or save this software What s the risk Please push the button 14 StickLIN 78K0 User s Manual Save As 7 si Save in E Desktop Oo m B ER My Documents A 3 My Computer Mu Recent JMvy Network Places Documents AA Adobe Reader 7 0 Deekto p Mu Documents E e w hu Computer emm ADR File name TK78KO exe sl d sae D Save as type Application ti Cancel E Places After specifying the download destination folder press the button The sel f extraction sample program set TK78K0 exe is copied to the specified folder The folder that the TKISKO folder is made when this file is executed and the sample program is stored under the folder in addition is made 15 StickLIN 78K0 User s Manual O Folder structure of sample programs When the sample program set is decompressed the files are to the following folder structure TK78K0 EYE SAMPLE Stick LIN 78K0 SAMPLE Stick LIN 78K0 prw Sample workspace file main c Source file 16 StickLIN 78KO 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 St ickL IN 78KO Please follow the instruction below to install the driver Starter Kit USB Driver must be installed on the PC If n
36. hird parties arising from the use of these circuits software and information CAUTION Do not give any physical damage to this equipment such as dropping Do not superimpose voltage to this equipment Do not use this equipment with the temperature below 0 C or over 40 C Make sure the USB cables are properly connected Do not bend or stretch the USB cables Keep this equipment away from water Take extra care to electric shock This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands 2 StickLIN 78K0 User s Manual Contents egene ec ke BEER 5 CHAPTER 1 PREPAK at NOM EE 1 1 Development tools Softuare aa a 8 1 2 Installation of Development Tools 9 1 2 1 Installation Package cu cn da ase de e aa 9 1 2 2 Installation of Development Tools 9 M9 sample environment EECHER 13 1 4 Installation of USB DE UNE or eie ec Sted acd e Ae eee eo rue dade 17 1 4 1 Installation on Windows AR 18 1 4 2 Installation on Windows 2000 ee RRRRRRRRRRRR ee se sea 21 1 4 3 Completion of USB Driver Installation i 24 CHAPTER Ze MDE I CLIC CS ec e EE a e EM 25 AS a
37. ick LIN T8KU prw ProjectWindow File Edit Find Layer View Project Build Tool Window Help s nemla srela T des aalr 2 FE Project group Project Moving project completed successfully Only one StickLIN 78K0 project is included in the SAMPLE Stick LIN 78KO prw workspace file The operations described below are done in relation to this SAMPLE Stick LIN 78K0 project 31 StickLIN 78K0 User es Manual 2 4 Set Linker Options The linker options have been set by the project file However some option settings will be covered in this section because the linker option settings are important for debugging Fol lowing three settings are covered specifically Outputs from debugging On chip debug Desable Enable security ID Select Tools on menu bar then Linker options 2 4 1 Outputl Tab Select Output tab on Linker Options window Confirm Output Symbol Information and On Chip Debug are checked Also confirm Security ID and confirm FFFFFFFFFFFFFFFFFFFF 20 of F is entered at ID field if there will not be a problem entering it Linker Options X Output Output Library Others Load Module File a Output File M ame ein Browse ci Output Symbol Infarmatian c Create Error List File e Output File Hame Jack Browse emm T w On Chip Debug go SIZE 256 v Security ID ai
38. itable driver for my device Glick Next gt Install Hardware Device Drivers A device driver i a software program that enables a hardware device to work with ey an operating system This wizard will complete the installation Far this device IE USB Device device driver is a software needs driver files for your ne installation click Next Select Search for a suitable driver for my device Click Next Cancel What do vou want theAuzard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device to that can choo driver 21 StickLIN 78KO User s Manual 3 Select Specify a location Click Next gt Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search far driver files for the following hardware device IE USB Device he wizard searches for suitable drivers in its driver database on pour computer and in Select Specify a location optional search locations that you specify lick Nest IF you are searching on a floppy disk or CD ROM drive or CO before clicking Next Click Next Optional search locations Floppy disk drives CD ROM drives Specify a location Microsoft Windows Update Cancel 4 Select the driver directory path The path should be C Program Fi lesYNEC Electronics ToolsYT
39. itches on the kit are correct with referring 2 8 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 4 2 3 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 Code Jepe Check Point 1 Enter correct security ID and click OK on the configuration window Check Point 2 f 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 4 Set Linker Options Also remember the code you set for the security ID After this erase the flash memory with referring to 5 4 WriteEZ3 b9 StickLIN 78K0 User s Manual This chapter describes how to create a new PM workspace project required for debugging using the integrated debugger ID 8KO QB EZ registering additional source file and how to use the WriteEZ3 5 1 Create a new workspace project 5 2 Register additional source file 5 3 Debugger tips 9 4 WriteEZ3 60 StickLIN 78K0 User s Manu
40. ndow 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 iB xi Lem e interrupt c TH mam StickLIN 78K0 User es 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 TE Source mainc oi Search di EK Watch Quick R 2HiNoid maintvoid gt E EI amp 5 um E while 212 y EB 10 StickLIN 78K0 User s Manual 5 3 4 Display global variables With using Watch Window you can display global variables There are several ways to register global variables to watch window In this section how to register from source window is described D Right click the variable on source window then select Add Watch BER Search Quick Refresh 88 Cloze ucPlaySts tatic Uu stop_Led tatic Uu output count Mix tatic lib output_datal2 EST tatic Ug PlayMode P S NEN U32 uilntGoun Symbol Use uilntCoun TN Dep Break when Access Break when write Ec mi Break when Read Fri Add Watch dialog opens Click x Add Name Radi Proper Hex C Dec C Oct Bin String SIZE f Adaptive Byte Word C Double Word Number
41. ntegrated debugger ID78K0 QB EZ Here LEDI and LED3 alternately blinks program is used as StickLIN 78K0 sample program This chapter is designed to give an understanding of the concrete operation method of the development tools PM 1D78K0 QB EZ and the outl ine of the project files required when creating application programs through building of sample programs and operating IDISKO QB EZ 25 StickLIN 78K0 User s Manual The overall flow is as follows 2 1 Start PM 2 3 Load Workspace 2 4 Set Linker Options 2 5 Set Compiler Options 2 6 Greate Load Module Files 2 1 Check Debugger Settings 2 8 Check Board Settings 2 10 Run Programs 2 11 Stop Programs 2 12 Close Debugger 2 13 Quit PM 26 StickLIN 78K0 User s Manual Let s start using the development tools First start the PM Select Windows Start Menu Program gt NEC Electronics Tools gt PM gt V6 30 gt PM V6 30 vij PM No Workspace OutPut 21 StickLIN 78K0 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 sm PM No Workspace OutPut Dl xj File Edit Find Layer View Proj
42. omatically appears if this screen does not appear automatically start setup exe from Explorer etc Press the button to start the WWW browser and then click the Stick LIN 78K0 Sample Programs link X MEC Electronics Microcomputer Development Tools Setu vi Welcome to the NEC Electronics Microcomputer development tools setup program Before you execute this installer please exit all windows programs SHckLIN 78 The WW browser start up E Sample Programs Microsoft Internet Explorer File Edit View Favorites Tools Help Qa O x 2 h Jores Q 2 E A Address L SAMPLE_E HTML a u sample Programs Welcome to StickLIN 78K O0 world e purpose of sample programs is to experience StickLIN 78K0 sample programs consist of the following items Copy them to the PC which StickLIN 78K0 has installed e TE 78K0 o SAMPLE Stick_LIN 78K0 Sample program described in the SickLIN 78K 0 evaluation kit User s manual Refer to the tutorial guide e StickLIN 78K0 sample programs e StickLIN 78K0 evaluation kit User s manual El TIT wem y Done When Stick LIN 78K0 Sample Programs is clicked the following download conf imation window appears File Download Security Warning xi Do you want to run or save this file Name TK78K0 exe Type Application 66 9 KB From StickLIN_CD T2_00 SAMPLE Run Cancel L se Donn While files from the Internet can be use
43. ot please refer to 1 2 Installation of Development Tools to install the driver first CAUTION Do not use a USB hub for connecting StickLIN 8KO First connect the Stick LIN 78K0 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 1 4 2 Installation on Windows 2000 After the installation go to 1 4 3 Completion of USB Driver Installation 17 StickLIN 78K0 User s Manual 1 4 1 Installation on Windows XP 1 Once the StickLIN 78K0 is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer an the hardware installation CD or on the Windows Update Web site with pour permission Head our privacy policy p TU an Windows connect ta Windows Update to search for Select No not this time 74 5 5 Yes this time only CO Yes now and every time connect a device 9 No not this time Click Next Click Next to continue 2 Select Install from a list or specific location and click Found New Hardware Wizard cy This wizard helps pon install software Far USB Device Select Install froma list or speci
44. ownload is completed the source code will be displayed 8 ID78KO QB EZ SAMPLE Stick LIN 78K0 prj Ini xi File Edit View Option Run Event Browse Jump Window Help ir m ln a Em Ej qlalmtej sjajsj esi E Source main c Seach lt lt gt gt Watch Quick Refresh Close Demonstration Program for Stick LIN 8K a UPD7SF8828D 78KU KE25 main c initial c interrupt c pragma ei include common h Bjextern void h initial main c t man los bs I lauTo INS Z 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 see 2 10 Run Programs 42 StickLIN 78K0 User s Manual 2 10 Run Programs Now you are ready to run the program Click the restart button or select Run on menu bar then Restart The sample program runs a Demonstration P anm por heick re UPD7SPRB2OD VR initial c interrupt e yraa el g lude raneon h Wiextern vaid h initialt void maint while tip Run the sample program manc gn Dm ks 33 l Bo PE a Pie Ede View Option Run Event Br ga June window wb Url elim giele aile ss Si t e IR Walch Daa 200 Die Demonstration F ran for Stir TH dt di KESI dud beer e interrupt pragma mi inclu
45. r 78K0 series appended to StickLIN 78K0 evaluation kit Readers will be able to further their understanding by actually using the development tool while reading this document This PDF file should be read with Adobe Acrobat Reader5 0 or later his manual consists of the following contents Chapter 1 Preparations This chapter provides an outline of the 78K0 series development used in this guide and describes the sample program installation method Chapter 2 Experiences Experience the basic operations of integrated development environment PM and integrated debugger ID78K0 QB EZ with using sample programs Chapter 3 Hardware Specifications Explain the hardware of StickLIN 78KO Chapter 4 Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger 1D78K0 QB EZ Chapter 5 Other Information gt t explains the new making method of the PM workspace project the additional registration method of the source file and how to use of WriteEZ3 StickLIN 78K0 User s Manual Caution 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 on any other right of NEC Electronics Corporation or third
46. roject file However because some compiler options are useful following two settings are covered specifically in this section Enable C comments Select Tools on menu bar then Compiler options 2 5 1 Extend Tab Select Extend tab and check Enable C Comment This setting allow you to use the C comment using It is useful feature when developing code Compiler Options l x Preprocessor Menor Model Data Assign Optimize Debug Output Extend Others Startup Routine Change Source Regulation kanji Code of Source v SJIS as C EUC ze Treat long as int zl C Mone zn Iw Enable C Comment Ignore from A4 Till End of Line zp Comment Can Mest zc Disable Extensions ANSI Standard Only 3 Treat int and short as char zi Not Expand Argument and Return V alue zh Command Line Options ZP Cancel Apply Help 34 StickLIN 78K0 User s Manual 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 pg PM SAMPLE Stick LIN 78K0 prw ProjectWindow amp amp amp Ba i ProjectWindow Eg SAMPLE Stick LIN 78K0 1 Project s Source Files nclude Files Project Related Files i Dther Files uy FL al ale
47. s Play Back rror s O Total warning s O EOF Saye the Key Operations Load the Macro File Play Back the Macro File Register the Macro Files Play Back the Register Macro r Change debugger settings Ae E exe fin P exe fint exe fma exe fwor exe fin exe fa I found A H Z I hikilbs 7 31 StickLIN 78K0 User s Manual Check if ID78K0 QB EZ V3 00 78KO Integrated Debugger is selected on Debugger Debugger Settings LATK SEDSSAMPLE Stick LIM ASEDSa Imf El v Execute a mbar reset ater Diowpioog Download the Debug Target Files in the same Project Group enu angel Fie List 38 StickLIN 78K0 User s Manual 2 8 Check Board Settings Before connecting the PC and the StickLIN 78K0 with USB you should check the setting of Writer SW and Debug SW on the StickLIN 78K0 D Set the Writer SW and Debug SW of the StickLIN 78K0 as follows Writer SW StickLIN 78K0 Er e Debug SW 2 After the switch settings are completed connect the PC to USB on StickLIN 78KO0 If the Found New Hardware Wizard is started install USB driver with referring 1 4 Installation of USB Driver 39 StickLIN 78K0 User s Manual or select Build on menu bar then Debug PM SAMPLE Stick LIN 78K0 prw OutPut SHR e P i exe finm C Program Files NEC Electronics
48. st Install Documents Sample Program Link to NEC Electronics Microcomputer Exit Click the Install StickLIN 78K0 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 StickLIN 78K0 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 Programs gt NEC Electronics Tools d Tool Installer 8 xi DeviceFile Install DeviceFile DF788020 41 00 SEDE sx with LIN Search l Tool Install Tools HA P BEU v4 1 BBUKB D ZOU V4 01 Documents 14 B528kB P ME 20 17 4B0F B FM VE 30 Documents 12 636 6 LL GEI W400 145 0008 LL PBEU V4 UU Documents 14 000K6 BS 7eE0 v2 00 5 TODKB BS SKI V2 UU Documents 1 824KB E plain Drive Available Space ha 93 022 646 Destination Required Space C Program Files MEC Electronics Tools Browse 133 1 31KB 4 Click OK when Install comfirmation dialog box is opened INSTALL E x 2 Install the Tools and DeviceFile cancel em 10 StickLIN 78K0 User s Manual 5 Read sof
49. tware license agreement and click for continuing the installation To stop the installation click InstallShield Wizard EE xl License Agreement Please read the following license agreement carefully Press the PAGE DOWN key to see the rest of the agreement USER LICENSE AGREEMENT IMPORTANT REAG CAREFULLY This User License Agreement LILA is a legal agreement between you either a natural person or an entity and NEC Electronics Corporation NEC for the SOFTWARE PRODUCT As used herein SOFTWARE PRODUCT means the NEC s computer software products provided with this ULA which includes computer software and may include associated media printed Do vau accept all the terms of the preceding License Agreement IF you choose No the setup will clase To install RAZR w4 07 you must accept this agreement InstallShield Z Back Yes D Ma M Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard xi Please enter the product ID of the product Enter Product ID Product ID is written on the case or in the accompanying document Product ID InstallShield cBakC Next gt Cancel It starts copying the files 11 StickLIN 78K0 User s Manual 8 When the installation is completed the following dialog opens Click OK INSTALL E 1 1 Installation Finished q x p Notes on the install
Download Pdf Manuals
Related Search
Related Contents
Tech air TABUN31M Global Direct 29321 Instructions / Assembly manual de aplicação dos adesivos Symphonic CSL1505 Flat Panel Television User Manual Xylazel Sol Decking Washer Lavadora Laveuse 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file