Home
User`s Manual 78K0/Lx3 - See it!
Contents
1. 26 4T OCD via TK 78 debug 26 4 2 OCD via QB MINI2 27 5 8KO LX3 See it installation and operation reuse 28 5 1 chica rli NM UI IM M 28 Ski CROM COMEM E a 28 Hardware 29 SoftWare installation siena cae ordo aura bv rei eaa Pun fa xS 29 User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 7 1 Systems Embedded Workbench for 78K installation 29 7 2 WriteEZ3 FLASH programming GUI 29 7 3 Sample program 29 7 4 USB Driver Installation mE 30 7 4 1 Installation on Windows 99SE Me a 30 7 4 2 Installation on Windows 2000 eoe in oot E I petes 32 74 0 Anstallalonor VVIDdoWS aes Soi cee te tonto FG Ri nee iot 38 7 5 Confirmation of USB Driver Installation 43 7 0 DrIVer GEINStallAalO is c E 44 8 WriteEZ3 FLASH programming software ccccccssseesesseeeeeseeceesseseenseeeoseeseenseesenseesones 46 01010 0 46 8 2 Starting up the GUI 50 46 8 3
2. 0 ENOO Tol alalalalala mn Pom rn 9e 851 NI 4 bard heard d NININININ N Oleo O O D 6 O tb VVVVVVVVVVVYY 21383 SOF 22 VVAA A 110 0092339090000 013538 213538 mm m m x ITI ITI TI ITI ITI TI ITI VSQ vS C Vd0Ol LV 0000550000000 uroni 1000 RAONGGHOANGA AG punowun 8H 99 7 ZL94S 00ld oo MEER LLO3S 6d 4 E z 693S 16d 5935 43 GER 7 193S t8d 9035 89 493 7 2998 Er 7 35 08 dum 8935 1000 925 eia 2945 9109 ee SNOS LO3S SWOO 53 00 0935 vNOO ENOJ 9 anyo S8 as ZWO9 9 Ss LWOO ONOS 19 an SS 39 E 95 SSAV 222 D Z 0 ROVONONS 3504 92 Co 5 2 9 541 ZZZZZZZZ VIICT 3 ASCI3nL v aan zm lt lt s 11122000112 P EPEeTEPaAadna lt 90X1 gt 0VOS 9ld gt 90 05 1 OGXL IOLOS ElLd NMOQ Ud UN 1 37 HZLLLOd HSNd F oee NMOQ ord 19919
3. OLIM DUI 78 12 2 COE ud rc Reed 78 123 78 12 4 HemoleControl Sample siiis iie ceri noeud Evo aeo E PH 78 125 Temperature 2 2 0 ines DERE 78 126 VOMMEIEr SAMPIO est 78 187 OI E 79 13 1 USB Interface cable MIRI B 79 User s Manual U18759EE2VOUMOO 78K0 Lx3 See it 80 List of Figures Figure 1 78KO LX3 See it system configuration 13 Figure 2 78KO Lx3 See it board connectors and switches top VIEW 14 Figure 3 Connector USB1 USB Mini B Type Host Connector Pin Configuration 19 Figure A EGD 20 Figure 5 Connectors T1 T13 and wrap 23 Figure MeEMOry 00 00 00 25 Figure 7 Ornsohip Debugdlti 2 r 26 Figure 8 Add New Hardware Wizard Windows 985 30 Figure 9 Search Method Windows 985 issie a a a a e a aa 30 Figure 10 Search Location Specification Windows 985 31 Figure 11 Checking Driver to Be Installed Windows 985 31 Figure 12 Installation Completion Windows 985 32 Figure 13
4. Date 2007 05 24 16 12 08 Chksum 05 Ch Area OOO000h Q00F53h Connection to device Port Speed 115200 Range Chip Freg 6 00 Multiply 1 00 Select File Quit to terminate the GUI software All settings executed so far are saved in the WriteEZ3 INI file so that those settings can be reused when the GUI software is restarted Execute the VOLTMETER application Set the 78KO Lx3 See it board to the normal operation mode QB MINI2 mode gt Plug and Play the 78KO Lx3 See it board to start in normal operation mode or press the reset button SWA to release the normal operation mode Restarting the GUI When the system is restarted the same screen as shown in Figure 65 After Downloading appears User s Manual U18759EE2VOUMOO 67 78KO0 Lx3 See it NIEC 10 TROUBLESHOOTING In driver installation recognition based on Plug and Play is disabled Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector then insert the USB connector again after a while The driver file cannot be found at a specified location Cause The WriteEZ3 FLASH programming software may not be installed correctly Action Install the GUI software again by referring to CHAPTER 7 Software Installation In checking by D
5. File Read Figure 44 Parameter File Selection Window Look irr Cy t ri File name am Files of type PRM Files PRM Cancel 27 PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open User s Manual U18759EE2VOUMOO 52 78KO0 Lx3 See it NIEC 2 Host connection 3 Host connection is used to select a channel for communication between the 78KO Lx3 See it board and host machine Figure 45 Device Setup Window Host connection Host connection Port speed 1415200 Port list box Select a channel for communication between the 78KO Lx3 See it board and host machine e COM1 to COM256 Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 7 6 Confirmation of USB Driver Installation Speed list box Select a communication rate for the selected communication channel from the following e 9600 bps e 19200 bps e 38400 bps e 115200 bps Remark For selectable communication rates refer to the users manual of the device used Supply oscillator Supply oscillator is used to select a clock that determines programming data transfer and a transfer rate Figure 46 Device Setup Window Supply Oscillator Selection Supply oscillator Frequency MHz Multiply rate Frequency box Sets the clock frequency of the target system
6. Doc C WriteEZ3 WriteEZ3 FLASH programming software L Drivers USB driver L WriteEZ3 WriteEZ3 setup directory Ld PRM PRM parameter files 1 JAR Embedded Workbench 78K IAR Embedded Workbench for 78K L SamplePrograms Sample programs for 78K0 Lx3 See it Table 16 78KO Lx3 See it CD ROM directory structure User s Manual U18759EE2VOUMOO 28 78KO0 Lx3 See it NIEC 6 Hardware installation After unpacking 78KO Lx3 See it connect the board to your host computer using the provided USB interface cable When 78KO LX3 See it is connected the USB driver needs to be installed on the host machine Please refer to the following CHAPTER 7 SOFTWARE INSTALLATION 7 Software installation The 28 See it package comes with several software demo packages Systems Embedded Workbench for 78K including C compiler assembler linker librarian and IAR C SPY debugger simulator WriteEZ3 FLASH programming software Sample program The IAR Systems Embedded Workbench and the WriteEZ3 FLASH programming GUI must be installed on your PC For detailed installation hints refer to the following chapters and to the corresponding documentation of the IAR Embedded Workbench 7 1 IAR Systems Embedded Workbench for 78K installation To install the IAR Systems Embedded Workbench for 78K including C SPY debugger simulator select the SETUP program in the directory Embedded Workbench 78K ew78
7. Files ID cod Time unit E 78K0Lx3 SEEIT SAMPLES is IEEE s Ha Ib Buzzer Debug NES Debug ealTimeClock Debug GET Sub clock RRemoteControl Debug SOT Temperature E Debug Clock board flock board Voltmeter Debug Erena Dotat System C System voltmeter c 2 MHz z kHz Output are clock Monitor clock Peripheral break Target Target power off System Disabled Connect Permit User C Enabled C Not Connect Not Permit mask r Fail safe break TARGET RESET View setup INTERNAL RESET Memory map Start address Length Overview Buzzer KitchenTimer RealTimet 7 Internal ROM 00000 OxEFFF Internal ROM Kbytes OxF 400 Internal Extended RAM 1024 bytes OxFBOO OxFEFF Internal RAM 1024 bytes Messages Building configuration Voltmeter Updating build tree Configuration is up to date Ready Errors 0 Warnings 0 NUM A Figure 72 TK 78 hardware setup menu User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC Now the debugger is started and the demo project is downloaded to the 78KO Lx3 See it board The progress of downloading is indicated by blue dots in the TK 78 Emulator window Please note downloading of larger executables can take some time alo x
8. Tell me why this testing is important Continuing your installation of this software may impair destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation User s Manual U18759EE2VOUMOO 41 78KO0 Lx3 See it NEC 8 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 32 USB Serial Port2 Driver Installation Completion Windows XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for USB Seral Click Finish to close the wizard Finish Cancel Users Manual U18759EE2VOUMOO 42 78KO0 Lx3 See it NEC 7 5 Confirmation of USB Driver Installation After installing the two types of drivers check that the drivers have been installed normally according to the procedure below When using the 78KO Lx3 See it board in combination with the C SPY debugger and the WriteEZ3 FLASH programming GUI the information to be checked here is needed By clicking the Device Manager tab check that the drivers are installed normally Figure 33 Device Manager L Computer Management File Action View Window Help lm xl gt 6 2 m Computer Managemen
9. File Edit View Project Tools Window Help Da E mo 5 ex break case 0x01 LCD string char amp s l6bit 0 sizeof s l 6bit break E 78K0LX3 SAMPLES G Buzzer Debug v eme Debug Ib RealTimeClock Debug v RemoteControl Debug 4 P SS SE ei v v S Temperature Debug La ej Voltmeter Debug Module main Description main module voltmeter c void main void C3 Output o dist Downloading application Initi 0x01 Set main system clock and peripheral hardware clock 0575 0x05 Set minimum oscillation stabilization time Initialization of ports PM4 port input setting P46 42 KR6 2 P4i RIN Buzzer KitchenTimer RealTimeCloc 4 fo 77 enshle rea akar Building configuration Voltmeter Debug Updating build tree Configuration is up to date Ready Wanns NMM Figure 73 IAR project download User s Manual U18759EE2VOUMOO 75 78KO0 Lx3 See it NEC After the download was completed all debug features of IAR C SPY debugger are availabl
10. List Contig Assembler Linker command file Custom Build Build Actions Debugger IE 78 IECLIBE default program entry MIMICLBE f Enty label program start Simulator Defined by application TK 78 Search paths one per line TODLKIT DIRSALIB Haw binary image File Symbol Segment Align ee Cancel Figure 71 IAR Linker options User s Manual U18759EE2VOUMOO 73 78KO0 Lx3 See it NEC Now after everything has been setup correctly it s time to compile and link the demonstration project Close the Options menu and select Rebuild from the Project menu If the project is compiled and linked without errors it can now be downloaded to the 78KO LX3 See it board and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the Debugger button In the next step the TK 78 Emulator has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration as show in the figure below and start the download by pressing the OK button IAR Embedded Workbench IDE Oj File Edit View Project Tools Window Help 14 Voltmeter Debug 4 4 eee AR
11. User s Manual 78K0 Lx3 See it Demonstration Kit for the 7840 L Series Document U18759EE2VOUMOO Date Published July 2007 O NEC Electronics Europe GmbH 78KO0 Lx3 See it NEC The information in this document is current as of date of its publication The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC sales representative for availability and additional information No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such NEC Electronics products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconduc
12. gt gt Flashlpenning 1 Toolbar command Checking the Toolbar command displays the toolbar Unchecking the command hides the toolbar 2 Status Bar command Checking the Status Bar command displays the status bar Unchecking the command hides the status bar User s Manual U18759EE2VOUMOO 58 78K0 Lx3 See it 8 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 55 Help Menu WriteE23 File Device View Help GB amp About FPL3 f XN gt gt Flash Open 1 About WriteEZ3 command The About WriteEZ3 command opens the program entry window as shown below and indicates the version Clicking terminates the display Figure 56 About WriteEZ3 Window WriteEZ3 User s Manual U18759EE2VOUMOO 59 78KO0 Lx3 See it NEC 8 5 Programmer Parameter Window This window displays the settings of the programming parameters Figure 57 Programmer Parameter Window Device Firm Wersion ExtCode Vendor Parameter file Mame Format Version Processor Wer Date Chksum Area Connection to device Pott Speed Range Freq Multiply Device Updated after communication with the target device to display information about the target device Parameter file Updated after Setup command execution to display in
13. 3 5 External A D measurement input connector 2 17 3 6 IDD measurement connector cc na 17 3 7 External power supply input connector J5 eese 17 3 8 External main oscillator b Og comu vend eaa ei 17 3 9 QB MINI2 connector 18 3 10 USB interface connector USB 1 dae rae Cil Ce det la 19 S11 260107224 SEGMENUECD 2 2 aor 20 3 12 External LCD resistors HH T HI us vr dens SU de 22 5 19 Temperature 560 50 e 22 3 14 IR receiver module U4 22 3 152 22 BUZ aia a a a aaa 22 316 POWGLLEED LEED T ou a e a n a 22 3 17 Connectors T1 T13 and wrap 23 2218 24 7860 70 25 4 ON CHID 060
14. Command options This dialog box is used to specify the WriteEZ3 flash processing command options Figure 50 Device Setup Window Command options Command options Read verity after Program Security flag after Program Checksum after Program Blank check before Erase check box If this check box is checked blank check is made before the Erase command or EPV command is executed If the result of a blank check indicates OK erase processing is not executed Read verify after Program check box If this check box is checked write data is sent from the programmer after execution of the Program command and EPV command then the data is verified against the data written to the flash memory Security flag after Program check box If this check box is checked automatic programming of the selected security flag is executed after execution of the Program and Autoprocedure EPV commands User s Manual U18759EE2VOUMOO 55 78KO0 Lx3 See it NEC Checksum after Program check box this check box is checked the flash memory checksum value of the target device is read from the target device after execution of the Program command and EPV command This value differs from the value displayed in the parameter window of the main window lt 2 gt Security flag settings The lt Security flag settings gt dialog box is used to specify which security function is valid Figure 51 Device Setup Window Securi
15. Found New Hardware Wizard 1 Windows 2000 32 Figure 14 Search Method 1 Windows 2000 33 Figure 15 Driver File Location 1 Windows 2000 33 Figure 16 Address Specification 1 Windows 2000 34 Figure 17 Driver File Search 1 Windows 2000 34 Figure 18 USB Driver Installation Completion 1 Windows 2000 35 Figure 19 Found New Hardware Wizard 2 Windows 2000 35 Figure 20 Search Method 2 Windows 2000 36 Figure 21 Driver File Location 2 Windows 2000 36 Figure 22 Address Specification 2 Windows 2000 37 Figure 23 Driver File Search 2 Windows 2000 37 Figure 24 USB Driver Installation Completion 2 Windows 2000 38 Figure 25 Found New Hardware Wizard 1 Windows 38 Figure 26 Search Location Specification 3 Windows 39 Figure 27 Windows XP Logo Testing Windows 39 Figure 28 USB Driver Installation Completion 1 Windows 40 Figure 29 Found New Hardware Wizard 2 Windows 40 Figure 30 Search Location Specification 2 Windows 41 Figure 31 Windows XP Logo Testing 2 Windows 41 Figure 32 USB Serial Port2 Driver Installation Completion Windows 42 33 Manage ERE TE EET 43 Figu
16. KRM 0 7 enable key interrupt detection 0 m Overview Buzzer Kitchen 4 n p IZEL Log Mon Jun 18 16 26 28 2007 C SP Y Processor Descriptor for 8K and 79 5 43 Mon Jun 18 16 26 28 2007 TK 78 Emulator Driver for 7860 V4 50A Kickstart Mon Jun 18 15 25 33 2007 Download complete Mon Jun 18 15 25 33 2007 Loaded debugee vTySWStarterkitsX x3 See ithwork SamplePrograms Voltmeter Debug Exe Voltmeter d26 Mon Jun 18 16 26 34 2007 Target reset Mon Jun 18 15 25 34 2007 8 0 TK Executor V2 03 OCD Control Code v2 00 Device chipname uPD 8F0495 f0495 file version 1 00 544 tel NANNAN uv tam FAN Ever Debug Log Build x Ready Ln 309 Col 1 2 Figure 74 C SPY debugger User s Manual U18759EE2VOUMOO 76 78KO0 Lx3 See it NEC 12 Sample Projects Each of the sample programs is located in a single directory which will be called main directory of the sample This main directory of a sample contains the complete project inclusive all output files of the development tool The workspace file 78 0 SEEIT SAMPLES eww is located on top of the sample program directories All sample programs use the same directory structure ll Buzzer 78 project and output files L Debug debug output files for IAR C SPY debugger inc C header files Release release output fil
17. LAVPLLOHAPLOL MS 1 MOGLONZOATPLNS ZLOdvLOSOATPLNS v k 044 SINK 9 9 LOGPLOEOATYLNS v aen 9 8 x aa asn e MOASZLOLOATPLNS 1 lt 1 aa asn LOGrLOSOATPLNS aa asn L ono 1 lt lt b 4262414 ania dagsn wagsn P DOA Lsngo anyo anyo 1Ss gW vooxn S0S 9dLvW18 619 810 942 Lasn ON 90 L SLO anyo anyo en 642 lt 05 e MIGLOOZOATVLNS 8 gen ven aa asn S lt axy See it schematics 2 2 3 7860 1 Figure 77 81 User s Manual U18759EE2VOUMOO 78K0 Lx3 See it memo User s Manual U18759EE2VOUMOO 82
18. __ E ee Indicator field Character field Character Character Character Character Character Character 4 3 2 1 0 a A A T A A A A N Co N wo N k 5 4 3 2 1 0 4 3 2 1 0 4 3 2 1 0 4 3 2 1 0 Figure 4 LCD outline User s Manual U18759EE2VOUMOO 20 78KO0 Lx3 See it NEC ALARM AM MOON SUN Mon All FLASH symbol symbol 78KO Lx3 500 501 31 21 32 22 35 25 36 26 520 C EC MEE bit 52 52 502 EC NN 508 480 a _ 520 521 522 523 524 525 526 4 4 4 4 4 4 4 4 bit 55 95 505 405 bito 5 516 50 406 bit7 Bt3 Bt2 Bt1 BtM Battery 236 246 1 3 6 Row index Colomn index Character index Table 10 LCD segment assignment User s Manual U18759EE2VOUMOO 21 78KO0 Lx3 See it NIEC 3 12 External LCD resistors RR1 RR5 The 78K0 Lx3 See it board can also be configured to use external voltage divider resistors for the generation of the LCD drive power supplies For more details on the external resistance division method please refer to the user s ma
19. 6 Check that Search for the best driver in these locations is selected Check the Include this location in search check box enter X C Program FilesNECTools32WriteEZ3DRIVER then click Next gt Figure 30 Search Location Specification 2 Windows XP Found Mew Hardware Wizard Please choose pow seaech and AL lt 1 gt Check that Search for the best driver in these locations is selected Search lor the best diver in these Use the check boxes below bo of eared the delad seaich which neludes local and removable mada The best canes found will be installed _ Search removable media CD ROM lt 2 gt Check Include this location in inchide Ihis location in the search the search only choose diea 8o real plan te select the device dever lom Windows does nel ausrantee Ihal will ne the best malich for pour hardware 3 Enter C Program Files NEC Tools32 WriteEZ3 DRIVER 4 Click 7 shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 31 Windows XP Logo Testing 2 Windows XP Hardware Installation The software you installing for this hardware 22 Serial Port has not passed Windows Logo testing to verify its compatibility with Windows
20. B bits CALLT table area 64 B bits 0040H Vector table area 64 lt 8 bits 0000H Figure 6 78 memory map The 78K0 Lx3 See it does not reserve any resources of the 78 device consequently all available memory of the device is free for application software User s Manual U18759EE2VOUMOO 25 78KO0 Lx3 See it NEC 4 On Chip debugging The 78KO Lx3 See it board offers two possibilities to use On Chip debugging The TK 78 debug function of 78K0 Lx3 See it allows On Chip debugging without a need of external debug hardware Within this mode the default USB UART connection to the Host computer is used as debug interface All standard debug functions are available in the On Board debugging mode like FLASH programming downloading code execution single stepping breakpoints memory manipulation etc Additionally 78KO Lx3 See it supports the QB MINI2 On Chip debug emulator in order to use On Chip debug function of the 78 device The system configuration for On Chip debugging is shown in figure below OCD debugging via QB MINI2 On Chip debug emulator TE TK 78 debugging via On Board debug function Figure 7 On Chip Debugging 4 1 OCD via TK 78 debug function To operate the 78KO Lx3 See it board within the On Board debug mode configure switches SW1 and SW as following On Board ON ON _ EON ON ON ON ON ON
21. End list boxes display the Block numbers where the flash memory of the target device is configured When Area is selected Specify the Area number range subject to rewrite processing by using Start End The Start End list boxes display the Area numbers where the flash memory of the target device is configured Show Address check box Specify whether numbers or addresses are displayed in the Start End list boxes If this check box is checked addresses are displayed If this check box is not checked numbers are displayed 5 Target Reset Message By checking the Target Reset Message check box the window promoting the reset operation manually is displayed even when the reset signal cannot be connected to the target cable Figure 48 Device Setup Window Target Reset Message Target Reset Message User s Manual U18759EE2VOUMOO 54 78KO0 Lx3 See it NIEC b Advance setup The Advance setup menu is used to specify the command options and security flag settings When Advance is clicked the following window is displayed Figure 49 Device Setup Window Advance Device Setup a Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Target Reset Message Cancel lt 1 gt
22. RE Format 0414 Success read HEX file is displayed e E1 00b Processor 0200 Load file Mame YOLTMETER HE Date 2007 05 24 15 12 08 Chksum D 5 Ch Area DODDODOR DOOFS3h The display is updated Speed 115200 Range Chip 6 00 Multiply 1 00 User s Manual U18759EE2VOUMOO 66 78K0 Lx3 See it 7 8 9 10 WriteEZ 3 Autoprocedure EPV command execution Select Device gt Autoprocedure EPV from the menu bar When the Autoprocedure EPV command is executed Blank Check gt Erase Program and FLASH Internal Verify are executed sequentially for the 78 495 device Figure 66 After EPV Execution n x Device View Help Wer B gt lt COMMAND AutoProcedure E py A Flash Blank Checking nat blank then erase chip erase finish Flash Programming gt 5 Flash Programming gt Flash Programming 305 Flash Programming 405 Flash Programming 505 Flash Programming BU Flash Programming gt 705 Flash Programming gt Flash Programming lt 90 gt Flash Programming Finish ash Internal LF Terminating the GUI finish is displayed Device 78 0495 Mame Firm Version 1 00 ExtLade fFO4 Ch Vendor 10h Parameter file Mame for 0495 Format 4 Version E1 00b Processor Ver 0200 Load file Mame
23. See it NEC 12 Click to complete the installation of the USB driver Figure 24 USB Driver Installation Completion 2 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard gt USB Serial Part Windows has finished installing the software for this device close this wizard click Finish 7 4 3 Installation on Windows XP 1 When the 78KO Lx3 See it board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Check that Install from a list or specific is selected then click Next gt Figure 25 Found New Hardware Wizard 1 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software Far USB lt gt Seral E If pour hardware came with an installation CD lt 4 or floppy disk insert it now What do vou want the wizard to do Check that Install from a list or specific is selected CO Install the software automatically Recommended Install fram list or specific location Advanced Click Next to continue User s Manual U18759EE2VOUMOO 38 78KO0 Lx3 See it NEC 2 Check that Search for the best driver in these locations is selected Check the Include this location search check box enter C Program FilesNECTools32WriteEZ3 DRIVER i
24. See it board with the host machine via the USB cable If the connection was already done press the reset button SWA to release the FLASH programming mode User s Manual U18759EE2VOUMOO 62 78KO0 Lx3 See it NEC lt 3 gt Start the WriteEZ3 GUI Figure 58 GUI Software Startup Screen WriteEz3 ES File Device View Help Were gt gt Flash penning Flash Open Mame Firm Version ExtCode V endar Mame Format Version Processor Connection to device Speed Range Freq Multiply Ready Imm 5 Setting the programming environment lt gt Select Device gt Setup from the menu bar 2 The Standard dialog box for device setup is activated Figure 59 Standard Device Setup Dialog Box Fee Device Setup 72 Standard Advance Parameter file File Read Host connection Frequency MHz Speed 115200 Multiply rate Operation Chip Start Block El Supply oscillator Area Show Addres Target Reset Message User s Manual 18759 63 78KO0 Lx3 See it NEC 3 Click PRM File to open the parameter file selection window Select the parameter file 78F0495 prm then click Figure 60 Parameter Selection File name 78F 049
25. by referring to CHAPTER 7 5 USB Driver Installation User s Manual U18759EE2VOUMOO 68 78K0 Lx3 See it NEC Communication with the 78KO Lx3 See it board is disabled Cause The driver may not be installed correctly Action Check if USB Serial Port and USB High Speed Serial Converter are installed correctly by referring to CHAPTER 7 5 USB Driver Installation Cause The COM port selected via the Port list box within device setup menu of WriteEZ3 may not be set correctly Action Set the port checked using Device Manager Cause The 78KO LX3 See it board is operating in normal mode Action Set the board to the WriteEZ3 FLASH programming mode Cause The PRM file selected in Device Setup may be incorrect Action Use the corresponding PRM file that matches the target device For information about the PRM file refer CHAPTER 8 WRITEEZ3 FLASH programming software Cause The setting of Supply oscillator in Device Setup may be incorrect Action Make a correct setting according to the specifications of the target device User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 11 IAR sample session Before using the On Board debug function of the 78KO Lx3 See it board together with the C SPY debugger it is necessary to install the USB driver first The communication between the starterkit and the IAR C SPY debugger that is running on the personal computer is done via the st
26. device for comparison with the data written to the flash memory of the target device because of a user program communication error execute the Program command by selecting Device gt Setup and specifying Command options on the Advance tab then set the automatic execution of the Verify command During EPV execution the progress status is displayed in the action log window to indicate programmer operation For a selected command its execution operation and messages refer to CHAPTER 9 HOW TO USE WRITEEZ3 Upon completion of Autoprocedure EPV command execution the GUI software displays the result of executing the command on the target device 8 Signature read command The Signature read command reads the signature information device name flash memory information and so forth of the target User s Manual U18759EE2VOUMOO 50 78KO0 Lx3 See it NEC 9 Setup command Setup menu allows you to make settings related to flash memory rewriting according to the user environment and to set command options Each time the GUI software is started the most recently used parameter file PRM is read and the settings are displayed The Setup menu allows you to modify the settings of items other than those items consisting of shadowed characters according to the user environment a Standard setup This menu is used to set the environment for rewriting the flash memory of the target device The
27. projects contained in the workspace are displayed Now select the voltmeter demo project within the workspace window do so please use the pull down menu within the workspace window and select Voltmeter Debug Click on the little sign next to the Voltmeter project to show files that were part of the project The screen should now look similar to this IAR Embedded Workbench IDE Oj x File Edit Project Tools Window Help amp amp 6 9 8 m Voltmeter Debug m pem a ee Files Module main D iption 1 Qul E 817960023 SEIT SAMPLES ciuibus lan RC PR ee amp Buzzer Debug v void main void KitchenTimer Debug v Ha B RealTimeClock Debug v disable all interrupts RemoteControl Debug disable interrupt S Temperature Debug v ej voltmeter Debug Initialization of clock OSCCTL 02 external clock input mode otmeterc NUN PCC 0x00 CPU clock fap 3 Output MCM 0x01 Set main system clock and peripheral hardware clock OSTS 0x05 Set minimum oscillation stabilization time Initialization of ports PM4 0 7 port input setting P46 42 KR6 2 P41 RIN PU4 Ox7C ff enable Pull up resistor KRM 0 7 ff enable key interrupt detection KRMK 0 ff enable key
28. to connect the QB MINI2 On Chip debug emulator to use the On Chip debug function of the 78KO LF3 device Please note the QB MINI2 is separate product from NEC and it is not included in this starterkit package e Flexible power supply The 78KO Lx3 See it supports a flexible configuration of it s power supply The board be powered by the USB interface the QB MINI2 On Chip debug emulator as well by an external power supply CD panel 78KO LX3 See it provides a 224 segment LCD panel allowing the implementation of human machine interface comfortable input output functions output of measurement values output of status information etc WriteEZ3 FLASH programming software A windows based FLASH programming software allows to select and download application programs to the 78KO LX3 See it board for evaluation purposes e Various input output signals available such as ports prepared be connected to user hardware 224 segment LCD panel Timer input output signals Two or three wire serial I O UART interface via USB UART chip FT232 Eight channel 10 bit A D converter Three channel 16 bit A gt A D converter IR receiver module RPM7138 Temperature sensor S 8120C Navigation switch prepared for key interrupt generation The Embedded Workbench for 78K and the IAR C SPY debugger simulator are included This package is restricted in such that maximum program co
29. 1391 dfi 5 6A LLO clo r 340 69 0 089 90E OW LLX unowun ZHINXX 51159 LA ex 096 514 DOA _ N woo o ko D in ev 8 _ O O JO ov I1 O ly LdaWv2 044 O 4 w v gt Pra x 4 w 880 5 2 SA C gt 4 Be O 9 2 anyo een mo iE SA em T 8193S O arin anyo inim 98103 LNOA 1101 D unowun SSZE INVVH 880 143 1891 2334 12 204077154 x no z n D z izna L 2 D drin 044 2 i 05938 LMS 78KO LX3 See it schematics 1 2 Figure 76 80 User s Manual U18759EE2VOUMOO 78K0 Lx3 See it 6 jo c 2006 50 yve V8vL0 c9 JequinN 63 0 00 88WOS O 013838 lt lt ozy MS
30. 465 6829 Users Manual U18759EE2VOUMOO 78K0 Lx3 See it NEC Revision History Revision Chapter Description 21 06 2007 First release 20 07 2007 Changed description from FPL3 to WriteEZ3 FLASH programming software Users Manual U18759EE2VOUMOO 78K0 Lx3 See it NEC Table of Contents ls Pet T 10 1 1 Main features Of 78KU Ex3 10 1 2 System cete 12 t3 Package 12 T4 E AEE 12 2 78K0 Lx3 See it system 13 21 13 22 e 13 2 3 Power supply via USB interface 7 7 97 13 3 ZOK Ex3 14 3 1 Configuration SWITCHES 2 15 3 1 1 On Board Debug Mode TK 78 15 3 1 2 FPL3 WriteEZ3 Mode FLASH programming 15 3 1 3 QB MINI2 Mode OCD debugging Normal execution mode 15 3 2 RESET b tton 1 2 16 3 3 16 3 4 External A D measurement inputs connector 41 17
31. 47 MEDU 48 ox E nee 48 2 Device MENU 49 0 58 844 Hep meN our lem Gi agus a a rar 59 8 5 Programmer Parameter VIDIdOW 60 9 How to use WriteEZ3 FLASH programming software 22 61 1 Installing the WriteEZ3 GUI software 29 nennen nnn nan 61 2 TA SHC Cie ks secs se et enn ar Tm 61 3 Installing the parameter 61 4 GORMECHMC PAG 62 b Setting the programming environment 63 s 61060 Drog o 66 7 command 67 COME Eine cune 67 9 Execute the VOETMETER ote a Deeds nee ed 67 Restano 67 105 TROUBLESHOOTING 68 Sample 70 12 77 12 1 B uzzersaniple icc cnim Dc EDMUND IRI
32. 5 Files of type PRM Cancel 2 lt 4 gt From the Port list box select the communication port that matches the host machine being used Select the communication speed of the Host connection Figure 61 Port Selection Standard Advance Parameter file 7870495 PAM File Read Supply oscillator Frequency 0 00 MHz Multiply rate 1 00 Host connection Part Speed 115200 Operation Made Block End 059 Area Show Addres Remark Selectable ports can be checked using Device Manager For details refer to 7 6 Confirmation of USB Driver Installation User s Manual U18759EE2VOUMOO 64 78KO0 Lx3 See it NEC lt 5 gt Set Supply oscillator according to the specifications of the 78KO Lx3 See it board Frequency 6 00 MHZ and Multiply rate 1 00 In Operation Mode please specify the Chip mode The following figure shows the recommended settings Figure 62 lt Standard Device Setup gt Dialog Box after Setting F Device Setup Standard Advance Parameter file 780495 prm File Read Host connection Fart Speed i5200 7 Operation Made Black End 059 4 C Area Show Multiply rate 11 00 6 Switch to the Advance dialog box Figure 63 Advance Device Setup Dialog Box Device Setup E X Standard Advance Command
33. C protection requirements this equipment has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 005 10 CAUTION 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 EEDT ST 004 10 Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste NEC Electronics Europe GmbH offers to take back the equipment All you need to do is register at www eu necel com weee Users Manual U18759EE2VOUMOO 78K0 Lx3 See it Regional Information Some information contained in this document may vary from country to country Before using any product in your application please contact the NEC office in your country to obtain a list of authorized representatives and distributors They will verify e Device availability e Ordering information e Product release schedule e Availability of related technical literature e Development environment sp
34. Debug a LLL MI FF rr Table 14 Configuration for TK 78 debugging User s Manual U18759EE2VOUMOO 26 78KO0 Lx3 See it NEC 4 2 OCD via QB MINI2 emulator To operate the 78KO Lx3 See it board together with the QB MINI2 On Chip debug emulator configure switches SW1 and SW as following 2 ON ON j MEER OFF don t care Table 15 Configuration for QB MINI2 debugging Note By supplying power from the QB MINI2 do not connect external hardware to the 78KO Lx3 See it board Within this mode 78K0 Lx3 See it board can operate without external power supply from USB User s Manual U18759EE2VOUMOO 27 78KO0 Lx3 See it NEC 5 78KO0 Lx3 See it installation and operation 5 1 Getting started The IAR C SPY debugger allows to download and debug application software on the 78 0 3 See it starterkit hardware Additionally the WriteEZ3 FLASH programming software can be used for simple FLASH programming of the 78 internal FLASH memory As communication interface between the host computer and the 78K0 Lx3 See it board a USB interface line is needed Before you download debug or execute an application program hardware and software must be installed properly 5 1 1 CD ROM contents The CD ROM shows following directory structure 78KO0 Lx3 See it F CD ROM ROOT Acrobat Acrobat Reader for 32Bit Windows OS
35. MOO 43 78KO0 Lx3 See it NEC 7 6 Driver deinstallation The driver deinstallation program is installed on the host machine when the WriteEZ3 software is installed Use the procedure below for deinstall the USB driver 1 When using Windows XP log on as the computer administrator When using Windows 2000 log on as the Administrator 2 Double click in the order from My Computer to to Program Files to NEC Tools32 to WriteEZ3 to DRIVER Ftdiunin exe is displayed Double click Ftdiunin exe Figure 34 Driver Uninstallation EIE ar File Edit View Favorites Tools Help oc ul d 27 Search s Folders Hae Address Files MECTools32bin PG FPLIDRIVERIFTDI File and Folder Tasks Make new Folder Publish this Folder to the Web 1 7 share this Folder Other Places C DRIVER E Documents Shared Documents 4 Computer Network Places Details Mame 901 Release Info DOT 2134 Release Info DOC COMPORT PDF S FTCOMMS VXD Cod ETOIBUS CAT SFTDIBUS IMF Fedibus sys SFTDIPORT INF 5 FTSENUM S 5 tser2k sys FTSERIAL SYS OOS FTSERMOU INF 2 dll S FTSERUI DLL README TXT wordpad Document wordpad Document PDF File Virtual device driver Security Catalog Setup Information System File Security Cat
36. New Hardware Wizard 2 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps install a device driver for hardware device continue click Back User s Manual U18759EE2VOUMOO Cancel NEC 35 78KO0 Lx3 See it NEC 8 Check that suitable driver is selected device driver is software program that makes a hardware device work Windows 9 that location only is checked The window below is displayed So check that Search for a suitable driver is selected then click Next Figure 20 Search Method 2 Windows 2000 Found Mew Hardware Wizard Install Hardware Device Drivers device driver is a software program that enables hardware device to work with ey an operating system This wizard will complete the installation For this device 23 USB Serial Port Search for a eeds driver files for pour new device To locate driver files and complete the nstallation click Next What do vou want the wizard to do Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a sp driver Cancel Check the Specify a location check box only then click Next gt Figure 21 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Fil
37. The range of operating frequency varies from one device to another So check the specifications of the device used before making a setting Multiply rate Specifies the division rate or multiplication rate of the target device the target device has an on chip PLL circuit enter a division rate or multiplication rate according to the use environment The selectable division rate or multiplication rate differs depending on the device Check the specifications of the device used before making a setting the target device does not have an on chip PLL circuit select 1 0 On the initial screen the default setting is displayed according to the parameter file User s Manual U18759EE2VOUMOO 53 78KO0 Lx3 See it NEC lt 4 gt Operation Mode The setting of Operation Mode may divide the flash memory of some target devices into blocks or areas This menu is used to select an operation mode of the flash memory Some devices do not have the block and area division modes and some devices have only one of the modes In these cases a nonexisting mode is unchoosable Figure 47 Device Setup Window Operation Mode Operation Mode Chip Start Block End C Area Show Addres When Chip is selected The entire flash memory area of the target device is subject to rewrite processing When Block is selected Specify the Block number range subject to rewrite processing by using Start End The Start
38. al U18759EE2VOUMOO 78K0 Lx3 See it Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 Figure 61 Figure 62 Figure 63 Figure 64 Figure 65 Figure 66 Figure 67 Figure 68 Figure 69 Figure 70 Figure 71 Figure 72 Figure 73 Figure 74 Figure 75 Figure 76 Figure 77 View Menu Help Menu About WriteEZ3 Window Programmer Parameter Window GUI Software Startup Screen Standard Device Setup Dialog Box Parameter File Selection Port Selection Standard Device Setup Dialog Box after Setting Advance Device Setup Dialog Box Completion of Parameter Setting After Downloading After EPV Execution IAR Embedded Workbench IAR project workspace IAR debugger options 1 2 IAR debugger options 2 2 IAR Linker options TK 78 hardware setup menu IAR project download IAR C SPY debugger USB interface cable Mini B type 78KO Lx3 See it schematics 1 2 78KO LX3 See it schematics 2 2 List of Tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 17 Operation mode selection SW1 SW2 Navigation switch SW3 External A D measurement inputs connector J1 External A D measurement input connector J2 External power supply input J3 QB MINI2 connector 1 Configuration of SW1 and SW2 when using QB MINI2 Pin Configuration of Connector USB1 LCD driver specif
39. alog Setup Information Configuration Settings Application Configuration Settings System File Virtual device driver System File System Setup Information Virtual device driver Application Extension Application Extension Text Document Date Modified 6 12 2003 3 18 PM 6 16 2003 1 22 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 6 16 2003 1 23 PM 6 16 2003 1 24 PM 4 10 2003 3 00 6 16 2003 1 24 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 6 10 2003 5 10 PM 6 16 2003 1 24 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 11 2003 12 48 PM 5 20 2003 2 04 PM 6 16 2003 1 22 PM 3 Click Continue Figure 35 Driver Uninstaller FTDI Uninstaller Version 2 1 If your USB device is connected p Press Continue to uninstall the dri Cancel User s Manual U18759EE2VOUMOO 44 78KO0 Lx3 See it NIEC 4 Click to complete driver uninstallation Figure 36 Completion of Driver Uninstallation FIDI Uninstaller Version 1 Uninstalling ID_O403 amp PID_6001 Deleting registry entries Deleting Files Uninstall complete press Finish to exit Caution If the GUI software is uninstalled earlier Ftdiunin exe is also deleted At this time delete USB Serial Port COM and USB High Speed Serial Converter from Device Manager manually User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 8 WriteEZ3 FLASH programming so
40. also provided by the USB1 connector I NU d gu VBUS D not connected GND Table 8 Pin Configuration of Connector USB1 For connection with the host machine use a USB cable Mini B type For confirmation NEC Electronics used only the USB cable delivered with the 78KO Lx3 See it board User s Manual U18759EE2VOUMOO 19 78KO0 Lx3 See it NEC 3 11 LCD1 224 segment LCD panel 28 3 See it board is equipped with 224 segment LCD panel The LCD is a transflective model type operating at 5V supply voltage It can operate at a eight times multiplex rate The LCD driver specification is as following Driver voltage generation Internal resistance division Bias method 1 4 Timesharing 2 80 O Table 9 LCD driver specification The LCD is divided into a character and indicator field The character field is composed of six 5x7 DOT matrix characters The indicator field includes a set of predefined symbols for instance weekday battery and antenna symbols The outline of the LCD and the corresponding segment assignment is shown below 0 t 4 M 14 y z 2 t gx 24 i A i i M ini 4 _ Tim T UUU siy gt 4 gt e i e
41. andard UART USB connection To operate the 78KO Lx3 See it board within the TK 78 On Board debug mode configure switches SW1 and SW2 as following PON ON _ contoare OFF orr 4 78 debugging On Board debug function User s Manual U18759EE2VOUMOO 70 78KO0 Lx3 See it NIEC When everything is set up correctly the IAR Embedded Workbench can be started do so start the Embedded Workbench from Windows Start menu gt Programs gt folder Systems gt Embedded Workbench Kickstart for 78K The following screen appears Embedded Workbench IDE File Edit View Project Tools Window Help 7 xl Embedded Workbench Startup Create new project in current workspace Add existing project to current workspace Open existing workspace Example applications Recent workspaces Do not show this window at startup Ready LI Figure 67 IAR Embedded Workbench Now select the option Open exiting workspace from the File menu and locate the sample project Open the file 7 SEEIT SAMPLES eww This is the workspace file that contains general information about the demonstration projects and settings User s Manual U18759EE2VOUMOO 71 78KO0 Lx3 See it NEC After the demo workspace has been opened the
42. ansmitted by an external remote controller can be received The received data is displayed alternately 16 bit wise on the LCD panel 12 5 Temperature sample The temperature measurement is realized by using the onboard temperature sensor IC type S 8120C and both A D converters of the 78KO LF3 device Two display formats are supported degree centigrade C and degree Fahrenheit The selection is done by using the navigation switch Additionally two different A D converter resolutions can be selected by using either the 10 bit successive approximation type A D converter or the 16 bit delta sigma type A D converter of the 78 device 12 6 Voltmeter sample By running the sample either the power supply voltage of the 78KO Lx3 See it board or an external voltage supplied to the connector J2 can be measured Before applying external voltage to connector J2 please read the user s manual of the 78 device carefully to get information about the electrical specification of the A D converter input port For the power supply voltage measurement the input port P25 ANI5 DS2 is used For the external voltage measurement the input port P23 ANIS DS1 is reserved The selection of the different measurement sources is done by using the navigation switch Additionally two different A D converter resolutions can be selected by using either the 10 bit successive approximation type A D converter or the 16 bit delta sigma type A D converter of t
43. anual U18759EE2VOUMOO 17 78KO0 Lx3 See it NIEC 3 9 QB MINI2 connector OCD1 Connector OCD1 not assembled allows connecting the QB MINI2 On Chip debug emulator to the 78K0 Lx3 See it board in order to use On Chip debug function of the 78 device Please note QB MINI2 is a separate product from NEC and it is not included in this starterkit package X1 8 9 VDD Table 6 QB MINI2 connector OCD1 When using QB MINI2 for debugging purpose please configure switch SW2 of the 78KO Lx3 See it board as following QB MINI2 ON LOO I ee EE OFF OFF don t care Table 7 Configuration of SW1 and SW2 when using QB MINI2 For more details on how to configure 78KO Lx3 See it in order to use On Chip debugging please refer to CHAPTER 4 ON CHIP DEBUGGING User s Manual U18759EE2VOUMOO 18 78KO0 Lx3 See it NEC 3 10 USB interface connector USB1 This interface allows connecting the IAR C SPY debugger to the 78KO Lx3 See it board in order to use the On Board debug function TK 78 debugging The TK 78 interface supports On board FLASH programming and standard debug features like code execution single stepping breakpoints memory manipulation etc Additional the WriteEZ3 FLASH programming software uses the USB communication channel to program application software into the CPU internal flash memory The power supply of the 78 0 1 3 See it board is
44. ase open the corresponding soldering bridges A1 A8 1 20 0580 9 6 P25 ANI DS2 14 8 Pe7ANZREF 16 GND Table 3 External A D measurement inputs connector J1 3 5 External A D measurement input connector J2 Connector J2 can be used to measure an external analogue signal by using the internal 10 Bit A D converter or respectively the 16 bit A gt A D converter of the 78KO LF3 device P23 ANI3 DS1 PGND GND Table 4 External A D measurement input connector J2 3 6 IDD measurement connector J4 Connector J4 not assembled can be used to measure the current consumption of the 78KO LF3 device For using this mode please open soldering bridge V8 3 External power supply input connector J5 By using connector J5 not assembled external power supply can be applied to the 78KO LX3 See it board without a need of an active USB connection 5 Table 5 External power supply input J3 Note sure to unplug the USB connection before applying external power supply to input J5 3 8 External main oscillator Y1 The clock generator of the 78 device can be configured to work with an external oscillator connected to the X1 and X2 pins To use this mode equip pad Y1 of the 28 3 See it board with an corresponding oscillator The configuration of the clock generator is described within the user s manual of the 78KO LF3 device User s M
45. ault Open Closed default Open Closed default Open Closed default VDD2 connected to VDD Open VDD2 disconnected from VDD Table 13 Setting of soldering bridges V1 V6 V8 V11 User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 3 19 78KO LF3 memory map The memory layout of 78KO LF3 device shown in the figure below FFFFH Special function registers SFR 256 lt 8 bits FEFFH General purpose registers FEEOH 32 x B bits EFFFH FEDFH 4 Internal high speed RAM 5 a T 1024 8 bits TUS 1FFFH 408EH FAFFH 1 On chip debug security Tn Reserved ID setting areaMete 1 10 lt 8 bits 1085H Boot cluster 1 e 1084H Option byte areaNete 1 FA40H 5 x 8 bits 1080H FAZON FA20H Reserved 1000H Buffer RAM entry area 2048 8 bits 32 x 8 bits FAQOH Data memory 0800H 07FFH 7 Program RAM area RAM space which instruction HE can be fetched F400H FAFFH Reserved intemal expansion RAM 2048 8 bits Program Flash memory memory space 61440 x 8 bits 00 00H Program area 1905 8 bits 008 On chip debug security ID setting areaMete 1 0085H 10 gt 8 bits 0084H Option byte 1 0080H 5 x
46. cently used directory to which a user program has been loaded After a user program is loaded a checksum calculation is made and the result is displayed in the programmer parameter window button Selects a user program as a program to be written to the target device button Closes the window without selecting a program User s Manual U18759EE2VOUMOO 48 78KO0 Lx3 See it NEC 2 Quit command The Quit menu is the command for terminating the WriteEZ3 GUI software Clicking on the right side of the task bar also terminates the WriteEZ3 GUI software User settings are saved in the WriteEZ3 INI file so that the GUI software starts up next time with the same settings Note WriteEZ3 INI is created in the Windows folder when Windows 98SE Windows or Windows XP is used When Windows 2000 is used WriteEZ3 INI is created in the Winnt folder 8 4 2 Device menu Clicking the Device menu displays the pull down menu as shown below This menu mainly contains commands for programming operations such as deletion programming and verification on the target device Figure 41 Device Menu writeE23 File Device View Help M Check Erase Program lt lt Fl Flask Verify gt gt CL ewm Security CheckSum AukoprocedurefEPy Signature read ek Security settings Setup 1 Blank Check command The Blank Check command allows you to make a blank check on the target
47. de size is limited to 4 kByte of program code Full documentation is included for the 78KO LF3 microcontroller IAR Systems Embedded Workbench IAR Systems C SPY debugger simulator and the WriteEZ3 FLASH programming software User s Manual U18759EE2VOUMOO 10 78K0 Lx3 See it NEC CAUTION The 78KO0 Lx3 See it starterkit is not intended for code development NEC does not allow and does not support any way any attempt to use 78KO0 Lx3 See it in a commercial or technical product User s Manual U18759EE2VOUMOO 11 78KO0 Lx3 See it NEC 1 2 System requirements HOST PC A PC supporting Windows 98SE Windows ME Windows 2000 or Windows XP is required for the IAR Systems Embedded Workbench demo version and the WriteEZ3 FLASH programming software Pentium 166 MHz at least 128 MB of RAM 256 color display 1024 768 mouse CD ROM drive and 200 Mbytes of free hard disk space are required to install the tool packages Above listed requirements are valid for the IAR Systems Embedded Workbench and the WriteEZ3 FLASH programming software Host interface USB interface that enables communication based on USB Ver1 1 or later 1 3 Package contents Please verify that you have received all parts listed in the package contents list attached to the 78 3 See it package If any part is missing or seems to be damaged please contact the dealer from whom you received your 28 3 See itl Note Update
48. device d connected to the WriteEZ3 If the flash memory of the target device is erased a blank check is terminated normally If the flash memory is not completely erased the indication not blank is provided Before starting programming erase the flash memory of the target device 2 Erase command The Erase command erases the flash memory of the target device connected to the we WriteEZ3 While the flash memory is being erased the progress status is displayed in the action log window to indicate programmer operation The execution on the Blank Check command before the Erase command is executed follows the setting of Command options of the Advance tab displayed by selecting Device Setup Upon completion of Erase command execution the GUI software displays the result of executing the command on the target device User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 3 Program command 4 Veri The Program command sends a specified user program to the target device and writes the program to the flash memory The execution of Verify operation for detecting an error in user program communication from the WriteEZ3 to the target device after the execution of the Program command follows the setting of the Command options on the Advance tab displayed by selecting Device Setup During programming the progress status is displayed in the action log window to indicate programm
49. e i e Single Stepping Step Over In Out Go Stop Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the 78K IAR Embedded Workbench IDE User Guide of the IAR installation ixi File Edit View Project Debug Emulator Tools Window Help Y 50 gt 6 529 voltmeter Files amp 7 8 3 Goto disable interzj Fa 0 v Ha v WADE Bein Ha B RealTime Description main module 0x00 Ha amp RemoteCo v LADEN ut 0BE9 13 00 void main void 101 B Voltmete v OSTS 5 disable all interrupts disable interrupti Initialization of clock Rees TC OSCCTL Oxd0 ff external clock input mode 6 PCC 0x00 CPU clock fxp 136 0 01 Set main system clock and peripheral hardware clock RO e Set minimum oscillation stabilization time H em 138F00 Initialization of ports PM2 Oxff 4 0 7 port input setting P46 42 KR6 2 P41 RIN EET P ol Ox7C enable Pull up resistor 0204 7110300
50. e electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact NEC Electronics sales representative in advance to determine NEC Electronics s willingness to support a given application Notes 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above User s Manual U18759EE2VOUMOO 2 78KO0 Lx3 See it NEC CAUTION This is a Test and Measurement equipment with possibility to be significantly altered by user through hardware enhancements modifications and or test or application software Thus with respect to Council Directive 89 336 EEC Directive on compliance with the EM
51. ecifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and otherlegal issues may also vary from country to country NEC Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 0 Fax 0211 65 03 1327 Sucursal en Espana Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Succursale Francaise Velizy Villacoublay France Tel 01 30 67 58 00 Fax 01 30 67 58 99 Filiale Italiana Milano Italy Tel 02 66 75 41 Fax 02 66 75 42 99 Branch The Netherlands Eindhoven The Netherlands Tel 040 244 58 45 Fax 040 244 45 80 Branch Sweden Taeby Sweden Tel 08 63 80 820 Fax 08 63 80 388 United Kingdom Branch Milton Keynes UK Tel 01908 691 133 Fax 01908 670 290 NEC Electronics Hong Kong Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Hong Kong Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 NEC Electronics Singapore Pte Ltd Singapore Tel 65 6253 831 1 Fax 65 6250 3583 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 5951 NEC do Brasil S A Electron Devices Division Guarulhos Brasil Tel 55 11 6465 6810 Fax 55 11 6
52. er operation This progress status display window displays the progress status on target device programming by percentage Upon completion of Program command execution the GUI software displays the result of executing the command on the target device fy command The Verify command sends a specified user program to the target device connected with the WriteEZ3 and performs verification against the data written to the flash memory of the target device During verification the progress status is displayed in the action log window to indicate programmer operation This progress status display window displays the progress status of target device verification by percentage Upon completion of Verify command execution the GUI software displays the result of executing the command on the target device 5 Security command The Security command initiates the programming of the security flag of the target device connected to the WriteEZ3 Set Security flag settings on the Advance tab of the Device gt Setup menu 6 Checksum command The Checksum command reads the checksum value of the target device connected with the WriteEZ3 This value differs from the value displayed in the parameter window of the main window 7 Autoprocedure EPV command NS The Autoprocedure EPV command executes the Erase command Program command and Verify command in succession When a user program is to be resent to the target
53. es Where do vou want Windows to search for driver files Search for driver Files for the following hardware device USB Serial Part The wizard searches for suitable drivers in its driver database on your computer and in any af the following optional search locations that you specify start the search click Next vau are searching on floppy disk or CO ROM drive Insert the floppy disk or before clicking Hest Specify a Optional search locations Floppy disk drives CD ROM drives Specify location Microsoft Windows Update User s Manual U18759EE2VOUMOO 36 78KO0 Lx3 See it NEC 10 Enter C Program Files NECTools32WriteEZ3 DRIVER in the address bar then click Figure 22 Address Specification 2 Windows 2000 Found New Hardware Wizard the manufacturer z retalaton dik into the dive zalected and then click Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 11 Click Figure 23 Driver File Search 2 Windows 2000 Found Mew Hardware Wizard Files Search Results The wizard has finished searching for files for your hardware device Windows found a diver For this device To retall the dower Windows found click Next e program fles nectoots sdrreers inf User s Manual U18759EE2VOUMOO 37 78KO0 Lx3
54. es i e Intel HEX file L settings configuration files IAR Embedded Workbench eon L3 Linker control file al Buzzer dep dependency information file IAR Embedded Workbench lal Buzzer ewd project setting file IAR C SPY debugger El Buzzer ewp L KitchenTimer RealTimeClock L RemoteControl C Temperature L voltmeter 78KOLX3 SEEIT SAMPLES eww workspace file IAR Embedded Workbench for 78K Table 17 Example directory structure The main directory contains only the project files for the IAR Systems Embedded Workbench for 78K All source files are located in the directory source and the inc directory contains the header files The 1 directory contains the linker control file of the 78KO LF3 device Each sample project uses two targets One target is the Debug directory Debug that holds all information for debugging purpose and the other one the Release target directory Release contains the programmable file i e the Intel HEX file for programming the 78 internal FLASH memory via the WriteEZ3 FLASH programmer software All output files of the development tools for the corresponding target are generated in the directories Debug and Release For details of using the IAR Embedded Workbench and the IAR C SPY debugger please refer to the 78K IAR Embedded Workbench IDE User Guide User s Manual U18759EE2VOUMOO 77 78KO0 Lx3 See it NIEC 12 1 Buzzer sample Th
55. es p Em Figure 2 78K0 Lx3 See it board connectors and switches top view Some of the 78KO Lx3 See it components are free for user application hardware and software Please read the user s manual of the 78 device carefully to get information about the electrical specification of the available I O ports before you connect any external signals to the 78 0 1 3 See it board User s Manual U18759EE2VOUMOO 14 78KO0 Lx3 See it NEC 3 1 Configuration switches SW1 2 The different operation modes of the 78KO Lx3 See it board can be set by switches SW1 and SW2 On Board ON ON _ Debug 55 O FPL3 ov 7T WriteEZ3 OFF QB MINI2 ON OFF don t care Table 1 Operation mode selection SW1 SW2 3 1 1 On Board Debug Mode TK 78 debugging Within this mode On Board debugging is enabled By using this mode no additional debug hardware like the QB MINI2 On Chip debug emulator is needed The debugging is done via the default USB UART connection to the Host computer All standard debug function are available in the On Board debug mode like FLASH programming downloading code execution single stepping breakpoints memory manipulation etc 3 1 2 FPL3 WriteEZ3 Mode FLASH programming mode This mode allows to reprogram the internal FLASH memory of the 78KO LF3 device by using the WriteEZ3 FLASH programming soft
56. evice Manager USB Serial Port or USB High Speed Serial Converter is not displayed Alternatively the or x is prefixed Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector from the USB port then insert the USB connector again after a while Cause The driver may not be installed correctly Action 1 When this product is connected to the personal computer right click the driver marked with or x Click when displayed 2 On Device Manager execute Hardware Modification Scan 3 Install the driver again with Plug and Play Cause The device may not be recognized in the case of connection with the USB hub Action Try the following e Disconnect the USB connector then insert the USB connector again e Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer When this product is connected with a personal computer the Add New Hardware Wizard screen is displayed Cause If the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port this product may be recognized as a new hardware item Action Install the driver
57. f the 78 device is used The Sub clock is provided with 32 768 kHz 2 2 Host computer The USB host interface enables communication to the 78KO Lx3 See it board The USB UART chip FT232 allows application software to access the USB device in the same way as it would access a standard RS232 interface The FTDI s Virtual COM Port VCP driver appears to the windows system as an extra Com Port in addition to any existing hardware Com Ports 2 3 Power supply via USB interface The 78K0 Lx3 See it supports a flexible configuration of it s power supply The board can be powered by the USB interface the QB MINI2 On Chip debug emulator as well by an external power supply User s Manual U18759EE2VOUMOO 13 78KO0 Lx3 See it NEC 3 78 1 See it components The 28 3 See it board is equipped with a navigation switch 224 segment LCD panel temperature sensor and with several connectors in order to be connected to host computers FLASH programmer or any external target hardware e NEC 78K0 LF3 Demonstration Kit 4 t 1 2 h 9 EE m 4 2 42 N 6 d 2 Ai xt 4 4 747 7 r B pem 4 be Wig 7 RoHS COMPLIANT Qr gt JL 59 e D f d D 6 pow us ON iR 2248 d
58. formation about a read parameter file Load file Updated after Load command execution to select information about a selected program file Connection to device Updated after Setup command execution to display information about the connection with the target device User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 9 How to use WriteEZ3 FLASH programming software This chapter explains the basic operation of the WriteEZ3 GUI for programming the 78KO LX3 See it board This chapter covers how to start the system execute the EPV command and program the target device On the following pages the FLASH programming of the 78 via WriteEZ3 is shown The conditions of the series of operations described in this chapter are as follows Hardware configuration of 78KO Lx3 See itl Base board 78KO LX83 See it Target device 78KO LF3 uPD78F0495 Clock 6 MHz Voltage level 5 Software configuration of WriteEZ3 Parameter file 78F0495 PRM Clock setting 6 MHz Multiplied by 1 Port 115200 bps Operation mode Chip Write HEX VOLTMETER hex Option setting Blank check before Erase 1 2 3 Installing the WriteEZ3 GUI software Install the WriteEZ3 GUI software on the host machine you are using by referring to CHAPTER 7 SOFTWARE INSTALLATION if the software has not been installed yet Installing the driver Install the USB driver on the host machine you are using by refe
59. ftware 8 1 Introduction The parameter file for the 78KO LF3 device is installed automatically during installation of WriteEZ3 GUI folder lt WriteEZ3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0495 device can by download from the NEC Electronics Web site Download the parameter file for the PG FP4 from the following NEC Electronics Web site http www eu necel com updates Copy the parameter file downloaded from the NEC Electronics Web site into sub directory lt WriteEZ3 EXE install path gt PRM created during GUI software setup refer to CHAPTER 7 SOFTWARE INSTALLATION 8 2 Starting up the GUI Software e GUI software startup Select WriteEZ3 EXE from the start menu to start the WriteEZ3 GUI software When the GUI software is started normally the following screen appears Figure 37 GUI Software Main Window Menu mm E a ABl x Device View Help Device View HK Mame Version ExtCode Programmer parameter window Action log window Format Version Processor Wer Toolbar Connection to device Speed Range Status bar Freq Multiply i d Ready a User s Manual U18759EE2VOUMOO 46 78KO0 Lx3 See it NEC This window consists of the following items Display Information displayed at the top WriteEZ3 displayed under the
60. ftware program that enables a hardware device to work with an operating system This wizard will complete the installation Far this device Check that Search for a oy USB lt gt Serial suitable driver is selected device driver is software program that makes a hardware device work Windows needs driver Files for your new device To locate driver files and complete the Installation click What vau want the wizard to Search for a suitable driver for my device recommended Display a list of the known drivers for this device sa that choose a spe driver lt Back 3 Check the Specify a location check box only then click Next gt Figure 15 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Files gu Where vou want Windows to search for driver files Search for driver files for the following hardware device 2 USB lt gt Serial The wizard searches for suitable drivers in its driver database on your computer and in Check that Specify a any of the following optional search locations that you specify start the search click Next IF vau are searching on a floppy disk or CD ROM drive insert the floppy disk ar before clicking location only is checked ed hed Optional search locations Floppy disk drives Click CD ROM drives Specify location Microsoft W
61. he flash memory selected under Operation Mode in the Standard Setup menu This setting is cleared by the Erase command when Chip was selected under Operation Mode Disable Program check box this check box is checked the Program command becomes invalid as does the command in all the blocks of the flash memory selected under Operation Mode in the Standard Setup menu The Erase command for the entire flash memory area is valid This setting is cleared by the Erase command when Chip was selected under the Operation Mode Disable Boot block cluster reprogramming check box this check box is checked the boot area is set with the boot block set in the Boot block Cluster setting as the last block At this time the warning message shown below is displayed Figure 53 Device Setup Window Disable Boot Cluster Reprogramming warning AN When Boot black cluster reprogramming is disabled boot block cannot erased and programmed any more ce Caution Be aware that if the security flag is set in the target device the boot area cannot be rewritten to the device afterward User s Manual U18759EE2VOUMOO 57 78KO0 Lx3 See it NEC 8 4 3 View menu Clicking the View menu displays the pull down menu shown below This menu contains commands for setting whether to display the toolbar and status bar Figure 54 View Menu Device view Help pz w Toolbar T w Status Bar ON
62. he 78 device User s Manual U18759EE2VOUMOO 78 78K0 Lx3 See it 13 Cables 13 1 USB interface cable Mini B type Series A Plug Series Plug Series Mini B Plug Figure 75 USB interface cable Mini B type User s Manual U18759EE2VOUMOO Series Plug 79 2 78K0 Lx3 See it 14 Schematics 40 L 2006 YJeW 086 SION OTT 92 saa ed PIT 2209 JequinN sf LdaWvz 044 den 92945 40945 LZ29AS Evld DIN nin mimmin 2101019 co Fas Bare 3 1 0487 SSA 82935 091 6c93S ISLd 0 93S CSL d V 93S SLd 000 80020 PX TIOX3 CXI C7V d 1 14544 021 LITA ZITA EJNINOYY 0td Ltd 901 91 1 62 90 080 061 9 9 9 IATXA 0d 1 TOd 0ld LdaWvz 044 63 81935 6 8 61935 21935 8 02935 91938 9 2936 j 9 91935 2936 cO3S y 1935 vcO3S 935 21938 jue 920365 r LLO3S 01938 12935 SHOU 82935 0 6938 8935 6 8 62935 NVdV NI g 1935 0693 9 9 Leggs 9 9935 9 9935 011 415 0 41 0X8 7935 113 2402 LWOO
63. heck that device description file Device descriptions io78f0495 ddf is selected Cancel Figure 69 IAR debugger options 1 2 User s Manual U18759EE2VOUMOO 72 78KO0 Lx3 See it NEC Before using the On Board debug function it is necessary to set the corresponding USB serial COM port of the host computer where the 78K0 Lx3 See it board is connected To set the COM port please select the category 78 and choose the corresponding serial port Options for node voltmeter Category Factory Settings General Options Compiler Setup Assembler Custom Build Download Build Actions Suppress Linker s Debugger IE 78 IECUBE nat Choose serial port Simulator Communication log Use communication log file Cancel Figure 70 IAR debugger options 2 2 Next the correct linker settings of the demo project will be checked This can done in the Linker category as shown below Select the Config tab and check that the linker command Ink78f0495 xcl is selected This file is used by the linker and contains information on where to place the different sections of code and data that may be used within the demo project Options for node VolEmeter E X Category Factory Settings General Options Compiler Output Extra Output Diagnostics
64. ication LCD segment assignment Connectors T1 Setting of soldering bridges A1 A8 V7 Setting of soldering bridges V1 V6 V8 V11 Configuration for TK 78 debugging Configuration for QB MINI2 debugging 78 See it CD ROM directory structure Example directory structure Users Manual U18759EE2VOUMOO 78KO0 Lx3 See it NIEC 1 Introduction 78KO LX3 See it is a demonstration kit for the 78 Series 8 bit microcontrollers with integrated LCD controller It supports On Board debugging FLASH programming and real time execution of application programs based on the 78KO LF3 microcontroller The board is prepared to be connected to user hardware parts such as digital I O or analogue signals 1 1 Main features of 78K0 Lx3 See it e Easy to use device demonstration capabilities 78 3 See it contains elements to easily demonstrate simple O functions i e navigator switch 224 segment LCD panel temperature sensor IR receiver module I O lines UART serial interface etc K 78 debugging The 78K0 Lx3 See it supports an On Board debug function by using the IAR C SPY debugger and the UART USB interface without a need of additional debug hardware It allows FLASH programming and supports standard debug functions i e code execution single stepping software breakpoints memory manipulation etc e OCD debugging The 78K0 Lx3 See it is prepared to be equipped with a 10 pin connector in order
65. indows Update Back we Cancel User s Manual U18759EE2VOUMOO 33 78KO0 Lx3 See it NEC 4 Enter C Program FilesNNECTools32WriteEZ3 DRIVER in the address bar then click Figure 16 Address Specification 1 Windows 2000 Found New Hardware Wizard s gt x Insert the manufacturers metalation disk into the drive DE Click selected and then click Cancel Remark If the installation destination folder is changed at the time of GUI software installation enter new folder WriteEZ3 DRIVER 5 Click Next Figure 17 Driver File Search 1 Windows 2000 Found Mew Hardware Wizard Driver Files Search Results The wizard has finished searching for fles for your hardware device Windows found diver For this device install the diver Windows found click Next e program 324 pls ralibus ant Cancel User s Manual U18759EE2VOUMOO 34 78K0 Lx3 See it 6 7 Click to complete the installation of the USB driver Figure 18 USB Driver Installation Completion 1 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard gt USB High Speed Serial Converter Windows has finished installing the software this device close this wizard click Finish Proceed to the installation of the USB Serial Port driver Click Next gt Figure 19 Found
66. interrupt ADPCO 0x00 ff set all ports to analog input PM2 Oxff ff set all ports to input 0x00 0 set port to output mode Pl 02 0x00 set port to output mode Pl2 bit no0 0 12 bit no0 0 Initialization of RIC controller RTCCL 0x00 use sub clock RTCCO 0x09 use interrupt INTRIC 0 5sec interval 24 hour clock SEC 00 clock reset Overview Buzzer KitchenTimer RealTimeCloc 4 fo 4 Fa Ready Ln 1 Col 1 NUM 2 Figure 68 IAR project workspace As a next step check some settings of the IAR Embedded Workbench that have to be made for correct operation and usage of the On Board debug function of the 78KO Lx3 See it board First highlight the upper folder called Voltmeter Debug in the workspace window Then select Project gt Options from the pull down menus Next select the category Debugger Make sure that the driver is set to TK 78 in order to use the On Board debug function of the 78KO Lx3 See it board The device description file must be set to 4078F0495 ddf Options for node Voltmeter Category Factory Settings General Options Select TK 78 to C C Compiler Setup Extra Options Plugins Assembler use On Board Custom Build debugging Build Actions Ss lt TK 78K0R xxx Linker 78 Setup macros MINICUBE Use macro file TK 78 C
67. is demonstration drives the buzzer by using the 16 Bit Timer Event Counter 00 The timer is configured to generate a rectangle wave form By changing the output frequency of the timer different tones can be generated by the buzzer As demonstration a simple melody is played 12 2 KitchenTimer sample The kitchen timer functionality is realized by using the real time counter and the interrupt interval function The setting of the kitchen timer count value and the cancellation of a started count process can be done by using the navigation switch When the timer count time is elapsed the alarm symbol is displayed on the LCD and additional an alarm sound is played by using the buzzer 12 3 RealTimeClock sample This part of the sample projects realizes a Real Time Clock After the program is started the real time counter is initialized to generate an exact clock reference based on the 32 768 kHz sub clock The actual time is displayed on the LCD panel By using the navigation switch the time can be adjusted Additionally two clock display modes can be chosen the 24 hour mode or the AM PM mode 12 4 RemoteControl sample The remote control sample is realized by using the IR receiver module that is equipped on the 78KO LX3 See it board The output terminal of the IR receiver type RPM7138 is connected to the remote control input pin P41 KR1 RIN of the 78 device By running the sample custom code and data code in the NEC format that is tr
68. k of the CDROM The setup dialogues will guide you through the installation process 7 2 WriteEZ3 FLASH programming GUI installation To install the WriteEZ3 FLASH programming GUI select the SETUP program in the directory WriteEZ3 of the CDROM The setup dialogues will guide you through the installation process 7 3 Sample program installation To install the sample demonstration program for the 78KO Lx3 See it board select the SETUP program the directory SamplePrograms of the CDROM The setup dialogues will guide you through the installation process User s Manual U18759EE2VOUMOO 29 78KO0 Lx3 See it NEC 7 4 USB Driver Installation In order to use the 78KO Lx3 See it board for On Chip debugging or FLASH programming the USB driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 98SE Me Page 30 Installation on Windows 2000 Page 32 Installation on Windows XP Page 38 7 4 1 Installation on Windows 98SE Me 1 When the 78KO Lx3 See it board is connected with the host machine the board is recognized by Plug and Play and the wizard for adding new hardware is started Click Next Figure 8 Add New Hardware Wizard Windows 98SE Add Hew Hardware Wizard This wizard searches for new drivers Far USB lt gt Serial device driver is software program that makes hardware device w
69. menu bar icons Action log window Displays an WriteEZ3 action log displayed under the toolbar Programmer parameter window Displays programming parameter displayed to the right of the action log settings window otatus bar Displays status 8 3 Toolbar The toolbar contains buttons for starting the important procedures of the WriteEZ3 Figure 38 Toolbar Buttons Device gt Setup button File Load button Device Blank Check button Device Erase button Device gt Program button Device Verify button Device Autoprocedure EPV button User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC 8 4 Menu Bar Depending on the actual device status and device type some menu items may be enabled or disabled 8 4 1 File menu Clicking the File menu displays the pull down menu as shown below This menu mainly contains commands related to file operation Figure 39 File Menu File Device View gt gt Flashllpenning Flash Open 1 Load command The Load command allows you to select a program file The selected program file is programmed into the flash memory of the device by executing the Program command or Autoprocedure EPV command Figure 40 HEX File Selection Window File name Files of type S rec Hex files 5 hex Cancel 2 The file selection window for program loading displays the most re
70. mode of communication with the target the operating clock and so forth differ depending on the device used For details refer to the manual of the device used when making settings The window shown below is opened Figure 42 Device Setup Window Standard Device Setup T X Standard Advance Parameter file File Read Hast connection Frequency Speed 115200 Multiply rate Operation Made 7 Chip Start C Block Eni Supply oscillator Area Show Addres Target Reset Message Cancel This window shows all basic options that can be set in accordance with the user environment and target device button Clicking the button saves the settings on the Standard and Advance menus and closes the window Cancel button Clicking the button closes the window without saving the settings on the Standard and Advance menus User s Manual U18759EE2VOUMOO 51 78KO0 Lx3 See it NEC gt 1 lt Parameter file This file holds parameters and timing data required to rewrite the flash memory of the target device Do not modify the data in the parameter file because the data is related to the guarantee of rewrite data The parameter file is protected by the checksum function If the checksum result indicates an error the WriteEZ3 does not accept the parameter file Figure 43 Device Setup Window Parameter File Selection Parameter file
71. n the address bar then click Next Figure 26 Search Location Specification 3 Windows XP Found Mew Hardware Wizard Please choose your search and installation options lt 1 gt Check that Search for the best driver in these locations is selected Search for the best diver in these locations Use lhe chack boxes balor imit or expand the default search which includes local paths and removable media The best daver Found be installed Search removable meda CD ROM 1 Include this location in the seaech C Program FilesAMMECT oo tA FPL 33DRIVER 2 Check Include this location in the search only C Don search will the drives bo install Choose this option delect tha device dover from windows does not guarantee that the diver you choose pall be Ihe bast match For your hardware 3 Enter C Program Files NEC Tools32 WriteEZ3 DRIVER lt 4 gt Click 3 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 27 Windows XP Logo Testing 3 Windows XP Hardware Installation AN The software you are installing Far this hardware USB High Speed Converter has not passed Windows Logo testing to verify its compatibility with Windows Tell me why this testing is important Continuing your installation of this softwa
72. nual of the 78KO LF3 device 3 13 Temperature sensor U2 For temperature measurement and primarily as an application example the 78KO Lx3 See it board is equipped within an temperature sensor IC type S 8120C The output pin of the temperature sensor is connected to pin P21 ANI1 DSO of the 78 device 3 14 IR receiver module U4 For remote control application an IR receiver module is equipped on the 78 0 3 See it board The output terminal of the IR receiver type RPM7138 is connected to the remote control input pin P41 KR1 RIN of the 78KO LF3 device 3 15 Buzzer BUZ1 To generate acoustic signals and sound waves a buzzer is connected to the timer output port of the 16 Bit Timer Event Counter 00 equal to port P34 TI52 TIO10 TOOO RTC1HZ INTP1 of the 78KO LF3 device The AC buzzer operates in a voltage range of 2V 5V 3 16 Power LED LED1 LED1 is the power LED of the 78K0 Lx3 See it board It indicates if power is applied to the 78KO Lx3 See it board User s Manual U18759EE2VOUMOO 22 78KO0 Lx3 See it NEC 3 17 Connectors T1 13 and wrap field Several pins of the 78 microcontroller are combined to the connectors T1 T13 The corresponding assignment can be found in table below Additional the 78KO Lx3 See it board provides a wire wrap field area allowing the integration of additional application hardware wrap field JE XM connectors 3 Fig
73. options Read verify after Program Security flag after Pragram Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot black cluster reprogramming Target Reset Message Cancel lt Command options gt Blank check before Erase Checked User s Manual U18759EE2VOUMOO 65 78KO0 Lx3 See it NEC lt 7 gt Click the button The GUI software sets the parameters When the settings have been completed the following screen is displayed Figure 64 Completion of Parameter Setting xj File Device View Help Were gt gt FlashO penning Device Flash Open Mame gt gt COMMAND Device Setup PAM File Read Firm Version Ext Lade Parameter file PRM File Read OK is displayed 7980495 Format 0414 E1 00b Version Processor 0200 Mame Date The display is updated Chksum Connection to device COM Speed 115200 Range Chip Freg 6 00 Multiply 1 00 Ready NUM 34 6 Selecting a user program lt gt Select File gt Load 2 Select a program file to be written to the target device then click Open Figure 65 After Downloading xl File Device View Help pa 4 5N b gt Flash penning Flash Open Mame Firm Version Lade Success read HEX Ped Parameter File Mame for 0496
74. ork Cancel 2 The window below is displayed So check Search for a suitable driver is selected then click Next Figure 9 Search Method Windows 98SE Add New Hardware Wizard What do you want Windows to do Check that Search for suitable driver is selected Search for the best diver for your device Recommended Display a list of all the drivers a specific location You can select the driver you want Cancel User s Manual U18759EE2VOUMOO 30 78KO0 Lx3 See it NEC 3 Check the Specify a location check box only and enter C Program Files NECTools32 WriteEZ3 DRIVER in the address bar then click Next gt Figure 10 Search Location Specification Windows 98SE Add New Hardware Wizard Windows wl search for nes divers mits deiner database on your had dence and in any of the following selected locations Dick bo Aat the search disk driver 1 Check Specify a location only 3 Click 2 Enter C Program Files NEC Tools32 WriteEZ3 DRIVER Remark If the installation destination folder is changed at the time of GUI software installation enter new folde DRIVER 4 window below is displayed Click Next gt Figure 11 Checking Driver to Be Installed Windows 98SE Add New Hardware Wizard Windows dives seaich for lhe device USE High Speed Senal Windows p
75. re 34 BIg ae eiii RT TEE 44 Figure DIIVer UNIMSTANG ert a utens Onus prie 44 Figure 36 Completion of Driver nennen nnn 45 Figure 37 GUI Software Main 46 Figure 38 0 47 NG EE E LU TU MEER 48 Figure 40 HEX File Selection 48 aas eiui mc 49 Figure 42 Device Setup Window 51 Figure 43 Device Setup Window Parameter File 52 Figure 44 Parameter File Selection 52 Figure 45 Device Setup Window Host connection 53 Figure 46 Device Setup Window Supply Oscillator 53 Figure 47 Device Setup Window Operation 9 54 Figure 48 Device Setup Window Target Reset 54 Figure 49 Device Setup Window 2 55 Figure 50 Device Setup Window Command 55 Figure 51 Device Setup Window Security flag settings 56 Figure 52 Device Setup Window Disable Chip 57 Figure 53 Device Setup Window Disable Boot Cluster Reprogramming warning 57 User s Manu
76. re may impair destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation User s Manual U18759EE2VOUMOO 39 78KO0 Lx3 See it NEC 4 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 28 USB Driver Installation Completion 1 Windows XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for 6 USB High Speed Serial Converter Click Finish to clase the wizard lt Back Cancel 5 Proceed to the installation of the USB Serial Port driver Click Next gt Figure 29 Found New Hardware Wizard 2 Windows XP Found Hew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USB Serial 9 If your hardware came with an installation floppy disk insert it now What you want the wizard Check that Install from a list or specific is selected CO Install the software automatically Recommended 5 Install from a list or specific location Advanced Click Next ta continue User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NIEC
77. rring to CHAPTER 7 SOFTWARE INSTALLATION if the driver has not been installed yet Installing the parameter file The parameter file for the 78KO LF3 device are installed automatically during installation of WriteEZ3 GUI folder WriteEZ3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0495 device by download from the NEC Electronics Web site Download the parameter file for the PG FP4 from the following NEC Electronics Web site http www eu necel com updates Copy the parameter file downloaded from the NEC Electronics Web site into sub directory lt WriteEZ3 EXE install path gt PRM created during GUI software setup refer to CHAPTER 7 SOFTWARE INSTALLATION User s Manual U18759EE2VOUMOO 61 78KO0 Lx3 See it NEC 4 Connecting and starting lt gt Set the 78KO Lx3 See it board to the WriteEZ3 FLASH programming mode by switching SW1 SW to the following setting 4 NEC 78KO LF3 Demonstration Kit ORO ee 1 E z lt 1 2 zi 2 mi oll 2 G Ol eps ONE 02 72 9 44 SW1 t jet Li ja o i NER va qo 90 SW2 POWER FPL3 __ ON WriteEZ3 OFF OFF Bn 6 OFF OFF OFF NEN 2 Plug and Play Connect the 78KO Lx3
78. s of the IAR Embedded Workbench for 78K FP3 FLASH programming software documentation and or utilities for 78KO Lx3 See it if available be downloaded from the NEC WEB page s at http www eu necel com updates 1 4 Trademarks IAR Embedded Workbench visualSTATE IAR MakeApp and C SPY are registered trademarks of IAR Systems AB Microsoft and Windows are registered trademarks of Microsoft Corporation Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All other product names are trademarks or registered trademarks of their respective owners User s Manual U18759EE2VOUMOO 12 78KO0 Lx3 See it NEC 2 78KO LX3 See it system configuration The 78KO0 Lx3 See it system configuration is given the diagram below d wr Figure 1 78KO Lx3 See it system configuration 2 1 78KO0 Lx3 See it 78KO LX3 See it is a demonstration kit for the 78KO LF3 8 Bit microcontroller with integrated LCD controller The 78K0 Lx3 See it board is connected to the host system via USB interface cable The host system may be used for onboard FLASH programming of the 78 internal FLASH memory and to allow execution of application programs 78KO LX3 See it starterkit Additionally it supports On Chip debug functionality by using the IAR C SPY debugger 78K0 Lx3 See it runs the microcontroller at 8 0000 MHz operating speed Per default the internal high speed oscillator o
79. t Local 4 Computer D System Tools See Disk drives Event viewer E Display adapters Shared Folders JA DYDICD ROM drives Y Local Users and Groups ic Floppy disk controllers p Performance Logs and Alerts H Floppy disk drives aa Device Manager 3 ATA ATAPI controllers 5 Storage cm keyboards Mice and other pointing devices Removable Storage Disk Defragmenter Monitors 3 Disk Management 9 Network adapters Hn Services and Applications E Ports LPT af Communications Pork COM E Communications Pork COM j p TEE Check that USB Serial Port 7 USB Serial Port COM 15 present Processors SCSI and RAID controllers Sound video and game controllers Check that USB High Speed 9 System devices Serial Converter is present Universal Serial Bus controllers AMD 756 PCI USB Op4K Host Controner USB High Speed Serial Converter Ose Root Aub For Windows 98SE Me Caution Do not select Update and when communicating with the target device For Windows 2000 XP Caution Do not perform Hardware Modification Scan when communicating with the target device Remark In the GUI port list box the same communication port as COM of USB Serial Port COM needs to be selected If the drivers above are not displayed or the mark x CHAPTER 10 TROUBLESHOOTING is prefixed refer to User s Manual U18759EE2VOU
80. tor product operation and application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC Electronics no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment hom
81. ty flag settings Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Caution The following is the correspondence between the Erase and Program Commands when the security functions of 3 microcontroller are valid Chip Erase Command Block Erase Command Program Command Disable Chip Erase Valid Notet Disable Block Erase Disable Program Disable Boot block Invalid Valid Note2 Valid Note2 cluster reprogramming Notes 1 Since the Erase command is invalid the data that differs from the data already written in the flash memory cannot be written Notes 2 Valid only for the area other than the area specified as the boot area User s Manual U18759EE2VOUMOO 78KO0 Lx3 See it NEC Erase Disable Chip Erase check box this check box is checked the Erase command becomes invalid in the entire flash memory area of the target device At this time the warning message shown below is displayed Figure 52 Device Setup Window Disable Chip Erase AN When Chip Erase is disabled chip cannot be erased and programmed any more Caution aware that if the security flag is set in target device neither erasing nor writing to the device can be enabled afterward Disable Block Erase check box this check box is checked the Erase command becomes invalid in all the blocks of t
82. ure 5 Connectors T1 T13 and wrap field Table 11 Connectors T1 T13 User s Manual U18759EE2VOUMOO 23 78KO0 Lx3 See it NEC 3 18 Soldering bridges Additional configuration of the 78KO Lx3 See it board can be done by the soldering bridges 21 A8 and V1 V11 The different configuration modes are shown in the tables below The soldering bridges A1 A8 and V7 can be used to reconfigure the A D converter input channels and the reference input voltage A1 Closed default ANIO DSO connected to Vss disconnected from Vss Closed default ANI1 DS0 connected to temperature sensor U2 Open disconnected from to temperature sensor U2 Closed default ANI2 DS1 connected to Vss Open disconnected from Vss Closed default ANI3 DS1 pin connected to jumper 2 Open disconnected from jumper J2 Closed default ANI4 DS2 connected to Vss Open disconnected from Vss Closed default ANI5 DS2 connected to VDD27 Open disconnected from VDD27 ANIG REF Open disconnected from Vss Table 12 Setting of soldering bridges A1 A8 V7 The soldering bridges V1 V6 and V8 V11 can be used to reconfigure the power supply of dedicated circuits of the 78KO Lx3 See it board For more details please refer also to the schematics of the 78KO LX3 See it board Closed default BUZ1 Open Closed default U6 not assembled Open Closed default Open Closed default Open Closed def
83. ware Within this mode FLASH programming is done by using the default USB UART connection to the Host computer 3 1 3 QB MINI2 Mode OCD debugging Normal execution mode Within this mode the QB MINI2 On Chip debug emulator be connected to the 78 0 1 3 See it board in order to use On Chip debug function of the 78 device Additional when no QB MINI2 On Chip debug emulator is connected to the 78KO Lx3 See it board the 78KO LF3 device starts within normal execution mode and the user program stored in the FLASH memory is executed User s Manual U18759EE2VOUMOO 15 78KO0 Lx3 See it NEC 3 2 RESET button SW4 SWA is the reset button It activates the power on reset It is connected to the reset input of the 78KO LF3 microcontroller 3 3 Navigation switch SW3 Button SW3 is a navigation switch connected to the key interrupt port of the 78KO LF3 device It operates in five directions including a center push function The connection of SW3 is shown in the table below Up KR6 Left Right P43 KR3 KR3 KR5 P42 KR2 P44 KR4 P46 KR6 Down Table 2 Navigation switch SW3 User s Manual U18759EE2VOUMOO 16 78KO0 Lx3 See it NEC 3 4 External A D measurement inputs connector J1 Connector J1 can be configured to measure external analogue signals by using the internal 10 Bit A D converter or respectively the 16 bit A gt A D converter of the 78KO LF3 device To use this mode ple
84. z nior read bo install the best dimer for thes device Back to select dilereni diver or click Mest continue Location of diver Click User s Manual U18759EE2VOUMOO 31 78KO0 Lx3 See it NEC 5 When the window below is displayed the installation of the USB driver is completed Click Finish The installation of the USB Serial Port driver is then automatically performed Figure 12 Installation Completion Windows 98SE Add New Hardware Wizard USE High Speed Serial Converter Windows has Finished installing the software that your new hardware device requires Cancel 7 4 2 Installation on Windows 2000 1 When 78KO Lx3 See it board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Click Next gt Figure 13 Found New Hardware Wizard 1 Windows 2000 Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps vou install a device driver for a hardware device Cancel To continue click Next User s Manual U18759EE2VOUMOO 32 78KO0 Lx3 See it NEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next Figure 14 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers up device driver is a so
Download Pdf Manuals
Related Search
Related Contents
“必読” 機械の使用前には必ずお読み下さい。 Guide d`utilisation 取扱説明書 Innova OXI PRIMER - Ficha Técnica MOXA EtherDevice Switch EDS Garantía Hino Serie 300 マシンコントローラ MP2300 基本モジュール Samsung PS43E450A1W Priručnik za korisnike lavoro - Beni Culturali Calabria Motorola 9HMOTO Cell Phone User Manual Copyright © All rights reserved.
Failed to retrieve file