Home

User`s Manual

image

Contents

1. LINV l d OINV 0 d IX L ld UAV en 29 13 aa asn ZN L3 H926 2Vdn E AOMLaXL HOMLIGXH ML O 26L L ZN 13 H926 2Vdn gt Nasn9axu 2 v lt z oid tld Eld gt gt _ Old FEE 284 anyo 18d 08d 0 O J3UAV d J33HAV MOL LH 044 or L OEM 8 soxsax 4 sowsaxy O 9 2 O a aS GGAgsn 2 T Mol 814 Zv L3 HO9e672Vdn 7 13 E ML O Ld ASc 3nZ v elo Pix K oee _ O Ld3INVc O4d4 ASc dnz v HO L d3HAV 029 10 027098 ENO je 5 2 lt Dega Ul 70 g 70 v ul 50 liv 5 6 NI NI NI MJ MI TM CO CO x gt lt 94 gt DO OO O Po Co ANDO wa a5 BEBE s gra XV Hv9 600148 Qdn dd ddl a 00 00 20 U 20 U U D n ET c 019 69 2222 2 50 Be To Z2 33333333 88888 0v 4089 2 90 ON a 8558 225 DEN J3nzv 0 O 884880 P F S N 9
2. Ld3Wgt 233 LEd o 19 09d 18 08 77 TK 78KOR KE3L User s Manual 8002 21 Jequie 96200591 JequinN 80 SHO 79g L 8 EMS 80 SHO TO 418 L LEMS 80 SHO ITO 9g td 9 EMS 80 SHO 9 2rd S EMS 80 SHO r gt gt d 1 EMS p 889980 91 e EMS MOL osy END endl b qe MGT Zeu nogwid Z O O nar 001 8 0 u wa s azn 9 MS PE gaoa OT zna OT plus O MOALOOZOATHLNS L lt lt v gon g x91 dang m noasziozonirzns 880 SHO L 00W13 sio a 5 vin E 001 129 ano S 49 5 Ano OWOEZ048Z0dN 41 k GLGOO EdLNI Ed 20 LNI LEd PPA3 LSOL ISIL EEd 0SOL 0SLL Z Ld LHOL 9Ld Sld une OlLOS ld OLIS LLd OPMOS 0 d Em 001 9001 I3S3H 1 aa oig vey SO1 MY3LNO LYN
3. 45 2 d StoDPFOBFALTIS uuu u 47 2 12 Close Debugger 78 7 uuu u aaa uqaqa 48 49 CHAPTER 3 HARDWARE SPEGIFIGA TIONS asas interit t vota t eti 50 9 I avout o MardWware uuu uuu ct 51 9 2 LGW Alcs WINS GLOMUS ue uu 2 tee bebe abuti tabes 02 32 SW 52 BF Fe l biuk aaa 52 25 E 52 924 53 es cau au MM R oo CRo Oo Oho o o 53 o2 C OWO NTP c Qami 53 32 PP _ ____ ___ ___ 53 R O M 53 TK 78KOR KE3L User s Manual 3 2 9 Q4 Illuminance Sensor sse tte tette 54 2 MIAO 112 JSSpEED uuu u ects uboh u alesis lr tte in edite eb 54 TT DIS 55 So UYUnyersal Areda T 55 GHAPTER 4 TROUBEESFOOTINQuZ u L l u et eh eh Q S n aaa 56 4 1 If you cannot find USB driver when you connect PC to the 56
4. IN JAPAN 500295 2 CM 2742 oaa I Ir EMO zt E 2 o iwi 0000000000000 JP2 1 3 Short After the switch settings are completed connect the PC to 0581 TK 78KOR KE3L with USB cable If the Found New Hardware Wizard is started install USB driver with referring 1 3 Installation of USB Driver 40 TK 78KOR KE3L User s Manual 2 9 Start Debugger ID78KOR QB EZ Click the debug button or select Build on menu bar then Debug If you do not see the debug button go to 2 7 Check Debugger Settings for changing the settings The steps to start the debugger will be explained below 5 PM SAMPLE KE3L prw OutPut Oj File Edit Find Layer View Project Build Tool Window Help s nsaan ____ deem SAMPLE_KESL SAMPLE_KESL v Debug Build J hee L In xi p Files C Program Files NEC Electronics Tools CC78KOR U2 10 bin cc7 8k0r exe Compilation complete error s and 0 warning s found fi SAMPLE_KE3L 1 Project s C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe SAMPLE Compilation complete 0 error s and 0 warni
5. PM 02011 C test Ct This folder cannot be found you wish to create X Click button New WorkSpace Step 2 9 Select Tools Tool Set 1 Workspace Information 2 Select Tools Series Software Package V1 00 Enalish 4 3 Select Real Time 05 4 Startup FilelH Register Made H Link Directive File H 7 Setup Source Files Tool Versions Version 8 Select Debugger 3 Confirmation 8 850 Microcontrollers Only 4 6 Select only Installed Tools waw 225 Please select the Tools from NEC Electronics to be used The following tools have been excluded from selection because they are not installed CC 8KOR ID78KOR GB SM for const Click Detail Setting button 61 TK 78KOR KE3L User s Manual Tool Version Detail Setting m nam xo T 4T T T T m ZM Unused Unuseq pem mwiza fawo favas gt Select tools as above screenshot then click New WorkSpace Step 2 9 Select Tools Changed Selected01 78KOR Series Software Package V1 00 E w 5 Link Directive ID78KOR QB Select only Installed Tools Click New WorkSpace Step 7 9 Setup Source Files pee mp TT Tam Ov E 3 Select Heal WS 4 Startup FEM All 5 Register 5 Li
6. aus 15 132 Installation or Windows 2000 boot i br inb br nt i 18 1 3 9 Gonmipletion of USB Driver Installatioriau oue ridet reete tete ret teer breue ends 21 tA Sampe Prosana 2 tetas 22 k41 Preparation of Sample Programs ucro dto tit tin iot te orb ad cH tor tie ore cepe dant 22 GHAPTER Z EXPERIENGES aia y u y n na ee OR RS 24 NE 26 WI LAS PA alu be tton ta sss va idi dune 21 2 3 Load Workspace project u uy ec dts ir net RE RUE 29 24d SOU uay O _ 31 SOME DM T u cpa 2 1000 31 242 ener nee Pe dad endi 33 2 9 Set cessisse 34 P O O ch 34 252 uu made neater 35 25 Create Load Module s nasha 36 7 sire iot 38 20 Gheck 40 2 9 Start Debugger 78 2 41
7. SAMPLE File name Cr Files of type Workspace pre L ancel Help Select SAMPLE then click 2 29 TK 78KOR KE3L User s Manual Workspace name SAMPLE prw m PM SAMPLE KE3L prw OutPut File Edit Find Layer View Project Build Tool Window Help SR 2 Load the workspace file SAMPLE KE3L prw SAMPLE KE3L saMPLE KE3L v Debua Buil x E s Z BE E 21015 BIST Files Memo EOF Eis AMPLE I Project s i SAMPLE gt Project group F Include Files Q Project Related Files 280 Other Files Project 4 For Help press F1 Rot Red Z The workspace file SAMPLE contains one project called SAMPLE You will use this project SAMPLE CAUTION Please ignore when you get a prompt saying files could not be found This may occurred when the installation directory is not a default 30 TK 78KOR KE3L User s 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 Following three settings are covered specifically Outputs from debugging On chip debug Disable Enable security ID Watchdog timer Select Tools o
8. TK 78KOR KE3L User s Manual SAMPLE E Edit View Favorites Tools Help 2 j Search lie Falders Ej Desktop rz G Documents E Computer EH md 344 Floppy El Local Disk E gt TE F8KOR_KESL_T1 D AppEZPL m 4 DOC of DRIVER B 407 PRM EM SAMPLE B 407 AppEZ F R TK7SKOR EC SETUP a g Control Panel H D Shared Documents 3 Copy the directory TK78KOR under SAMPLE E directory to local PC 23 TK 78KOR KE3L User s Manual In this chapter you will experience how to use the development tools with using the sample programs The development tools are Integrated Development Environment IDE PM Integrated Debugger ID78KOR QB EZ You will use the programs that you prepared in 1 4 Sample Programs as the sample programs for TK 78KOR KE3L You will be able to understand how to use the development tools and the concept of project files which you need for producing application programs 24 TK 78KOR KE3L User s Manual The overall steps are as follows 2 1 Start PM Load Workspace 2 4 Set Linker Options 2 5 Set Compiler Options 2 6 Greate Load Module Files un Programs 2 9 Start Debugger 2 10 Run Programs 25 TK 78KOR KE3L User s Manual Let s start using the development tools First start the PM Select Windows Start Menu
9. uu E 76 TK 78KOR KE3L User s Manual TK 78KOR KE3L is the evaluation kit for development with sound systems using 78KOR Kx3 L NEC Electronics 16bit all flash microcontroller The user only needs to install the development tools and USB driver and connect the host machine with the target board to start the code development build monitoring the output and debugging code This demonstration kit uses the on chip debug feature from the microcontroller itself without emulator connection Configuration for Debugging In 8 08 SAMPLE Th Wer Kun Eee Drona Amp Woe Ho nu E whilet g start HB wr o ek eo T Joo a og o RIP TET a 7 uo mm KAM a m 3 F s gt The user can check the low power consumption of 78KOR Kx3 L instantly since the low power consumption demonstration program is written on the system For details refer to the user s manual TK 78KOR KE3L Low Power Consumption Demonstration GUI TK 78KOR KE3L User s Manual Overview Reader Purpose This manual consists of the following contents Read chapter 1 and 2 first for installing the development tools and using the sample programs Read chapter 3 5 for customizing the sample programs and the hardware Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5
10. TK 78KOR KE3L User s Manual 6 The installation of NEC Electronics Starter Kit Virtual UART driver is completed Click Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software For E MEL Electronics Starter Kt Virtual LIAR T Click Finish Finish Cancel Click Finish ta close the wizard 7 Go to 1 3 3 Completion of USB Driver Installation 17 TK 78KOR KE3L User s Manual 1 3 2 Installation on Windows 2000 1 2 Once the TK 78KOR KE3L is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver Far 4 hardware device Click Next To continue click Next lt Back eo Cancel Select Search for a suitable driver for my device Click Install Hardware Device Drivers device driver i a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device 2 USE Device A device driver is a software needs driver files for your nev device installation click Nest Select Search for a suitable driver for my Click Next Cancel What da want to do Search for a suitable driver for m
11. lt asngaxy lt yd 614 en ezo yOasZLOLOATPZNS LEH anyo GLO Bro O ME i Ondasn v SM LUNG t a ee _ 91270 9 9 tasn SSA 01 40 0 Ben 613 E EI d A adum MOL oana 9 a MOL E OdLNI OZI Hig du aa asn INYGI 0d1NUOZId I O O res sn L eS E Odd MOGLODZOATPLNS 2 Ld LNI OEd 5 i 13538 1 T von S anyo 810 daaasn 78 TK 78KOR KE3L User s Manual 83002 6 Jequie 46200501 JequinN 1ueunooq L 31 EVE LO 8P LNO P i O 3 i 9MS a IV d lt lt v zaa am O N 168541 SMS a L0E 8P LNO lt MOOULO ao aa D E 79
12. 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 PM No Workspace OutPut File Edit Find Layer View Project Build Tool Window Help New Ctrl N Ctrl O In x Save As Ghange Source File fame Save All Source Files Print Preview Print Ctrl P Recent File Recent Works pace Exit PM New WorkSpace dialog opens Create a new workspace 2 lt Description of items gt Wo rkspace File Name New WorkSpace Step 1 9 Workspace Information x gt Specify the name of the workspace file that manages kapas Flo Nama the project files 1 Workspace Information 2 Select Tools is automatically suffixed as the file type n Ht ossis 3 Select 05 project file prj of the same name is 5 Register Project Group Name gister simultaneously created Link Directive File ft Microcontrollers r Folder wm 5 Select Debugger 3 Confirmation gt Specify the folder for saving the workspace file by Device Install 8 850 Microcontrollers Only 4 writing its absolute path This item can be
13. Build PM SAMPLE KE3L prw OutPut File Edit Find Layer View Project Build Tool Window Help ASR trea He x m SAMPLE_KES3L SAMPLE m Debug Build x I E imi Fies Memo is SAMPLE_KE3L 1 Project s i SAMPLE H E Source Files F C Include Files 2 Project Related Files Build process is executed For Help press F1 1 A PM SAMPLE KE3L prw OutPut iol xj File Edit Find Layer View Project Build Tool Window Help 488 e gt o SAMPLE_KESL SAMPLE_KESL Debug Buld 71 Re HA our C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78kOr Compilation complete 0 erroris and 0 warning s found SAMPLE_KE3L 1 Project s C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe Bx SAMPLE KE3L Compilation complete 0 error s and 0 warning s found ae Source Files C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe a Include Files Compilation complete 0 error s and 0 varning s found 9 22 Project Related Files C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe Other Files Compilation complete 0 error s and 0 varning s found OMEN xi cs Tools RA7SKOR W1 31 bin 1k78k0r exe Li nd 0 warning s found 4 i C 13500 Build completed normally cs To
14. NEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select TK driver under the installation directory Click Found New Hardware Wizard Please choose your search and installation options Search for the best driver in these locations Use the check boxes below to limit or expand the defa paths and removable media The best diver Found will Select the driver directory Search removable media floppy CD ROM Include this location in the search C Program Electronics Toole Don t search will choose the driver to install Choose this option to select the device driver fram a list Windows does oy the driver you choose will be the best match Far your hardware Click Next i 4 If the following dialog is opened click Hardware Installation The software are installing for this hardware MEL Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows Tell me why this testing 1 important Continuing your installation of this software may impair or destabilize the correct operation of vour system either immediately ar in the future i Click Continue Anyway recommends that you stop this inst contact the hardware vendor for so passed Windows Logo testing Continue Anyway STOP Installation 16
15. Preparations Install the development tools Experiences Experience the basic operations of integrated development environment PM and integrated debugger ID78KOR QB EZ with using sample programs Hardware Specifications Explain the hardware of TK 78KOR KE3L Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger ID78KOR QB EZ Other Information Introduce other information such as how to create a new workspace project on integrated development environment PM how to register additional source file and some useful tips of the integrated debugger The circuit diagrams of demonstration kit are included in this chapter This manual is intended for development engineers who wish to become familiar with the development tools for the 78KOR It is assumed that the readers have been familiar with basics of microcontrollers C and Assembler languages and the Windows operating system This manual is intended to give users an understanding of the features hardware configurations development tools for the 78KOR TK 78KOR KE3L User s Manual This chapter describes following topics Overview and installation of development tools Installation of development tools Overview and preparation of sample programs Users can experience the development flow such as coding build debugging and test by using the development tools bundled with TK 78KOR KE3L TK
16. gt Program gt NEC Electronics Tools gt PM V6 31 Em No Workspace OutPut 26 TK 78KOR KE3L 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 i PM No Workspace OutPut File Edit Find Layer View Project Build Tool Window Help Files Memo No Workspace For Help press F1 Project Window Output Window Project window A window in which project names source files and include file are displayed using a tree structure Output window A window in which the build execution status is displayed gt For details regarding menu bars and tool bars refer to Help menu in Help on menu bar then PM Help 27 TK 78KOR KE3L User s Manual What is a project A project is the unit that is managed by PM A project refers to an application system and environment development based on PM 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
17. 78KOR KE3 L UART1 is mounted on the board As this is like connecting UART1 to COM port of PC it can communicate with PC 3 2 1 SW1 SW1 is a switch that has 3 positions KOUSB and Debug 3 2 2 SW2 SW2 is a switch that has 3 positions KOUSB and EXT 3 2 3 SW3 SW3 bit 3 are for mode settings Set with referring to the above table bit4 8 are DIP switches connected to ports in microcontroller 8 are connected to P33 P42 P77 P76 pin in the microcontroller Set this ON for Low and OFF for Open Before using this you need to set the microcontroller built in pull up option resistor PUx to ON For details about settings for microcontroller built in pull up option resistor refer to 78KOR Kx3 L User s Manual lt 019291 gt 52 TK 78KOR KE3L User s Manual SW3 3 2 4 SW4 RESET SW is the reset switch You can reset the microcontroller by pressing this switch 3 2 5 SW5 INTP1 SW5 is the Push switch connected to P120 INTPO EXLVI in microcontroller When you push the switch it becomes Low and when you release the switch it becomes Open Before using this you need to set the microcontroller built in pull up option resistor PU12 to ON For details about settings for microcontroller built in pull up option resistor refer to 778KOR Kx3 L User s Manual lt 019291 gt 3 2 6 SW6 INTP2 SW6 is the Push switch connect
18. 78KOR KE3L User s Manual 1 1 Development Tools Software Device file DF781009 V1 10 A device file contains device specific information So users need a device file to use the development tools Integrated Development Environment IDE PM V6 31 The IDE works on Windows operation system Users can develop a system efficiently by using the editor with idea processor function compiler and debugger C Compiler CC78KOR W2 10 code size limited version C compiler for the 78KOR microcontrollers The object code size is limited to 64 Kbyte This compiles C code for 78KOR and ANSI C code program into assembler code This produces object code and linker Assembler RA78KOR W1 31 code size limited version Assembler for the 78KOR microcontrollers The object code size is limited to 64 Kbyte This convert the assembler code for 78KOR into object program The object program will be used for debugger 78KOR Integrated Debugger ID78KOR QB EZ V3 50 This is the tool for debugging the object program generated by C compiler and assembler The debugger enables to do C source level debugging With the debugger you can debug the code easily and efficiently by refering and changing variables using step in debuging function and So on WriteEZ4 This is the tool to write HEX file on microcontroller built in memory without using the debugger ID78KOR QB EZ Starter Kit USB Driver USB driver for the USB connection with t
19. and Alerts Device Manager Storage Removable Storage c Keyboards Disk Defragmenter Mice and other pointing devices Find NEC Electronics Starter Kit Disk Management Monitors Virtual UART COMx eee E EIS EIS ISI BE Network adapters Ports COM amp LPT F Communications Port COMI Ha Services and Applications o Sound video and game controllers M System devices Universal Serial Bus controllers The screen above shows that the COM port number is 8 If ID78KOR QB EZ is not in use you can use this port number for connecting TK 78KOR KE3L 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 21 TK 78KOR KE3L User s Manual 1 4 Sample Programs This section explains the overview and preparation of sample programs 1 4 1 Preparation of Sample Programs D Please insert the CD ROM in the drive The installer will show up automatically If it does not start automatically please initiate it by double clicking the SETUP EXE TECHNOLOGY TESSERA Minimum Installation Users who use assembly C language Full Installation for development TK 78KOR KE3L Open Demonstration Directory User s Manual View CD ROM with i View Document List Windows Explorer 2 Click View CD ROM with Windows Explorer 22
20. has finished searching Far driver files for your hardware device The wizard found a driver for the following device 7 USE Device Windows found a driver for this device install the driver Windows found click Next files nec electronics Click Next lt Back see Cancel 6 installation of NEC Electronics Starter Kit Virtual UART driver is completed Found New Hardware Wizard Completing the Found New Hardware Wizard lt gt MEL Electronics Starter Kit Virtual LIAR T Windows has finished installing the software for this device Click Finish To close this wizard click Finish mw 7 Go to 1 3 3 Completion of USB Driver Installation 20 TK 78KOR KE3L User s Manual 1 3 3 Completion of USB Driver Installation Confirm the USB driver is installed on PC Start Device Manager and find NEC Electronics Starter Kit Virtual UART without 2 mark under the Ports COM amp LPT Device Manager L Computer Management Action View Window Help le x 5m0 FS f A ma OPTZIUL Computer s Disk drives E Display adapters 2 DVDICD ROM drives Human Interface Devices IDE ATA ATAPI controllers Computer Management Local ih System Tools Event viewer Shared Folders Performance Logs
21. 3 1 Installation on Windows XP 1 Once the TK 78KOR KE3L is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking an Your computer on the hardware installation or on the Windows Update Web site with your permission Head our privacy policy P Windows connect to Windows Update to search for Select No not this time software Yes this time only ez now and every time connect a device nat this time Click Next Click Next to continue 2 Select Install from a list or specific location and click Found Mew Hardware Wizard This wizard helps install software Far USE Device Select Install from a list or specific 6 If your hardware came with an installation CD location lt floppy disk insert it now What vou want the wizard to do CO Install the software automatically Recommended Install from a list or specific location Adve Click Next Click Next to continue see 15 TK 78KOR KE3L User s Manual 3 Select Search for the best driver in these locations check Include this location in the search and then click Browse to select the driver directory path The path should be C XProgram Files
22. 4 2 Error when you start the debugger Gat oo ust ee ae 56 4 2 1 Can not communicate with Emulator F0100 or 0109 57 4 2 2 Incorrect ID Code 603 58 4 2 3 The on chip debug function had been disabled in the device F0c79 58 4 2 4 Disabling the on chip debug function is prohibited 0 33 58 CHAPTERS OTHERIN OPMATION did tend ears uiia 59 94 Greate anew WOEKSDACS atas cuti tmt eme ley 60 5 2 Register additional source 65 TPSA alc ee 67 9 94 harise display ol DULLOTIS aerae De SEE 67 5 3 2 Display source list and function list sse 67 5 3 3 Set delete breakpoints E A Un aU 68 Display mau ce Casero uses o t Sum 69 5 3 5 Display global variables while programs are running esses 70 29 0 Display Tocal Al LAO eee ree eruere 71 5 3 7 Display memory and SFR contents E E 71 5 4 Erase microcontroller built in flash memory eene nnns 72 S GIFGUF
23. 596 59 89 29 92 a 259929 T 245249 58 zi gt 5 e 5 12495 gt Lid mo ew 32 ssaa SL ___ 0 91 o ssa K LOOL ZOLL S 0 0 HX _ 9001 90 14 GOOL SOIL E Ld noxa exiez d pow junouun 1991H AIGOLH POOL VOLL Z Ld oana X 0013 z 1 E0OL 0IL Ld LIX EZLd H aug ZOOL ZOIL Old 5 LIX E INLdWO E8d 19939 5 13838 z ZdLNI dLdNO 28d o100L 0rd W0dWO 189d led 2 IWDd EdLNI d0dWNO 08d cd X ZHAOZ 5159 m 5 SSAV IAYX3 0dLNI OZ Ld OdLN L 02194 22 X RE 2237 3 339 EP ASO SST amp ISIS eer ZZEEZEZZZZZZZ JIC S ACA A AAA ST OOOI OONN O OO O D o o o C5 as 70 0 9497 v O1 O1 O1 OF OJ O I e oo Pol son aS 5242 50 52 0105 S331 300125 raat tod o2 d d eam 295 2031 091 Lamm toc e 9 319 aa 08d tld Tono ud 70909 Sid Otd Lic 9 4 224 924 Ged bed Ezd 22 10d Ld 00d Old tld 214 eld ZW 43 H926 2Vdn ZV L3 HOc6 2Vdn LASAH L EE
24. 7 20 Example of data and its display 3 o s s o j a os _ P23 e To display 1 010 and 2 on U12 PM2 0x00 Set P2 to output mode PMO 0 0 PM0 1 0 Set POO to output mode P2 OxF9 Set data for 1 in P2 P0 0 0 P0 0 Set POO to Low then High P2 OxA4 Set data for 2 in P2 PO 1 0 PO 1 Set to Low then High 54 TK 78KOR KE3L User s Manual 3 2 11 LED1 POWER LED1 is the POWER LED It is lighted when it gets power supply 3 3 Universal Area The kit has the universal area Users can use this to develop custom circuit 55 TK 78KOR KE3L User s Manual This chapter describes how to solve troubles you may face 4 1 If you cannot find USB driver when you connect PC to the kit Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if you installed Starter Kit USB Driver in 1 2 Installation of Development Tools If not install the driver Check Point 3 Check if the settings of SW5 on the kit are correct with referring to 1 3 Installation of USB Driver Check Point 4 If above 3 check points are confirmed disconnect the USB cable from PC and re connect again It should show the Found New Hardware Wizard wizard Operate the installation with referring to 1 3 Installation of USB Driver After the installation make sure you go through 1 3 3 Co
25. ELE 09 i ces Wi 4 bod ka op comm JAAAAAARAL EB E rra UE E ma y Rai SM D Deno 1 24 amp 3 4 i Other 3 211 110117111 I s G e s s s s s s s SW5 SW6 When you press SW5 the segment of 7segLED blinks When you press SW6 number is displayed in 7segLED and it starts to count down After a while it stops and blinks Q You could confirm the sample program is working 2 46 TK 78KOR KE3L User s Manual 2 11 Stop Programs Now you are going to stop the program Click the stop button or select on menu bar then Stop 2 ID78KOR QB E2 SAMPLE KE3L prj gil Edit View Option Run Event Browse Jump Window Help pM gt mms lake Ba t 30urce main c Search Watch Quick Refresh Close EIQ while lt 1 lt g_start g_led_s TDROG 0x0020 Count down TMMKOG 1 TMA PIFG 5 PMKG 8 RICIF 8 RICMK 8 us 4 start x 7 PMKG 1 RTCMK 1 RICIIF 8 RTCIMK 8 PIF2 8 PMK2 8 m undas 4 start start amp sp 2 Stop the program 2 ID78KOR QB EZ SAMPLE KE3L prj File Edit View Option Run Event Browse Jump Window Help gt BRM Be E t 8 Source mai
26. Options window and see following settings Linker Options X Output D utput Library Others w Create Link File p Output File Name amp Browse Output Map List km Output Directive File Image kd Output Public Symbol List kp Output Local Symbol List kl Form Feed at End of List File If Lines per Pagel ll v User Option Bytes gb H SS Select mirror area 0 mil C 1 mil Command Line Options na Imf 1024 qii FFFFFFFFFFFFFFFFFFFFh pa map ab tlFFFFh lib bel r lib belbrmf lib D SPragram Files NEC Electronics z Cancel Apply Help User Option Byte Check User Option Byte and then enter OOFFFF Here you can do the setting of watchdog timer low voltage detector and system reserved memory area The 3 bytes you entered are stored at COH C2H on flash memory COH setting for watchdog timer setting for low voltage detector C2H setting for system reserved memory area must be set as FFH This time you disabled the watchdog timer and the default start function of low voltage detector For details refer to the user s manual 78KOR Kx3 L U19291E 33 TK 78KOR KE3L User s Manual 2 5 Set Compiler Options The compiler options have been set by project file How
27. Users Manual TK 78KOR KES3L Date published November 2008 Rev 1 0 TESSERA TECHNOLOGY INC 2008 Printed in Japan TK 78KOR KE3L User s Manual Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries The information is subject to change without notice No part of this document may be copied or reproduced in any form or by any means without prior written consent of TESSERA TECHNOLOGY INC TESSERA TECHNOLOGY INC assumes no responsibility for any errors that may appear in this document TESSERA TECHNOLOGY INC does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of TESSERA TECHNOLOGY INC products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of TESSERA TECHNOLOGY INC or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer TESSERA TECHNOLOGY INC assumes no responsibility for any losses incurred by custome
28. created in the directory you specifies when you create a new workspace What is a project group A project group is a group comprised of a number of projects in an application system The target device of each project must be the same within a project group What is a workspace A workspace is the unit used to manage all the projects and project group required for one application system A workspace file contains one or more project files The file name format is xxxxx prw 28 TK 78KOR KE3L User s Manual 2 3 Load Workspace project In this section you will use the workspace that you created in 1 4 Sample Programs For creating a new workspace refer to Chapter 5 Other Information The workspace has information about the build environment for the sample programs Select File on menu bar and Open Workspace Then select SAMPLE prw under the directory TK78KORXSAMPLE KE3LY In xl File Edit Find Layer View Project Build Tool Window Help Mew T m G MAC ADDR tt BE 9 Open Ctrl O Insert File v L xui Ex 4 Close 4 Open Workspace U Glase Workspace Saye Save As Ghange Source File Mare Save All Source Files Print Preview Print Ctrl P Recent File Recent Workspace Exit PM Open an existing workspace us ES 2 Open Workspace Look in SAMPLE t
29. ctually 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 Erase microcontroller built in flash memory 4 2 3 The on chip debug function had been disabled in the device F0c79 This error occurs when the value at address C3H On chip debug option byte in microcontroller built in flash memory is incorrect You need to erase the flash memory Check Point 1 Check if you actually set the correct on chip debug option byte with referring to 2 4 Set Linker Options If it is not correct then set correctly Check Point 2 Erase the flash memory with referring to 5 4 Erase microcontroller built in flash memory 4 2 4 Disabling the on chip debug function is prohibited F0c33 Basically this error occurs when you start download the debugger without doing the settings described at 2 4 Set Linker Options Do the same checking processes as 4 2 3 The on chip debug function had been disabled in the device F0c79 58 TK 78KOR KE3L User s Manual This chapter explains some useful operation techniques of development tools and circuit diagram of the kit for developing of user programs 5 1 Create a new workspace project 5 2 Register additional source Tile 6 3 Debugger tips 6 4 Erase microcontroller built in flash memory 6 5 Circuit diagram 59 TK 78KOR KE3L User s Manual
30. ed to P32 SCK10 SCL10 INTP2 pin in microcontroller When you push the switch it becomes Low and when you release the switch it becomes Open Before using this you need to set the microcontroller built in pull up option resistor PU32 to ON For details about settings for microcontroller built in pull up option resistor refer to 78KOR Kx3 L User s Manual lt U19291J gt 3 2 7 JP1 JP1 is the jumper short pin to select power supply JP1 Use USB power supply from USB1 connector Use external power supply from CN1 or CN2 3 2 8 JP2 JP2 is the jumper for measure the power consumption of microcontroller When you use the demonstration set it to 1 2 3 4 short When you do not use the demonstration set it to 1 3 short 53 TK 78KOR KE3L User s Manual 3 2 9 Q4 Illuminance Sensor Q4 is an illuminance sensor that is connected to P80 CMPOP INTP3 PGAI pin of the microcontroller When it gets lighter the voltage increases and when darker the voltage decreases Before using this you need to set the microcontroller P80 CMPOP INTP3 PGAI pin to programmable gain amplifiers input pin For details about register settings for microcontroller refer to 78KOR Kx3 L User s Manual lt U19291J gt 3 2 10 U10 U12 7segLED U10 and U12 are 7segLED By setting the 7segLED output data in 20 27 and setting POO or from Low to High the data is latched and the 7segLED displays the data 20 2
31. emory Mapping Access Size BBit Memory Attribute Mapping Address Target Delete Add 42 TK 78KOR KE3L User s Manual Click when the confirmation dialog for downloading load module file is opened ID78KOR QB B Download 1 43 TK 78KOR KE3L User s Manual 25 ID78KOR QB E2 SAMPLE KE3L prj File Edit View Option Run Event Browse Jump Window Help it me gt a er a EBM BE 343 m t pe Ini When the download is EE NI watch Quick Refresh Close comp eted the source code will be displayed EIQ while 4 start 8 1 led s 0 TDR8B 0x0020 Count down 1 TMA PIF 8 INT PMK 8 INT RICIF RTC RICMK RTC nates g_start x 7 LED brink PMKG 1 INT RTCMK 1 A RTC RICIIF 8 RTC RTCIMK 8 RTC PIF2 8 INT PMK2 8 A INT v while 4 start 1 start amp sp 2 i main c 22 m Z NOTE Completion of the download does not mean running the programs Therefore even though you press SW1 on the board it does not make anything happened To run the demonstration see 2 10 Run Programs 44 TK 78KOR KE3L User s Manual 2 10 Run Programs Now you are ready to run the prog
32. ever because some compiler options are useful following two settings are covered specifically in this section Enable C comments Use multiplier and divider 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 X Preprocessor Memory Model Data Assign Optimize Debug Output Extend Others Startup Routine Assign Change Source Regulation Disable E tensions andad a Enable C Comment Ignore from Till End of Line zp Comment Can Mest zc Kani Code of Source 5JIS zs Not Expand Argument and V alue zb C EUC ze C Mone zn Command Line Options Apply Help 34 TK 78KOR KE3L User s Manual 2 5 2 Startup Routine Tab Select Startup Routine tab and check Using Library and Using Multiplier The 78KOR Kx3 L has feature of multiplier to increase those calculation speed Compiler Options 35 TK 78KOR KE3L User s Manual 2 6 Create Load Module Files After developing the source code you have to create load module files by compiling assembling and linking This process is called build Click the build button or select Build on menu bar then
33. file Mame 7681009 Format 0419 Version W100 Processor Ver 0200 Load file Mame Date Area Connection to device Port GOMA Speed 1152006 Range Chip Freq Internal Osc Multiply 1 00 F Erasing the flash memory is completed when chip erase finish is displayed like below screenshot WriteEZ4 File Device View Help b gt COMMAND Erase Flash Blank Check ine Flash Erasing chip erase finish 75 D 8F1009 Firm Version 1 00 ExtCode EFO4 DF Dh Vendor 10h Parameter file Mame 7681009 Format 0419 W Version 00 Processor 0200 Load file Mame Date Area Connection to device Port GOMA Speed 1152006 Range hip Freq Internal Osc Multiply 1 00 m TK 78KOR KE3L User s Manual 5 5 Circuit diagram From following page it shows the circuit diagram of the demonstration kit 76 aa asn SL d LEM OM9GXL OM9GXH vas LZM 02 LLMS OLMS aa asn aa asn TK 78KOR KE3L User s Manual SOMSQXL v 705 Vas SSA aa asn S0 9QXH aa asn 46200501 JequinN 1ueunooq 00960225555 009225555 5 6 8 Ld LNI 9QXL Evd 9 xu rrd Od LNI OOOIL OEd Std dLNI 00OL OLOLL LEd
34. function list When you wish to see source file list or function list select Browse on menu bar then Other gt List to open the list window The information in the windows is synchronized Therefore it is not just for referring to the list but it is useful when you wish to update files or functions st E Source 19 A pid 003 Search lt lt gt gt Watch Quick 67 TK 78KOR KE3L User s Manual 5 3 3 Set delete breakpoints Breakpoints are executed by clicking lines in which is displayed is displayed in the line where a breakpoint is set Breakpoints are deleted by clicking HE Source main c UCHAR buffl UCHAR t butt ee T 68 TK 78KOR KE3L 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 Right click the variable on source window then select Add Watch Source TGK R Vnice c ucPlau amp Sts IIB stop Led Mix ug a utput count tatic lUi amp output 2 1 TEE tatic 8 PlayMode u32 Symbol u32 uilntCoun U16 usKeyStsC Break when Access Us Break when Write 4 mi Break when Read fr 2 Add Watch dialog o
35. he TK 78KOR KESL and Sample program Sample program to check the development tools TK 78KOR KE3L User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package The attached CD ROM includes the development tools and documentations Users can use the installer to install those development tools and documentations 1 2 2 Installation of Development Tools D Please insert the CD ROM in the drive The installer will show up automatically If it does not start automatically please initiate it by double clicking the SETUP EXE TK 78KOR KE3L Setup TECHNOLOGY TESSERA Minimum Installation Users who use assembly C language Full Installation for development TK 78KOR KE3L Open Demonstration Directory User s Manual View CD ROM with View Document List Windows Explorer 2 Click Minimum Installation or Full Installation button TK 78KOR KE3L User s Manual Tool Installer dialog box is opened Select products that you need to install as default all the products that you need to use the TK 78KOR KE3L 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 S
36. ication mode Swi KOUSB SW EXT KOUSB SW3 1 SW3 3 All OFF All ON All OFF SW3 4 SW3 8 Any Any JP I JP2 1 2 3 4 Short 1 3 Short 1 3 Short 72 TK 78KOR KE3L User s Manual Click the setup button zi writeEz4 gt gt FlashOpennine Flash Open OK Click PRM File Read button E Device Setup Chip star 1 Block z Area Show Address 73 TK 78KOR KE3L User s Manual 3Select 78F1009 prm under the directory C XProgram Files NEC Electronics ToolsXWriteEZ4XV 1 02 WriteEZ4 PRM78F1009 V100 ET PT J LEDS PAD C PRM78F1009 V100 t 78F1006 prm 78F1007 prm 78F1008 prm 78F1009 prm FFA HARUM 28 21009 10 APT Files Sat I Select the COM port that TK 78KOR KE3L is connected E Device Setup Standard Advance Parameter file 78F1 PRM File Read Host connection Supply oscillator Port Frequency Interna 050 Speed 15200bps Multiply rate 00 Operation Mode e Chip Start 000 r Block End Area Show Address Target Reset Message OK 74 TK 78KOR KE3L User s Manual 5 Click Erase button write Ez4 File Device View Help P FlashOpennine Flash Open OK gt COMMAND Device Setup PRM File Read OK Mame Firm Versioni ExtCade Vendor Parameter
37. ick menu mo PM test prw Project Window Oj x File Edit Find Layer View Project Build Tool Window Help s DEH amp la X Be G vac aon gt IONS ptions Add the source file to the project je es Lh Ko Lm 2 Add Source Files test Look in test b c Files of type Source Files c Help Add Files from Folder File name Multiple source files can be selected by clicking them with pressing key 65 TK 78KOR KE3L User s Manual test prw Project Window p E 66 TK 78KOR KE3L User s Manual 5 3 Debugger tips This section describes some useful techniques for the debugger ID78KOR QB E2 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 mt oo EE In this case select Options on menu bar then Debugger Options Check Pictures and Text on setting area With this setting the buttons display the text as well so that it is easier to know what they are mr om E Ret Step Ower Res Open Load Proj sro Weh Reg SFR Lac 5 3 2 Display source list and
38. itor program the flash memory area that the debugger uses for on chip debugging In this case the Control value is allocated to the address of C3H in flash memory and FFH is set to the next address Because of this the following areas could not be set the segments Address area that reserved by on chip debugging 2H 3H CEH D7H From the address set in Start address to the byte set in Size Security ID Check Security ID and enter the security ID which is a unique ID code 10 bytes to authenticate when the debugger is launched The security ID is stored in the flash memory CAH CDH and checked if it is the same as the code entered in Linker options dialog when the debugger is launched The debugger will not be launched when the security ID is unmatched By using this function you can secure the programs from leaks If you do not need to set the security it is recommended to set the security ID FFFFFFFFFFFFFFFFFFFF as this is the initial code If you forget about the security ID stored in the address of C4H CDH or if you set wrong on chip debug option byte you will not be able to use the debugger ID78KOR QB EZ In this case you can erase 78KOR KE3 L built in flash memory with WriteEZ4 to connect with ID78KOR QB EZ For details refer to 5 4 Erase microcontroller built in flash memory 32 TK 78KOR KE3L User s Manual 2 4 2 Output2 Tab Select Output2 tab on Linker
39. le and then closes the ID 8KOR QB EZ It is recommended to save the settings as it saves the window you used window size layout etc If you click it does not save the settings and closes the ID 8KOR QB EZ 48 TK 78KOR KE3L User s Manual 2 13 Quit PM Select File on menu bar then Exit PM PM SAMPLE KE3L prw OutPut File Edit Find Layer View Project Build Tool Window Help E MEM C EL Open J Rts Insert File Debug Build Close New Workspace C Program Files NEC Electronics Toolsi RA7SKOR W1 31 bin 1 7 Open Workspace EIC Link complete error s and 0 warning s found C Program Files NEC Electronics Toolsi RA78KOR U1 31 bin oc78k0r exe ose Workspace Object Conversion Complete 0 error s and D warning s foun Save Ctrl 5 Save As Build Total error s 0 Total warningis 0 Change Source File Mame Download C TK7SKOR SAMPLE KE3L a lmf to the debugger EOF Save All Source Files Print Preview Print Ctrl P Recent File 1 SAMPLE O Exit Exit and prompt to save the files L 1 39 8 4 is closed The experiences section ends now You can find more information how to use the development tool and information about other useful features in Chapter 6 Other Information 49 TK 78KOR KE3L Use
40. mpletion of USB Driver Installation to confirm the USB driver installation 4 2 Error when you start the debugger There could be several reasons to make errors happen The solving processes differ depending on errors Please check the error message first The solving processes for each error are as follows 56 TK 78KOR KE3L User s Manual 4 2 1 not communicate with Emulator F0100 or 0109 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 SW5 on the kit are correct with referring 1 3 Installation of USB Driver Check Point 3 Confirm the USB driver installation with referring to 1 3 3 Completion of USB Driver Installation Check Point 4 If above 3 check points are confirmed close the debugger and disconnect the USB cable from PC Re connect USB cable properly to both the PC and the kit and then re start the debugger 57 TK 78KOR KE3L User s Manual 4 2 2 Incorrect ID Code Ff603 This error occurs when the security ID stored on microcontroller built in flash memory is different from the ID code you entered at the start of debugger Security ID entry area at the start of debugger ID Cade Check Point 1 Enter correct security ID and click OK on the configuration window Check Point 2 If you forgot the security ID you have to erase the microcontroller built in flash memory Before erasing check if you a
41. n c Search gt gt Watch Quick Refresh Close _ 1 lt while g_start 8 g_led_s 0 TDROG 0 0020 Count down 1 A TMA PIF PMKG A3 RTCIF 8 RTCMK 8 s PMK2 8 hatt 4 start 1 X start amp sp 2 5 gt AUTO When the program stops the status bar changes back to the original color 47 TK 78KOR KE3L User s Manual 2 12 Close Debugger ID78KOR QB EZ Select File on menu bar then Exit 29 ID78KO0R QB E2 SAMPLE KE3L prj File Edit View Option Run Event Browse Jump Window Help Open Ctrl O x ma 24 aaee mar B v Close EM xd Download Refresh Close Load Module Upload s Project Environment Debugger Reset ed s 8 ROA 0 0020 Count down TMA X Je Exit 3 gt 5 a 2 s eet 4 4 Hs main c 36 main 00488 2m 44s 387ms Manual Break PMK2 8 ZZ INT while g start 154 start amp sp 2 Y M The exit confirmation dialog is displayed IDTEKOR OE M q 7 This will end your Debugger session Do you want to save the settings in the project File gt cma If you click it saves the settings in the project fi
42. n menu bar then Linker options 2 4 1 Output Tab Select Output1 tab on Linker Options window and see following settings Output Dutput2 Library Others Load Module File a Output File M ame af Browse Output Symbol Infarmation 3 Create Error List File e Output File Hame Brawse elk s v In Chip Debug Option Butes ga Control Value 85 H Start Address 32200 H SIZE 024 bytes Command Line Options oa mf qa85h 3FLUOh 1024 qilFFFFFFFFFFFFFFFFFFFFh pa map gbUUFFFFh bel rdm lib bel rm lib bel rt lib C Program Electronics ez TOM eek Or z ha Cancel Apply Help 31 TK 78KOR KE3L User s Manual Load Module File settings Check Output Symbol Information This enables to do source level debugging setting break points monitoring variables in watch window etc Also you can specify the load module file name On Chip Debug Option Byte Check On Chip Debug Option Byte Enter 85 in Control value This setting enables the on chip debugging function of the microcontroller For details of Control value refer to the user s manual of 78KOR Kx3 L 0192916 See Start address is set to 3FC00 and Size is set to 1024 These settings reserve the memory address area for the mon
43. ng s found amp 3 Source Files C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe a Include Files Compilation complete 0 error s and D warning s found Project Related Files C Program Files NEC Electronics Tools CC78KOR W2 10 bin cc78k0r exe Other Files Compilation complete 0 erroris and 0 warning s found C Program Files NEC Electronics Tools RA7SKOR W1 31 bin 1 7 8 Link complete 0 error s and 0 warning s found C Program Files NEC Electronics Tools RA78KOR W1 31 bin oc78kO0r exe Object Conversion Complete 0 error s and 0 warning s founi Build Total error 8 O Total warning s 0 ID78KOR QB EZ is launched For Help press F1 14 z 41 TK 78KOR KE3L User s Manual Configuration dialog opens Set the settings shown below and then click OK Main Clock Select 20 00 Sub Clock Select 32 768 Target Device Connection Select TOOLO TOOL1 ID Code Enter FFFFFFFFFFFFFFFFFFFF F x20 Contiguration Chip Monitor Glock uPD System Internal ROM RAM User Internal ROM Internal Main Glock pis External Sub Glock Peripheral External Peripheral Break Flash Pragramming Category Timer Permit Category B Serial etc t Mot Permit Mask Low voltage Flash Rewriting TARGET RESET C On ig INTERNAL RESET M
44. nk Directive Filel Jp Click 62 TK 78KOR KE3L User s Manual New WorkSpace Step 8 9 Select Debugger Click New WorkSpace Step 9 9 Confirmation select Real Time US startup FEK register Modet 5 Link Directive Fre eH Click 63 TK 78KOR KE3L User s Manual pM test prw DutPut inl xl File Edit Find Layer View Project Build Tool Window Help D 2 Es S vac test J Source Files 21 Include Files Project Related Files Other Files Project test was registered Y 4 4 2 Make File created successfully m gt This completes workspace and project creation Additional source files can be registered at any time thereafter For details refer to 6 2 Register additional source file Also you need to do the settings for on chip debug Please refer to 2 4 Set Linker Options 2 5 Set Compiler Options and 2 7 Check Debugger Settings 64 TK 78KOR KE3L User s Manual 5 2 Register additional source file Now register additional source files The following example shows the additional registration of source files b c and with source file already registered Place the cursor on the source file in the Project window of PM and select Add Source Files displayed in the right cl
45. olsYRA7SKORVW1 31 Mbin oc78k0r exe Ob error s and 0 warning s fount warning s 0 EOF T Rikuk z Build has been completed successfully 36 TK 78KOR KE3L User s Manual 37 TK 78KOR KE3L User s Manual 2 Check Debugger Settings After the build you should configure the debugger settings The debugger settings have been set by the project file as well However because those settings are important for debugging some settings are covered in this section Select Tools on menu bar then Debugger SAMPLE KE3L prw OutPut Bl nt File Edit Find Layer View Project Build Tool Window Help m y Es Compiler Options lea Assembler Options SAMPLE KE3L SAMPLE KE3L Linker Options ihe HRE Object Converter Options Project Window List Converter Options In xi Files RUP les NEC Electronics Tools CC78EURWZ 10bin co78k r exet meager SEE tD 0 error s and 0 warning s found JAepugger ES SAMPLE KE3L 1 Project s s M SXNEC Electronics ToolsYCC78EDRNU2 1DYbiniece78kDr exe E SAMPLE_KESL Register Ex T001 nmpletE error s and warning s found Ld Source Files sla Ee SUI p lesi NEC Electronics ToolsVCC7BEORAWZ 10ibinec78k r exe Include Files bmnhlete erroris and 0 warning s found P
46. pens Click Ls MH ame Add Rade Proper Dec C Oct Bin String C Byte C Word Double Word Number 3Adding a variable to watch window is completed 69 TK 78KOR KE3L User s Manual 5 3 5 Display global variables while programs are running Global variable could be referred even when the programs are running Select Option menu gt Extended Option Follow below settings Use MINIGUBE Extended Function RAM Monitor Break When Readout f RRM Setting Redraw Interval B00 Right click the variable in watch window while programs are running then select RRM Setting Adi Delete up cm_WorkLli6 Break when Access to this Variable Break when write this Variable Break when Read From this variable Clear RRM Setting RRM Setting dialog opens Click button to complete the setting then button to close the dialog RRM Setting x Address Size Symbol Set Bytes Clase Bytes Restore MA l Bytes c Clear _ Bytes Delete 7 Bites Ce p le HE CHEN Size Total 1 16 Bytes 1 1 1 This completes the settings CAUTION The maximum size of variable area is as total of 16byte when programs are running The maximum number of variable area is 8 locations The user
47. program momentarily breaks upon a read 70 TK 78KOR KE3L User s Manual 5 3 6 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 amp L _ 5 3 7 Display memory and SFR contents By clicking the button below you can open the memory window Memory Search lt Refresh 3 4 45 6 Close T2 9 3 E 0017 F co eo 71 TK 78KOR KE3L User s Manual 5 4 Erase microcontroller built in flash memory WriteEZ4 can erase the flash memory when you forgot the security ID or you set unexpected value By erasing the flash memory you can reset the security ID to FFFFFFFFFFFFFFFFFFFF Start WriteEZ4 from NEC Electronics Tools File Device View Help gt gt FlashOpenning Flash Open OK Mame Firm Versioni ExtGode Parameter file Mame Format Version Processor Ver Load file Mame Date Ghksum Area Connection to device Part Speed Range Freq Multiply O Set TK 78KOR KE3L switches to Debug Writing mode and then connect the PC Switch Jumper No Demo mode Debug Writing mode PC commun
48. r s Manual In this chapter the hardware of TK 78KOR KE3L will be explained PD78F1009 78KOR KE3 L External main system clock 20MHz Subsystem clock 32 768KHz Internal high speed oscillation 1 8 20MHz USB USB1 5V USB or AC adapter JsegL ED U10 U12 Push switch SW5 SW6 switch SW3 Universal Area Input output for operation check use Reset switch SW4 Mode switch SW1 SW2 Other hardware Power LED LED1 The name with bracket is the name printed on the board 50 TK 78KOR KE3L User s Manual 3 1 Layout of hardware functions JP1 SW1 SW3 SW2 eo o Qo o Qo NC COCA KOOS O Ee G20 0000 0 Of OK Yee MADE IN JAP 10500295 e gt y 4 9 bu SEE PA Eel 3 JP2 MEL SW4 Oe a To U10 U12 SW5 SW6 51 TK 78KOR KE3L User s Manual 3 2 Hardware Functions Following switch settings should be made depending on the mode communication Switch Jumper Demo mode Debug Writing mode d mode SW3 4 SW3 8 Not in use Any Any JP JP2 Demo mode Set this when you use pre installed low power consumption demonstration Debug Writing mode Set debug mode when you use bundled ID78KOR QB EZ Set write mode when you use bundled WriteEZ4 PC communication mode Set this when you connect to KO USB uPD78F0730 UARTS that
49. ram Click the restart button gt or select Run on menu bar then Restart The sample program runs 2 ID78KOR QB EZ SAMPLE KE3L prj View Option Run Event Browse Jump Window Help Bla m mm Ones 243 t i Te E Source main c Search ES _ Watch Quick Refresh Close EIQ while 1 g_start 8 Count down Ma BM 77 Run the sample program RTCIMK 8 PIF2 8 INT PMK2 8 INT m whiles g_start 1 XX start amp sp 2 man ci22 man 100008 Dus luo m7 2 ID78KOR QB EZ SAMPLE KE3L prj File Edit View Option Run Event Browse Jump Window Help m gt 28 E t 39 E Source main c Search Watch Quick Refresh Close EIQ while 1 gt g_start g_led_s TDROG 0 0020 Count down 1 TMA 8 PMKG 8 RTCIF B RTCMK B vidle g_start 8 v 4 start start amp sp 2 h gt When programs are running the status bar will be red 45 TK 78KOR KE3L User s Manual Check that the LED on TK 78KOR KE3L is lighted i 99 9 9 9 9 0 9 0 OOOO OOOO Bi oss oua k MADE IN JAPAN TCS00285 E 3 2 AELAL
50. roject Related Files File Compare les NEC Electronics Tools CC7 amp KOR W2 10 bin cc78k0r exe Uther Files Device File Installer amplete erroris and 0 found PM Settings NEC Electronics Tools RATSEOR W1 31 bin Ik78k r exe E 0 erroris and D warningis found Electronics ToolsEAYGEDRW1 31 5bin amp aoc 78k r exe BLE SEMI Ec sion Complete error s and O varnings fount Record the Kev Operations Play Back ror s O Total warning s D EOF Save the key Operations Load the Macro File Play Back the Macro File Register the Macro Files Play Back the Register Macro k F 4 k Change debugger settings 38 TK 78KOR KE3L User s Manual Check if ID78KOR QB EZ V3 50 78KOR Integrated Debugger is selected on Debugger Debugger Settings L STEZSK RSSAMPLE recue Suma alter Wownigad Download the Debug Target Files in the same Project Group Target mile List 39 TK 78KOR KE3L User s Manual 2 8 Check Board Settings Before connecting the and the TK 78KOR KES3L with USB you should check the setting of SW1 SW2 SW3 JP1 and JP2 on the board Set the SW1 SW2 SW3 JP1 and JP2 of the TK 78KOR KE3L as follows SW1 Debug SW2 EXT JP1 Short xd 000 e 0 0 9000000 0161072 o o 90 0
51. rs or third parties arising from the use of these circuits software and information CAUTION not give any physical damage to this equipment such as dropping not superimpose voltage to this equipment Do not use this equipment with the temperature below 0 C or over 40 C 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 user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands TK 78KOR KE3L User s Manual Contents L ON n tn UND TOIT 7 1 1 Development Tools Software eit e es be be uti st end oe es eb e ees tte 8 1 2 Installauon ot Developiient OCIS andit inerant Rede etl ea ce er ete votado rene ap o bs 9 152 Installatiot uuu u uu u sukunku 9 1 2 2 Installation of Development Tools tnb tie dosi tied as p el qao path 9 1 8 Installation ot USB Div SF 14 Lo Installation on WIHOdOWS X P za
52. 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 Microcontroller Name gt Specify the name of the microcontroller 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 60 TK 78KOR KE3L User s Manual New WorkSpace Step 1 9 Workspace Information Input the workspace information setting Workspace File as follows fet gt gt 1 Workspace Information r 2 Select Tools Create Blank Workspace Workspace file Folder 3 Select Real Time 05 test o 4 Startup File seater repay ene Register E Link Directive File ft Folder Microcontrollers Name Device Name T Setup Source C test 78K OR uPD78F1009 64 8 Select Debugger 3 Confirmation Project Group Name 8 V 850 Microcontrollers Only 4 5 no input Microcontroller Name 78KOR This will set up the basic information about the workspace and the project Device Name uPD78F1009 64 Cancel Click button
53. ssociated media printed materials and online files or data By installing and using the SOFTWARE FRODUCT you agree to bound by the terms of this ULA F do nat agree to the terms of this ULA do nat install or use the SOFTWARE PRODUCT Do you accept all the terms of the preceding License Agreement install this product you must click Yes to accept If choose No Setup will exit lt Back gt Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard E Please enter the praduct ID of the product X Enter Product ID Product ID ig written an the case or in the accompanying documents Product ID InstallShield ST lt Back Net Cancel 7 It starts copying the files 11 TK 78KOR KE3L User s Manual Click when Select Files installation wizard dialog opened 9 When the installation is completed the following dialog opens Click NEC Electronics Starter Kit Virtual UART USB driver must be installed on PC before you connect to TK 78KOR KE3L Install the USB driver by referring 1 3 Installation of USB Driver 12 TK 78KOR KE3L User s Manual Notes on the installation authority To install this tool in Windows 2000 or XP the authority of an administrator is necessary Therefore please login as an administrator Notes on the install direc
54. tart Menu gt Programs gt NEC Electronics Tools s Tool Installer NW Iv DewiceFile Install I FIND OOO DeviceFile DF781003 1 10 Search Tool Install Tools Product We 10 12 1 LCTSEDR 2 10 Documents 14 588KB SKTBEDR V3 10 g44K B SKTBEDR V310 Documents z 056KB RATSKDR w1 31 B BB4KB 7 371 Documents 11 7 PM VB 1 Documents 12 B53BKB xl E plain Drive Available Space mj 13 302 B12KB Destination Required Space C Program Electronics Tools Browse 4 Click when Install comfirmation dialog box is opened INSTALL x M 22 Install the Tools and DeviceFile Cancel 10 131 250KB TK 78KOR KE3L User s Manual 5 Read software license agreement and click for continuing the installation To stop the installation click Software License Agreement Please read the following license agreement Scroll down to see the rest of the agreement USER LICENSE AGREEMENT IMPORTANT READ CAREFULLY This User License Agreement is a legal agreement between you either a natural person or an entity and MEC Electronics Corporation 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 a
55. tory Please do not use 2 byte characters such as umlaut in the directory name where the product is to be installed Note on the version of Windows If the language of the Windows is not English a file transfer error during installation might be observed In this case please abort the installation in the language and re install it in an English version of Windows The identical problem may be observed if a language other than English is specified as the system language in the Regional Settings Properties tab Assembler RA78KOR and C compiler CC78KOR limit the object size to 64 Kbyte 13 TK 78KOR KE3L User s Manual 1 3 Installation of USB Driver NEC Electronics Starter Kit Virtual UART USB driver must be installed on PC before you start using the TK 78KOR KE3L Please follow the instruction below to install the driver Starter Kit USB Driver must be installed on the PC If not please refer to 1 2 Installation of Development Tools to install the driver first CAUTION Do not use a USB hub for connecting TK 78KOR KE3L 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 3 1 Installation on Windows Windows 2000 gt 1 32 Installation on Windows 2000 After the installation go to 1 3 3 Completion of USB Driver Installation 14 TK 78KOR KE3L User s Manual 1
56. y device recommended Display a list of the known drivers for this device so that can chod driver 18 TK 78KOR KE3L User s Manual 3 Select Specify a location Click Found New Hardware Wizard Locate Driver Files Where you want Windows to search for driver files Search far driver files Far the following hardware device 7 USE Device bee for suitable drivers in its driver database on your computer and in optional search locations that you specify Select Specify a location lick M ext IF vau are searching an a floppy disk or drive before clicking 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 Files NEC Electronics ToolsYTK driver as default installation If the installation directory is not default then select under the installation directory Click Found Mew Hardware Wizard Insert the manufacturer s installation disk into the drive selected and then click Cancel Select the driver directory Click manufacturer s files from C AFrogram NEC Electronics Tools T F driver v 19 TK 78KOR KE3L User s Manual 5 Click Driver Files Search Results The wizard

Download Pdf Manuals

image

Related Search

Related Contents

Aton CLT615 isdn  LANCOM WLC-4006 LANCOM WLC-4025  HIMAX C 3516-0840 C 3516-1130 C 3516-1350 Anleitung  アステオ床排水  LC-Power LC-25U3-7W storage enclosure      LK300TV - Support  

Copyright © All rights reserved.
Failed to retrieve file