Home
L_Line - See it!
Contents
1. uonnquisig t z T0 3C0 0090 55HH gt 1 7 HI CH H OH I 131 s 1 ET qu kib E HI OH ei 20 dBurmelp HO EH HO EH pn Ajquassy 4 mS 1 ods 4 KL ES HI OH Hi CH I L H HI OH rtl OH I L H EL E EH ER CH E ponoxddy p y u paufisog L ves 5 xr oqo uuoo NHGg L 7 n c LES wem gt akar E 001 66 i 6 11 21 i elv Et m 96 06 68 v6 7 ES He apo Oo wilt Che m L v8 1 E E E EF LJ OG munu panouddy Way UOISJ9A L 9 r 4 ra anss 86 uone a0d io s ruo n vi DAN uonnquisiq 5 Y T m H E lt TES 800600 P 5 07
2. MOETEN ogre main 2 Icd c Description Ha El main c C3 Output i defines h void main void Bl intrinsics h 2 io7810397 h disable interrupti disable all interrupts L 8 Icd h 2 ric c OSCCTL xd external clock input mode Bl temperature c PCC 0x40 ff CPU clock fxp MCM 0x07 Main system clock and peripheral hardware clock High speed system clock La C3 Output key press 0 H menu 0 KRM xlF ERME 0 Downloading application WIM OxF3 e interval timer 62 5ms WIRE 0 m 78K0 LCD demo fo 4 of Messages File Building configuration 7860 LCD demo Debug Configuration is up to date E n El Build t Ready gu ux EH E Figure 79 IAR project download 79 L Line See it NEC After the download was completed all debug features of IAR C SPY debugger are available i e Single Stepping Step Over In Out Go Execution 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 TAR Embedded Workbench IDE BEET File Edit View Project Debug Emulator Tools Window Help Dengle I sr 6 za IG
3. Hj H L ejeg enss 85 NEC L Line See it 1 s ruo n vi DAN
4. 38 Figure 21 Found New Hardware Wizard 2 Windows 2000 38 Figure 22 Search Method 2 Windows 20001 39 Figure 23 Driver File Location 2 Windows 2000 s s 88 2238243323 2 8333384382 nnns 39 Figure 24 Address Specification 2 Windows 20001 40 Figure 25 Driver File Search 2 Windows 2000 40 Figure 26 USB Driver Installation Completion 2 Windows 2000 sese 41 Figure 27 Found New Hardware Wizard 1 Windows Ab 41 Figure 28 Search Location Specification 3 Windows AP 42 Figure 29 Windows XP Logo Testing 3 Windows ab 42 Figure 30 USB Driver Installation Completion 1 Windows Ab 43 Figure 31 Found New Hardware Wizard 2 Windows Ab 43 Figure 32 Search Location Specification 2 Windows An 44 Figure 33 Windows XP Logo Testing 2 Windows IP aaa bada A d dura 44 Figure 34 USB Serial Port2 Driver Installation Completion Windows XP 45 Figure NNM 46 Figure DUEL DOLU amaya ad yla alaqada ay dan 47 Figure UcUn TEE 47 Figure 38 Completion or Driver Te ET e BEE 48 Figure 39 GUI Software Main 49 yelli ii Toolbar tel GER 50 Figure K 51 Figure 42 HEX File NN 51 Figure 43 Device AE 52 Figure 44 Device Setup Window Standard cccccccccceece
5. lt 6 gt Switch to the Advance dialog box Figure 65 lt Advance Device Setup gt Dialog Box 2 Device Setup BE xj Standard Advance Command options Read verify after Program Security flag after Program mnl Slee eel mines Security flag settings able Chip Erase Di able Block Erase Di able Program Di rable Boot block cluster reprogramming Target Reset Mess del Cancel lt Command options gt Blank check before Erase Checked 68 L Line See it NEC 7 Click the OK button The GUI software sets the parameters When the settings have been completed the following screen is displayed Figure 66 Completion of Parameter Setting File Device View Help pa lx ES gt gt FlashO penning Flash Open DE Mame gt gt COMMAND Device Setup File Head Firm Version ExtCode ter fil PRM File Read OK is displayed Mame 2 Format O41 4 Version 1 01 Processor Ver 0200 The display is updated Connection to device Part COM Speed 115200 Range Chip Freq 6 00 Multiply 1 00 6 Selecting a user program 1 Select File gt Load 2 Select a program file to be written to the target device then click Open Figure 67 After Downloading File Device View Help S di kx 8 lt lt FlashO penning Flash Open OK Mame gt gt COMMAND Device Setup PAM
6. 64 Se lae he le aaa alas aa as r 64 KNEE ao fe gre the parameter m rr o 30 ET 64 4 Connecting and IS H S yaaa amaya tenes apa daaa ES 65 5 Setting the programming environment 8 ENNEN semen nane sen tama sess nsa a ase 2 66 6 Selecting a user program TETTE m comme 69 7 T1lloptocediirelEP v Keele ue Ge e EE 70 8 T TLE the GUI ee 70 9 Bole 80 10D DEMO 6 70 ao FEN 70 10 TROUBLESHOOTING E 71 11 IAR configuration for On Board debugging eese 73 11 1 Setup COM port for IAR C SPY debugger 88 73 11 2 Configuration of USB serial COM port rr nnnrrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnennnnnnennnnnnenr 73 12 TAR Sample Sessi 76 10 Same PrO OC ei ee 81 13 1 Real Time Clock UNCON 82 132 Temperature 5 82 13 3 Light incidence measurement ceeeceeeeeeseeneeeeneeceeneeenseeoeneeeeneeceenseeeneecoenseensseseeseesensenensees 82 1524 BUZZER 6 06 82 135 Menu 60 83 L Line See it NEC 14 Cables 84 14 1 USB interface cable Mini B type rrerannvvnnnrrnnnnvvnnnevnnnennnnnennnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnn 84 BB STN EE 85 List of Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7
7. Ajquassy pc nd peaoiddy p yo u p u5 s q le s 4 opoW 5urunrez5oza 7 JU i Vda 9 15024 pzeoquo e F 9 vn o E 2 e M S gt E S gt FI d lt m mm ojeg nu n SG gt nssi 9 0 P v i ven UOISJ9A L S D 87
8. If the drivers above are not displayed or the mark x or is prefixed refer to CHAPTER 10 TROUBLESHOOTING 46 L Line See it NEC 7 7 Driver deinstallation The driver deinstallation program is installed on the host machine when the FPL3 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 C to Program Files to NEC Tools32 to FPL3 to DRIVER Ftdiunin exe is displayed Double click Ftdiunin exe Figure 36 Driver Uninstallation File Edit View Favorites Tools Help Hob d o Search s Folders Hab Address EZ C Program Files NECT o0ls32bin PG FPLIDRIVER FTDI Mame 901 Release Info DOC 2134 Release Info DOC COMPORT PDF S FTCOMMS VXD Cad 5 CAT b FTDIBUS INF Fedibus sys S FTDIPORT CAT DFTDIPORT INF EZ DRIVER DIRK G Documents EFFTDILINIM EXE Z Shared Documents 5 FTDIUNIN INT Bj ny Computer FTSENUM SYS S FTSENUM YXO My Network Places tser2k sys FTSERIAL SYS FTSERMOLLINF FTSERMOL VXD E Ftseruiz dll S FTSER UI DLL FE README TXT File and Folder Tasks c Make a new Folder Publish this folder Ea Ehe Web Ki Share this Folder Other Places Double click Details 3 Click Continue Figure 37 D
9. In order to use the L Line 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 33 Installation on Windows 2000 Page 35 Installation on Windows XP Page 41 7 5 1 Installation on Windows 98SE Me 1 When the K Line 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 10 Add New Hardware Wizard Windows 98SE rU I 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 11 Search Method Windows 98SE Check that Search for a 7777 56 33 L Line See it NEC 3 Check the Specify a location check box only and enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click Next Figure 12 Search Location Specification Windows 98SE Add New Hardware Wizard Windove veli search for nes divers p de dier database on your hand dave and m any vi the folowing selected locators Click 1 to tart Ihe search Eloppy disk driver CD ROM dive Mica Windows Update lt 1 gt Check Specify a location only 3 Click 2 Enter C Program Files NECTools32 FPL3 DRIVER Remark If th
10. Parameter file File Read Figure 46 Parameter File Selection Window EE 3 Look in Cy PAM do File name arm Files of type PRM Files PRM Cancel PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open 55 L Line See it L Line See it NEC lt 4 gt Operation Mode lt 5 gt 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 49 Device Setup Window Operation Mode Operation Mode Chip Start Block spd 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 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
11. Standard setup This menu is used to set the environment for rewriting the flash memory of the target device The 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 44 Device Setup Window Standard Ii Device Setup P Standard Advance Supply oscillator Frequency MHz Multiply rate Host connection Part Speed 175200 v Operation Mode Chip Black Area Show Addres Target Reset Message LK 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 54 L Line See it NEC lt 1 gt 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 FPL3 does not accept the parameter file Figure 45 Device Setup Window Parameter File Selection
12. 1 9 4 d EG x D 6 00 0 000 0 Files 7 Files 6 A100 MOV A 0x00 78KO LC de al 06E8 B3 PUSH BC Bi lcd c alee disable interrupt disabl ff Description 6E9 7 1 DI R3 B Fa main c Pi EEE CE Ra ERG OSCCTL xd external clock inp RP2 DE 1 rtc c 139FD0 MOV OSCCTL 0 RP3 HL i tempera void main void xd CPU clock 5 Ha Bl uart c Output disable interrupti MCM 7 Y 06F1 13A107 HOV HCH 00 Main system clock PSV key press 0 SES OSCCTL 02 external 06F4 FZ22C MOV S key pres BESO menu DH 7777 0696 MOV menu A AC MCM 0x07 Main syst PU xiF enable Pull up res RBS1 E 06F9 13371F MOV PU7 f xiF 7 key_press 0 KRM enable key interru IE 27 KRMK 0 enable key interru D6FF 714BE6 CLR1 MK1 4 PU xlF ff enable Pr WIM 3 enable watch timer enable ke 0702 136FF3 HOV WIM f xF3 enable ke WTMK 0 enable watch timer 0705 715BE6 1 MK1 5 WIIMK 0 enable interval tim y SR nno 71 2Drc 7T D1 miz gt y x 4 Debug Log Build Breakpoints x a Goto Memory a 5 m fr fI if ff d fe f f ff ff f ORE E EP fE b3 04 d2 04 7a 05 55 02 07 06 4
13. User s Manual L Line See it Demonstration Kit for the L_Line Family Document No L_LINESEEITV100 Date Published September 2005 NEC Electronics Europe GmbH L Line See it NEC he information in this document is current as of date of its publication The information is subject to change vvithout 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 semiconduct
14. 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 L Line See it board The device description file must be set to 1o7810397 ddf Options for node 78K0 LCD demo Category Factory Settings Select TK 78 to Setup Plugins use On Board debugging General Options C C compiler Assembler Custom Build Build Actions Linker TK 78 v Runto main TK 78K xxx IE 78 Geer Setup macros Use macro file Choose device TK 78 Te El description file of uPD78F0937 Device descriptions v Use device description file STOOLKIT_DIR config daf io7810397 dt 0 Cancel Figure 76 IAR debugger options 77 L Line See it NEC Next the correct linker settings of the demo project will be checked This can be done in the Linker category as shown below Select the Config tab and check that the linker command file DF0397 V4 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 78K0 LCD demo Category Factory Settings General Options C C compiler Output Extra Output tidefine Diagnostics List Conte Process
15. 7 5 3 Installation on Windows XP 1 When the L Line 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 Check that Install from a list or specific is selected Figure 27 Found New Hardware Wizard 1 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USB lt gt Serial If pour hardware came with an installation CD 9 nr floppy disk insert it now What do you want the wizard to do CO Install the software automatically Recommended Install from a list or specific location Advanced Click Nest to continue 41 L Line See it NEC 2 Check that Search for the best driver in these locations is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click Next Figure 28 Search Location Specification 3 Windows XP gt 1 lt Check that Search for the best driver in these locations is selected 2 Check Include this location in the search only 3 Enter C Program Files NECTools32 FPL3 DRIVER 4 Click 3 As shown below has not passed Windows Logo testing to verify its
16. Figure 8 Figure 9 L Line See it system configuration rrrnnrrnnnnvrrnnrrnnnnnrrnnrrnnnnnrnnnsrnannnnnensnnnnnnnnrsnnnsnnnansennne 11 Line See it board connectors and switches top view 12 Line See it board connectors and switches button V eVv 13 Soldering bridges SB1 gt sas assa kem 17 Connector CN7 USB Mini B Type Host Connector Pin Configuration 18 LCD panel segment CS a RE 21 Typical dependence of sensor resislance nennen nnne nennen nnns 22 Diagram ol dual DO EEE 25 T R LU MEMON e E 28 Figure 10 Add New Hardware Wizard Windows O8GE I s s nennen nnne nnn nnns 33 Figure 11 Search Method Windows 98SE c cs cccccsssccseeeecessesssseeseceeesseeseceeeessensecaeeeaseessceeeeness 33 Figure 12 Search Location Specification Windows O8GE 34 Figure 13 Checking Driver to Be Installed Windows 85 34 Figure 14 Installation Completion Windows 215 a adas nda aida 35 Figure 15 Found New Hardware Wizard 1 Windows 20001 35 Figure 16 Search Method 1 Windows 20001 36 Figure 17 Driver File Location 1 Windows 2000 Van a 36 Figure 18 Address Specification 1 Windows 20001 of Figure 19 Driver File Search T Windows 2000 E 37 Figure 20 USB Driver Installation Completion 1 Windows 2000
17. Hardware configuration of L Line See it Base board L Line See it Target device 78K0 LG2 uPD78F0397D Clock l 6 MHz Voltage level 5 Software configuration of FPL3 Parameter file 78F0397D PRM Clock setting 6 MHz Multiplied by 1 Port COM3 115200 bps Operation mode Chip Write HEX 78 0 LCD DEMO hex Option setting Blank check before Erase 1 Installing the FPL3 GUI software Install the FPL3 GUI software on the host machine you are using by referring to CHAPTER 7 SOFTWARE INSTALLATION if the software has not been installed yet 2 Installing the driver Install the USB driver on the host machine you are using by referring to CHAPTER 7 SOFTWARE INSTALLATION if the driver has not been installed yet 3 Installing the parameter file The parameter file for the 78K0 KG2 device are installed automatically during installation of FPL3 GUI folder lt FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0397D 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 FPL3 EXE install path gt PRM created during GUI software setup refer to CHAPTER 7 SOFTWARE INSTALLATION 64 L Line See it NEC 4 Connecting and starting 1 Set the L Line Se
18. NEC 8 FPL3 FLASH programming software 8 1 Introduction The parameter file for the 78K0 LG2 device is installed automatically during installation of FPL3 GUI folder FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0397D 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 FPL3 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 FPL3 EXE from the start menu to start the FPL3 GUI software When the GUI software is started normally the following screen appears Figure 39 GUI Software Main Window m Device View File Device View Help m amp E gt FlazhO pennind Flash Open OK Mame Firm version ExtCode Programmer Vendor parameter Parameter file window Action log window Wes Format Version Processor Ver Toolbar Connection ta device Fort Speed A ange Status bar Freq Multiply Ready E m m 49 L Line See it NEC This window consists of the following items Name Display Information displayed at the top FPL3 displayed under the menu bar ICONS Action log windo
19. Part COM3 Speed 115200 Range Chip Freg 6 00 Multiply 1 00 Select File gt Quit to terminate the GUI software All settings executed so far are saved in the FPL3 INI file so that those settings can be reused when the GUI software is restarted Execute 78K0 LCD DEMO application Set the L Line See it board to the normal operation mode by switching SW 1 S1 to OFF Plug and Play the L Line See it board to start in normal operation mode or press the reset button SW2 to release the normal operation mode Restarting the GUI When the system is restarted the same screen as shown in Figure 58 appears 70 L Line See it NEC 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 FPL3 FLASH programming software may not be installed correctly Action Install the GUI software again by referring to CHAPTER 7 Software Installation In checking by Device Manager USB Serial Port or USB High Speed Serial Converter is not displayed Alternatively the or x is prefixed Cause The USB connector
20. code execution single stepping breakpoints memory manipulation etc e Flexible power supply The K Line Lin it supports a flexible configuration of it s power supply The board can be powered by the USB interface the QB 78KOMINI On Chip debug emulator as well by an external CR2032 3V lithium coin battery e LCD panel L Line See it provides a 112 segment standard LCD panel allowing the implementation of human machine interface comfortable input output functions output of measurement values output of status information etc FPL3 FLASH programming software A windows based FLASH programming software allows to select and download application programs to the L Line See it board for evaluation purposes e Analogue to digital signal conversion is supported e Various input output signals available such as All I O ports prepared to be connected to user hardware 112 segment standard LCD panel 8 digits a 14 segments each Timer input output signals Two or three wire serial I O UART interface via USB UART chip FT232 8 analogue input lines Temperature sensor KTY13 5 Phototransistor PT15 21C Navigation switch prepared for key interrupt generation o o o o o o o o o e The IAR Embedded Workbench for 78K0 78KOS and the IAR C SPY debugger simulator are included These packages are restricted in such that maximum program code size is limited to 4 kByte of program code e Full documentation is included for the NEC
21. this equipment has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 0005 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 MM Al you need to do is register at www eu necel com weee L Line See it Revision History 05 09 2005 Revision Chapter Description First release NEC L Line See it NEC Table of Contents MB 0016110 0 se esters Da aaa NE EE 9 1 1 Main features of L Line See 9 L2 SSenrementns Larvene ape UE duca vua MESE EUN MD EE UE Md 10 1 3 Package esit e 10 MEE SIN AUS ETE 10 2 L Line See it system configuration 55255522 KEEN 11 TELLNES 11 2 2 HOS CO EE eebe 11 2 3 Power supply via USB interface rrrnnnnnnnnnnnnnnnnnnnnnnnnnvennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 11 4 L Lie SEN 00 aaa Eaa 12 3 1 Power supply selection Jumper JP 14 3 2 OCD power supply Jumper JP2 14 43 UCIOGKSUDDIV Jumper DPS enee 14 34 Configuration EK Or
22. 37 37 39 39 N C Not Connected Table 18 CN3 CN4 and CN5 connection to 78K0 LG2 L Line See it 3 16 78K0 LG2 memory map The memory layout of 78KO LG2 device shown in the figure below Data memory space RAM space in which instruction FFFFH Special function registers SFR 256 x 8 bits FFOOH FEFFH General purpose registers FEEOH 32 x 8 bits FEDFH Internal high speed RAM 1024 x 8 bits FBOOH FAFFH Reserved can be fetched Program memory space 8 eh feele E A um m F800H F7FFH 16384 x 8 bits bank 4 Internal expansion RAM 1 1 85 bits 6144 x 8 bits E000H DFFFH 1 Reserved C000H BFFFH Flash memory 16384 x 8 bits bank 0 uu Flash memory 16384 x 8 bits 32768 x 8 bits bank 5 443344 Or 0104 x A bits OZAN Se TE x ES fa tt Je i m g irl Y fe 22 a YES zs ow Sirlei TE Pha SE nue PR RU NEC 7FFFH Program area 108FH 108EH Security ID setting areaNote 1 1085H 1084H Security ID control areaNete 1 1083H 1082H Program area 1081H 1080H Option byte area 107FH Program area 1000H OFFFH CALLF entry area 0800H 07FFH Program area 0190H 018FH 008FH Note 2 008EH Security ID setting areaNote 1 0085H 0084H Security ID control areaNot 1 0083H 0082H Program area 0081H 0080H Option byte areaNote 1 007FH 007EH Not
23. 6 LCD panel segment definition 21 L Line See it NEC 3 11 Temperature sensor For temperature measurement and primarily as an application example a silicon temperature sensor KTY13 5 is connected to the input port of the 16 Bit Timer Event Counter 00 equal to port POO of 78K0 LG2 device The temperature sensor has a resistor range of R s min 1950 and Ros max 1990 at 25 degrees centigrade with lop TmA The distribution of the temperature factor kr is shown in the table below T kr C max 50 0 506 0 518 0 530 40 0 570 0 581 30 0 625 0 635 20 0 685 0 694 10 0 748 0 755 0 0 815 0 821 10 0 886 0 890 20 0 961 0 962 25 1 07 30 To m 1125 50 1 204 1 209 1 215 60 1 308 70 1405 1 506 2 Ki 100 680 i7 1720 170 ES 120 1 923 1 951 130 2 072 140 2 128 2 163 150 2 235 2 274 1 Normalising point Table 17 Distribution of temperature factor kr The sensor resistance can be calculated as follovving Rr kr R s TA J 1 mA Example amp 2000 Figure 7 Typical dependence of sensor resistance L Line See it NEC The temperature at the sensor can be calculated from the change in the sensors resistance from the following equation which approximates the characteristic curve 2 4xB 4xBxkr a Ee C 2xB with o 7 88 10 xK 5 2 B 1 937 10 xK Rt R25 kT The temperature measurement is done by using the dual slope method
24. 78K0 LG2 microcontroller IAR Systems Embedded Workbench IAR Systems C SPY debugger simulator and the NEC FPL3 FLASH programming software L Line See it is not intended for code development NEC does not allow and does not support in any way any attempt to use L_Line See it in a commercial or technical product L Line 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 FPL3 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 FPL3 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 L Line See it package If any part is missing or seems to be damaged please contact the dealer from whom you received your L Line See itl Note Updates of the IAR Embedded Workbench for 78K FP3 FLASH programming software documentation and or utilities for L Line See it if available may be downloaded from the NEC WEB page s at 10 L Line See it 2 L Line See it system confi
25. File Read OF Firm Version gt gt COMMAND LoadFile Open E tCade Success read HEX file ender Parameter file Mame FBSF SS7D Format 0414 Success read HEX file is eran v1 displayed Processor Ver 0200 Load file F KU LCD DEMU HES 2008 0905 11 11 46 EBB h 000000 00111 LI The display is updated Pot COM Speed 115200 Range Chip Freg 6 00 Multiply 1 00 69 L Line See it 7 8 9 10 Autoprocedure EPV command execution Select Device gt Autoprocedure EPV from the menu bar When the Autoprocedure EPV command is executed Blank Check gt Erase gt Program and FLASH Internal Verify are executed sequentially for the uPD78F0397D device Figure 68 After EPV Execution File Device View Help PADRES gt gt COMMAND AutoProcedure E pw Flash Blank Checking nat blank then erase Flash Programming z 02 Flash Programming 302 Flash Programming gt lt Flash Programming lt 50 gt Flash Programming B0 Flash Programming gt 75 Flash Internal werty Terminating the GUI finish is displayed NEC Dey Mame D BFUS3 Firm Version 1 00 ExtCode 047 Vendor 10 Parameter file Mame 25605970 Format 414 Version W101 Processor Ver 0200 Load file Mame 7060 LCD Date 2005 09 05 11 11 26 Chksum Area 000000 00111 Connechon to device
26. LCD panel 13 4 BUZZER output example This demonstration drives the buzzer by using the 16 Bit Timer Event Counter 01 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 82 L Line See it NEC 13 5 Menu control To shift between the different operation modes of the sample project a menu system is implemented The menu system is shown in the figure below TEKO mew 11 15 00 SET 11 15 MODE ZA POUR AM PM TEME 1056 5 7 KE 0 BUZZER MELODY Figure 81 Menu control The first column shows the main menus and the second the sub menus Switching between the main menus can be done by moving the navigation switch SVV3 in the UP DOWN direction A sub menu can be entered by moving SVV3 to the RIGHT It can be left again by moving SW3 to the LEFT The adjustment of the clock can be done in SET sub menu The hour or minute value can be chosen by moving SW3 to the LEFT RIGHT The adjustment is done by moving SW3 UP DOWN The menu can be left by pressing SW3 The clock mode can be selected in the MODE sub menu Move SVV3 to the UP DOWN direction to chose between the 24 hour mode or the AM PM mode The menu can be left by moving SVV3 to the LEFT By using the temperature measurement menu TEMP the different display modes degree celsius or degree fa
27. Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 33 Windows XP Logo Testing 2 Windows XP Hardware Installation The software you are installing for this hardware USE Serial Part has not passed Windows Logo testing to verify its compatibility with Windows AP Tell me why this testing iz important Continuing your installation of this software may impair or 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 44 L Line See it NEC 8 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 34 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 yarar USB Serial Part Click Finish to close the wizard 45 L Line See it NEC 7 6 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 L_Line See it board in combination with FPL3 GUI the information to be checked here is needed By clicking the Device Manager tab c
28. OK Insert the manufacturer s mstallation disk into the drive 7077 Click selected and then click OK Lancel Remark If the installation destination folder is changed at the time of GUI software installation enter new folder FPL3 DRIVER 5 Click Next gt Figure 19 Driver File Search 1 Windows 2000 Found New Hardware Wizard B Driver Files Search Results The wizard has finished searching for direer fles for pour hardware device ne following device The wizard found a driver for the USB lt gt Seral Windows found a driver for thie device To metall the diver Windows found click Nest c program flessnectools 32 fpl3 fidibus int gt Back Neo Cancel 37 L Line See it 6 Click to complete the installation of the USB driver Figure 20 USB D Found New Hardware Wizard river Installation Completion 1 Windows 2000 Completing the Found New Hardware Wizard NZ USB High Speed Serial Converter Windows has finished installing the software for this device 7 to the installation of the USB Serial Port driver Click Next gt Figure 21 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 for hardware device Click Ta continue click Next Back we Cancel NEC 38 L Line See
29. Valid Disable Program Valid 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 59 L Line See it NEC Erase Disable Chip Erase check box If 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 54 Device Setup Window Disable Chip Erase AN When Chip Erase is disabled chip cannot be erased and programmed any more ca Caution Be aware that if the security flag is set in the target device neither erasing nor writing to the device can be enabled afterward Disable Block Erase check box If this check box is checked the Erase command becomes invalid in all the blocks of the 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 If 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 setti
30. also a wire wrap field area connector CNS allowing the integration of additional application hardware pgoooo6 o b ELE 000 zi mmm UU deccm Il ERE E 9 9 DD Yersion 2 00 P25 ANB gt P26 AN6 P27 AN7 gt P30 INTP1 gt P31 INTP2 gt PS2 INTPS P33 INTP4 TI51 TOST P60 SCLO P61 SDA0 IPTOKRO O O 072082 O P73 KR3 O PTAKRA 2 P75 KR5 gt P76 KR6 PIK gt P120 INTPO EXLVI VSS 2 00 VSS 14 POT T1010 7000 VSS 16 PO2 8011 vss 8 PO3 S 1 VSS 10 PO4 SCK 1 VSS 12 5 001 58 1 Vss 114 PO6 71011 7001 VSS 16 P10 SCK10 TXD0 VSS 18 P11 SHO RXDO VSS 20 P12 8000 vss 22 P131TXD6 24 26 28 30 32 34 36 38 40 CNS 1 NC 2 P123 XT1 3 14 P124 XT2 VSS lt i lt i lt lt lt lt lt lt 2102102103 6 6 6 2102102102 lt 00 VSS P14RXD6 VSS PIS TOHO VSS 16 1 5 VSS 17 150 VSS P20 AND VSS 2 7 VSS P22 ANI2 VSS P23 ANB VSS P24ANM gt gt AJ Cpa 02 NID 0 a 3 3 5 5 7 7 9 n n 13 13 15 15 17 17 19 19 VSS 21 21 23 23 25 25 27 27 29 29 ETE 21 33 33 35 35
31. compatibility with Windows XP is displayed Click Continue Anyway Figure 29 Windows XP Logo Testing 3 Windows XP Hardware Installation The software you are installing for this hardware USE High Speed Serial Converter has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing iz important Continuing your installation of this software may impair or 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 42 L Line See it NEC 4 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 30 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 e USB High Speed Serial Converter Click Finish to clase the wizard mm Cancel Back 5 Proceed to the installation of the USB Serial Port driver Click Netz Figure 31 Found New Hardware Wizard 2 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps vou install software Far USB Serial Part If pour hardware came with an installation CD Se
32. debugger simulator e Device Files for L Line See it e FPL3 FLASH programming software e Sample program The IAR Systems Embedded Workbenches and the FPL3 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 78K0 78KOS installation To install the IAR Systems Embedded Workbench for 78K0 KOS including C SPY debugger simulator select the SETUP program in the directory NIAR Embedded Workbench 78KNew78kN of the CDROM The setup dialogues will guide you through the installation process 7 2 Device file installation To install the device files for the L Line See it in order to use the IAR C SPY debugger select the SETUP program in the directory Device Files of the CDROM The setup dialogues will guide you through the installation process 7 3 FPL3 FLASH programming GUI installation To install the FPL3 FLASH programming GUI select the SETUP program in the directory FPL3 of the CDROM The setup dialogues will guide you through the installation process 7 4 Sample program installation To install the sample demonstration program for the L Line See it board select the SETUP program in the directory SampleProgram of the CDROM The setup dialogues will guide you through the installation process 32 L Line See it NEC 7 5 USB Driver Installation
33. 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 M8E 02 10 L Line 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 EMC protection requirements
34. it NEC 8 The window below is displayed So check that Search for a suitable driver is selected then click Next Figure 22 Search Method 2 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers A A device driver is a software program that enables hardware device to work with Sy an operating system This wizard will complete the installation for this device USB Serial Port Check that Search for a suitable driver IS device driver is a software program that makes a hardware device work Windows selected eeds driver files for your new device To locate driver files and complete the nstallation click Hest What da you 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 zg driver Cancel 9 Check the Specify a location check box only then click Figure 23 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Files WK Where do you want Windows to search for driver files Search for driver files for the following hardware device 2 USB Serial Port 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 Check that Specify a iont onis checked To start the search click Nest If you are sear
35. 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 I 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 by referring to CHAPTER 7 5 USB Driver Installation T1 L Line See it L Line See it NEC 11 IAR configuration for On Board debugging 11 1 Setup COM por
36. whether numbers or addresses are displayed in the Start End list boxes this check box is checked addresses are displayed this check box is not checked numbers are displayed 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 50 Device Setup Window Target Reset Message Target Reset Message 57 L Line See it NEC 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 51 Device Setup Window Advance Device Setup 1 E X Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security Haq settings Disable Chip Erase Disable Block Erase Disable Proqram Disable Boot block cluster reprogramming Target Reset Message Cancel lt 1 gt Command options This dialog box is used to specify the FPL3 flash processing command options Figure 52 Device Setup Window Command options Command options Read verify 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 exec
37. window Select the parameter file 78F0397D prm then click Open Figure 62 Parameter File Selection RER Look in a PRM File name FBF 33 prm Files of type PRM Files PAM 2 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 63 Port Selection Ei Device Setup Standard Advance Parameter File TEFU387D pim FAM File Head Host connection Part t Speed 115200 Operation Mode Block End 127 Supply oscillator Frequency 20 00 MHz Multiply rate 1 00 f Area Show amp ddres Target Reset Message Remark Selectable ports can be checked using Device Manager For details refer to 7 6 Confirmation of USB Driver Installation 67 NEC L Line See it lt 5 gt Set Supply oscillator according to the specifications of the L_Line 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 64 lt Standard Device Setup gt Dialog Box after Setting F Device Setup d BU xj Standard Advance Host cannectian Port t Speed uz Operation Made Block End 127 sl Multiply rate 11 00 Area Show Addres Target Reset Message
38. 1 03 1a 03 ce 02 FE 0050 27 03 64 Oa 51 Ob ff ff ff ff ff ff ff ff ff ff d Q 0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0080 00 ff ff ff 02 ff ff ff ff ff ff ff ff ff ff ff 0090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff b ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff xi Ready zi az Re pz Figure 80 IAR C SPY debugger L Line See it NEC 13 Sample Project The sample program 78KO_LCD DEMO is located in a single directory which will be called main directory This main directory contains the complete project inclusive all output files of the IAR development tool The directory structure is shown in the table below project object files settings configuration files IAR Embedded Workbench lye xcl file linker command file Wl 78KO LCD demo eww workspace file IAR Embedded Workbench 78 0 78 05 el 78K0_LCD_demo dep dependency information file IAR Embedded Workbench e 78K0 LCD demo ewd project setting file IAR C SPY debugger project file IAR Embedded Workbe
39. C RL NNN 31 b Ee VTT Le e 00 32 T Software installation 2 2 2 32 L Line See it NEC 7 1 Systems Embedded Workbench for 78K0 78KOS installation 32 7 2 Device file 5 32 7 3 FPL3 FLASH programming GUI installation 32 7 4 Sample program installation KEN v s s liess eee REENEN EEN eene nennen nnn nana nhanh nnn 32 75 USB Driver INS talatron ett eeh 33 7 5 1 Installation on Windows 985 2 33 752 Installation on Windows RE 35 2 EMNE n ki b 41 7 6 Confirmation of USB Driver Installation 88 8888888888 eene eene enne ENEE ek 46 71 7 eoi deci EE 47 0 FPLS FLASH programming 50 1 8 49 UOC 49 8 2 Starting up the GUI 49 E We E EEN 50 51 051 ii pA 51 042 EE 52 EEE WEE 61 orm MM e NE PE 62 8 5 Programmer Parameter Window rrranrrnnnunnnnunnnvennuvnnnunnnnunnnvennvennnnnnnnnnnnvennvennnnnnnnnnnnvennvernnnnnnnnnnn 63 9 How to use FPL3 FLASH programming software eese ii iii ini 64 TV Installing the FEL GUI
40. SW I E 15 3 4 1 Operation mode selection GIE 15 27 UART cel cion SW a a la aaa basen 15 3 4 3 On Chip debug Ee Roll ies MORE sasini kin nn anaE nian NANEN r anaE a KENEEN 15 3 4 4 On Chip debug mode select SW1 S4 rrrrrnrnrnnnnvrrnennnnvnrrerernnnnnrnnnrnnnsnnnanrrnnnnnnnensrnnnennnensrnnnsen 16 39 RET NNN SV ox ee ee G m 16 3 6 Navigation 16 3 7 Soldering bridges SB1 SB3 SB4 SB5 and 50 17 3 8 USB interface connector ON Lune d n dada dad aaa nad aaa ao aaa anama 18 49 FLASH programmer connector 2 19 3 9 1 OCD connector lee 20 3 10 LCD1 112 segment standard LCD panel 5 522 55 21 3 11 Temperature SenSOF nne 22 3 12 Phototransistor Lu 26 513 BIP BUNN Ne 26 344 alter holder BAT EEN 26 3 15 External connector CN3 CNA and aevauvnunnnnnnunnnnnnnnnnnnnnnnnnnvnnnnnnnennnnnnnnnennennnnnunnuennunnnnnnnnne 27 3 16 7060 02 memory MIP uansett 28 4 nE depUgo Le ay s na amaya EEEE 29 4 1 OCD via On Board debug function 8888888 8888888 nme ananas 29 4 2 OCD via QB 78KOMINI emulator rennnnnvnnnnnnnnnnnnnnennnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnuennen 30 5 Line See it installation and operation 31 X MERCI Tute E d d E 31 MM
41. The configuration of the USB serial COM port is finished now and the IAR C SPY debugger can now be used in combination with the On Board debug function of the L_Line See it board 75 L Line See it NEC 12 IAR sample session When everything is set up correctly the IAR Embedded Workbench can be started To do so start the Embedded Workbench from Windows Start menu gt Programs gt folder IAR Systems gt IAR Embedded Workbench Kickstart for 78K The following screen appears H TAR Embedded Workbench IDE File Edit View Project Tools Window Help Da 5 2 Belo S vz El 5 4 Ez 2 9 Vorkspace x Worksp Embedded Workbench Startup Create new project in current workspace Add existing project to current workspace Open existing workspace Qe d Example workspaces Recent workspaces Do not show this window at startup Cancel Ready N au EZ Figure 74 IAR Embedded Workbench Now select the option Open exiting vvorkspace from the File menu and locate the sample project Open the file 78KO_LCD_demo eww This is the workspace file that contains general information about the demo project and settings L Line See it NEC After the demo workspace has been opened the files contained in the workspace are displayed Now click on the little sign next to the filename main c to show files that were referred in th
42. Using the dual slope method a resistor value can be converted into a digital counter value To do this the charging time of capacitor C18 will be measured with the 16 Bit Timer Event Counter 00 of the microcontroller The first charging slope will use a reference resistor RREF R6 and the second charging slope will use variable resistor RvaR R5 RT which should be determined By the comparison of the two measured times and the known reference resistor RREF the variable resistor can be calculated The 78K0 LX2 device family has the advantage of bit settable I O ports and Schmitt trigger inputs e g timer input port 11000 The L_Line See it board uses the bit settable port PO as a bidirectional port At first the complete port PO is cleared and set to output mode In this case the capacitor C18 is discharged via P00 11000 and prepared for the first measurement The resistor R7 is only used to limit the current during the discharging of the capacitor Then port P02 is set to 1 and output At this point also the 16 bit Timer Event Counter 00 is started The rest of the port PO is set to input high impedance So the capacitor will be charged via the reference resistor Re When the capacitor has reached the threshold level of the Schmitt trigger input POO TIOOO the actual timer value is automatically captured and an internal interrupt is generated Using this interrupt the capture value is read out In the next step the capacitor C18 will be di
43. ching on floppy disk or CD ROM drive only IS checked Insert the floppy disk or CD before clicking Next Optional search locations Floppy disk drives CD ROM drives W Specify a location Microsoft Windows Update Cancel L Line See it NEC 10 Enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click OK Figure 24 Address Specification 2 Windows 2000 Found New Hardware Wizard Inset the manufacburers mitalabon dick into the chive selected and then click OK Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 11 Click Next gt Figure 25 Driver File Search 2 VVindovvs 2000 Found New Hardware Wizard Driver Files Search Results The wizard haz finished searching for diver fles for your hardware device The wizard found a driver For the following device USB Seral Port Windows found a driver for this device To metall the diver Windows found click Nest tais 32 EpL 3 Vimse diport inf c program files nec Cancel 40 L Line See it NEC 12 Click to complete the installation of the USB driver Figure 26 USB Driver Installation Completion 2 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard AZ USB Serial Part Windows has finished installing the software for this device ance
44. csseeccescecsseecoeeeessseccceeeessenccceeeesserscceeeseees 54 Figure 45 Device Setup Window Parameter File Gelechon E 55 Figure 46 Parameter File Selection Wrmdow nennen nnns 55 Figure 47 Device Setup Window Host Gonnechon 2888888488 8833888 333888 56 Figure 48 Device Setup Window Supply Oscillator Selection eee eeeeeaaeneeeees 56 Figure 49 Device Setup Window Operation 57 Figure 50 Device Setup Window Target Reset Message rrrarrnnnnnrnnrnnannnnnnnnnennnanennnnnnnnnnnarenanrnnnnnnnn 57 L Line See it L Line See it NEC 1 Introduction L Line See it is a demonstration kit for the NEC s L Line 8 Bit microcontroller family with integrated LCD controller It supports onboard FLASH programming and real time execution of application programs up to 4 kBytes of program code The board is prepared to be connected to user hardware parts such as digital I O or analogue signals 1 1 Main features of L Line See it e Easy to use device demonstration capabilities Line See it contains elements to easily demonstrate simple 1 O functions i e navigator switch 112 segment LCD panel phototransistor temperature sensor I O lines UART serial interface etc On Board debug function The K Line Lin it supports an On Board debug function by using the IAR C SPY debugger t Allows FLASH downloading and standard debug functions i e
45. e 3 3 This area cannot be used when a software break is used during on chip debugging Figure 9 78K0 LG2 memory map The L Line See it does not reserve any resources of the 78K0 LG2 device consequently all available memory of the device is free for application software 28 L Line See it NEC 4 On Chip debugging The L_Line See it board offers two possibilities to use On Chip debugging OCD The On Board debug function of L_ Line 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 L_Line See it supports the QB 78KOMINI On Chip debug emulator in order to use On Chip debug function of the 78K0 LG2 device The system configuration for On Chip debugging is shown in figure below OCD via On Board debug function alternative v OCD via QB 78K0MINI On Chip debug emulator 4 1 OCD via On Board debug function To operate the L_Line See it board within the On Board debug mode configure switch SW1 and Jumpers JP1 JP3 as following Power supply via USB Power supply via USB Clock supplied via CPLD 29 L Line See it L Line See it NEC 5 L_Line See it installation and operat
46. e installation destination folder is changed at the time of GUI software installation enter nevv folderiDRIVER 4 window below is displayed Click Nexts Figure 13 Checking Driver to Be Installed Windows 98SE 34 L Line 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 14 Installation Completion Windows 98SE 7 5 2 Installation on Windows 2000 1 When the L Line 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 15 Found New Hardware Wizard 1 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next 35 L Line See it NEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 16 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers gu A device driver is software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device Check that Search for a USB lt gt Serial Jor a ai suitable d
47. e it board to the FLASH programming mode by switching SW1 S1 to ON A p d O 9 o 6 VV1 j JP1 9 JO JP2 Power supply via USB Power supply via USB Clock supplied via CPLD lt 2 gt lt Plug and Play gt Connect the L Line See it board with the host machine via the USB cable If the connection was already done press the reset button SW2 to release the FLASH programming mode 65 L Line See it lt 3 gt Start the FPL3 GUI Figure 60 GUI Software Startup Screen File Device View Help lt lt FlashO penning Flash Open OF Mame Firm Version ExtCode Vendor Mame Format Version Processor Ver Connection to device Port Speed Range Freq Multiply Ready oss 5 Setting the programming environment 1 Select Device gt Setup from the menu bar 2 The Standard dialog box for device setup is activated Figure 61 Standard Device Setup Dialog Box m Device Setup E ES Standard Advance Parameter File File Read Hast connection Part Frequency MHz Speed 115200 Multiply rate Operation Made ES Chip Start Block SE Supply oscillator Area Show Addres Target Reset Message Cancel NEC 66 L Line See it NEC 3 Click File Head to open the parameter file selection
48. e source file The screen now look similar to this IAR Embedded Workbench IDE 0 Dl File Edit View Project Tools Window Help D sng a el WK v El p 6 zeg x Files void main void LCD demo Debug 780 disable interrupti ff disable all interrupts 8 Icd c et E La 05007 Oxd0 external clock input mode Ha Ca Output PCC 0x40 CBU clock fxp 2 defines h MCM 0x07 Main system clock and peripheral hardware clock High speed system cl I B intrinsics h B io78t0397 h key press 0 menu 0 2 rtc c E temperature c PU xlF enable Pull up resistor 2 uart c KRM OxlF ff enable key interrupt detection Lg C3 Output KRIK 0 enable key interrupt WIM OxF3 enable watch timer 0 55 enable interval timer 62 5ms 0 enable watch timer interrupt WTIMK 0 enable interval timer interrupt enable interrupt enable all interrupts LCD init Initialization of LCD controller TEK LED de a LCD demo 4 fe r El Build Debug Log eady n ol A Read Ln 216 Col 2 Figure 75 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 L Line See it board First highlight the uppermost folder called 78KO LCD demo Debug
49. guration The L Line See it system configuration is given in the diagram below NEC 11 L Line See it NEC 3 L Line See it components The L Line See it board is equipped with a navigation switch a 112 segment LCD panel temperature light sensor and with several connectors in order to be connected to host computers FLASH programmer or any external target hardware LCD1 CN7 CN8 SW2 JP3 BUZ1 X1 SW1 JP1 JP2 SW3 CN5 S1 Q1 CN3 CN4 Figure 2 L_Line See it board connectors and switches top view 12 L Line See it NEC CN2 006099 lela 00000000 00000000 00000000 00000000 000000 6 BAT1 000000 006000 000000 000000 000000 T 000000 000000 090000 000000 000000 000000 66 00 0 6 9 000000 Figure 3 L Line See it board connectors and switches button view Some of the L Line See it components are free for user application hardware and software Please read the user s manual of the 78K0 LG2 device carefully to get information about the electrical specification of the available I O ports before you connect any external signals to the Line See it board 13 L Line See it NEC 3 1 Power supply selection Jumper JP1 The different power supply modes of the L_Line See it board can be set by jumper JP1 Jumper 1 controls the power supply during the stand alone FLASH programming and On Board debugging mode Additionally power supp
50. heck that the drivers are installed normally Figure 35 Device Manager L Computer Management BRE File Action View Window Help E jm gt Ga E 5 Computer Management Local 4 Computer z KS System Tools See Disk drives H Ex Event Viewer Display adapters E Shared Folders 4 DvDICD ROM drives EH Local Users and Groups CH Floppy disk controllers Performance Logs and Alerts 8 Floppy disk drives Device Manager IDE ATA ATAPI controllers Sig Storage 25 Keyboards il 4 Removable Storage 9 Mice and other pointing devices Disk Defragmenter 3 Monitors al Disk Management BS Network adapters Hin Services and Applications E c Ports COM LPT Ei Communications Port 1 57 Port COM2 Check that USB Serial Port 7 de Processors SCSI and RAID controllers Sound video and game controllers Check that USB High Speed d System devices Serial Converter is present i Universal Serial Bus controllers AMD 756 PCI to USB Opa Host Controner m LISB High Speed Serial Converter USB Root Hub For Windows 98SE Me Caution Do not select 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 n the GUI port list box the same communication port as COM of USB Serial Port COM needs to be selected
51. hrenheit can be selected by moving SW3 to the UP DOWN direction 83 L Line See it 14 Cables 14 1 USB interface cable Mini B type Series A Plug Series A Plug Figure 82 USB interface cable Mini B type Series Mini B Plug NEC Series Mini B Plug 84 NEC L Line See it 15 Schematics uorne o0d io S9IUO I 29 QAN uonn q s q 9 c v 6 z 7 gt AA L 2 gt 1 m JH 1 L en te T ni es Pel peaoiddy 9092 p ub s q E 5 zil 1 z 6 gt 5 5 BIN 7 2 pt L7 1 2 d 1 m G 23 HB CI agma 3E Lippi pj ve Sy EM way UOISJ9A
52. igation switch SW3 the time can be adjusted Additionally two clock display modes can be chosen the 24 hour mode or the AM PM mode 13 2 Temperature measurement The temperature measurement is done by using the dual slope method By using the dual slope method the resistor value of the temperature sensor is converted into a digital counter value To do this the charging time of capacitor C18 is measured with the 16 Bit Timer Event Counter 00 of the microcontroller The first charging slope uses a reference resistor RREF He and the second charging slope uses a variable resistor RVAR R5 RT which should be determined By the comparison of the two measured times and the known reference resistor RREF the variable resistor of the temperature sensor can be calculated and consequently the temperature The temperature is displayed on the LCD panel Two display formats are supported degree celsius and degree fahrenheit The selection is done by using the navigator switch SW3 Additionally the temperature is transferred via UART6 to a terminal program running on the host machine The data transfer speed is set to 115200 bps per default 13 3 Light incidence measurement This part of the sample project does a light incidence measurement The AD converter channel 0 of the 78K0 LG2 microcontroller is used to do a cyclic measurement of the voltage at the phototransistor The result of the measurement is converted into a per cent value and displayed on the
53. ing Assembler Linker command file Custom Build IV Override default PROJ_DIR XCL DFO397_V4 XCL Debugger IE 78 IECLIBE Override default program entry MINICLIBE Entry label program start Simulator C Defined by application TK 78 Search paths fone per line TOOLKIT DIR YLIBY Symbol Segment Align Cancel Figure 77 IAR Linker options Now after everything has been setup correctly it s time to compile and link the demonstration project Close the Options menu and select Rebuild All from the Project menu If the project is compiled and linked without errors or warnings it can now be downloaded to the L_Line See it board and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the 3 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 emulator hardware setup Set the configuration as show in the figure below and start the download by pressing the OK button TAR Embedded Workbench toe 0000000000 T xl Fie Edt Wes Praec Widow Hek ID 20 5 Bie 5 08 S Cals aaa x m M buzzer c De Tre Bi led wia i i 1 DI light c Cancel 4 Cj Output Main Clock Sdn Cie B defines h OSCCTL Cl
54. ion 5 1 Getting started The windows based FPL3 FLASH programming software allows to select and download application programs to L_Line See it starterkit As communication interface between PC host system and the L Line See it board a USB interface line is needed Before you can download and run a program hardvvare and softvvare must be installed properly 5 1 1 CD ROM contents The CD ROM shows following directory structure CD ROM ROOT Acrobat Reader for 32Bit Windows OS Device Files for L Line See it Device Description Files and SFR Description Files for IAR C SPY Device Files for IAR C SPY Documentation Line See it F Acrobat Device Files DDF NEC FPL3 Drivers FPL3 PRM 4 IAR Embedded Workbench 78K0 4 SampleProgram Table 19 L_Line See it CD ROM directory structure 31 L Line See it NEC 6 Hardware installation After unpacking L_Line See itl connect the board to your host computer using the provided USB interface cable When L Line 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 L Line See it package comes with several software demo packages AR Systems Embedded Workbench for 78K0 78KOS including C compiler assembler linker librarian and IAR C SPY
55. l GER Security CheckSum amp utapracedure EPV Signature read Get Security settings Setup 1 Blank Check command The Blank Check command allows you to make a blank check on the target device connected to the FPL3 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 2 ow The Erase command erases the flash memory of the target device connected to the FPL3 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 52 L Line See it NEC 3 Program command 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 FPL3 to the target device after the execution of the Program command follows the setting of the Command options on the Adva
56. llows connecting the QB 78KOMINI On Chip debug emulator to the L Line See it board in order to use On Chip debug function of the 78K0 LG2 device QB 78KOMINI is a separate product from NEC and it is not included in this starterkit package 1 O 12 7 RESETLOUT 3 JFLMD 0 O 4 01 VDN J 8 JOND 9 ING J 2 Table 14 OCD connector CN8 To enable On Chip debugging by using the QB 78KOMINI On Chip debug emulator configure the L Line See it board as following 1 2 Closed Power supply via USB Power supply via USB Power supply via QB 78KOMINI Note Clock supplied via QB 78KOMINI Table 15 SW1 configuration for OCD For more details on how to configure L Line See it in order to use On Chip debugging please refer to CHAPTER 4 ON CHIP DEBUGGING 20 L Line See it NEC 3 10 LCD1 112 segment standard LCD panel The L_Line See it board is equipped with a 112 segment standard LCD panel The LCD isa transflective model type operating at 5V supply voltage It can operate at a four times multiplex rate The display can be used within a temperature range of 20 C 70 C The typical driving frequency is equal to 32 Hz max 100 Hz within the complete temperature range The LCD pin assignments connections and segment definition is shown in table figure below 8K 8N S29 NO NO 4 COM NC NC COMS NC Figure
57. ly can be applied by the QB 78KOMINI On Chip debug emulator controller by jumper JP2 1 2 Closed default Power supply via USB interface CN7 2 3 Closed Power supply via battery BAT1 Table 1 Power supply selection Jumper JP1 3 2 OCD power supply Jumper JP2 The power supply of the L Line See it board can also be applied by the QB 78KOMINI On Chip debug emulator Close jumper JP2 to apply power from the QB 78KOMINI Battery QB 78KOMINI emulator Table 2 OCD power supply Jumper JP2 3 3 Clock supply Jumper JP3 The clock supply of the 78K0 LG2 device is controlled by jumper JP3 By closing JP3 external frequency of 6 MHz is applied to the P122 X2 clock input pin of the 78K0 LG2 device When opening JP3 an external oscillator can be used To use this mode equip pad X1 not assembled of the L_Line See it board with an corresponding oscillator 1 2 Closed default Clock frequency 6 MHz supplied by CPLD Open e Clock supply by external oscillator By using this mode be sure to equip a crystal oscillator to the X1 pad e For using the QB 78KOMINI On Chip debug emulator Table 3 Clock supply Jumper JP3 14 L Line See it NEC 3 4 Configuration switch SW1 The different operation modes of the L_Line See it board can be set by SW1 switches 51 54 Normal operation mode UARTS6 select OCD disabled On Board debug function Table 4 Configuration switch SW1 factory se
58. nce tab displayed by selecting Device Setup During programming the progress status is displayed in the action log window to indicate programmer 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 4 Verify command The Verify command sends a specified user program to the target device connected with the FPL3 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 FPL3 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 F PL3 This value differs from the value displayed in the parameter window of the main window 7 Autoprocedure EPV command The Aut
59. nch Table 20 Sample project directory structure The main directory contains only the workspace and project files for the IAR Systems Embedded Workbench All source files are located in the directory source and the inc directory contains the header files The xc1 directory contains the linker command file of the 78K0 LG2 device The sample project uses two targets for the microcontroller One target is the IAR C SPY debugger simulator directory Debug and the other is the L Line See it hardware directory Release including the programmable output file Intel HEX file All output files of the IAR Embedded Workbench are generated in these directories For details of using the IAR Embedded Workbench and the IAR C SPY debugger simulator please refer to the corresponding IAR manuals The L Line See it sample project covers all functionalities of the starterkit hardware All peripherals are used to demonstrate the capabilities of the 78K0 LG2 microcontroller The sample project contains four main functionalities Real Time Clock function Temperature measurement Light incidence measurement BUZZER output example 81 L Line See it NEC 13 1 Real Time Clock function This part of the sample project realizes a Real Time Clock After the program is started the watch timer 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 nav
60. ng is cleared by the Erase command when Chip was selected under the Operation Mode Disable Boot block cluster reprogramming check box If 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 55 Device Setup Window Disable Boot Cluster Reprogramming warning AN When Book block cluster reprogramming is disabled boot black cannot be erased and programmed any more ca Caution Be aware that if the security flag is set in the target device the boot area cannot be rewritten to the device afterward 60 L Line 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 56 View Menu 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 61 L Line See it NEC 8 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 57 Help Menu File Device View Help 18 About FPL3 1t gt gt Flashlpenning Flash Open 1 About FPL3 command The About FPL3 command opens the program entry wind
61. nnection 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 Setting switch SW1 S4 to ON allows connecting the QB 78KOMINI On Chip debug emulator to the L Line See it board in order to use On Chip debug function of the 78K0 LG2 device The QB 78KOMINI is a Separate product from NEC and it is not included in this starterkit package 1 OFF default On Board debug function QB 78KOMINI Table 8 On Chip debug mode select SW1 S4 3 5 RESET button SW2 SW2 is the reset button It activates the power on reset It is connected to the reset input of the 78K0 LG2 microcontroller Note By supplying power to the L_Line See it board via the battery the RESET button becomes inactive Please use jumper JP1 to power OFF ON the microcontroller 3 6 Navigation switch SW3 Button SW3 is a navigation switch connected to the key interrupt port of the 78K0 LG2 device It operates in five directions including a center push function The connection of SW3 is shown in the table below Up KRO Left Right KR3 P73 KR3 P7T KRI Select P74 KR4 KR4 P72 KR2 P70 KRO Down KR1 Table 9 Navigation switch SW3 16 L Line See it NEC 3 7 Soldering bridges SB1 SB3 SB4 SB5 and SB6 Additional configuration of the L_Line See it board can be done by the soldering bridge
62. ock Board B intrinsic PCC 4 c Delt 5 iaz M X OKO nope zii B icd h 03T3 B A re KnM Monier Clock Peripheral Bina 7 yet Target Powers Ol KRIK 0 System Disabled Cones C Pent 1 t t vd C Use Enabled Ho Corne No Pei 0 WEM xu 1 c Output urn 0 Pack e Fol scle r var TARGET RESET e enable 2 yini INTERNAL RESET LCD init p Momo Map HAST imir Can 3361 Lang fona while au teme ROM fad EE fol fel 0x0000 OFFF Internal ROM 40 Kbytes FF Internal Evtersied RAM 6144 bytes Log JM 1024 bytes Mon Sep 05 11 16 49 2005 SPY Processor l und Mon Sep 05 11 16 49 2005 C SPY TK 78 Emul Mon Sep 05 11 18 43 2005 Ernulator has to be Press OK to emer Emulator Hardware Setup x LT F x Figure 78 TK 78 hardware setup menu 78 L Line See it NEC Now the debugger is started and the demo project is downloaded to the Line See it board The progress of downloading is indicated by blue dots in the TK 78 Emulator window Please note downloading of greater executables can take some time 7 TAR Embedded Workbench IDE File Edit View Project Tools Window Help D 5 ki x F el oll A 92 m Di Wo ox 25
63. oprocedure EPV command executes the Erase command Program command and Verify command in succession When a user program is to be resent to the target 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 FPL3 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 53 L Line See it NEC 9 Setup command 2 The 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
64. or floppy disk insert it now What da vou want the wizard to do Check that Install from a list or specific is selected Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue 43 L Line See it NEC 0 gt 1 lt gt 2 lt ra Check that Search for the best driver in these locations is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL3 DRIVER then click Next Figure 32 Search Location Specification 2 Windows XP Found Mew Hardware Wizard Please choose your search and mstallaleen oplzns Check that Search for the best driver in these locations is selected a Search ler Ihe best dives in these Use Ihe check boxes below bo Deest oc emand the zlasli search which includes local pains and removable mada The best cane found rll be installed Search removable media ozu CD FrDIM Check Include this location UIDI EE in the search only CAPregramFie ANECTeoR32A FPL3 DRIVER se C Dont search fail choose the dies bo ratal Croase this oplun to elect the device darer bom hel Windows does nel oustartee Ihal De divar vou ghocse will be the best match for pour hardware 3 Enter C Program Files NEC Tools32 FPL3 DRIVER lt 4 gt Click As shown below has not passed Windows
65. or 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 home
66. ow as shown below and indicates the version Clicking terminates the display Figure 58 About FPL3 Window About FPL3 PERRE F er fag Rees 62 L Line See it NEC 8 5 Programmer Parameter Window This window displays the settings of the programming parameters Figure 59 Programmer Parameter Window Device Mame Firm version El ode Vendor Parameter file Mame Format Version Processor Ver Mame Date Lh sum Area Connection to device Port 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 information 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 63 L Line See it NEC 9 How to use FPL3 FLASH programming software This chapter explains the basic operation of the FPL3 GUI for programming the L_Line 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 78K0 LG2 via FPL3 is shown The conditions of the series of operations described in this chapter are as follows
67. port must be configured To do so open the Device Manager which can be found in properties of My Computer Then locate the USB serial COM port and select Properties as show in figure below LS Device Manager Action View Display adapters 51 4553 DVDICD ROM drives aS Floppy disk controllers H E Floppy disk drives Ge Human Interface Devices H IDE controllers G Keyboards Dn Mice and other pointing devices Midas lab Drivers St Monitors lt p NECPCIF Network adapters ey Other devices GN Ports COM amp LPT I E Communications Port COMI EI Communications Port COM HE Disable Uninstall E Universal Serial Bus controll LISBIO controlled devices scan for hardware changes o E Figure 70 Configuration of COM port for IAR C SPY debugger 1 4 73 L Line See it NEC The following USB Serial Port Properties Window appears USB Serial Port COM3 Properties HME General Por Settings Driver E USB Serial Port CUM3 E Device type Ports COM amp LPT Manufacturer FTDI Location on USB High Speed Serial Converter Device status This device is working properly If you are having problems with this device click Troubleshooter to start the troubleshooter Device usage Use this device enable OK Cancel Figure 71 Configuration of COM port for IAR C SPY debugger 2 4 Then select the Port Setting
68. river selected device driver i 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 Next What do you 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 spe driver q Back Cancel 3 Check the Specify a location check box only then click Figure 17 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Files WK Where do you want Windows to search for driver tiles Search for driver Files For the following hardware device iu 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 To start the search click Nest IF pou are searching an a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next location only is checked ed hed Optional search locations Floppy disk drives Click CD ROM drives Specify a location Microsoft Windows Update 36 L Line See it NEC 4 Enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click OK Figure 18 Address Specification 1 Windows 2000 Found New Hardware Wizard E 3 5 Cp m 2
69. river Uninstaller FID Uninstaller Version 2 1 If pour USB device iz connected Press Continue to uninstall the dri Type wordpad Document wordpad Document 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 Syster File System File Setup Information Virtual device driver Application Extension Application Extension Text Document JER r b l EJ co 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 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 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 47 L Line See it NEC 4 Click to complete driver uninstallation Figure 38 Completion of Driver Uninstallation FIDI Uninstaller Version 2 1 Uninstalling VID 0403 amp PID 6001 Deleting registry entries Deleting files Uninstall complete press Finish to exit Caution f 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 L Line See it
70. rnal flash Additionally the On Board debug function uses connector CN7 for communication with the host computer The board power supply of 5V is also provided by connector CN7 For standard communication to a host system i e by using a terminal program the input output signals of UART6 respectively UARTO of the 78K0 LG2 device are connected to CN7 TSN ri A 1 0 g GNDBUS Table 11 Pin Configuration of USB Connector CN7 For connection vvith the host machine use a USB cable Mini B type For confirmation NEC Electronics used only the USB cable delivered with the L_Line See it board 18 L Line See it NEC 3 9 FLASH programmer connector CN2 Connector CN2 not assembled allows connecting the PG FP4 FLASH programmer to L_Line See it board in order to program application software into the CPU internal flash memory Please note the PG FP4 FLASH programmer is a separate product from NEC and it is not included in this package Table 12 CN4 PG FP4 connector When using PG FP4 the programming interface to the 78K0 LG2 device must be set to the clock serial interface CSI Ring Osc Please configure the L Line See it board as following OFF 1 2 Closed Power supply via USB Power supply via USB Clock supplied via CPLD Table 13 Hardware configuration when using PG FP4 19 L Line See it 3 9 1 OCD connector CNS NEC Connector CN8 not assembled a
71. s tab of the USB Serial Port Properties Window and press the Advanced button USB Serial Port COM3 Properties 3 A1 xl General Port Settings Driver Bits per second Data bits sz Parity rl Stop bits hB x Flow control i xl Advanced Restore Defaults Press the Advanced button Cancel Figure 72 Configuration of COM port for IAR C SPY debugger 3 4 74 L Line See it NEC Within the Advanced Settings menu change the Latency Timer msec to a value between 2 and 4 For faster host computers set the Latency Timer to value 1 Advanced Settings for COM3 2 l COM Port Number coma OK USB Transfer Sizes Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for faster performance Defaults Receive Bytes 4096 7 Transmit Bytes 4096 m m BM Options Change Latency Timer value Select lower settings to correct response problems 2 m Miscellaneous Options Serial Enumerator Minimum Read Timeout msec o m Serial Printer Cancel If Power Off Minimum Write Timeout msec o v Event On Surprise Removal Set ATS On Close Latency Timer msec CE E E MI Figure 73 Configuration of COM port for IAR C SPY debugger 4 4 Press the OK button to save the configuration and close the properties menu
72. s SB1 SB3 SB4 505 and SB6 The different configuration modes are shown in the table below Q G O GO F ER 000 6 putin 6566 212 1212 EJ SB1 5 1121 6 1 2 Em mn Figure 4 Soldering bridges 01 6 SB1 1 2 Closed default Vcc connected to AVREF pin Open Vcc disconnected from AVREF pin SB3 1 2 2 3 Open default 2 3 Closed 1 2 Closed default Sub Clock Oscillator connected to P124 XT2 pin Open default Open P124 XT2 pin connected to CN5 4 Closed Open default Closed Open default Open P121 X2 pin connected to CN3 40 Closed Table 10 Setting of soldering bridges SB1 SB3 SB6 By cutting the default connections pad 1 2 of soldering bridges SB3 SB4 respectively SB5 SB6 and closing pads 2 3 the corresponding microcontroller signals are connected to the external connectors CNS respectively CNS In this mode the microcontroller pins can be used as standard I O ports Please configure the clock generator of the 78K0 LG2 device accordingly to use this mode Note Do not close the connection for the Clock Oscillator and external connectors at the same time This can affect the operation of the Sub Main clock oscillator negatively 17 L Line See it NEC 3 8 USB interface connector CN7 The CN7 connector allows connecting the FPL3 FLASH programming software to the L_Line See it board in order to program application software into the CPU inte
73. scharged again The same procedure starts once more with port P03 This time the capacitor is charged via the unknown resistor RVAR of the temperature sensor and after the threshold is reached again the second timer value is read out The unknown RVAR can be calculated from the two values obtained using the method described above and consequently the resistor value of the temperature sensor Please refer to derivation on the following sides 23 L Line See it He VcREF Rvar R RT Vorer NEC E REF Rner x C 1 e VAR Rvar x C 1 e Vc Vevar VcrREF The threshold level of the Schmitt trigger input does not have any influence on the accuracy of the measurement As this will be a constant for both measurements S REF REF Voo 1 e 1 68 e tREF Hoer x C Hoer x C Hoer C REF Hoer X C REF RREF Rvar _ VAR Rvar C Vo 1 e VAR Rvar x C 1 VAR Rvar C e VAR Rvar 0 VAR VAR RREF X REF The capacitor C18 and the supply voltage VDD do not have any influence on the accuracy of the measurement Only the absolute value of the reference resistor RREF has an influence because these parameters will not change during one measurement Using the RREF tREF and tVAR values the resistor RVAR can be calculated 24 L Line See it The diagram of the dual slope circuit is sho
74. t for IAR C SPY debugger Before using the On Board debug function of the L Line See it board together with the IAR C SPY debugger it is necessary to set the corresponding USB serial COM port of the host computer Just be sure that you have installed the USB driver first To set the COM port please execute the registry script file FTDI_Set_Registry reg The script file can be found in the typical installation path of the IAR Embedded Workbench C Program Files AR System Embedded Workbench 4 0 78k configinec This script file will set the COM port number in the following registry key HKEY LOCAL MACHINEVSOF TVVARENEC Tools NECDEV 78K0 EX 7 Registry Editor m p B x Registry Edit View Favorites Help EO NEC Tools MECDEV Gi lab Default value not set ZE 1 0 abjport COM3 My Computer HKEY LOCAL MACHINEVSOFTWAREINEC Tools MECDEVY78KO EX x Figure 69 Registry entry for IAR C SPY debugger COM port setting Per default the serial port COM3 is set in the script file If the L Line See it board is used on a different USB serial COM port please edit the script file accordingly To do so open the script file with your preferred editor i e NOTEPAD and make changes as described in the file Then run the script file 11 2 Configuration of USB serial COM port To optimize the communication between the IAR C SPY debugger and the L Line See it board the USB serial COM
75. ttings 3 4 1 Operation mode selection SW1 S1 SVV1 switch S1 controls the operation mode of the L Line See it board Setting SW 1 81 to ON allows to reprogram the internal FLASH memory of the 78K0 LG2 device by using the FPL3 FLASH programming software OFF default Normal operation mode FLASH memory programming mode Table 5 Operation mode selection SW1 S1 Within the normal operation mode the user program stored in the FLASH memory of 78K0 LG2 is executed 3 4 2 UART selection SW1 S2 SVV1 switch S2 specifies the corresponding UART signals of the 78K0 LG2 device that are connected to the FT232 interface lines OFF default UARTS select ON UARTO select Table 6 UART selection SW1 S2 3 4 3 On Chip debug enable SW1 S3 SW1 switch S3 controls the On Chip debugging for the 78K0 LG2 device Setting switch S3 to ON allows to use the On Board debug function of the L Line See it board and additionally the connection of the QB 78KOMINI On Chip debug emulator OFF default Disabled Enabled Table 7 On Chip debug enable SW1 S3 15 L Line See it NEC 3 4 4 On Chip debug mode select SW1 S4 SW1 switch S4 controls the On Chip debug mode of L_Line See it board Switching SW1 S4 to OFF allows to use the On Board debug function of L_Line See it board By using this mode no additional debug hardware like the QB78KOMINI On Chip debug emulator is needed The debugging is done via the default USB UART co
76. uted 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 58 L Line See it NEC Checksum after Program check box If 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 53 Device Setup Window Security flag settings Security flag settings Disable Chip Erase Disable Black 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 a 78K0 LG2 microcontroller are valid Chip Erase Command Block Erase Command 1 Program Command Disable Chip Erase Invalid Valid Note1 Disable Block Erase
77. w Displays an FPL3 action log displayed under the toolbar Programmer parameter window Displays programming parameter displayed to the right of the action log settings window Status bar Displays status 8 3 Toolbar The toolbar contains buttons for starting the important procedures of the FPL3 Figure 40 Toolbar Buttons Device Setup button File gt Load button Fi Device Blank Check button x E Device Erase button ES Device gt Program button Device Verify button Device Autoprocedure EPV button 50 L Line See it L Line See it NEC 2 Quit command The Quit menu is the command for terminating the FPL3 GUI software Clicking on the right side of the task bar also terminates the FPL3 GUI software User settings are saved in the FPL3 INI file so that the GUI software starts up next time with the same settings Note 8 4 2 Device menu FPL3 INI is created in the Windows folder when Windows 98SE Windows Me or Windows XP is used When Windows 2000 is used FPL3 INI is created in the Winnt folder 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 43 Device Menu File Device View Help J Blank Check F Erase Program gt gt FI Flask Yeri l
78. wn in the figure below 78KO LG2 POO 0 RREF R6 Rvar R5 RT temperature sensor resistance Figure 8 Diagram of dual slope circuit The calculation of the charging time of the capacitor can be done as following t RxC Vc 1 1 Vc RxC 1 8 1 RxC Von Vc t RxCxh h 1 Voo NEC 25 L Line See it NEC Example VDD 5 V Vthreshold Vc 0 4 0 7 VDD Typical Vthreshold 0 6 x VDD RREF 10 kO C C18 220 nF t HaFxCx l 1 Vop t 10kO 220 nF xIn 1 0 6 t 2 0158 ms 3 12 Phototransistor Q1 For light incidence measurement and primarily as an application example a phototransistor PT15 21C is connected to the ANIO analogue input equal to port P20 of the 78K0 LG2 device 3 13 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 01 equal to port P06 71011 T001 of the 78K0 LG2 device The AC buzzer operates in a voltage range of 2V 5V 3 14 Battery holder BAT1 To power the L_Line See it board via battery please equip the battery holder BAT1 with a CR2032 3V lithium coin type battery 26 L Line See it NEC 3 15 External connector CN3 CN4 and CN5 CN3 CN4 and CN5 are connectors for external user hardware The microcontroller signals are connected to CN3 CN4 and CN5 The L Line See it board provides
Download Pdf Manuals
Related Search
Related Contents
JUST DANCE® Wii U Gladiator GATR5210WG Instructions / Assembly システムパスルームヒューメ リアと給湯機器の対応 ー Sivy SA-4340S Hardware User Manual Page 1 Page 2 Page 3 この度は、 トネ 重量量軸力計をお買い上げし Manuale d`istruzioni Copyright © All rights reserved.
Failed to retrieve file