Home
User`s Manual DemoKit-LF3 Demonstration Kit for NEC - Digi-Key
Contents
1. eeee esee 51 9 4 The Add New Hardware Wizard initializes unexpectedly 52 9 5 Communication with the DemoKit LF3 board is disabled 52 Project Manager and Debugging eese eeeee e eeee nennen nennen nnn 53 Sample PrO GCts peer 57 in uult 57 LE2 Kucnen Timer Sample 251mm ave beecEekes a aie cie bout eu Cun uw dog 57 11 3 Real Time CIockcsambple eege geesde 57 UR Fetter eege mnt 57 1145 Temperature Sample tu 58 kb Meller Ee 58 USB Interface Cable mini B type 1 ee e eeeee eee Leeeee reine ee nennen nn EE 59 SChemalles scu cu UE MEE A C E M 60 U18759EE1VOUMU1 NEC viii DemoKit LF3 User s Manual NIEC 1 Introduction Demokit LF3 is a demonstration system that supports onboard debugging flash programming and real time execution of application programs on NEC Electronics 8 bit 78KO Lx3 microcontrollers MCUs with integrated liquid crystal display LCD controllers The board is designed to be connected to user hardware such as digital I O or analog signals 1 1 Features e Easy to use device demonstration capabilities navigator switch 224 segment LCD panel temperature sensor infrared IR receiver module I O lines and UART serial interface for easy demonstration of simple I O functions e On board debugging using the ID78K0 TK debugger and UART USB i
2. 15 3 2 On chip debugging via QB MINI2 emulator e ecce 16 4 Installation and operation sociis ras crede ope ern Oe gcc ada qo nda e pav E cu Sox scere to mnnn 17 5 Hardware instalation e m 18 U18759EE1VOUMU1 NEC vi DemoKit LF3 User s Manual NIEC 6 Software installation erect 18 6 1 NEC Electronics software tools installation 18 6 2 Sample program installation eee eeeeeeeeee eee e eeeeee enne enhn nana nnn 18 6 3 WriteEzZ3 EEGEN eege See deeg 18 6 4 USB driver installato osea Fa ian de Re vous vue cuu eva eut uuu mu 18 6 4 1 Installation on Windows 98SE Me operating system 19 6 4 2 Installation on Windows 2000 operating system 21 6 4 3 Installation on Windows XP operating system 27 6 5 Confirmation of USB Driver Installation e essere rere nen 31 6 6 Driver uninstalal EE 32 7 WriteEZ3 flash programming program ssssssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnna 34 7 1 Mana EEN 34 7 2 ele le TEE 35 7 3 Ment Daf sssaaa aaia a Qui li Rua 35 7 3 1 lala TR tT Tem 35 PeT Bee Reie ioun E Me EUIS 36 P2152 QUIECOR IS BEE 36 7 3 2 DOV ICS TC EE 36 fJ3e 4 Blank Check c mmand BE 37 Pie Elas COMMANA e OU Tm UT LIST
3. dai e i LN Ar BESSE AM E Eg E gc SSeS 225 55 2 2 25 ee g W 5 CHARACTER FIELD INDICATOR Character Character Character Character Character Character 5 4 2 1 Cash WII WIEDERE e E E HENH NNN Be EEEREN INN ge OF HEIE EE BEER BEER BERR eee eee BEE EE IN II WIR eee ee BREE BERBER BERBER BERR UU eee BEEBE E EEEREN BHENHENENHE BERR BRR BEE Lana EE UN BERR UNIEN e a2 ai 40 z 43 s i ai a s ah a2 ai 0 4 A3 sit s z ai s i ai a z s i az j 0 U18759EE1VOUMU1 9 DemoKit LF3 User s Manual NIEC Table 9 LCD segment assignments Bit LCD RAM address position 27 24 23 22 20 MOON SUN All FLASH bit ALARN Sub symbol symbol 78KO0 Lx3 bit6 520 440 430 420 400 bits 521 441 431 421 401 bit4 522 442 432 422 402 bit3 523 443 433 423 403 bit2 524 444 434 424 404 bit 525 445 435 425 405 bitO 526 446 436 426 406 Bit LCD RAM address position 19 15 14 13 bit7 Tue Sat V A bit6 340 300 000 010 bitb 341 301 001 011 bit4 342 302 002 012 bit3 343 303 003 013 bit2 344 304 004 014 bit1 345 305 005 015 bitO 346 306 006 016 Bit LCD RAM address position 9 8 5 4 3 Bt3 An5 bit7 Battery Bi2 Antenna Ang nus bit6 100 110 140 200 210 bit5 101 111 141 201 211 bit4 102 112 142 202 212 bit3 103 143 5 CS 143 203 213 bit2 104 114 Se 144 204 214 bit 105 115 25 145 205 215 bitO 106 116
4. Figure 29 Installation of USB High Speed Serial Converter Complete Windows Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for USB High Speed Serial Converter Click Finish to close the wizard B ac k B a cel 5 Open the Found New Hardware Wizard for the USB serial port driver select Install from a list or specific location Advanced and click Next Figure 30 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 USE Serial Fort If your hardware came with an installation CD lt a or floppy disk insert it now What do vou want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Hest to continue i Cancel U18759EE1VOUMU1 29 DemoKit LF3 User s Manual NIEC 6 Select Search for the best driver in these locations and Include this location in the search Click Browse to find the fscommand kO WAITEEZS3 drivers folder and then click Next Figure 31 Search for the Best Driver 2 Windows XP Found Mew Hardware Wizard Meate choose your seach and installation oplons Co Search bor lhe best dives im these locators Use Ihe check boxes below bo leg or eens the delaul search which neludes local pats and removable mada The
5. The Security command programs the security flag that you set for the target device on the Advance tab of the Device Setup box 7 3 2 6 Checksum command The Checksum command reads the target device s checksum value 7 3 2 7 Autoprocedure EPV command The Autoprocedure EPV command executes an Erase command Program command and Verify command in succession During Autoprocedure EPV execution the Action Log window displays progress information to indicate programmer operation After completion the program displays the command result U18759EE1VOUMU1 37 DemoKit LF3 User s Manual NIEC 7 3 2 8 Signature Read command The Signature Read command reads the device name flash memory capacity and other signature information of the target device 7 3 2 9 Setup command The Setup command opens the Device Setup box and enables you to specify command and programming options that are saved in a parameter file PRM and retrieved at each session Shaded unavailable options may not be modified The Device Setup box consists of two tabs Standard and Advance The Standard tab contains options for rewriting the target device s flash memory Settings will differ depending on the device being used so refer to the user s manual for your device before making your selections Figure 43 Standard tab Iz Device Setup E X Standard Advance Farameter file PAM File Head Hast connection Fort Frequency MHz Spe
6. don t care OFF OFF OFF OFF 2 After you connect the Demokit LF3 board to the host computer via the USB cable the Plug and Play feature initializes the driver If the connection was already established press the SW4 reset button to release flash programming mode U18759EE1VOUMU1 45 DemoKit LF3 User s Manual NIEC 3 To initialize the WriteEZ3 program click Start Programs NEC Electronics Tools gt WriteEZ3 WriteEZ3 Figure 50 Main window ATT ox File Device View Help paUs 1 Device Name Firm Version ExtCode Vendor Parameter file gt Name Format Version Processor Ver Load file Name Date Chksum Area Connection to device Port Speed Range Freq Multiply Ready ge Sen 4 Click Device Setup to open the Device Setup box Click the PRM File Read button Figure 51 Device Setup box EN Ei Device Setup E x Standard Advance Parameter file PAM File Read Host connection Fort Frequency MHz Speed 15200 sl Multiply rate Operation Mode B Chip Start Block End Supply oscillator C Area Show Addres Target Reset Message OF Cancel U18759EE1VOUMU1 46 DemoKit LF3 User s Manual NIEC 5 Locate and select the 78F0495 prm parameter file in the C Program Files NEC Electronics Tools WriteEZ3 V1 10 PRM directory and then click Op
7. 13 Schematics E 3 KI ia i i S E m MADE IN JAPAN 62 0148A 2 e NEC 300 Pina vn zr z 26 Library Parts 110 Heta vss F SCH vpn cr D duF uz t vo VOUT NC TANI d F1 vt iD VD XT DHOK HOO eS 114 Parts CW g SiOJSTOLd VF rios RI WS ld Fae sige HI i E Le Loon Tee C 13 TE E E eaaa T ON ET IRCd rra iera Ar LS A e K ch can bowed zn3stld E a E I fe See Er kee Fotis amp e sO sed Cd LV PIRA 12 2 LHI MOODLE oa LWA SO Li eed TOSS Teld ee SE d Ax EFi NM va Cp i FPL m 48 F RIGHT DOWN 2 SERHABEO TO vi qp uF aay C1 d U18759EE1VOUMU1 60 NEC DemokKit LF3 schematics 2 2 DemokKit LF3 User s Manual D GBWDMS Si IEN o Oty PME Law l M5 13834 23 fe POE NS LEON TENS v wa E 4 i 044 S34 o pic K ST H D S S t Sen 5 un 8 aiin EIA HIJA zz NIORT DACIA Pino te pre a amp LM Ern gin aa SODA viii Lode OCA NE 3 ro vet D uaassri BOCZDOEZOA TRAINS a E wen s i seid z 7 SLEG THINS G ai wri A aan Lie zaa 61 U18759EE1VOUMU1
8. User s Manual DemokKit LF3 Demonstration Kit for NEC Electronics 8 bit 78K0 Lx3 Microcontrollers September 2007 NEC Electronics America Inc All rights reserved Printed in U S A Document No U18759EE1VOUMU1 DemoKit LF3 User s Manual NIEC The information in this document is current as of September 2007 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
9. 2 8 Y1 external main oscillator The microcontroller s clock generator can be configured to work with an external oscillator connected to the X1 and X2 pins For this mode you must equip the board s Y1 pad with a corresponding oscillator Refer to the microcontroller user s manual for a description of how to configure the clock generator 2 9 OCD1 QB MINI2 connector Connector OCD1 not assembled enables you to connect the QB MINI2 on chip debugging emulator available separately to the DemoKit LF3 board to use the microcontroller s on chip debugging function Table 5 Connector OCD1 signals OCD1 Signal 1 RESET_IN RESET OUT FLMDO VDD IN X2 GND X1 GND c o 0O C AJOJN Not connected VDD O U18759EE1VOUMU1 7 DemoKit LF3 User s Manual NIEC When using QB MINI2 for debugging purposes configure SW2 of the DemoKit LF3 board as follows Table 6 Configuration of SW1 and SW2 when using the QB MINI2 Mode SW2 TP PEEP PPh RT TS Ts Te 77 op une L Joy NN WS EES RSR OFF OFF Don t care OFF OFF OFF OFF For more information about how to configure the DemoKit LF3 for on chip debugging refer to Section 3 On Chip Debugging 2 10 USB1 interface connector This interface enables you to connect the ID78K0 TK debugger to the Demokit LF3 for on board debugging using commands for programming memory executing code single stepping setting breakpoints and manipulating memory The WriteEZ3 flash
10. illustrative purposes in semiconductor 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 equip
11. Erase commands in all of the flash memory blocks specified in the Operation Mode section of the Standard tab Makes the boot block set in the boot block cluster the last block Disable Boot block displays a message indicating that the boot block can no longer cluster reprogramming be erased and programmed also if the security flag is set in the check box target device the boot area cannot be rewritten to the device afterward U18759EE1VOUMU1 40 DemoKit LF3 User s Manual NIEC The following is the correspondence between the Erase and Program commands when the microcontroller s security functions are valid Table 19 Correspondence between Erase and Program command during valid security functions Command Option Chip Erase Block Erase Program Disable Program Valid Invalid Invalid Disable Boot block cluster reprogramming Valid Notes 1 Since the Erase command is invalid the program cannot erase the flash memory to remove the bad data and write the new 2 he command is valid for areas other than the one specified as the boot area 7 3 3 View menu Clicking the View menu displays the Toolbar and Status Bar options Figure 45 View menu Iz WriteE 3 File Device view Help E wv Toolbar f wv Status Bar RON gt gt Flash penning Flash Open OF 7 3 3 1 Toolbar option Selecting Toolbar displays the toolbar clearing Toolbar hides the toolbar 7 3 3 2 Status Bar option Selecting Status B
12. Figure 61 Project Workspace DER LEG LIT ETE uo ir 4 BERI oru 1nd Ble dk Find Laver Wee Praet b i ool pier iip amp DGM dA om Rus le l fe kx m Co pyrigkt C HTC Kiectronics Corporation Zog HEC ELECTRONICS CONFIDENTIAL AND PROPRIETARY Lii rights reserved by HEC Electronica Corporation This program suet he used solely for the purpose for which it was furnished by MEC Electronica Corporation Ho part of this program may be reproduced oz disclased to others in as form wirhaur che prior written permission of WEC Electronica Corporation Use of copyright netiee dese met evidence t punlicacion of che program ef fo mnEEREEEREREREEHREEEHREERHSHEEHEREEREEEHEEEHEHEEEHEEEEESEERREEREEMENEEREENME Ff Wpragma directive for COMED ff x x D I maEEEREEEGEEEGEEERZEEREREEREEEEEEEEGEEEREENHASEHEHAEHEHGEREZEEEZEEHEEEEHAEEEEGEEEEMGEEEEEE prega ei Npragma interrupt INTER isr INTER Spree intercept INTTES imr IMTTES1 Ninclude lod br Wimclude definas k 3 Atthis point you can edit build and link the sample code provided For information about how to use the NEC Electronics software tools refer to the associated documents for each U18759EE1VOUMU1 54 NEC DemoKit LF3 User s Manual 4 To debug the code make sure that the board is configured for on chip debugging From the Start menu click Programs NEC Tools32 Portconfig for ID78K0 TK and then configure
13. Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Target Reset Message Cancel Table 18 Advance tab elements Element Description Executes a Blank Check command before an Erase or Autoprocedure EPV command does not execute an Erase command if the Blank Check result is OK Blank check before Erase check box Read verify after Program Verifies the data written to flash memory after the execution of Command check box Program and Autoprocedure EPV commands options area Security flag after Automatically programs the selected security flag after execution Program check box of Program and Autoprocedure EPV commands Checksum after Program Reads the target device s flash memory checksum value after check box execution of Program and Autoprocedure EPV commands Disables the Erase command and displays a warning message Disable Chip Erase check stating that the chip can no longer be erased and programmed box if the security flag is set in the target device erasing and writing to the device cannot be enabled afterward Disable Block Erase check box unavailable if the Chip option is selected Disables the Erase command in all of the flash memory blocks specified in the Operation Mode section of the Standard tab Security flag settings area Disable Program check box Disables the Program and
14. a list of authorized representatives and distributors and to verify Device availability Ordering information Product release schedule Availability of related technical literature Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth Network requirements In addition trademarks registered trademarks export restrictions and other legal issues may also vary from country to country U18759EE1VOUMU1 DemoKit LF3 User s Manual NIEC DemoKit LF3 User s Manual NIEC Revision History Date Revision Chapter Description 09 16 2007 V1 00 First release 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 U18759EE1VOUMU1 DemoKit LF3 User s Manual Contents Mi MAT ROGUGC WOM ae en 1 1 1 SEENEN 1 12 System requiremenls oria cao Ue ceca qiero deve ev eb ceases 2 t3 COMENS EE 2 E WE E Ree a Le UE e EE 2 1 5 Demonstration DOAN i tiie ELM IM EDU MUN 2 1 6 HOSLCOBIDUIGI E 3 1 7 FICXIDIG DOWER SUDDIY e M 1 3 2 DemoNRIEL F3 components 332 esee E Eo eei eeng 4 2 1 SW1 and SW2 configuration switches eeee ccce e ceeeeeeee eren enne nnn 5 2 1 1 IDK78KO
15. be 146 206 216 Row index Colomn index Character index 2 12 RR1 RR5 external LCD resistors The DemokKit LF3 board can also be configured to use external voltage divider resistors for the generation of the LCD drive power supplies For information about the external resistance division method refer to the microcontroller user s manual 2 13 U2 temperature sensor For temperature measurement and primarily as an application example the DemoKit LF3 board is equipped within an S 8120C temperature sensor IC The output pin of the temperature sensor is connected to the microcontrollers P21 ANI1 DSO pin U18759EE1VOUMU1 10 DemokKit LF3 User s Manual NEC 2 14 U4 IR receiver module For remote control applications the DemoKit LF3 board is equipped with an RPM7138 IR receiver module whose output terminal is connected to the microcontrollers P41 KR1 RIN remote control input pin 2 15 BUZ1 buzzer To generate acoustic signals and sound waves a buzzer is connected to the timer output port of the 16 bit timer event counter 00 equivalent to port P34 TI52 TI010 TOO0 RTC1HZ INTP1 of the microcontroller The AC buzzer operates in a voltage range of 2 5V 2 16 LED1 power LED LED1 is the power LED that indicates when the Demokit LF3 board has power 2 17 Connectors T1 T13 and wire wrap field Pin assignments for the T1 T13 connectors are shown in Table 10 Additionally the DemoKit LF3 board provides a wire wrap field area th
16. best canes found will be installed Search removable media ooo CHAOL fscommand KO WRITEEZ3 drivers C Dont search will choose tfe diee bo install Choate this ptn to select the device dever irom a fel Windows does nel guarantee at be divar pou choose wil Ge the best mach For you hardware 7 If you receive this message click Continue Anyway Figure 32 Windows XP Logo Testing 2 Windows XP The software you are installing For this hardware USE Serial Fort has not passed Windows Logo testing to verify its compatibility with Windows SH Tellme why this testing iz important Continuing your installation of this software map impair or destabilize the corect 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 U18759EE1VOUMU1 30 DemoKit LF3 User s Manual NIEC 8 Click Finish to complete the installation Figure 33 USB Serial Port2 Driver Installation Complete Windows XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for E USB Serial Port Le Click Finish to close the wizard Back Fmsh Cancel Caution On Windows 2000 XP operating systems do not execute a Hardware Modification Scan from the Windows Device Manager when com
17. device For information about the PRM file refer to Section 7 WriteEZ3 flash programming software D Cause The setting of the Supply oscillator in the Device Setup box may be incorrect Action Make a correct setting according to the specifications of the target device U18759EE1VOUMU1 52 DemoKit LF3 User s Manual NIEC 10 Project Manager and Debugging Before using the DemoKit LF3 s on board debugging function with the debugger you must first install the USB driver The communication between the starter kit and debugger running on the personal computer is done via the standard UART USB connection To operate the board in on board debugging mode switches SW1 and SW2 must be configured as follows Table 22 SW1 and SW2 settings ebebeb 7 T5 5 5 5 s 7 s orba ov ow EZE ron ow ox ow on ov JE Ge EE EE E EE Figure 59 SW1 and SW2 settings b II TK 78 debugging via On Board debug function U18759EE1VOUMU1 53 DemokKit LF3 User s Manual NIEC 1 To launch the NEC Electronics Project Manager PM Plus click Start Programs NECTools32 PM Plus Figure 60 Project Manager RO plus No Workspace File Find View Project Build Tool Help For Help press F1 fos Tee Ten s v RS oz 2 Click File Open Workspace to locate the sample project Open the 78K0 LCD DEMO prw file the workspace file that contains general information about the demonstration projects and settings
18. programming software also uses the USB communication channel to program application software into the CPU s internal flash memory The power supply of the Demokit LF3 board is also provided by the USB1 connector Figure 4 Pin configuration of USB1 connector and USB mini B type host Table 7 Pin configuration of USB1 connector Connector USB1 Signal Name 1 VBUS 2 D 3 D 4 No connection 5 GND For connection with the host use the USB cable mini B type bundled with the DemokKit LF3 U18759EE1VOUMU1 8 DemoKit LF3 User s Manual NIEC 2 11 LCD1 224 segment LCD panel The Demokit LF3 board is equipped with a 224 segment transflective type LCD panel that operates at a supply voltage of 5V and a multiplex rate of x8 The LCD driver specifications are defined in Table 8 Table 8 LCD driver specifications Specification Mode Driver voltage generation Internal resistance division Bias method 1 4 Timesharing 8 Common signals 8 COMO COM7 Segment number 28 SEG4 SEG31 Number of maximum display pixels 224 28 segments x 8 common The LCD is divided into character and indicator fields The character field is composed of six 5 x 7 dot matrix characters The indicator field includes a set of predefined symbols for instance weekday battery and antenna symbols An outline of the LCD in Figure 5 and corresponding segment assignments are shown in Figure 6 Figure5 LCD outline wma wm oum mm See Se m mk
19. the port for the serial communication Figure 62 Portconfig for ID78KO TK BEES Por COM Cancel 5 Click Tools Debugger Settings Select the ID78K0 TK debugger and click OK Figure 63 Debugger Settings Debugger Settings X Select Debugger Debugger File Marne JEAN ECTOOLS 32 6 IN IDEOS2MT Ke EXE Option Debug Target Debug Target File dema sDremak t LF3 sbuzzer Imf vw Execute Simbol Reset after Download w Execute CPU Reset after Download Debug Options Downoad the Debug Target Files in the same Project Group Debug Target File List cet pm U18759EE1VOUMU1 55 DemokKit LF3 User s Manual NEC 6 Click Build Rebuild and Debug to invoke the ID78K0 TK 7 Click Yes in response to the prompt Figure 64 Prompt for Load Module File ID78K0 TK 2 WFZ D Da you want bo download Load Module File 8 After a successful download standard commands for single stepping starting stopping setting breakpoints and manipulating registers and memory are available Figure 65 ID78K0 TK debugger i ID78KO TK 78KO_LCD_DEMO prj File Edit View Option Run Event Browse Jump Window Help i um gt n a Sl iel jga Ql Aleta ER sl Elf 5 65 Source main c Search lt lt ER Watch Quick Refresh Close oid main lt void gt a DI lt gt ve disable all interrupts ve Initialization of clock OSCCTL d externa
20. the header files 11 1 Buzzer sample This demonstration program drives the buzzer using the 16 bit 00 timer event counter The timer is configured to generate a rectangle waveform By changing the timer s output frequency you can have the buzzer generate different tones As demonstration the buzzer plays a simple melody 11 2 Kitchen Timer sample Kitchen timer functionality is realized using the real time counter and interrupt interval function The setting of the kitchen timer s count value and the cancellation of a started count process can be done using the navigation switch When the timer s count time elapses the LCD displays the alarm symbol and the buzzer sounds an alarm 11 3 Real Time Clock sample This sample project realizes a real time clock The program initializes the real time counter to generate an exact clock reference based on the 32 768 kHz subclock and displays the actual time on the LCD You can then use the navigation switch to adjust the time or switch between AM and PM in 24 hour mode 11 4 Remote Control sample The remote control sample uses the DemokKit s IR receiver module For this program connect the receiver s IR output terminal to the microcontrollers P41 KR1 RIN remote control input pin The program can then be executed to receive NEC Electronics formatted custom code and data transmitted by an external remote controller The LCD will display the received data 16 bit wise U18759EE1VOUMU1 57 DemoKit L
21. to the DemoKit LF3 cannot be established This section provides some guidelines for troubleshooting the problem 9 1 The Plug and Play feature does not initialize after driver installation Cause The USB connector may not be inserted normally into the computer s USB port Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector and then insert the USB connector again after a while 9 2 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 the Software Installation section 9 3 The drivers did not in install correctly The USB serial port and or USB high speed serial converter are not listed on the Windows Device Manager or they are listed with an or x prefix 1 Cause The USB connector may not be inserted normally into the computer s USB port Action Check that the USB connector is inserted fully into the computer s USB port Alternatively disconnect the USB connector from the USB port and re insert again 2 Cause The driver may not be installed correctly Actions When this product is connected to the computer right click the driver marked with or X A Click Erase On the Windows Device Manager execute a Hardware Modification Scan Install the driver again to initiali
22. 1 navigation switch connects to the microcontroller s key interrupt input The switch operates in five directions and has a push function in the center Figure3 SW3 navigation switch SW3 Connection to 78K0 LF3 MCU Left P43 KR3 Down P42 KR2 Select P44 KR4 Right P45 KR5 Ge Up P46 KR6 2 4 J1 external A D measurement inputs You can configure connector J1 to measure external analog signals using the internal 10 bit A D converter or the MCU s 16 bit sigma delta A D converter by opening the corresponding A1 A8 soldering bridges Table 2 Connector J1 inputs enee In P21 ANI1 DS0 GND 2 5 J2 external A D measurement inputs COIN OO ol SV Ww PP Connector J2 can be used to measure an external analog signal using the internal 10 bit A D converter or the microcontroller s 16 bit sigma delta A D converter U18759EE1VOUMU1 6 DemoKit LF3 User s Manual NIEC Table 3 Connector J2 inputs J2 Input 1 P23 ANIS DS1 2 GND 2 6 J4 IDD measurement Connector J4 not assembled can be used to measure the microcontroller s current consumption To use this mode open the V8 soldering bridge 2 J5 external power supply input Connector J5 not assembled enables you to apply an external power supply to the Demokit LF3 board without an active USB connection Table 4 Connector J3 inputs J5 Input 1 VDD 45V 2 GND Note Be sure to unplug the USB connection before applying external power supply to input J5
23. 3 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 32 DemoKit LF3 User s Manual 3 Click Continue Figure 36 Driver Uninstaller FTOI Uninstaller Version 2 1 If your USE device is connected please unplug it now Press Continue En uninstall the drivers or Cancel to quit 4 Click Finish to complete the removal process Figure 37 Completion of Driver Un installation FTOI Uninstaller Version 2 1 Uninstalling ID_O403 PID_6001 Deleting registry entries Deleting files Uninstall complete press Finish to exit NEC Caution Removal of the GUI software causes the Ftdiunin exe file to be deleted in which case you must manually delete the USB serial port COM and USB high speed serial converter files from the Windows Device Manager U18759EE1VOUMU1 33 DemoKit LF3 User s Manual NIEC T WriteEZ3 flash programming program Installation of the WriteEZ3 program automatically installs the microcontrollers lt WriteEZ3 install path gt PRM parameter file Nevertheless you can also download the newest parameter file for the uPD78F0495 microcontroller from the NEC Electronics America web site 1 Go to http Awww am necel com micro develoment and download the file 2 Copy the file into the lt WriteEZ3 EXE install path gt PRM subdirectory created during software setup described in Sec
24. 3 User s Manual NIEC 13 Click Autoprocedure EPV to execute Blank Check Erase Program and Verify commands on the uPD78F0495 device in succession Figure 58 Result of EPV command BCE File Device View Help pad EXN b COMMAND AutoProcedure E pv Flash Blank Checking Name D 8F0435 not blank then erase Una Firm Version 1 00 seirPrenremmirmeren art 10h Flash Programming lt 10 gt Se Flash Programming 20225 Flash Programming 3022 Flash Programming 40225 Flash Programming 5022 Flash Programming 5022 Flash Programming ZU Load ie Flash Programming lt 80 gt Name YOLTMETER HEX ease nime Date 2007 05 24 16 12 08 Chksum D57Ch ash Internat v eriy Lk Area O00000h 000F53h Connection to device Pot COM3 Speed 115200 Range Chip Freg 6 00 Multiply 1 00 Parameter file Name 78F0435 Format 0414 Version E1 00b Processor Ver 0200 14 Click File Quit to terminate the program and save your settings in the WriteEZ3 INI file for initialization at the next session 15 Reset the DemoKit LF3 board to normal operation QB MINI2 mode using the Plug and Play feature or pressing the SWA reset button 16 Restart the program by clicking Start Programs NEC Electronics Tools WriteEZ3 WriteEZ3 U18759EE1VOUMU1 50 DemoKit LF3 User s Manual NIEC 9 Troubleshooting In some cases connection
25. 37 kara J FOOrAMLCOMMMANG 2 52 55 5 m EIEa aia Ee 37 Toca Neny COMM ANG EE 37 Ke DECUNLY COMMA ANG TET TERUEL 37 7 3 2 6 Checksum command 5 5 ortas ka aia tu EE Rr s wan ovo RR Haba ka qu Fx EE M va deet 37 7 3 2 7 Autoprocedure EPV commande 37 7 3 2 0 Signature Fiead commarig io io tero deed ao eate pene res Re amer 38 9 2 9 EE 38 7 3 3 Nine mms 41 Fee Ge MN TOODA ODIO EG 41 ee AUS Bal OPON E E 41 7 3 4 Hep IAG IMU sann 41 7 4 Programmer Parameter window ccccsssccseesseesenseeesnseeeseesseeseeseeenenseeesoeaeeesoonsees 42 8 WriteEZ3 flash programming software e eese eere eere 44 8 1 Configuration of the DemoKit LF3 board eeee eee reeeeeeeeeuu 44 8 2 Configuration of the WriteEZ3 software cc cceceeeeeeee erc e eene n nennen 44 8 3 Installing the parameter file e sees 44 9 4 Gonnecung and Starling audeo eb ce eid Ri eee Co locua ei eee uto cud Slade EL cue 45 U18759EE1VOUMU1 vii DemoKit LF3 User s Manual 10 11 12 13 TROUDIESIMOO UNG isis csssete c 51 9 1 The Plug and Play feature does not initialize after driver installation 51 9 2 The driver file cannot be found at a specified location 51 9 3 The drivers did not in install correctly
26. AITEEX drivers folder and then click Next Figure 27 Search for Best Driver Windows XP Found New Hardware Wizard Please choose your search and installation options Search for the best diver in these locations Use Ihe check boxes balor bo imit or expand the default search whch includes lacal paths and removable media The best daver Found rall be installed Cl Search removable meda Moog CD AON Include this locaton in the seaech DMscommandKOWRITEEZ3 drivers C Don t search will choose the diver bo install Choose this option to select the device diver from a het Windows does not guarantee that the diver you choose wall be the best match for pour hardware 3 Ifyou see this message click Continue Anyway Figure 28 Windows XP Logo Testing Windows XP Hardware Installation The software you are installing For this hardware USB High Speed Serial Converter has nat passed Windows Logo testing to verify its compatibility with Windows SH Tell me why this testing ts important Continuing your installation of this software may impair or destabilize the corect 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 U18759EE1VOUMU1 28 DemoKit LF3 User s Manual NIEC 4 Click Finish to close the hardware wizard
27. F3 User s Manual NIEC 11 5 Temperature sample The temperature measurement program uses the onboard temperature sensor IC and both of the microcontroller s A D converters You may select from two display formats degrees centigrade C and degrees Fahrenheit F using the navigation switch Additionally you may select from two different A D converter resolutions using the microcontroller s 10 bit successive approximation type A D converter or 16 bit delta sigma type A D converter 11 6 Voltmeter sample This program measures either the DemoKit LF3 board s power supply voltage or an external voltage supplied to the J2 connector Before applying an external voltage to the J2 connector carefully read the user s manual for your device to find the electrical specifications for the A D converter s input port The P25 ANI5 DS2 input port is used to measure the power supply voltage For external voltage measurement the input port P23 ANI3 DS1 is reserved You can select the different measurement sources using the navigation switch You can also select from two different A D converter resolutions using the microcontroller s 10 bit successive approximation type A D converter or 16 bit delta sigma A D converter U18759EE1VOUMU1 58 DemokKit LF3 User s Manual NIEC 12 USB Interface Cable mini B type Series A Plug Series Mini B Plug Series A Plug Series Mini B Plug U18759EE1VOUMU1 59 DemokKit LF3 User s Manual NIEC
28. NM Pe S Sy St ES EH OFF OFF Don tcare OFF OFF OFF OFF Note When supplying power from the QB MINI2 do not connect external hardware to the Demokit LF3 board In this mode the board can operate without external power from the USB U18759EE1VOUMU1 16 DemoKit LF3 User s Manual NIEC 4 Installation and operation The bundled software tools including the ID78K0 TK debugger allow downloading and debugging af application software on the DemokKit LF3 starter kit hardware Additionally you can use the WriteEZ3 flash programming program to perform simple flash programming of the microcontroller s internal flash memory A USB interface line is needed for communication between the host computer and the Demokit LF3 board Before downloading debugging or executing an application program make sure the hardware and software are installed properly Table 15 Directory structure of CD ROM NEC DemokKit vx x F CD ROM ROOT Documents E Documentation La fscommand m KO Lg WriteEZ3 WriteEZ3 GUI L3 driver USB driver Li PRM PRM parameter files La NECTools C compiler assembler and debugger SampleProgram L DemoKitLF3 Sample programs for the DemokKit LF3 starter kit E dotnet DotNet setup file for Applilet U18759EE1VOUMU1 17 DemoKit LF3 User s Manual NIEC 5 Hardware installation After unpacking the kit first connect the board to your host computer using the provided USB interface cable and then install t
29. TK on board debugging mode snnannnnnsnnnneosennnneseennnnesnnnenenne 5 2 1 2 WriteEZ3 flash programming mode 5 2 1 3 QB MINI2 on chip debugging normal execution 5 2 2 SW TeSeL DUN OM BEE 5 2 9 SWS NAVIGAllON SWIICD E 6 2 4 J1 external A D measurement inputs eeeeeeeeeeeeeeee rennen 6 2 5 J2 external A D measurement inputs ccceeeeeeeeeee rere 6 2 0 J4 IDD measuremeLi ecce iuc Ee Spe bne ENAA 7 2 7 J5 external power supply input 11 eeeeeLLeeeee ee eeeee enne eene nnn nnn nhan nnn 7 2 6 Yi external main ET UE Le EE D GE WR eiepa bel TIR ue EE 7 2 10 USBLhunterface CONMCCION cii rri ec Ee E ers ver conde Ce abe e Ecos 8 2 141 ECD1 224 segment LCD panel 5 GE eege 9 2 12 RR1 RR5 external LCD resistors 1leeeeee ec eeeeee eee eeeee enne nnn 10 2 13 U2 ul EEN E 10 Zr NBI Iiic mue E 11 2 15 BUZIT DUZZ T os aaa aaa aaa a a Sade ovs suerte serae 11 216 LEDI power E Eeer 11 2 17 Connectors T1 T13 and wire wrap field esee 11 2 18 Solderind bridges iiic e ci i ebrt abo a ege 12 2 19 Microcontroller memory MAD assos ree eoa s e ceo saa ceo na sve ceu pau cc Eo spero on ve Leon Seve banaa eb pa ENEE 14 zer ujexe leleieBe e 15 3 1 On chip debugging via the on board ID78K0 TK debugging function
30. ag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Target Reset Message Cancel U18759EE1VOUMU1 48 DemoKit LF3 User s Manual NIEC 11 Select Blank check before Erase and click OK to set the parameters Figure 56 Completion of Parameter Setting Ee lx File Device View Help PALER gt gt FlashOpennina Device Flash Open OK Name gt gt COMMAND Device Setup PRM File Read OK Firm Version ExtCode Vendor Parameter file Name 78F0495 Format 0414 Version E1 00b Processor Ver 0200 Name Date Chksum Connection to device Pot COM3 Speed 115200 Range Chip Freg 6 00 Multiply 1 00 12 Click File Load select a program file to be written to the target device and then click Open Figure 57 After Downloading BER File Device View Help PAWS BS b gt FlashOpenning Device Flash Open OK Name gt gt COMMAND Device Setup PRM File Read OK Firm Version gt gt COMMAND LoadFile Open ExtCode Success read HEX file Vendor Parameter file Name 78F0495 Format 0414 Version E1 00b Processor Ver 0200 p Load file4 Name YOLTMETER HEX Date 2007 05 24 16 12 08 Chksum D57Ch Area O00000h 000F53h Connection to device COM3 Multiply 1 00 U18759EE1VOUMU1 49 DemoKit LF
31. alling the software that your new hardware device requires Cancel 6 4 2 Installation on Windows 2000 operating system 1 When you connect the DemokKit LFS3 board to the host computer the Plug and Play function automatically initializes the Found New Hardware Wizard Click Next Figure 14 Found New Hardware Wizard Windows 2000 Found New Hardware Mizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next U18759EE1VOUMU1 21 DemoKit LF3 User s Manual NIEC 2 Select Search for a suitable driver for my device and then click Next Figure 15 Install Hardware Device Drivers Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers A device driver is a software program that enables a hardware device to work with ey an operating system This wizard wll complete the installation for this device o USB Device A device driver is a 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 Hest What do vau want the wizard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can choose a specific driver lt Back se Cancel 3 Select Specify a location and then click Next Figure 16 Specif
32. ar displays the status bar clearing Status Bar hides the status bar 7 3 4 Help menu Clicking the Help menu displays the About WriteEZ3 option Figure 46 Help menu Iz WriteE 3 File Device View Help About FPL3 ed em 5 X gt gt Flashl penning U18759EE1VOUMU1 41 DemokKit LF3 User s Manual NEC Clicking About WriteEZ3 displays version and copyright information for the WriteEZ3 program Figure 47 About WriteEZ3 Window 7 4 Programmer Parameter window The Programmer Parameter window displays information about the device parameter file load file and device connection Figure 48 Programmer Parameter Window Device Hame Firm Version Ext Lade Vendor Parameter file Mame Format Version Processor Ver Mame Date Chksum Area Connection to device Pott Speed Range Freq Multiply U18759EE1VOUMU1 42 DemoKit LF3 User s Manual NIEC Table 20 Programmer Parameter window elements Element Device area Parameter file area Load file area Connection to device area Description Updated after communication with the target device to display information about the target device Updated after a Setup command to display information about a read parameter file Updated after a Load command to display information about a selected program file Updated after a Setup command to display information about the connection
33. arget device connected to the WriteEZ3 program If the device s flash memory is blank the command terminates normally If the flash memory is not blank the program displays a message to that effect in which case you should execute an Erase command before proceeding 7 3 2 2 Erase command The Erase command erases the target device s flash memory and displays progress information in the Action Log window Upon completion the program displays the command result To execute a Blank Check command before an Erase command click Device Setup and then set the command options accordingly on the Advance tab 7 3 2 3 Program command The Program command sends a specified user program to the target device and then writes the program to the device s flash memory During programming the program displays progress information in percentages in the Action Log window to indicate programmer operation Upon completion the program displays the command result To automatically execute a Verify command afterward click Device Setup and set the command options accordingly on the Advance tab 7 3 2 4 Verify command The Verify command sends a specified user program to the target device and then verifies that the data written to the device s flash memory is correct During verification the program displays progress information in percentages in the Action Log window Upon completion the program displays the command result 7 3 2 5 Security command
34. at allows integration of additional application hardware Figure 6 Connectors T1 T13 and wire wrap field Wire wrap field Connectors T1 T13 Table 10 Connectors T1 T13 Connector T1 T2 Microcontroller UO pins P14 SCKAO INTP4 P32 TOHO MCGO U18759EE1VOUMU1 11 DemoKit LF3 User s Manual NIEC Connector Microcontroller I O pins T3 P13 S010 TxDO T4 P33 TIOO0 RTCDIV RTCCL BUZ INTP2 T5 P12 Sl10 RxDO T6 P16 SOAO TxD6 T7 P30 INTP5 T8 P11 SCK10 T9 P15 SIAO RxD6 T10 P31 TOH1 INTP3 T11 P10 PCL T12 P120 INTPO EXLVI T13 P47 KR7 2 18 Soldering bridges Additional configuration of the DemoKit LF3 board can be done using the A1 A8 and V1 V11 soldering bridges as described in the tables below The A1 A8 and V7 soldering bridges can be used to reconfigure the A D converter input channels and the reference input voltage Table 11 Settings of A1 4A68 and V7 soldering bridges Soldering bridge Configuration 78KO LF3 pin Closed default Connected to VSS A1 ANIO DSO Disconnected from VSS Closed default Connected to temperature sensor U2 A2 ANI1 DS0 Disconnected from temperature sensor U2 Closed default Connected to VSS A3 ANI2 DS1 Disconnected from VSS Closed default Pin connected to jumper J2 A4 ANI3 DS1 Disconnected from jumper J2 Closed default Connected to VSS A5 ANI4 DS2 Disconnected from VSS Closed default Connected to VDD27 A6 ANI5 DS2 Disc
35. e power from the USB interface the QB MINI2 on chip debugger or an external power supply U18759EE1VOUMU1 3 DemokKit LF3 User s Manual NIEC 2 DemokKit LF3 components The Demokit LF3 is equipped with a navigation switch 224 segment LCD panel temperature sensor and several connectors that can be used for connection to host computers flash programmers or external target hardware Figure2 Board connectors and switches top view s D a B NEC Kit EYE UED Ze 18KO LF Demonstration TET RD ES L t pa s zen 3 Y wa w i wi v v De d y e A vo Aw A y E Z IN JAPAN MADE A het _ sit SS ESS AES ES EES a V wal ww T7 H gi kel nd LCOI 62 0148 rei RoHS COMPLIANT NNNUNN gd en wem Cm me r hea x ML Tm Lnd e Ee ISO 4o Ei 4 P mm WE e ENS fe CIS Eum Cl ER Tin us DOWN g LA Sane EE GI uEBBBE t lt me E zeg LILI e d WK LZ N POWER U18759EE1VOUMU1 4 DemoKit LF3 User s Manual NIEC Some of the Demokit LF3 components are free for user application hardware and software Refer to the 78K0 LF3 device user s manual to obtain information about electrical specifications for the available I O ports before connecting any external signals to the Demokit LF3 board 2 1 SW1 and SW2 configuration switches The settings of SW1 and SW2 specify the Demokit s opera
36. ed 15200 Multiply rate Operation Mode CC Chip Start Block sell Supply oscillator Area Show Addres Target Reset Message OF Cancel U18759EE1VOUMU1 38 DemoKit LF3 User s Manual NIEC Table 17 Standard tab elements Element Description Saves the settings on the Standard and Advance tabs and OK button closes the Device Setup box Closes the Device Setup box without saving the settings on the cance ion Standard and Advance tabs Contains the parameters and timing data needed to rewrite the target device s flash memory protected by the checksum function Parameter file box if the checksum result indicates an error the WriteEZ3 program does not accept the parameter file may not be modified because the data is related to the guarantee of rewritten data PRM Read File button Opens a window for specifying a parameter file Specifies a channel COM1 to COM256 for communication between the DemoKit LF3 board and host computer selectable Port list ports can be verified using the Windows Device Manager as described in the section titled Confirmation of USB Driver Installation Host connection area Specifies a communication rate for the selected channel 9600 Speed list 19200 38400 or 115200 bps refer to the user s manual for your device Frequency Sets the clock frequency of the target system which varies from box one device to another refer to the user s manual for your d
37. en Figure 52 Parameter File Selection Open o2 File name 8FU485 Files of type PRM Files PRAM Cancel yi 6 Inthe Port list select the communication port that matches the host computer being used Note Selectable ports can be checked using the Windows Device Manager For details refer to Section 6 5 Confirmation of USB Driver Installation 7 Inthe Speed list select the communication speed for the host connection Figure 53 Port Selection E Standard Advance Parameter file 8F0485 prm PAM File Head Supply oscillator Frequency fi 0 00 MHz Multipl rate 1 00 Host connection Part Speed ism x Operation Mode Block End Joss sl Area Show Addres U18759EE1VOUMU1 47 DemokKit LF3 User s Manual NEC 8 Inthe Supply oscillator area set the Frequency to 6 00 MHz and the Multiply rate to 1 00 9 Inthe Operation Mode area select Chip Figure 54 Standard tab settings x Standard Advance Parameter file 7BF0495 prm PRM File Read Host connection Supply oscillator Frequency Port coms speed 115200 Operation Mode C Block End Joss Area Show Addres Multiply rate 11 00 10 Click the Advance tab Figure 55 Advance tab settings Es Device Setup Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security fl
38. er C gt Program Files NECTools32 WRITEEZ3 DRIVER Ftdiunin exe Figure 35 Driver Uninstallation Dok File Edit view Favorites Tools Help E a L ba Ss Search Key Folders ES Address B C Program Files NECTools32 bin PG FPL DRIVER FTDI p i S B Go Type Date Modified Wordpad Document 6 12 2003 3 18 PM Wordpad Document 6 16 2003 1 22 PM File and Folder Tasks Sl 901 Release Info DOC Phe UE i 2134 Release Info DOC e Publish this Folder to the Web E2 Share this folder Other Places DRIVER CH My Documents CH Shared Documents d My Computer My Network Places Details COMPORT PDF S FTCOMMS VXD EylFTDIBUS CAT SFTDIBUS INF E ftdibus sys EylFTDIPORT CAT SFTDIPORT INF Ed FTSENUM SYS S FTSENUM VXD fl Ftser2k sys tj FTSERIAL SYS bFTSERMOU INF S FTSERMOU VXD S ftserui2 dll S FTSERUI DLL E README TXT U18759EE1VOUMU1 PDF File Virtual device driver Security Catalog Setup Information System File Security Catalog Setup Information Configuration Settings Application Configuration Settings System File Virtual device driver System file System File Setup Information Virtual device driver Application Extension Application Extension Text Document 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 PM 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 200
39. ete the installation of the USB driver Figure 19 Installation of USB High Speed Serial Converter Complete Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard O USB High Speed Serial Converter Windows has finished installing the software for this device To close this wizard click Finish amp Back Lea Lon NEC 7 Open the Found New Hardware Wizard to install the USB serial port driver and click Next Figure 20 Found New Hardware Wizard 2 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver Far a hardware device Ta continue click Next amp Back te Cancel U18759EE1VOUMU1 24 DemoKit LF3 User s Manual 8 Select Search for a suitable driver for my device and then click Next Figure 21 Install Hardware Device Drivers 2 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers A device driver is a software program that enables a hardware device to work with an operating system This wizard will complete the installation Far this device G USB Serial Port A device driver is a software program that makes a hardware device work Windows needs driver files For pour new device To locate driver files and complete the Installation click Next What do vou want the wizard to do Ce Search for a suitable driver for my d
40. evice Specifies a division or multiplication rate for the target device Supply oscillator area l For target devices with an on chip PLL circuit enter a division rate Multiply or multiplication rate after checking the specifications for the rate box device used For target devices without a PLL circuit select 1 0 the default setting in the parameter file will be displayed on the initial screen Chip check Subjects the entire flash memory area of the target device to box rewrite processing Block check Subjects a block range to rewrite processing must be box accompanied by entries in the Start and End lists l Start and Specifies the starting and ending addresses for the block of flash Operation mode area End lists memory to be rewritten Area check Subjects a specific area to rewrite processing must be box accompanied by entries in the Start and End lists Snow Displays addresses in the Start and End lists clearing this option displays numbers in the Start and End lists Address check box Displays a message promoting the manual reset operation even Target Reset Message check box when the reset signal cannot be connected to the target s cable U18759EE1VOUMU1 39 DemoKit LF3 User s Manual NIEC The Advance tab contains the Command options and Security flag settings areas Figure 44 Advance tab Fi Device Setup E X Standard Advance Command options Read verify after Program Security flag after
41. evice recommended C Display a list of the known drivers for this device so that can choose a specific driver Back Ce Cancel 9 Select Specify a location and then click Next Figure 22 Specify a Location 2 Windows 2000 Locate Driver Files Where da you want Windows to search for driver files Search for driver files for the following hardware device USE Serial Part The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Next IF pou are searching on a floppy disk or CO ROM drive Insert the Floppy disk or COD before clicking Next Optional search locations Floppy disk drives CD ROM drives Specify a location Microsoft Windows Update lt Back we Cancel U18759EE1VOUMU1 NEC 25 DemoKit LF3 User s Manual NIEC 10 Browse to the fscommand kO WAITEEZS3 drivers folder and click OK Copy Manufacturer s Files 2 Windows 2000 Figure 23 C Wi Found New Hardware Wizard EG is Ax Insert the manufacturer s installalion disk into the dive selected and than click OK Copy manufacturer s Bes kom D fscommand KO WRITEEZ3 drivers d 11 Click Next Figure 24 Driver Files Search Results 2 Windows 2000 Found New Hardware Wizard Driver Files Search Resulte P tae The wizard has finished searching for drreer fles for your
42. hardware device Sy The wizard found a driver For the following device USB Serial Part Windows found a driver For this device To install the driver windows found click Next D fscommand KO WRITEEZ3 drivers U18759EE1VOUMU1 26 DemoKit LF3 User s Manual NIEC 12 Click Finish to complete the installation of the USB driver Figure 25 Installation of USB Serial Port Complete Windows 2000 Found New Hardware Mizard Completing the Found New Hardware Wizard O USB Seral Port Windows has finished installing the software for this device To close this wizard click Finish Back fw Lance 6 4 3 Installation on Windows XP operating system 1 After you connect the DemokKit LF3 board to the host computer the Plug and Play function initializes the Found New Hardware Wizard Select Install from a list or specific location Advanced and then click Next Figure 26 Found New Hardware Wizard Windows XP Found New Hardware Wizard This wizard helps you install software for USB Device If your hardware came with an installation CD lt or floppy disk insert it now What do vou want the wizard ta do CO Install the software automatically Recommended Click Next ta continue U18759EE1VOUMU1 27 DemoKit LF3 User s Manual NIEC 2 Select Search for the best driver in these locations and Include this location in the search Click Browse to find the fScommand kKO WR
43. he USB driver as explained in Section 6 Software Initialization 6 Software installation The Demokit LF3 package includes the following software demonstration packages e NEC Electronics C compiler assembler linker librarian and debugger e WriteEZ3 flash programming software e Sample program 6 1 NEC Electronics software tools installation To install the tools select the SETUP program in the fscommand kO NECtools directory and follow the dialog boxes to complete the installation process If prompted for a product ID use 00101386V 6 2 Sample program installation To install the sample program select the SETUP program in the fscommand SampleProgram directory and follow the dialog boxes to complete the installation process 6 3 WriteEZ3 program installation To install the WRITEEZS flash programming software select the setup program in the ifscommanaXXOWHITEEZS directory and follow the instructions in the Setup dialog boxes 6 4 USB driver installation To use the DemokKit LF3 board for on chip debugging install the USB driver on the host computer in accordance with one of the following procedures Installation on Windows 98SE Me operating system Section 6 4 1 Installation on Windows 2000 operating system Section 6 4 2 Installation on Windows XP operating system Section 6 4 3 U18759EE1VOUMU1 18 DemoKit LF3 User s Manual NIEC 6 4 1 Installation on Windows 98SE Me operating system 1 When you connect the Demo
44. isplays a pull down menu of two commands Figure 40 File Menu es WriteE 3 File Device View Pm gt gt FlashO penning U18759EE1VOUMU1 35 DemoKit LF3 User s Manual NIEC 7 3 1 1 Load command 1 Click the Load command to view the Open box 2 Select the file to be programmed io the microcontroller s flash memory and click Open Figure 41 Open box Open E File name ue s hex Files of type 5 rec Hex files rec 8 hex Cancel Ji 3 After you load the program it performs a checksum calculation and displays the result in the Programmer Parameter window 7 3 1 2 Quit command The Quit command terminates the WriteEZ3 program and saves your settings in a WriteEZG INI file that will be initialized at the next session On Window 98SE Windows Me and Windows XP operating systems the program stores WriteEZS INI in the Windows folder On Windows 2000 systems the program stores WriteEZ3 INI in the Winnt folder 7 3 2 Device menu Clicking the Device menu displays a drop down menu of programming commands Figure 42 Device menu fea WriteE 3 File Device View Help M Blank Check P Erase Program gt gt Fl Flask Verify SHINE Damm Security Checksum AutaproacedurerEPV Signature read Get Security settings Setup U18759EE1VOUMU1 36 DemoKit LF3 User s Manual NIEC 7 3 2 1 Blank Check command The Blank Check command enables you to check the t
45. kit LF3 board to the host computer the Plug and Play function automatically initializes the Add New Hardware Wizard Click Next Figure9 Add New Hardware Wizard Windows 98SE ERnBIBIS Hardware Wizard 2 Select Search for a suitable driver for my device and click Next Figure 10 Search Method Windows 98SE PAdd New Hardware Wizard U18759EE1VOUMU1 19 DemokKit LF3 User s Manual NEC 3 Select the Specify a location box click Browse to find the fscommanad kO WAITEEZ3 drivers folder and then click Next Figure 11 Specify a Location Windows 98SE Add New Hardware Wizard Windows wil search for nea divers mits dier database on your hard dave and m any of the folowing selected locators Click Mest to tait Ihe search Floppy disk drives CD ROM dive 4 Specily a location 4 Click Next Figure 12 Search for a Driver File Windows 98SE Add New Hardware Wizard Windows dryer fle search for lhe device Windows rs nos ready lo install the best diver Tar thes device Click Back to select a dilereni diver or cick Mest to connue D fscommand KO WRITEEZS3 drive U18759EE1VOUMU1 20 DemoKit LF3 User s Manual NIEC 5 Click Finish to complete the installation of the USB serial port driver Figure 13 Installation of USB High Speed Serial Converter Complete Windows 98SE Add New Hardware Wizard USB High Speed Serial Converter Windows has Finished inst
46. l clock input mode PCC 8x88 ve CPU clock fxp MCM 8x88 ve Set main system clock and periphe OSTS 8x85 ve Set minimum oscillation stabiliza Initialization of a use port M4 8x 7e ve port input setting P46 42 KR6 2 P PU4 x C enable Pull up resistor KRM x C enable key interrupt detection KRMK 85 enable key interrupt T ADPCOH 8x88 set all port AD in PM2 xff set all port input PM3 4 6 output buzzer P3 8x80 PM3 6b11106000 ve Initialization of an unused port Pi Dan main cii39 main DEES BREAK E For more information about the debugger s configuration and capabilities refer to the user s manual for the ID78KO TK debugger U18759EE1VOUMU1 56 DemoKit LF3 User s Manual NIEC 11 Sample Projects Each of the sample programs is located in a single directory called the main directory in each sample This main directory contains the complete project inclusive of all output files of the development tool The 78K0 LCD DEMO prw workspace file is located on top of the sample program directories All sample programs use the same directory structure Table 23 Example directory structure ca DemoKitLF3 8KO LF3 project and output files LJ inc C header files Li source C source files E 78K0 LCD DEMO prw workspace file The main directory contains most project files for the PM Plus All source files are located in the directory Source and the inc directory contains
47. ment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible 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 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 U18759EE1VOUMU1 ii DemoKit LF3 User s Manual U18759EE1VOUMU1 NEC Regional Information Some information contained in this document may vary from country to country Before using an NEC Electronics product in your application contact the NEC Electronics office in your country to obtain
48. municating with the target device 6 5 Confirmation of USB Driver Installation To confirm that the drivers have been installed open the Windows Device Manager and verify that the USB serial port COM3 and USB high speed serial converter are listed If the drivers are not displayed or are marked with an x or prefix refer to Section 9 Troubleshooting for guidelines about how to correct the problem Note In the Port list of the Device Setup box make sure the COM port is the same as the USB Serial Port COM U18759EE1VOUMU1 31 NEC DemoKit LF3 User s Manual Figure 34 Windows Device Manager E Device Manager Action View ER Batteries RI Computer H E Disk drives S Display adapters Hii DVDICD ROM drives AS Floppy disk controllers H a Human Interface Devices H E IDE ATAJATAPI controllers nA Infrared devices H Keyboards E Zw Mice and other pointing devices H E Modems H Monitors Fl NECPCIF ERC Network adapters fi PCMCIA adapters H Sound video and game controllers ERT System devices Universal Serial Bus controllers 6 6 Driver uninstallation The driver uninstallation program is stored on the host computer when you install the WriteEZ3 program This procedure explains how to use the program to remove the USB driver 1 On Windows XP operating systems log on as the computer administrator On Windows 2000 operating systems log on as the administrator 2 Double click My Comput
49. n the virtual UART driver is used as a debugging interface and all standard commands for flash programming downloading executing code single stepping setting breakpoints and manipulating memory are available e Using the QB MINI2 emulator with the microcontroller s on chip debugging function Figure 8 Configuration for on chip debugging using the on board debugging emulator OCD debugging via QB MINI2 On Chip debug emulator m 5 n EE ne A see s vq 4 4 d H x Es Sos ei or Vi een LA eee xf Ch SN TT z E NET eege T vcnit AR LE Ve A m L D l en Lt demi G n CER END CH Di j MO A a Ed ews gt H CE a 5 nek s K i s Ze e Se t dt gt s 2 Br j e a 4 Wi II TK 78 debugging via On Board debug function 3 1 On chip debugging via the on board ID78K0 TK debugging function To use the on board debugging mode configure switches SW1 and SW2 as described in Table 13 Table 13 Configuration for ID78K0 TK debugging sw me fe pei ei i fe fs 5 se 7 fs Snows On os PE rox ow ow ow ow on M SE ore orr sontes EE or or U18759EE1VOUMU1 15 DemoKit LF3 User s Manual NIEC 3 2 On chip debugging via QB MINI2 emulator To operate the DemokKit LF3 board together with the QB MINI2 on chip debugging emulator configure switches SW1 and SW2 as described in Table 14 Table 14 Configuration for QB MINI2 debugging mode 199 qq PER EN CC ER EROR ERR ER cp wues LON LON NN
50. nterface without additional debugging hardware standard commands for executing code single stepping setting breakpoints and manipulating memory e Optional QB MINI2 emulator available separately that can be used with the microcontroller s on chip debugging function e Flexible power supply via USB interface QB MINI2 on chip debugging emulator or external supply e 224 segment LCD panel e WindowsG based NEC Electronics WriteEZ3 flash programming software that enables you to select and download application programs for evaluation purposes e Various I O signals JO ports for connection to user hardware Timer I O signals Two or three wire serial I O UART interface via a FT232 USB UART chip Eight channel 10 bit A D converter Three channel 16 bit sigma delta A D converter RPM7138 IR receiver module 8120C temperature sensor Navigation switch for key interrupt generation e NEC Electronics C compiler assembler 32 KB size limitation and ID78KO TK debugger e Full documentation for the MCU and software tools including downloadable updates of the software tools documentation and utilities if available from http www am necel com micro development The Demokit LF3 is not intended to be used for code development NEC Electronics America does not allow and does not support any attempt to use the kit in a commercial or technical product DemoKit LF3 User s Manual NIEC 1 2 System req
51. onnected from VDD27 Closed default Connected to VSS A7 ANIG REF Disconnected from VSS Closed default Connected to VDD A8 ANI7 REF Disconnected from VDD Closed default Connected to VDD V7 AVREF Open Disconnected from VDD U18759EE1VOUMU1 12 DemoKit LF3 User s Manual NEC The V1 V6 and V8 V11soldering bridges can be used to reconfigure the power supply of the board s dedicated circuits For more information refer to Section 13 Schematics Table 12 Setting of V1 V6 and V8 V11 soldering bridges Soldering bridge V1 V2 V3 V6 V8 V9 V10 V11 Configuration Closed default Open Closed default Open Closed default Open e default Open Zh default Open Closed default Open Closed default Open Closed default Open Circuit BUZ1 U6 not assembled opm VDD connected to USBVDD Connected to VDD Disconnected from VDD Connected to VDD Disconnected from VDD Connected to VDD27 Disconnected from VDD27 Connected to VDD Disconnected from VDD Connected to VDD Disconnected from VDD Connected to VDD Disconnected from VDD VDD disconnected from USBVDD VDD2 connected to VDD VDD2 disconnected from VDD U18759EE1VOUMU1 13 NEC DemoKit LF3 User s Manual 2 19 Microcontroller memory map The memory map of the 78KO LF3 microcontroller is shown in Figure 7 78KO LF3 memory map Figure 7 FFFFH Special function register
52. s SFR 256 x 8 bits FFOOH FEFFH General purpose registers 32 x 8 bits FEEOH m Program area eaa 1FFFH FEDFH L Internal high speed RAM L 1024 x 8 bits FB OH gue 108EH FAFFH TI On chip debug security Se 1085H 10 x 8 bits Boot cluster 1 we or i 1084H Option byte areaNote 1 FA40H l 1080H 5 x 8 bits FA20H Reserved Program area FA1FH 1000H Buffer RAM OFFFH x amp hi A 32 x 8 bits CALLF entry area Data memory FOFFH 2048 x 8 bits space Lamm 08008 t F7FFH O7FFH Program RAM area Intemal expansion RAM Program area 1905 x 8 bits 008FH Boot cluster 0 RAM space in 2048 x 8 bits which instruction 008 EH On chip debug security ID setting areaNete 1 can be fetched F400H F3FFH ree z 0085H 10 x 8 bits EFFFH 0084H Option byte areaNete 1 0080H 5 x 8 bits 007FH CALLT table area Program k Flash memory 64 x 8 bits memory space 61440 x 8 bits 0040H 003FH Vector table area 64 x 8 bits 0000H The DemokKit LF3 board does not reserve any resources of the microcontroller therefore available device memory is free for application software U18759EE1VOUMU1 14 DemoKit LF3 User s Manual NIEC 3 On chip debugging The DemokKit LF3 offers two options for on chip debugging OCD e Using the on board ID78KO0 TK debugger without external hardware whereby the default USB connection to the host computer based o
53. ting modes Table 1 for SW1 and SW2 configuration switches LEGIT IBI s EN on oe DH ege Witeez3 BN ou To ON ON EEN Of OFF OFF EM Don t core B FF oFF oFF oF TE QB MINI2 Don t care OFF OFF OFF OFF 2 1 1 IDK78KO0 TK on board debugging mode In this mode you can perform on board debugging via the default USB UART connection to the host computer without the use of additional debugging hardware Standard commands for flash programming downloading programs executing code single stepping through programs setting breakpoints and manipulating memory are available 2 1 2 WriteEZ3 flash programming mode In WriteEZ3 mode you can reprogram the microcontroller s internal flash memory using NEC Electronics WriteEZ3 flash programming software and the default USB UART connection to the host computer 2 1 3 QB MINI2 on chip debugging normal execution In QB MINI2 mode you can connect the QB MINI2 on chip debugging emulator available separately to the DemoKit LF3 board and use the microcontroller s on chip debugging function When the on chip debugging emulator is not connected to the board the microcontroller begins normal execution and executes the user program stored in flash memory 2 2 SWA reset button The SWS reset button activates the power on reset and controls the microcontroller s reset input signal U18759EE1VOUMU1 5 DemoKit LF3 User s Manual NIEC 2 3 SW3 navigation switch The SW
54. tion 7 7 1 Initialization 1 Open the Start menu and click WriteEZ3 EXE to initialize the WriteEZ3 program and open the Main window Figure 38 WriteEZ3 Main window E Bl x ES WriteEz3 File Device View Help Si P Kl Zei gt gt FlashOpenning Flash Open OK Firm Version Toolbar ExtCode Programmer Vendor parameter window Parameter file Action log window Name Format Version Processor Ver Menu bar Name Date Chksum Area Connection to device Port Speed Range Freq Status Multiply Ready The main window consists of the following elements Table 16 Main window elements Name Description Menu bar Displays menu items executable by the WriteEZ3 program Toolbar Displays frequently used commands as icons Action log window Displays an WriteEZ3 action log Programmer parameter window Displays programming parameter settings Status bar Displays status U18759EE1VOUMU1 34 DemoKit LF3 User s Manual NIEC 7 2 Toolbar The toolbar contains buttons for executing WriteEZ3 commands Figure 39 Toolbar command buttons Icon Description Device Setup File Load Device Blank Check Device Erase Device Program Device Verify Device Autoprocedure EPV 7 3 Menu bar Depending on the actual device status and device type some commands may be unavailable 7 3 1 File menu Clicking the File menu d
55. uirements e Host computer Windows 2000 or Windows XP operating system 200 MHz minimum Pentium class processor 128 MB RAM 1024 x 768 display with 256 colors Mouse CD ROM drive 200 MB free hard disk space e Host interface USB interface that enables communication based on USB version 1 1 or later 1 3 Contents Before setting up the system verify that all parts listed on the contents page are intact and accounted for If not contact your NEC Electronics America representative to report the problem 1 4 System configuration Figure 1 illustrates the configuration of the DemoKit LF3 system Figure 1 DemoKit LF3 system configuration III 1 5 Demonstration board The Demokit LF3 board connects to the host computer via a USB interface cable The host may be used for on chip debugging using the ID78K0 TK debugger or for execution of application programs on the DemokKit LF3 starter kit The 78KO LF3 MCU operates at 8 MHz and has a 32 768 kHz subclock U18759EE1VOUMU1 2 DemoKit LF3 User s Manual NIEC 1 6 Host computer The USB interface allows communication between the host computer and the DemokKit LF3 board e he FT232 USB UART chip allows application software to access the USB device in the same way it would access a standard RS 232 interface e The FTDI driver for the virtual COM port VCP appears to the Windows operating system as an extra COM port 1 7 Flexible power supply The Demokit LF3 can receiv
56. with the target device U18759EE1VOUMU1 43 DemoKit LF3 User s Manual NIEC 8 WriteEZ3 flash programming software This section explains the basic operation of the WriteEZ3 flash programming software including how to start the system execute an Autoprocedure EPV command and program a target device 8 1 Configuration of the DemoKit LF3 board e Baseboard l DemokKit LF3 e Target device 7 8KO LF3 uPD78F0495 e Clock 6 MHz e Voltage level 5V 8 2 Configuration of the WriteEZ3 software e Parameter file 78F0495 PRM e Clock setting i 6 MHz multiplied by 1 e Port COM3 115200 bps e Operation mode Chip e Write HEX VOLTMETER hex e Option setting l Blank check before Erase 8 3 Installing the parameter file The parameter file for the microcontroller is installed automatically during installation of WriteEZ3 program You may also download the most recent version from http www am necel com micro development and save it in the lt WriteEZ3 EXE install path gt PRM subdirectory as described in Section 7 Software Installation U18759EE1VOUMU1 44 DemokKit LF3 User s Manual NIEC 8 4 Connecting and starting 1 Setthe SW1 and SW2 switches as shown in Figure 49 and explained in Table 21 Figure 49 SW1 and SW2 settings ae NEC fBKO LFS Demonstration Kit if d PARRA AAO EN E E E SW1 9 Cas d 5 Ae 8 ae E Em Co ege do j SW2 Table 21 SW1 and SW2 settings WriteEZ3
57. y a Location Windows 2000 Found New Hardware Wizard Locate Driver Files Ru Where do you want Windows ta search for driver Files Search for driver files Far the following hardware device USB Device The wizard searches for suitable drivers in is driver database on your computer and in any of the following optional search locations that you specify To start the search click Next If you are searching an a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next Optional search locations Floppy disk drives CO ROM drives I Specify a location neHeeonneneoooeoenedencerennnmeeenmcenef Microsoft Windows Update lt Back Meo Cancel U18759EE1VOUMU1 22 DemoKit LF3 User s Manual NIEC 4 Click Browse to find the fscommand kKO WRAITEEZS3 drivers folder and then click OK Figure 17 Copy Manufacturer s Files Windows 2000 Found New Hardware Wizard BS Insert the manufacturer s installahon disk into the dive selected and then click OF Cancel Copy manufacturer s files from D fscommand KO WRITEEZ3 drivers 5 Click Next Driver Files Search Results The wizard has finished searching for diver files for your hardware device Windows found a diver For this device To install the diver Windows found click Next D fscommand KO WRITEEZ3 drivers U18759EE1VOUMU1 23 DemoKit LF3 User s Manual 6 Click Finish to compl
58. ze the Plug and Play feature U18759EE1VOUMU1 51 DemoKit LF3 User s Manual NIEC 3 Cause The device may not be recognized when connected to the USB hub Action Try the following Disconnect the USB connector and then re insert it again 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 computer s USB port 9 4 The Add New Hardware Wizard initializes unexpectedly Cause If the USB connector of this product is inserted into a USB port other than the one used at the time of installation this product may be recognized as new hardware Action Install the driver in accordance with the procedure described in the section titled USB Driver Installation 9 5 Communication with the DemoKit LF3 board is disabled 1 Cause The driver may not be installed correctly Action Verify that the USB serial port and USB high speed serial converter are installed correctly by referring to Section 6 4 USB Driver Installation 2 Cause The COM port selected in the Device Setup Port box may not be set correctly Action Use the Windows Device Manager to set the port 3 Cause The DemokKit LF3 board is operating in normal mode Action Set the board to the WriteEZ3 flash programming mode d Cause The PRM file selected in the Device Setup box may be incorrect Action Use the corresponding PRM file that matches the target
Download Pdf Manuals
Related Search
Related Contents
- MEDION USA Manual del usuario Rapport d`activités 2011 ISV502E:Layout 1.qxd Descargar Manual Operador Powermax65 MANUAL DE USUARIO DE LA APLICACIÓN PARA LA GESTIÓN ScoreEngine User Guide v4.19 - Home page of Jan J. de Kloe Copyright © All rights reserved.
Failed to retrieve file