Home

User`s Manual 78K0/Fx2 - CAN it!

image

Contents

1. 55 O oO 27 SE SW SW SWS O ON vc HR C e S1 S2 S3 S4 S OO RIZ R12 O R33 ve R34 Satz R10 C9 S A Su a e OO o R35 x an S
2. 81 t 78K0 Fx2 CAN 15 Schematics lt 9 e e I zapen SSHH Si T gt gt surdgy c0 7720 0090 gle ale Arten 91 SI 7 8 A OTE E D o I I pda 5 5 5 5 5 S B E ES 3 ebe 1Peoqose E WH 8 g 3 z T T d p qa a awu ZI u 2 TS 5 lt 8 F TMS S E E a E S 8 Or 6 D 00 Z YHA preog om S SODA E S EES D O 8 L ano iJ f NYO KE ons P ENT 7 os A A os B ES 8 9 s os aod A sn YMS A Te Burmeip E z z ISO DIA O SOOA a a Ajquessy z v el wl a 290 204 2 MAS Idi LASHA
3. A v z IND gt _ 2 ds gie 3 E ee l NO 3 OSODA SS S Mr E e Al el u propumogyamxjesonty aiaaenmdnt os O SIDA oe o en TAND IGL Ly AL y OSOOA ol 6 aa D aa 40001 S NOUWO SON T N peaoiddy pay9ayy paubisag EMS 8 L Pz DI S OO i TON SWL on aes 000 T SEM NOYINO 2 5 om S wy z TMS z j DDA OL aL El El OQ 1 e A S 2 2 3 E a S oun XOL SS g D E a OSO DDA 8 SG 8 y CN OSODA EC Ol OZOTVEL 19490S NXV Sudoy mme jayoos dot ven OMS SS Ke QAXINIT v ax UNO IMS wm SETT 3 We MT a VYA EELER E lt ra er ob TMS ds 5 no Tm ALTALI IVAN wl 9 Le se SWL Pe a Q A ber ara z T Aa nT e VW auteur Wea se e TAS ndo THE REN SLY IGL JSN D S aval l i a a ec TANDO a TINO Los DA E H Loi Tdf a VW VOI PAT TANS X za Ig ze TAN oal sc DO TDA faf 1 axe uN 8 l Cz Se Es ol OTTO Yy SIV SIOT Fer ara sa z A Cou ANN te soi lt vIV PIOT ker SLODMOL AST V Leper nouns Ta dr Trauer ida lz st EE td ata E 3 OO aa e SS ESAS oo ker 8 sz 9 dao Q Sa ca a ET E Se SE See tr IO y TIVZIO 1 ker A OSODA Fe Pa SOOT UW MOT Hr Te z nosey 030 Ra F DEG se SH 62OT ov O1IOT Hor ys D o ie oo ae ees oax do a Di asa nao ve 9H OFT SOL TAN B j a m zc Le IOT 83V 807 ou OSO DDA gt E S e TODA MOL er vr TEX NAO KR AOL Da pus i T ec ra oan Hy er Se A arab oF Lv 007 vm hy Elance E S A ve 9101 1aL Le au 8 Len ia e Ge ER s 9 Rer Ge TI Jeu
4. Port list box Select a channel for communication between the 78K0 Fx2 CAN it board and host machine e COM1 to COM256 Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation Speed list box Select a communication rate for the selected communication channel from the following e 9600 bps e 19200 bps e 38400 bps e 115200 bps Remark For selectable communication rates refer to the user s manual of the device used Supply oscillator Supply oscillator is used to select a clock that determines programming data transfer and a transfer rate Figure 44 Device Setup Window Supply Oscillator Selection Supply oscillator Frequency MHz Multiply rate Frequency box Sets the clock frequency of the target system The range of operating frequency varies from one device to another So check the specifications of the device used before making a setting Multiply rate Specifies the division rate or multiplication rate of the target device If the target device has an on chip PLL circuit enter a division rate or multiplication rate according to the use environment The selectable division rate or multiplication rate differs depending on the device Check the specifications of the device used before making a setting If the target device does not have an on chip PLL circuit select 1 0 On the initial screen the default set
5. User s Manual 78K0 Fx2 CAN it Demonstration Kit for the 78K0 F_Series Document No U18596EE1VOUMOO Date Published January 2007 NEC Electronics Europe GmbH 78K0 Fx2 CAN it NEC The information in this document is current as of date of its publication The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC sales representative for availability and additional information No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such NEC Electronics products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconduc
6. wen Figure 4 78K0 Fx2 CAN it CPU module components User s Manual U18596EE1VOUMOO 22 78K0 Fx2 CAN it 4 1 1 External connector CN3 CNA CN5 and CN6 CN3 CNA CN5 and CN6 are connectors for external user hardware P120 INTPO EXLVI 3 6 P o EIS 9 ppo LO Y E Geess 15 Piaixt 3 e pa S e o fr lem ha PT BUZ NTP 15 P72 POLINTPO Table 13 CN3 CN4 CN5 and CN6 connection to 78K0 FF2 4 2 High Speed CAN connector CN8 3 6 Im 8 P16 TON INTP5 9 Im 12 Jm Sp SI10 RXD61 Ta P10 SoKi0 eer a CN NEC p ese ana POS ANI13 a Poe ant 5 Pos ann 6 Po anno 8 Poanse o Pean 12 Jm Ta Pane M a5 Pean CN8 is a D SUB 9 connector for High Speed CAN with CiA standard pin assignment The used transceiver is the PCA82C250 with bus termination The transceiver is connected to the CAN interface of the 78K0 FF2 device whereby the standby mode control is selected by port P67 Table 14 CAN connector CN8 User s Manual U18596EE1VOUMOO 23 78K0 Fx2 CAN it NEC 4 2 1 OCD connector CN7 Connector CN7 not assembled allows connecting the QB 78KOMINI On Chip debug emulator to the 78K0 Fx2 CAN it board in order to use the On Chip debug function of the 78K0 FF2 device QB 78KOMINI is a separate product from NEC and it is not included in this starterkit package AO LDESEI IN 2 RESETLOUT 3 Fimbo 4 NDDIN EA PA 6 JGD_ S 83 DND ONC Table 15 OCD co
7. Autoprocedure EPV button User s Manual U18596EE1VOUMOO 47 78K0 Fx2 CAN it NEC 9 4 Menu Bar Depending on the actual device status and device type some menu items may be enabled or disabled 9 4 1 File menu Clicking the File menu displays the pull down menu as shown below This menu mainly contains commands related to file operation Figure 37 File Menu File Device View f gt gt FlashU penning Flash Open OF 1 Load command The Load command allows you to select a program file The selected program file is programmed into the flash memory of the device by executing the Program command or Autoprocedure EPV command Figure 38 HEX File Selection Window File name Files of type Gre Hex files breczsz hex Cancel E The file selection window for program loading displays the most recently used directory to which a user program has been loaded After a user program is loaded a checksum calculation is made and the result is displayed in the programmer parameter window button Selects a user program as a program to be written to the target device button Closes the window without selecting a program User s Manual U18596EE1VOUMOO 48 78K0 Fx2 CAN it NEC 2 Quit command The Quit menu is the command for terminating the FPL3 GUI software Clicking x on the right side of the task bar also terminates the FPL3 GUI software User sett
8. CAN it NEC 3 4 3 UART selection SW4 S3 SW4 switch S3 specifies the corresponding UART signals of the 78K0 FF2 device connected to the FT232 interface lines OFF default UARTE60 select UART61 select Table 4 UART selection SW4 S3 3 4 4 UART LIN mode SW4 S4 SW4 switch S4 controls the serial communication mode of 78K0 Fx2 CAN it board The corresponding UART signals RxD and TxD selected by SW4 S3 are connected to the TJA1020 LIN transceiver when setting SW4 S4 to ON Setting SW4 S4 to OFF connects the UART signals to the FT232 interface lines OFF default UART mode LIN mode Table 5 UART LIN selection SW4 S4 3 5 LIN plug JP1 JP1 is a 3 pin connector for the LIN bus connected to the transceiver TJA1020 Reference voltage for the LIN bus level LIN bus line Table 6 LIN plug JP1 User s Manual U18596EE1VOUMOO 16 78K0 Fx2 CAN it NEC 3 6 USB interface connector CN6 The CN6 connector allows connecting the IAR C SPY debugger or FPL3 FLASH programming software to the 78K0 Fx2 CAN it board in order to debug application software or program the 78K0 FF2 internal FLASH memory The board power supply of 5V is also provided by connector CN6 For standard communication to a host system e by using a terminal program the input output signals of UART60 respectively UART61 of the 78KO FF2 device are connected to CN6 Please configure switch SW4 accordingly to use this mode LO Fi
9. Chip Stat Block Sl Supply oscillator Area Show Addres Target Reset Message OR Cancel User s Manual U18596EE1VOUMOO 63 78K0 Fx2 CAN it NEC lt 3 gt Click PRM File Read to open the parameter file selection window Select the parameter file 78F0893 prm then click Openl Figure 58 Parameter File Selection AAA a File name prm Files of type PRM Files PRM Cancel E 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 59 Port Selection ES Device Setup E Standard Advance Parameter file 78F0893 prm FAM File Read Supply oscillator Frequency 20 00 MHz Multiple rate 11 00 Host connection Port Coma speed 115200 Operation Mode Block a te O Area Show Addres Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation User s Manual U18596EE1VOUMOO 64 78K0 Fx2 CAN it NEC lt 5 gt Set Supply oscillator according to the specifications of the 78K0 Fx2 CAN it board Frequency 12 00 MHz and Multiply rate 1 00 In Operation Mode please specify the Chip mode The following figure shows the recommended settings Figure 60 lt Standard Device Setup gt Dialog
10. 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 32 Driver Uninstallation ES a Fie Edit View Favorites Tools Help E Back gt Si Search K Folders EE Address ICH C roor am ElesuNECToclk22uebG FD VDDINEDUET DI E ce File and Folder Tasks a Make a new Folder Ed Publish this Folder to the Web El Share this Folder Other Places E DRIVER CH My Documents E Shared Documents e My Computer a My Network Places Details Mame 901 Release Info DOC 2134 Release Info DOC COMPORT PDF 8 FTCOMMS YXD Sod ETOIBUS CAT F TDIBUS INF Fedibus sys Sod ETOIPORT CAT DFTDIPORT INF A B Fa a he SFTDIUNIN INI FTSENUM SYS 2 FTSENLIM YD ftserzk sys FTSERIAL SYS FTSERMOU INF X FTSERMOLL YSD E Feseruiz dll 2 FTSERUL DLL README TXT Type wordpad Document wordpad Document POF File Virtual device driver Security Catalog Setup Information System File Security Catalog Setup Information Configuration Settings Application Configuration Settings System File Virtual device driver System File System File Setup Information Virtual device driver Application Extension Application Extension Text Document 3 Click Continue Figure 33 Driver Uninstaller FTDI Uninstaller Version 2 1 IF your USB device is connected p Press Continu
11. 581 0 625 0 635 0 554 0 755 032 0 886 0 890 0 961 0 962 1 0 1 040 1 041 1119 1 123 1 126 1 209 1 215 1 300 1 308 E ER 1 506 E ren 1 680 1 700 1 720 1 810 1 833 1 896 1 923 1 951 2 072 2 128 2 163 2 235 2 274 1 Normalising point Table 11 Distribution of temperature factor kr NEC 1990 at 25 degrees The sensor resistance can be calculated as following R k R 1 m Example R 2000 Q A a a ere ES E DEER Ee Ge User s Manual U18596EE1VOUMOO 20 78K0 Fx2 CAN it The temperature at the sensor can be calculated from the change in the sensors resistance from the following equation which approximates the characteristic curve a 4AxfB 4xBxkr a C 2XxB with a 7 88x10xK 5 2 B 1 937x 10 xK Fr R25 kt 3 13 External LED s D1 D4 LED s D1 to D4 are connected to port P5 of the 78K0 FF2 device A low signal output at each port switches the corresponding LED on Table 12 LED D1 D4 connection User s Manual U18596EE1VOUMOO 21 78K0 Fx2 CAN it NEC 4 78K0 Fx2 CAN it CPU module components The 78K0 FF2 CPU module is equipped with 4 connectors in order to be connected to user defined hardware Additionally the 78K0 FF2 CPU module contains about connector CN7 for On Chip debugging purpose and connector CN8 for CAN communication 4 1 78K0 Fx2 CAN it CPU module ISS RADICA 78FO893GK il Wm in Germany CNI
12. Debug Y LCD_data bcdl LCD_data bcd2 LCD_data bcd3 if bcd0 LCD_string text07 0 else LCD_string text08 0 E adc_main c El inn y El interrupt c E Icd c Output eege B REACT_demo Debug main function 6 TIMER_demo Debug I ea i lane henna a BJUART_demo Debug Y void nain void EEE E TK 78 Emulator i unsigned int Downloading application _ disable in MM vHardwarelni vSoftwareInit ff Variable Initialization LCD nit f f LCD Initialization LCD_inst 0x01 ff clear display LCD_write_CGRAM O0x00 sbgpatO0 0 write display character RAM LCD_write_CGRAM 0x01 bgpat1 0 LCD_write_CGRAM 0x02 bgpat2 0 LCD_write_CGRAM 0x03 bgpat3 0 y b Overview ADC_demo REACT_demo TIM 4 gt fol fa Messages Building configuration ADC_demo Debug Configuration is up to date bs AS Ready Poo l f y Figure 71 IAR project download User s Manual U18596EE1VOUMOO 75 78K0 Fx2 CAN 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 Stop Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the 78K IAR Embedded Workbench IDE User Guide of the IAR installation IAR Embedded Workbench IDE ffe E sl File Edit View Project Debug Emulator
13. Fax 55 11 6465 6829 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC Revision History Revision Chapter Description 16 12 2005 First release 21 06 2006 Correction of CAN connector CN8 12 01 2007 Chapter has been updated with regard to the simplified TK 78 COM port setting supported by IAR Embedded Workbench for 78K version 4 40B User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC Table of Contents LE INTOdUCUON io 11 1 1 Main features of 78K0 Fx2 CAN WHliooooccininonicnniinnccccnnncccnncnnnncnnnnnnnnncnnnnnnnnrrn non nnnrrrnnnnnnnrrrnnnnrennnnnnns 11 1 2 System PEQUE MENS 12 Med Package COMUC DEE a 12 LA Ken EE 12 2 78K0 Fx2 CAN it system configuration ccooccccocnciccnncconnnonnnconancnnnnnnnnnnrnnancnnancnnannrnnnannn 13 21 ZOKOFXZ CAN IU aio es 13 2 2 MOS COMPU aci 13 2 3 Power supply via USB Inte aCe docialcncs antaras 13 3 78K0 Fx2 CAN it baseboard components cooccconccconcnccccncncnnaconnnccnnanennnrononnrnnnarenanennnnnns 14 B20 ARESEW Dutton RCM 15 932 WEY glo UL Ce a pe EE 15 39 User DUO SWS sso ccc EE 15 3 4 Configuration SWITCH WA io iia iii coo arias 15 3 4 1 Operation mode selection SOWAS T serre a a a EEN 15 3 4 2 On Chip debug mode selection GA 15 343 UART Ee WEE 16 3 4 4 UART LIN mode SW4 S4 EE 16 SO IN PP Dacha ca eeben 16 3 6 USB interface connector CNG sicssercccccicesscrscosiwnccessensaccedeeuceaenzescaieceeiewaenacnccucansesweusee
14. New Hardware Wizard What do you want Windows to do Check that Search for suitable driver is selected e Search for the best diver for your device Recommended Display a list of all the drivers in a specific location 0 You can select the driver you want Cancel User s Manual U18596EE1VOUMOO 30 78K0 Fx2 CAN 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 gt Figure 8 Search Location Specification Windows 98SE Add New Hardware Wizard Windows wl search for new divers p de diner database on pour hard dence and in ang of the following selected location Dick Ae bo Hart the search Floppy disk der T CD ROM dive T Miesch Windows Update lt 1 gt Check Specify a location only a je Progeaan HlesHECT ools 32 FPLS SDR Browse lt 3 gt Click lt 2 gt Enter C Program Files NEC Tools32 FPL3 DRIVER Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 4 The window below is displayed Click Next gt Figure 9 Checking Driver to Be Installed Windows 98SE Add New Hardware Wizard Windows dover fle psich for the device USE High Speed Se al Correte Windows E por ready do install the best diver for thes device Click Back to select a dile
15. To operate the 78K0 Fx2 CAN it board within the On Board debug mode configure switch SW4 as following Table 17 SW4 configuration for OCD via On Board debug function User s Manual U18596EE1VOUMOO 25 78K0 Fx2 CAN it NEC 5 2 OCD via QB 78KOMINI On Chip debug emulator To operate the 78K0 Fx2 CAN it board together with the QB 78KOMINI On Chip debug emulator configure switch SW4 as following Table 18 SW4 configuration for OCD via QB 78KOMINI User s Manual U18596EE1VOUMOO 26 NEC 78K0 Fx2 CAN it 5 3 78K0 FF2 memory map The 78K0 FF2 memory layout is shown in the table below Special function registers SFR FF20H 256 x 8 bit iiaa FF1FH General purpose registers Short direct 32 x 8 bits addressing Internal high speed RAM i 1024 x 8 bits FE20H FE1FH FE10H FEOFH FBOOH FAFFH AFCAN area DI FAOOH 256 x 8 bits FOFFH Een Reserved X 16384 x 8 bits Data memory space F800H F7FFH bank 4 RAM space in A Ei 6384 x 8 bits TEREN which instruction aaa vie bl i bank 2 j Program area Sie 1000H OFFFH can be fetched CALLF entry area EOOOH DFFFH Ee Reserved COO0H BFFFH 0800H O7FFH Program area Flash memory 16384 x 8 bits bank 0 Xx 116384 x 8 bits eect 0081 0080H Option byte area bank 5 16384 x 8 bits bank 3 007FH 16384 x 8 bits 8000H 7FFFH CALLT table area Program memory spa
16. Tools Window Help IESSE HEES no E x x ADC_demo Debug y Ka Goto DI P cru Registers DI A void maint void main H 0467 B3 O 6 78K0_Taste_ unsigned char i disable inter BJADC_de pe unsigned int tmp_ result z vHardwarelnit Ha QJREACT_d v DAEA EN OxFBIO Ha B TIMER_d L gt _ disable _interrupt disable all interrupts v gt oftwarelnit R4 E 0x30 Ea DUART de v vHardwareInit peripheral settings gd 3AD30 R5 D OxFB vSoftwareInit ff Variable Initialization 5470 9A140 RP3 HL 0x0724 LCD_init f f LCD Initialization LCD inst 0x01 or e LCD_inst 0x01 clear display 0473 A101 SI Psy Satz 0475 JA3E0E a Ce g LCD write CGRAb LCD write Eee eee ehgpato o Z dd write display character RA 0478 2100 ISP 1 LCD_write_CGRAM 0x01 sbgpat1 0 D47A 123005 RBSO 0 LCD_write_CGRAM 0x02 bgpat2 0 047D 9AF10 AC 0 LCD write CGRAM 0x03 bgpat3 0 LCD write CGRAb RBS1 0 b A 0480 A101 0482 123807 S LCD_write_CGRAM 0x05 bgpat5 0 il 0485 9AF1D IE 0 LCD_write_CGRAM 0x06 bgpat 0 LCD write CGRA LCD_write_CGRAM 0x07 bgpat 0 0488 A102 0464 12400 _ enable interrupt dd enable all interrupts A eet 0490 A103 e 8 nana ana Overview ADC_demo RE 4 fo ac rurenr wii e gt E Debug Log Build x Goto sl Saa 7 gt al fedo 00 00 00 00 00 00 00 00 00 00 00 00 00 OO
17. and starting lt 1 gt Set the 78K0 Fx2 CAN it board to the FLASH programming mode by switching SW4 S1 to ON Version Z e o O S Wert gt en lt co C CO a sr O CAN it EESS 0600 030 01 ermony n Q U WT O w i rf CG SND 78K0 oj Version Ed c2 n G Mode lt 2 gt lt Plug and Play gt Connect the 78K0 Fx2 CAN it board with the host machine via the USB cable If the connection was already done press the reset button SW1 to release the FLASH programming mode User s Manual U18596EE1VOUMOO 62 78K0 Fx2 CAN it NEC lt 3 gt Start the FPL3 GUI Figure 56 GUI Software Startup Screen File Device View Help Sa Were gt gt FlashOpennina Flash Open OF Name Firm Wersion Eat ode Vendor Name Format Version Processor Wer Connection to device Port Speed Range Freq Multiply Ready he 10 5 Setting the programming environment lt 1 gt Select Device gt Setup from the menu bar lt 2 gt The Standard dialog box for device setup is activated Figure 57 lt Standard Device Setup gt Dialog Box F Device Setup 2 x Standard Advance Parameter file PAM File Read Host connection Fort Frequency MHz Speed 115200 Multiply rate Operation Mode
18. ci in E cio 76 Figure 73 USB interface cable Mini B bwper a iE 80 Figure 74 78K0 Fx2 CAN it baseboard schematce 81 Figure 75 78K0 Fx2 CAN it CPU module schematce 82 List of Tables Table 1 Configuration switch SW4 factory settmgs 15 Table 2 Operation mode selection SW4 S1 ooccconicnonononononononarononaronanaronnonononorononaroronaroronararonrrnonoreronaro 15 Table 3 OCD mode selection SW4 SZ2 irurita a a a a a a 15 Table 4 UART Selection SWA SS cecilia iaa 16 Table 5 UART LIN selection SW4 S4 cs cononsalai ill 16 Hale G LIN Dia Pda Es 16 Table 7 Pin Configuration of USB Connector ONG cooccccccccccccnncccconccnnncnconcnnnnnononnnnnnonnnnnnnnnononnnnnnnononnnnnnnss 17 Table 3 CN4 PG FPACONNeciO esmaltado ritual ces 18 Table 9 SW4 configuration when using PG EPA 18 E Ek DISDIAY eet e E 19 Table 11 Distribution of temperature factor k 220 ccceeeceeeeeeeeeeeeeee cece eeeeseeeeeeeeeeeeeeeseeeeeeceeeuseseseeneeseeeeees 20 Table 12 LED DISDA CONDECION tristes 21 Table 13 CN3 CNA CN5 and CN6 connection to 78K0 FF2 oocccccncccccccconccnnnnccnnnnnanncnnnnnononnnannnnnnnnnnnnnnnos 23 Table TACAN CONHECI GONE runna id 23 Table OCD ele erregt KEE 24 Table 16 SW4 configuration for OCD via QB 78KOMINI coooooncccnncccccccconoccnnnnncnconononnnnnnnnnnnonanonnnnnnnnnnnonos 24 Table 17 SW4 configuration for OCD via On Board debug function oooocccnnccccccnonnncnnnncnnnnnnanccnnnnnnnnanos 25 Tab
19. 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 8 SOFTWARE INSTALLATION 9 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 35 GUI Software Main Window Menubar E WE 10l x File Device view Help Device View pat Pa Waves gt gt PS d de af Dk Mame Firm Version ExtCode Programmer Wendo parameter i window Action log window E Format Version Processor er Toolbar Connection to device Hot Speed Range Status bar Fre Multiply i S Ready poo Fa Poo User s Manual U18596EE1VOUMOO 46 78K0 Fx2 CAN it NEC This window consists of the following items Display Information displayed at the top FPL3 displayed under the menu bar ICONS Action log window 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 9 3 Toolbar The toolbar contains buttons for starting the important procedures of the FPL3 Figure 36 Toolbar Buttons Device gt Program button Device gt Verify button Device gt
20. e5 DI sel 0000fe20 0000fe3f NUM OVR 4 Figure 72 IAR C SPY debugger User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 13 Sample programs 13 1 General Introduction Each of the sample programs is located in a single directory which will be called main directory of the sample This main directory of each sample contains the complete project inclusive all output files of the development tool The workspace file 78KO_CANit eww is located on top of the sample program directories All sample programs use the same directory structure CH AD Converter Demonstration 78K0 FF2 project and output files POS petando O S L Debug L inc L settings Re E xo L CAN Demonstration Reaction Time Measurement L Timer Demonstration L UART Demonstration workspace fe TAR Embedded Workbench 73K ls 78K0 CANiteww workspace file IAR Embedded Workbench 78K Table 21 Example directory structure The main directory contains only the project files for the IAR Systems Embedded Workbench 78K All source files are located in the directory source and the inc directory contains the header files The xc1 directory contains the linker control file of the 78K0 FF2 device Each sample project uses two targets One target is the Debug directory Debug that holds all information for debugging purpose and the other one the Release target directory Release contains the programmabl
21. files CT AR Embedded Workbench 78K IAR Embedded Workbench for 78K 1 SamplePrograms Sample programs for 78K0 Fx2 CAN it Table 20 78K0 Fx2 CAN it CD ROM directory structure User s Manual U18596EE1VOUMOO 28 78K0 Fx2 CAN it NEC 7 Hardware installation After unpacking 78K0 Fx2 CAN it connect the board to your host computer using the provided USB interface cable When 78K0 Fx2 CAN it is connected the USB driver needs to be installed on the host machine Please refer to the following CHAPTER 8 SOFTWARE INSTALLATION 8 Software installation The 78K0 Fx2 CAN it package comes with several software demo packages e AR Systems Embedded Workbench for 78K including C compiler assembler linker librarian and IAR C SPY debugger e FPL FLASH programming software e Sample programs The IAR Systems Embedded Workbench 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 8 1 IAR Systems Embedded Workbench for 78K installation To install the IAR Systems Embedded Workbench for 78K including C SPY debugger select the SETUP program in the directory IAR Embedded Workbench 78K ew78k of the CDROM The setup dialogues will guide you through the installation process 8 2 FPL3 FLASH programming GUI installation To install the FPL3 FLASH programming GUI select the
22. is executed follows the setting of Command options of the Advance tab displayed by selecting Device gt Setup Upon completion of Erase command execution the GUI software displays the result of executing the command on the target device User s Manual U18596EE1VOUMOO 49 78K0 Fx2 CA N it NEC 3 Program command D 4 Veri The Program command sende 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 Advance tab displayed by selecting Device gt 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 fy 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 win
23. oz Mag 090 aa asIa Cd ONI A 1 P mune LASHA a ie caa dSiId zid WNIT ndo SI oi TAg d S Td E vd DNIT Add D L CDNId dD CLX oaa_dasIad_o d ces m a H asIad pod GONE Nad 6 OL NIT dd Cx AOS JULY a M Y Asra CG 9d TONA NI L 3 DAN SY dSId 99d GINI NI ry WUER TX E D Eggs St I 7 5 TNO l L L vs os d S E Gi lz Ge y Z zZ S O0 SIDA OSODA g E d EE 4 e Ee a la la la a A A a A a fa a fa fa DD la fa ja fa Sos cer ErRErLcErEEErEEEEds 3 ly ly te y tes byte ly e lo fe kekeke HA SES EE E EE E EE EES Ee EES ie BEEBBEEBRBEBREBBBEBRBE Sutsnowyapemysurdgy if Ol 6 se essa ejejeljsj Jejeje se ape eet Ry A L CONA Y SSSAAA RRARAA P D S cCHLEu aSi DtoPpS TDN Na UNE Nd H aAQaQa wuAuna 4 4 9 SE R OCOZOA a aoe CN THOR S ber SI IA ia i UNI Ta SEN 5 E AE Zo be 3 4 os y CS aq a see as e i Inosaw 10 NISTA 130 b IS z I Z f O SDDA 2 Z 4 LNO L E 6DNId Nad 3 Y TANI Nas q 9d LNI COOLL T d aasi RIES k T em nda E osd dda et GUN NIDN Y TT ep Y Arm sl tsa SA sau NIN Y O SODA _ _ t TSd SSA y ue peop udop FNI dD wl Ti TUNIT D men NaS e d opa or SON NIN ep OF TapeaH NXV Suldoy ZOPNE Ndo oF IALNI oed _IX Told cr EISES LE oe Y UI MIO Tr OSOL OSIL Lid ATOXA CX Id I PONIA TIO Y se ER WEE 0 TADS MIS mum g SALINI THOL 91d DON Wir EDNA mr Y DNA Ma er P CH dD OTOS IS Ntd nd et OHOL SId Zz IIX ZId al TONIT NIN Ie ES VEER OS S Y OIM NI OOTA vid td SINT CLX veld rl IC gt ps Se at Suu
24. 0 Multiply 1 00 10 6 Selecting a user program lt 1 gt Select File gt Load lt 2 gt Select a program file to be written to the target device then click Open Figure 63 After Downloading File Device View Help AS D S f 5 SN b gt FlashO penning Flash Open OF gt gt COMMAND Device Setup PAM File Read UK gt gt COMMAND LoadFile Open Success read HE file Success read HEX file is displayed 10 x Name Firm Version Eat ode Vendor Parameter file Home ZE UO Format 0414 Version VU Processor Ver 0200 Load file Name ADC _DEMO HEX Date 2005 10 19 14 07 11 Chksum E 354h Area QOO000h 000760h COM4 115200 Chip 12 00 Multiple 1 00 The display is updated Port Speed Range Freq User s Manual U18596EE1VOUMOO NEC 66 78K0 Fx2 CAN it NEC 10 7 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 uPD 78F0893 device Figure 64 After EPV Execution A BER File Device View Help PAW ES gt gt COMMAND SutoProcedure E py Flash Blank Checking Name chip blank check finish D Firm version 1 00 Eat ode EDS FCH Vendor Mame ZOE UDO finish is displayed Format 0414 Version 11 01 Processor Wer 0200 Flash Progra
25. 0x0 LCD_string text05 0 LON rurenr fw dnt 4 ff disable all interrupts ff peripheral settings ff variable Initialization ff LCD Initialization f f clear display ff write display character RAM ff enable all interrupts dd delay Int Col 1 Figure 66 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 78K0 Fx2 CAN it board First highlight the upper folder called ADC_demo Debug in the workspace window Then select Project gt Options from the pull down menus Next select the category Debugger Make sure that the driver is set to TK 78 in order to use the On Board debug function of the 78K0 Fx2 CAN it board The device description file must be set to o078F0893 daf Options for node ADC_demo Category General Options C C compiler Setup Extra Assembler Custom Build Driver Build Actions TR Linker Debugger vw Run to Options Plugins TR 7BR Oke TR PBROR xe IE 20 D Setup macros MINICUBE Simulatar Use macro file Device descriptions T Override default Factory Settings Select TK 78 to use On Board debugging main TK 78 El Check that device description file 1078f10893 ddf is selected o Figure 67 IAR debugger options 1 2 User s Manual U18596EE
26. 1VOUMOO 72 78K0 Fx2 CAN it NEC Before using the On Board debug function it is necessary to set the corresponding USB serial COM port of the host computer where the 78K0 Fx2 CAN it board is connected To set the COM port please select the category TK 78 and choose the corresponding serial port Options for node ADC_demo p x Category Factory Settings General Options C C compiler Setup Assembler Custorn Build Download Build Actions Suppress Linker ebuna Teri IE 78 IECUBE TEE Choose serial port MINICUBE Simulator Communication log Use communication log file SPROJ_DIR cspycomm log A Cancel Figure 68 IAR debugger options 2 2 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 DFO893_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 ODC demo y X Category Factory Settings General Options C C compiler Output Extra Output Hidefine Diagnostics List Config Processing Assembler Linker command file Custom Build Build Actions Debugger IE 78 IECUBE T Override default program entry MINICUBE f Entry label program start Simulator Defi
27. 2 CAN it baseboard schematics Figure 74 User s Manual U18596EE1VOUMOO SIMA UO MIIA DAN er t 78K0 Fx2 CAN 9 c v z 1 Am EECH pu TO 0 0 0090 SSHH n pus oszaz8Vod A or B E 6 2 S ITAA mir 9NIA nda ebed pteod Ndd
28. 8 9 anvo aoa gt ei L 5 i L HNV A fal aNo 7 00 T YHA PIPOG 358 t D OI SEN D l if NWO 0M8L s de ER Se b surdgz surdgz sundgz surdgz III Nad oz DI GDNId AAD WINIA Nad oz 6l SNId NAD IM Nd oz l ONId 43 oz ei RES Buimein WINI Mado aI D ONT AI 69Na N3 zt D Ve NIN ar D T mg En D 47 o A A mep T ODNId nas 91 cr TONIT AAN GONIA Nd 91 cr nad GON Add or cr 9147 91 cr DESS Ajquessy T 0 do I El TDN AO f PIN ndo yI sl MIO ON TM D er PON 7 yI El TIN f SS T DONA nd ZI TI DIN T TONI do a TI MI TONI Nd a TI TONIT AN f Im a zI TI TIN f 29d ODN ndo oi 6 INIA mme Nd ol 6 NIDN 00Na Md oi 6 CONIA NIDN Y mmm Nd oi 6 MIN f Se T 9 nao T TINT NIDN mem ND A L TAN TONI ND T TONT NIN WN ndo 8 T NIE TIN SKI na 9 TINI TAIN OPNA NAD 9 TIN AGONTE ndo ri CONT NIN JONA aD 9 DNT TIN Y e O SDDA T 9 ndo E TINA OPNI do E MI PON do E ONE NIDN T WN ndo F E DESS Le d der S Le d I JopeoH NXW suldoy TINIE Md z I TONE dD TINI Nd z T UNI dD CONTE dD z T TONITE Md TINA II z T TON aD END E oF l d d Y y ES OPINIA Na S we wwg Japan urdop 9ND SNO YNO END EMS_ Td LNT y Se q CMS Od LNT TONIC aD Es ze z a 1 pad l Sd EPIA dd ES be CO pd naw 1 g onno ALNI panolddy pax9ayy paubisaq zaq cd GE E lt IdaT 0Sd PNId nad D s See LO d d ad Nao st 9 9ga dSId opd WNIT Ad e vi 1X 090 Sad dSId Syd WNIT nd YE E nem doo pad dSid Prd WNIT nad or
29. Box after Setting Eoevicesetp x Standard Advance Farameter file 78F0893 prm PRM File Read Host connection Supply oscillator Frequency Port Coma Speed i5200 Operation Mode Chip Start ooo Block End 127 sl f Area Show Addres Multiply rate 1 00 lt 6 gt Switch to the Advance dialog box Figure 61 lt Advance Device Setup gt Dialog Box Ff Device Setup St i Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program T Disable Boot block cluster reprogramming lt Command options gt Blank check before Erase Checked User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it lt 7 gt Click the button The GUI software sets the parameters When the settings have been completed the following screen is displayed Figure 62 Completion of Parameter Setting E FPLS File Device wiew Help PAGES gt gt Flashi penning Flash Open OF O x Device Name gt gt COMMAND Device Setup PAM File Read OK Firm Version Eat ode Parameter file Hame ZE UO 7 Format 0414 Version 41 01 Processor Wer 0200 PRM File Read OK is displayed The display is updated Hame Date Chksum Connection to device COM4 115200 Port Speed Range Chip Freg 12 0
30. EK ua mie E ce PV EOI tw901 Le SES Pesche cc ECHO vsom H z T 7 NT LASTA II 2 i 0 o aja u a winj IND 69 S ajajo e 20 E d0001 SEA NONWO ROE gt PUUVUUUUUI I lt lt lt Tor SUIS noz S ul 2 Eone a os O_O at te ech TMS O SIDA os os os e A TXI ARIAS VZOTLHAN ISTIM a OSO DIA OSO DIA x DSOA ua e 30 ar E E ISOTIDA os os OSOOA DEA i z s S S 8 v op S 19318 1 4sn surds gls S gekleet IT c uldo EKKERKERZ 1990S NX V SuIdo y mc goos dop L ra 5 24 ah 2 O _ S SEEEEGER IAN9 ZUND man ron 2253 HE STO UODOT E op N NNN y Sg e LE se Wa e 8 se 9g Xs z END WassA g Mes SS SIE ts Ee bas ze pourzop egteiefz x mM Agen Ka i I ze os 2 God INOLA K ven sosa of o Z asa Z OlaSTA AM vs ae be lt 87 WLC GLI To Z aLa Z Leg gt E qd UOISISA EA s D SID TULA Da 2 SLO OAT NI DDA OSOOA a e aaa g Z SLA E VLVdad j E I Ei reste m HS d astm onss et oc Ed ado AXIAL a S TANTA 1 a d M EN OTE SI or apouy Di D lt KEE X SEEEKER dE z z E ER 2 a a S 7 ne JI oe H eh SQrezGa4B 3 6 or Taxa a gt gt Y z i ver al elalelel sl z 2 El 3 on TI et 3 3 3 z poney T ear s 9 5 8 lt 8 tra FA TAS 43 Kat 4 ESN E 3 E a 3 w I 7 Oax AT TALA E a ZS z s Eda TND 3 os ano E S no sp m gt 7 a4 1 id OSODA SS g Tod os os OSDOA O SIDA NI ODA OSODA OSODA poaoiddy w U0ISIDA L 9 r z I 78K0 Fx
31. Hardware configuration of 78K0 Fx2 CAN it Base board 78K0 Fx2 CAN it Target device 78K0 FF2 uPD78F0893 Clock 12 MHz Voltage level DV Software configuration of FPL3 Parameter file 78F0893 PRM Clock setting 12 MHz Multiplied by 1 Port COM4 115200 bps Operation mode Chip Write HEX ADC_demo hex Option setting Blank check before Erase 10 1 Installing the FPL3 GUI software Install the FPL3 GUI software on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the software has not been installed yet 10 2 Installing the driver Install the USB driver on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the driver has not been installed yet 10 3 Installing the parameter file The parameter file for the 78KO FF2 device is installed automatically during installation of FPL3 GUI folder lt FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0893 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 8 SOFTWARE INSTALLATION User s Manual U18596EE1VOUMOO 61 78K0 Fx2 CAN it NEC 10 4 Connecting
32. IVER in the address bar then click OK Figure 14 Address Specification 1 Windows 2000 Found New Hardware Wizard RE o x Insert the manufacturers metalation disk into the drive Ok Click selected and then click OF 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 15 Driver File Search 1 Windows 2000 Found New Hardware Wizard Driver Files Search Results The wizard has finished searching for dirres files for your hardware device Windows found a diver hor this device To install the diver Windows found click Next I c program fles inectook 324 To 2 vdwer fidibus int Cancel User s Manual U18596EE1VOUMOO 34 78K0 Fx2 CAN it 6 7 Click to complete the installation of the USB driver Figure 16 USB Driver Installation Completion 1 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard O USB High Speed Serial Converter Windows has finished installing the software for this device To close this wizard click Finish Lance Proceed to the installation of the USB Serial Port driver Click Next Figure 17 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 a hardware device To continue cli
33. K0 Fx2 CAN it NEC After the demo workspace has been opened the projects contained in the workspace are displayed Now click on the little sign next to the ADC_demo project to show files that were part of the project The screen should now look similar to this BER File Edit View Project Tools Window Help DeHMO ei Blo AIS RUA D DH HRW AH ae man x ADC_demo Debug y ia A a a ee S d main function AAA o _ EEr T AEA E T AERE EEE Ha S ADC_demo Debug Y ijacdc_mainc a El init c E interrupt c E lcd c Output CAN_demo Debug REACT_demo Debug TIMER_demo Debug UART_demo Debug Me 6 bb alaaa qe 64 Overview ADC_demo CAN_demo REACT_dem 4 fo void maint void unsigned char i unsigned int tmp result _ disable interrupt vHardwareInit vSoftwareInit LCD_init LCD_inst 0x01 LCD_write_CGRAM 0x00 sbgpat0 0 LCD_write_CGRAM 0x01 sbgpat1 0 LCD_write_CGRAM 0x02 bgpat2 0 LCD_write_CGRAM 0x03 bgpat3 0 LCD_write_CGRAM 0x04 6bgpat4 0 LCD_write_CGRAM 0x05 bgpat5 0 LCD_write_CGRAM 0x06 bgpat6 0 LCD_write_CGRAM 0x07 bgpat7 0 __ enable interrupt LCD_cursor 0x0 LCD_string text01 0 LCD_cursor 0x40 LCD_string text02 0 vlait25 80 while TRUE LCD_cursor 0x0 LCD_string text03 0 LCD_cursor 0x40 LCD_string text04 0 vllait25 80 LCD_cursor
34. R3 no SL AC 7 3 9 g C19 SR OOr 14 aan ge DS Ci o S T S EEN 00 CS E xX Oe S CH y C10 R36 a GE ee S o UUDUUDUU Ge d SE o 9 91 GI NEC C44 00000000 al E i de A 78KO FxX2 CAN it EE Figure 2 78K0 Fx2 CAN it baseboard connectors switches and LED s Some of the 78K0 Fx2 CAN it components are free for user application hardware and software Please read the user s manual of the 78K0 FF2 device carefully to get information about the electrical specification of the available I O ports before you connect any external signal to the 78K0 Fx2 CAN it board User s Manual U18596EE1VOUMOO 14 78K0 Fx2 CAN it NEC 3 1 RESET button SW1 SW1 is a reset button It activates the power on reset It is connected to the reset input of the 78K0 FF2 CPU module 3 2 User button SW2 SW2 is a push button connecting Voe to external interrupt input INTPO of the microcontroller This is equal to port P120 of the 78K0 FF2 device The port may be programmed to generate interrupt INTPO The necessary initialisation for this purpose is described in the user s manual of the 78KO FF2 device The port is connected to a 4 7K pull down resistor 3 3 User button SW3 SW3 is a push button connecting Voe to external interrupt input INTP1 of the microcontroller This is equal to port P30 of the 78K0 FF2 device The port may be programmed to generate interrupt INTP1 The necessary
35. SETUP program in the directory FPL3 of the CDROM The setup dialogues will guide you through the installation process 8 3 Sample program installation To install the sample demonstration programs for the 78K0 Fx2 CAN it board select the SETUP program in the directory SamplePrograms of the CDROM The setup dialogues will guide you through the installation process User s Manual U18596EE1VOUMOO 29 78K0 Fx2 CAN it NEC 8 4 USB Driver Installation In order to use the 78K0 Fx2 CAN it board for On Chip debugging or FLASH programming the USB driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 98SE Me Page 30 Installation on Windows 2000 Page 32 Installation on Windows XP Page 38 8 4 1 Installation on Windows 98SE Me 1 When the 78K0 Fx2 CAN 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 6 Add New Hardware Wizard Windows 98SE Add New Hardware Wizard This wizard searches for new dirvers for USB lt gt Serial A device driver is a software program that makes a hardware device work Cancel 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 7 Search Method Windows 98SE Add
36. TDI s Virtual COM Port VCP driver appears to the windows system as an extra Com Port in addition to any existing hardware Com Ports 2 3 Power supply via USB interface 78K0 Fx2 CAN it is powered by USB interface no separate power supply is needed The USB interface provides the 78K0 Fx2 CAN it board with 5V supply voltage User s Manual U18596EE1VOUMOO 13 78K0 Fx2 CAN it NEC 3 78K0 Fx2 CAN it baseboard components The 78K0 Fx2 CAN it baseboard is equipped with push buttons a 12 2 character LC display LED s and with several connectors in order to be connected to host computers FLASH programmer LIN and High Speed CAN busses FT Version 2 00 S WA
37. USB port this product may be recognized as a new hardware item Action Install the driver by referring to CHAPTER 8 5 USB Driver Installation User s Manual U18596EE1VOUMOO 68 78K0 Fx2 CAN it NEC Communication with the 78K0 Fx2 CAN it board is disabled Cause The driver may not be installed correctly Action Check if USB Serial Port and USB High Speed Serial Converter are installed correctly by referring to CHAPTER 8 5 USB Driver Installation Cause The COM port selected via the Port list box within device setup menu of FPL3 may not be set correctly Action Set the port checked using Device Manager Cause The 78K0 Fx2 CAN it board is operating in normal mode Action Set the board to the FLASH programming mode by setting SW4 switch S1 to ON Cause The PRM file selected in Device Setup may be incorrect Action Use the corresponding PRM file that matches the target device For information about the PRM file refer to CHAPTER 9 FPL3 FLASH programming software Cause The setting of Supply oscillator in Device Setup may be incorrect Action Make a correct setting according to the specifications of the target device User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 12 IAR sample session Before using the On Board debug function of the 78K0 Fx2 CAN it board together with the IAR C SPY debugger it is necessary to install the USB driver first The communication
38. VOUMOO 11 78K0 Fx2 CAN 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 78K0 Fx2 CAN it package If any part is missing or seems to be damaged please contact the dealer from whom you received your 78K0 Fx2 CAN it Note Updates of the IAR Embedded Workbench for 78K FP3 FLASH programming software documentation and or utilities for 78K0 Fx2 CAN it if available may be downloaded from the NEC WEB page s at http www eu necel com updates 1 4 Trademarks IAR Embedded Workbench visualSTATE IAR MakeApp and C SPY are registered trademarks of IAR Systems AB Microsoft and Windows are registered trademarks of Microsoft Corporation Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All other product names are trademarks or regist
39. a character generator ROM including predefined standard characters and a character RAM where the user can define its own characters The display is connected to the 78K0 FF2 device via three control lines and eight data lines A BOIOOA ce via diode Table 10 Display connections For more details about the LC display specification commands and character table please refer to the corresponding User s Manual WH1202A NFA ET pdf located in the doc folder of the 78K0 Fx2 CAN itl 3 10 External Potentiometer R14 A 47K potentiometer R14 is connected between Vcc and ground The potentiometer arm is connected to port P80 of 78K0 FF2 device This is equal to the ANIO analogue input 3 11 AD converter reference voltage input A 1 2V reference voltage is supplied to the ANI1 analogue input equal to port P81 of 78K0 FF2 device User s Manual U18596EE1VOUMOO 19 78K0 Fx2 CAN it 3 12 Temperature sensor For temperature measurement and primarily as an application example a silicon temperature sensor KTY13 5 is connected to the ANI2 analogue input equal to port P82 of 78K0 FF2 device The temperature sensor has a resistor range of R centigrade with l p 1mA The distribution of the temperature factor k is shown in the table below Ta PE 50 40 30 20 10 0 10 20 25 30 40 50 60 FO 50 30 100 110 120 130 140 150 1950 e and R 25 min 25 max kr max 0 530 0 559 0 570 0
40. between the starterkit and the IAR C SPY debugger that is running on the personal computer is done via the standard UART USB connection To operate the 78K0 Fx2 CAN it board within the TK 78 On Board debug mode configure switch SW4 as following DIT mi mut BS SU III O r Em Ch as 00108080 Germany A m gt it O0 User s Manual U18596EE1VOUMOO 70 78K0 Fx2 CAN it NEC 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 IAR Embedded Workbench IDE Er 7 lol x File Edit View Project Tools Window Help D SHJ Selo A HD EEE A Embedded Workbench Startup Create new project in current workspace D Add existing project to current workspace Open existing workspace Example workspaces Recent workspaces Tl Do not show this window at startup Ready A El es NA ti Figure 65 IAR Embedded Workbench Now select the option Open exiting workspace from the File menu and locate the sample project Open the file 78KO_CANit eww This is the workspace file that contains general information about the demonstration projects and settings User s Manual U18596EE1VOUMOO 71 78
41. buttons SW2 and SW3 during program start up Character LC display Potentiometer R14 Button SW2 A D converter Button SW3 CAN controller LED s D1 D4 13 4 ReacTime demo This sample program demonstrates a reaction time measurement After the button SWS is pressed the application waits for a random time duration between 0 50 and 3 45 seconds Then the measurement starts by incrementing a reaction counter every 50ms The actual counter value is shown by a bar graph using the character LC display until the next keystroke of button SW3 When the button SW3 is pressed again the measurement stops and the reaction time is shown on the LC display Pressing button SW2 starts a new measuring cycle Character LC display Button SW2 Button SW3 po ME PEPE User s Manual U18596EE1VOUMOO 78 78K0 Fx2 CAN it NEC 13 5 Timer demo This sample program demonstrates 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 using the LCD module By pressing button SW2 SW3 the time can be adjusted Character LC display Button SW2 WatchTimer Button SW3 PY LEDS D1 D4 13 6 UART demo This sample program realizes a temperature meter with serial communication channel The sample program does a cyclic measurement of the input voltage of ANI2 analogue input equal to port P82 of 78K0 FF2 device connected to the tempe
42. c options that can be set in accordance with the user environment and target device button Clicking the button saves the settings on the Standard and Advance menus and closes the window Cancel button Clicking the button closes the window without saving the settings on the Standard and Advance menus User s Manual U18596EE1VOUMOO 51 78K0 Fx2 CAN 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 41 Device Setup Window Parameter File Selection Parameter file PAM File Read Figure 42 Parameter File Selection Window Look in Sy PRM de 4 ER PS File name Fp Files of type PRM Files PRM Lancel E PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open User s Manual U18596EE1VOUMOO 52 78K0 Fx2 CAN it NEC lt 2 gt Host connection lt 3 gt Host connection is used to select a channel for communication between the 78KO Fx2 CAN it board and host machine Figure 43 Device Setup Window Host connection Host connection Port speed 435200
43. ce Flash memory Ee 32768 x 8 bits bank 1 common 0040H 003FH Vector table area 0000H During on chip debugging use of this area is disabled since it is used as the user data backup area for Notes 1 communication 2 During on chip debugging use of this area is disabled since it is used as the communication command area 256 bytes to 1 KB Table 19 78K0 FF2 memory map The 78K0 Fx2 CAN it does not reserve any resources of the 78K0 FF2 device consequently all available memory of the device is free for application software User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 6 78K0 Fx2 CAN it installation and operation 6 1 Getting started The IAR C SPY debugger allows to download and debug application software on the 78K0 Fx2 CAN it starterkit hardware Additionally the FPL3 FLASH programming software can be used for simple FLASH programming of the 78KO FF2 internal FLASH memory As communication interface between the host computer and the 78K0 Fx2 CAN it board a USB interface line is needed Before you can download debug or execute an application program hardware and software must be installed properly 6 1 1 CD ROM contents The CD ROM shows following directory structure MEL 78K0 Fx2 CAN it F CD ROM ROOT L Acrobat Acrobat Reader for 32Bit Windows OS CH FPL3 FPL3 FLASH programming software _ Drivers USB driver LU FPL3 FPL3 setup directory LU PRM PRM parameter
44. ck Mert Back User s Manual U18596EE1VOUMOO Cancel NEC 35 78K0 Fx2 CAN it NEC 8 Check that suitable driver is selected k device driver is a software program that makes a hardware device work Windows 9 Check that location only is checked The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 18 Search Method 2 Windows 2000 Found New Hardware Wizard E Install Hardware Device Drivers A device diver is a software program that enables a hardware device to work with y an operating system This wizard will complete the installation for this device G USE Serial Port Search for a eeds driver files for pour new device To locate driver files and complete the rstallation click Next What do pon want the wizard to do Ce Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a sp driwer Cancel Check the Specify a location check box only then click Next gt Figure 19 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search for driver files for the following hardware device USB Serial Port The wizard searches for suitable drivers m its driver database on your comput
45. d then the data is verified against the data written to the flash memory Security flag after Program check box If this check box is checked automatic programming of the selected security flag is executed after execution of the Program and Autoprocedure EPV commands User s Manual U18596EE1VOUMOO 55 78K0 Fx2 CAN 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 49 Device Setup Window Security flag settings Security flag settings Disable Chip Erase Disable Block Erase Disable Program IT Disable Boot block cluster reprogramming Caution The following is the correspondence between the Erase and Program Commands when the security functions of a 78K0 FF2 microcontroller are valid Fs Chip Erase Command Block Erase Command Program Command Disable Chip Erase Valid Note1 Disable Block Erase Disable Program Disable Boot block Invalid Valid Note2 Valid Note2 cluster reprogramming Notes 1 Since the Erase command is invalid the data that differs from the data already written in the flash memor
46. d Windows Logo testing STOP Installation User s Manual U18596EE1VOUMOO 39 78K0 Fx2 CAN it NEC 4 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 26 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 USB High Speed Serial Converter Click Finish to clase the wizard lt Back Cancel Finch 5 Proceed to the installation of the USB Serial Port driver Click Next gt Figure 27 Found New Hardware Wizard 2 Windows XP Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USB Serial Port Pa If your hardware came with an installation CD a WES or floppy disk insert it now What do you 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 User s Manual U18596EE1VOUMOO 40 78K0 Fx2 CAN it NEC 6 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 Fig
47. dow 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 Che cksum command The Checksum command reads the checksum value of the target device connected with the FPL3 This value differs from the value displayed in the parameter window of the main window 7 Autoprocedure EPV command The Autoprocedure EPV command executes the Erase command Program command and Verify command in succession When a user program is to be resent to the target 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 10 HOW TO USE FPL3 Upon completion of Autoprocedure EPV command execution the GUI software displays th
48. e reset operation manually is displayed even when the reset signal cannot be connected to the target cable Figure 46 Device Setup Window Target Reset Message Target Reset Message User s Manual U18596EE1VOUMOO 94 78K0 Fx2 CAN 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 47 Device Setup Window Advance E Device Setup i a a xl Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Target Reset Message Cancel lt 1 gt Command options This dialog box is used to specify the FPL3 flash processing command options Figure 48 Device Setup Window Command options Command options Read verity after Program Security flag after Program Checksum after Program Blank check before Erase check box If this check box is checked blank check is made before the Erase command or EPV command is executed If the result of a blank check indicates OK erase processing is not executed Read verify after Program check box If this check box is checked write data is sent from the programmer after execution of the Program command and EPV comman
49. e file i e the Intel HEX file for programming the 78K0 FF2 internal FLASH memory All output files of the development tools for the corresponding target are generated in the directories Debug and Release For details of using the IAR Embedded Workbench and the IAR C SPY debugger please refer to the 78K IAR Embedded Workbench IDE User Guide User s Manual U18596EE1VO0OUMOO L I 78K0 Fx2 CAN it NEC 13 2 ADC demo This sample program realizes a simple voltage meter By using the integrated ADC the voltage supplied to ADC on input channel 0 port P80 of 78K0 FF2 device is measured The input voltage is adjusted by potentiometer R14 The board shows the measured voltage by driving the LC display The output format can be changed by pressing button SW2 Timer00 Character LC display Timer01 Potentiometer R14 Timer50 Button SW2 A D converter Button SW3 LED s D1 D4 13 3 CAN demo This sample program simulates a simple voltmeter as a CAN node If the CAN node is used as the voltmeter the voltage supplied to the integrated ADC input channel 0 port P80 of 78K0 FF2 device is measured and transmitted via CAN bus in 100ms intervals The input voltage is adjusted by potentiometer R14 The board shows the measured voltage by driving the LC display If the CAN node is used as display the voltage value received via CAN bus is displayed on the LCD The configuration of the CAN node as transmitter or receiver can be done by
50. e result of executing the command on the target device 8 Signature read command The Signature read command reads the signature information device name flash memory information and so forth of the target User s Manual U18596EE1VOUMOO 50 78K0 Fx2 CAN it NEC 9 Setup command a 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 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 40 Device Setup Window Standard E Device Setup d X Standard Advance Parameter file PAM File Read Host connection Part Frequency MHz Speed 115200 Multiply rate Operation Mode Chip Start C Block SEA Supply oscillator Area Show Addres Target Reset Message OR Cancel This window shows all basi
51. e to uninstall the dri Cancel User s Manual U18596EE1VOUMOO 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 44 78K0 Fx2 CAN it NEC 4 Click to complete driver uninstallation Figure 34 Completion of Driver Uninstallation FIDI Uninstaller Version 2 1 Uninstalling YID_0403 PID_6001 Deleting registry entries Deleting files Uninstall complete press Finish to exit Caution Ifthe GUI software is uninstalled earlier Ftdiunin exe is also deleted At this time delete USB Serial Port COM and USB High Speed Serial Converter from Device Manager manually User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 9 FPL3 FLASH programming software 9 1 Introduction The parameter file for the 78KO FF2 device is installed automatically during installation of FPL3 GUI folder lt FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0893 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
52. environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and otherlegal issues may also vary from country to country NEC Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 0 Fax 0211 65 03 1327 Sucursal en Espa a Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Succursale Francaise V lizy Villacoublay France Tel 01 30 67 58 00 Fax 01 30 67 58 99 Filiale Italiana Milano Italy Tel 02 66 75 41 Fax 02 66 75 42 99 Branch The Netherlands Eindhoven The Netherlands Tel 040 244 58 45 Fax 040 244 45 80 Branch Sweden Taeby Sweden Tel 08 63 80 820 Fax 08 63 80 388 United Kingdom Branch Milton Keynes UK Tel 01908 691 133 Fax 01908 670 290 NEC Electronics Hong Kong Ltd Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Hong Kong Ltd Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 NEC Electronics Singapore Pte Ltd Singapore Tel 65 6253 8311 Fax 65 6250 3583 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 5951 NEC do Brasil S A Electron Devices Division Guarulhos Brasil Tel 55 11 6465 6810
53. er and in any of the following optional search locations that you specify To start the search click Next IF you are searching on a floppy dick or CO ROM drive Insert the floppy disk or CO before clicking Hest Specify a Optional search locations T Floppy disk drives CD ROM drives IY Specify a location Microsoft Windows Update User s Manual U18596EE1VOUMOO 36 78K0 Fx2 CAN it NEC 10 Enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click OK Figure 20 Address Specification 2 Windows 2000 Found New Hardware Wizard Insert the manufacturers retalabom dik mbo the dire 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 21 Driver File Search 2 Windows 2000 Found New Hardware Wizard Driver Files Search Results The wizard has finished searching for diver files for pour hardware device Windows found a diver hor this device To retall the dower Windows found click Next c program fles nectoots 24 pls vires ftdiport inf User s Manual U18596EE1VOUMOO 37 78K0 Fx2 CAN it NEC 12 Click to complete the installation of the USB driver Figure 22 USB Driver Installation Completion 2 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard O LISB Serial Port Windows ha
54. ered trademarks of their respective owners User s Manual U18596EE1VOUMOO 12 78K0 Fx2 CAN it NEC 2 78K0 Fx2 CAN it system configuration The 78K0 Fx2 CAN it system configuration is given in the diagram below 78KO Fx2 CAN it Demonstration Kit 78K0 Fx2 CAN it MARA ena o EES E in L L Zoa 4 J H v x gt e Y OH iS Ww ow On c xv gt l 0 a T E a rm u 7 o LN We al ae a Zb e z ol NC S JO00000 oz 61 TAKA ZZ CAN it H E St Gei Figure 1 78K0 Fx2 CAN it system configuration 2 1 78K0 Fx2 CAN it 78K0 Fx2 CAN it is a demonstration kit for the 78K0 FF2 8 Bit microcontroller The 78K0 Fx2 CAN it board is connected to the host system via USB interface cable The host system may be used for On Board debugging of application software by using the IAR C SPY debugger or the programming of the 78K0 FF2 internal FLASH memory by using the FPL3 programming GUI to allow execution of application programs on the 78K0 Fx2 CAN it starterkit hardware 78K0 Fx2 CAN it runs the microcontroller at 12 0000 MHz operating speed Sub clock is provided with 32 768 kHz 2 2 Host computer The USB host interface enables communication to the 78K0 Fx2 CAN it board The USB UART chip FT232 allows application software to access the USB device in the same way as it would access a standard RS232 interface The F
55. gure 3 Connector CN6 USB Mini B Type Host Connector Pin Configuration Table 7 Pin Configuration of USB Connector CN6 For connection with the host machine use a USB cable Mini B type For confirmation NEC Electronics used only the USB cable delivered with the 78K0 Fx2 CAN it board User s Manual U18596EE1VOUMOO 17 78K0 Fx2 CAN it NEC 3 7 Connector CN4 CN4 connector not assembled allows connecting the PG FP4 flash programmer to 78K0 Fx2 CAN it board in order to program application programs into the microcontroller internal FLASH memory Please note PG FP4 is a separate product from NEC and it is not included in this package 14 FLMDO Table 8 CN4 PG FP4 connector When using PG FP4 the programming interface to the 78KO FF2 device must be set to clock serial interface CSI Set configuration of switch SW4 of the 78K0 Fx2 CAN it board to the following Table 9 SW4 configuration when using PG FP4 3 8 External Potentiometer R7 A 47K potentiometer R7 is connected between Vcc and ground The potentiometer arm is connected to the VO signal of the LCD module It controls the operating voltage contrast adjustment of the display User s Manual U18596EE1VOUMOO 18 78K0 Fx2 CAN it NEC 3 9 Display D1 12 2 character LC display The 78K0 Fx2 CAN it board is equipped with a character LC display The display font is equal to 12 character words at 2 lines The LCD module contains about
56. iance with the EMC protection requirements this equipment has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 005 10 CAUTION This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands EEDT ST 004 10 Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste NEC Electronics Europe GmbH offers to take back the equipment All you need to do is register at www eu necel com weee User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it Regional Information NEC Some information contained in this document may vary from country to country Before using any NEC product in your application please contact the NEC office in your country to obtain a list of authorized representatives and distributors They will verify e Device availability e Ordering information e Product release schedule e Availability of related technical literature e Development
57. ice and other pointing devices Disk Defragmenter E Monitors Disk Management BB Network adapters s Services and Applications EI Ports COM amp LPT A Communications Pork COMI Fc ications Port COM a See EE Check that USB Serial Port Printer Port DT JW USE Serial Port COM COM is present Saget Processors gt SCSI and RAID controllers 1 EI Sound video and game controllers Check that USB High Speed 1 r System devices Serial Converter is present Universal Serial Bus controllers d AMD 756 PCI to USB Opek Host Contraer E USB High Speed Serial Converter f Osh Roof Aub For Windows 98SE Me Caution Do not select Update and when communicating with the target device For Windows 2000 XP Caution Do not perform Hardware Modification Scan when communicating with the target device Remark In the GUI port list box the same communication port as COM of USB Serial Port COM needs to be selected If the drivers above are not displayed or the mark x or CHAPTER 11 TROUBLESHOOTING is prefixed refer to User s Manual U18596EE1VOUMOO 43 78K0 Fx2 CAN it NEC 8 6 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
58. ings are saved in the FPL3 INI file so that the GUI software starts up next time with the same settings Note 9 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 39 Device Menu FRR FPL3 File Device View Help M Blank Check F Erase Program gt Fl Flask Verify gt gt CL EE security CheckSum AukoprocedurefEPy Signature read Get Security settings Setup 1 Blank Check command a 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 er 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
59. initialisation for this purpose is described in the user s manual of the 78KO FF2 device The port is connected to a 4 7K pull down resistor 3 4 Configuration switch SW4 The different operation modes of the 78K0 Fx2 CAN it board can be set by SW4 switches S1 S4 Normal operation mode OCD disabled UARTEO select LIN bus disabled Table 1 Configuration switch SW4 factory settings 3 4 1 Operation mode selection SW4 S1 SW4 switch S1 controls the operation mode of the 78K0 Fx2 CAN it board Setting SW4 S1 to ON allows to reprogram the internal FLASH memory of the 78KO FF2 device using the FPL3 FLASH programming software Sid default Normal operation mode FLASH memory programming mode Table 2 Operation mode selection SW4 S1 Within normal operation mode the user program stored in the FLASH memory of 78K0 FF2 device is executed 3 4 2 On Chip debug mode selection SW4 S2 SW4 switch S2 controls the On Chip debug function of the 78K0 FF2 device Setting switch S2 to ON allows to use the On Board debug function of the 78K0 Fx2 CAN it board or alternative connecting the QB 78KOMINI On Chip debug emulator to the 78K0 FF2 CPU module connector CN7 OFF default OCD disabled OCD enabled Table 3 OCD mode selection SW4 S2 For more details on how to configure 78K0 Fx2 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING User s Manual U18596EE1VOUMOO 15 78K0 Fx2
60. ity flag settings ccccccccseeseeeeeeeeeeeeeeeeeeeeeeeeesaeeeeeesseeseeeeeeeas 56 Figure 50 Device Setup Window Disable Chip Erase 57 Figure 51 Device Setup Window Disable Boot Cluster Reprogramming warning 1nnsnseennnnnsenrneenae 57 Figure 52 View Men Uceda lea elena indicas 58 lala elef TE WEE 59 FIGUIE 54 ele E Ne ele EE 59 Figure 55 Programmer Parameter WINCOW un 60 Figure 56 GUI Software Startup Gcreen n E a a T EA 63 Figure 57 lt Standard Device Setup gt Dialog BOX oocccccccocccnnccccnoncnncocnoncnnncnonancnnnnnonnncnnnnnonnncnnnnnonanennnnnnns 63 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it Figure 58 Parameter File Gelechon 64 Figure 59 POr SCIOCUOMN ii ad 64 Figure 60 lt Standard Device Setup gt Dialog Box after Gettng ce cccceccceceeeeeeeceeeeeeseeeeeeseeeseeseaeeeeeas 65 Figure 61 lt Advance Device Setup gt Dialog Box 65 Figure 62 Completion of Parameter Setting ccccccsssseseececceeeeeeeceeeeeeeeeeeeseeeeeeseaeeeeesseegeeeeeessageeeeseaas 66 Figure Aner DOWMIOAGING spatial 66 Foure Aer EPV E EE 67 Figure 65 IAR Embedded Workbench ube 71 Figure 66 IAR Project WOIKS ACG ei nisoa vente aive sa dooudosanbenuna azn ue adr cas 72 Figure 67 TAR debugger options TEE 72 Figure 68 IAR Gebugger elt e 73 Figure 69 AR LiNker options E 73 Figure 70 TK 78 hardware setup men RENE ENER 74 Figure 71 AR elei ee e e e LEE 75 PIGUhe 7 2 IAR C SPY GOD UO GEN
61. l equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact NEC Electronics sales representative in advance to determine NEC Electronics s willingness to support a given application Notes 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above User s Manual U18596EE1VOUMOO 2 78K0 Fx2 CAN 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 compl
62. le 18 SW4 configuration for OCD via QB 78KOMINI sssnnnnnsesossnnnnnnnnossenrrnnnesssnrrrrrresssnnrrrreessennrrrrree 26 Table e 78K0 FF2 memory Feet 27 Table 20 78K0 Fx2 CAN it CD ROM directory siruchre 28 Table 21 Example directory Structural des 77 User s Manual U18596EE1VOUMOO 10 78K0 Fx2 CAN it NEC 1 Introduction 78K0 Fx2 CAN it is a demonstration kit for the 78K0 F_Series microcontrollers It supports On Board debugging FLASH programming and real time execution of application programs based on the 78K0 FF2 microcontroller The board is prepared to be connected to user hardware parts such as digital I O or analogue signals 1 1 Main features of 78K0 Fx2 CAN it e Easy to use device demonstration capabilities 78K0 Fx2 CAN it contains elements to easily demonstrate simple O functions i e push buttons 12 2 character LC display LED output AD reference voltage I O lines UART serial interface LIN and CAN serial interfaces e On Board debug function The 78K0 Fx2 CAN it supports an On Board debug function by using the IAR C SPY debugger It allows FLASH downloading and standard debug functions i e code execution single stepping breakpoints memory manipulation etc e Power supply via USB interface 78K0 Fx2 CAN it is powered via USB interface no separate power supply is needed e Character LCD module 78K0 Fx2 CAN it provides a 12 2 character LC display allowing the impleme
63. mming lt B0 gt als mina OU Mame ADC DEMO HEA Flash Programing finish Date 2005 70 19 14 071 ial Chksum E354h rea OD0000h 000760h Connection to device Port COM4 Speed 115200 Range Chip Freg 12 00 Multiply 1 00 10 8 Terminating the GUI 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 10 9 Execute ADC DEMO application Set the 78K0 Fx2 CAN it board to the normal operation mode by switching SW4 S1 to OFF lt Plug and Play gt the 78K0 Fx2 CAN it board to start in normal operation mode or press the reset button SW1 to release the normal operation mode 10 10 Restarting the GUI When the system is restarted the same screen as shown in Figure 62 appears User s Manual U18596EE1VOUMOO 67 78K0 Fx2 CAN it NEC 11 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 s
64. n D REACT_demo Debug Y System System on 6 TIMER_demo Debug Y P lun Pl em DJUART_demo Debug Y Monitor Clock Peripheral Break Target Target Power Off System Disabled Connect Permit C User C Enabled Not Connect Ce Not Permit Pin Mask Fail safe Break E Walt MT TARGET RESET View Setup F NMI J INTERNAL RESET m Memory Map rupts Start Address Length Type Internal ROM Overview ADC_demo CAN demo REACT_demt 4 Log Tue Dec 13 17 26 02 2005 C SPY Processor E Tue Dec 13 17 26 02 2005 C SPY TK 78 Emule Tue Dec 13 17 26 02 2005 Emulator has to be Ox0000 OxBFFF Internal ROM 48 Kbytes UNE O00 OxF 7FF Internal Extended RAM 6144 bytes OxFBOO OxFEFF Internal RAM 1024 bytes Remove Al Press OK to enter Emulator Hardware Setup Ready SSS lala ele Figure 70 TK 78 hardware setup menu User s Manual U18596EE1VOUMOO 74 78K0 Fx2 CAN it NEC Now the debugger is started and the demo project is downloaded to the 78K0 Fx2 CAN it board The progress of downloading is indicated by blue dots in the TK 78 Emulator window Please note downloading of larger executables can take some time 7 IAR Embedded Workbench IDE e 101 x File Edit View Project Tools Window Help Deug ana o ol TY AAA ARSS adc_main c ADC_demo Debug bd Files S a 5 78k0_Taste_it_2 Ha BADC_demo
65. ncccocnccccconcnccconcnnoconnnnnonanonnnnoncnnononnnnconanenoss 30 Figure 7 search Method BA lge e VTT 30 Figure 8 Search Location Specification Windows O89GE 31 Figure 9 Checking Driver to Be Installed Windows 988B ooocccccccccnccconncccnnnccnnonnanncconnnononnnnancconnncnnnnnanos 31 Figure 10 Installation Completion Windows O8GE 32 Figure 11 Found New Hardware Wizard 1 Windows 20001 32 Figure 12 Search Method 1 Windows 20001 33 Figure 13 Driver File Location 1 Windows 20001 33 Figure 14 Address Specification 1 Windows 20001 34 Figure 15 Driver File Search 1 Windows 20001 34 Figure 16 USB Driver Installation Completion 1 Windows 20001 35 Figure 17 Found New Hardware Wizard 2 Windows 20001 35 Figure 18 Search Method 2 Windows 20001 36 Figure 19 Driver File Location 2 Windows 20001 36 Figure 20 Address Specification 2 Windows 20001 37 Figure 21 Driver File Search 2 Windows 20001 37 Figure 22 USB Driver Installation Completion 2 Windows 20001 38 Figure 23 Found New Hardware Wizard 1 Windows Sb 38 Figure 24 Search Location Specification 3 Windows Ab 39 Figure 25 Windows XP Logo Testing 3 Windows AP 39 Figure 26 USB Driver Installation Completion 1 Windows SP 40 Figure 27 Found New Hardware Wizard 2 Windows XS 40 Figure 28 Search Location Specification 2 Windows Ab 41 Figure 29 Windows XP Logo Testing 2 Windows Ab 41 Figure 30 USB Serial P
66. necessnecesaucasbeceee 17 37 Connector CNG ii alii 18 30 EXternal Potent omete Kain EE 18 3 9 Display D1 12 2 character EC display ia 19 3 10 External Potentiometer RIA iia E a a a N aea a RA a EE 19 3 11 AD converter reference voltage input ooooncccconnnccccoccnnccnconcononcnnonnnnanconnnnnronnnnnnrrnnnrrrnanarerrnannrennanas 19 3 12 Temp rature EIERE EE 20 3 13 External LED S Elek eege ido 21 4 78K0 Fx2 CAN it CPU module componentS ccoocccocccccnncccnccconcncnnnnncnnnncnnnncnnnnronannnnanannns 22 4 1 78KO0 Fx2 CAN it CPU Wl e UE 22 4 1 1 External connector CN3 CNA CN5 and ChNG 23 4 2 High Speed CAN connector CNB sssasssnnnnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ennnen 23 421 OCD connector UNT ici 24 O E en le GS UG ING APA AP ce oeossacecesteseeucescecaescpieesacc 25 5 1 OCD via On Board debug function cooonccconcnccccncnncccononcononncocnnnnncnnnnnnrrrnnnnnrrnnnnnrrrnnnrrrnanarrrrmanarennanas 25 5 2 OCD via QB 78KOMINI On Chip debug emulator onccconnnccccnnccccnonccccnoncoconnnanconnnnnronnnnanennnannrnnnnns 26 9 3 TOKOMPRZiMeCMONY Dee 27 6 78K0 Fx2 CAN it installation and Operation ccccccseeeeseeeseeeeeeeeeneseeeeeaneseneeseeessaees 28 6L EE dl e E Un CT EE 28 SE n CD ROM Kee dae dida 28 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC Ez Hardware instalation soseste a a gees 29 9 SOfWa re INSTAN AMON eegene ee 29 8 1 IAR Sy
67. ned by application TK Search paths one per line TOOLEIT_DIFFALIB Raw binary image File Symbol Segment Align AAA A AO OF Cancel Figure 69 IAR Linker options User s Manual U18596EE1VOUMOO 73 78K0 Fx2 CAN it NEC Now after everything has been setup correctly it s time to compile and link the demonstration project Close the Options menu and select Rebuild All from the Project menu If the project is compiled and linked without errors or warnings it can now be downloaded to the 78K0 Fx2 CAN it board and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the Sch Debugger button In the next step the TK 78 Emulator has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration as show in the figure below and start the download by pressing the OK button A TAR Embedded Workbench IDE WK 10 x File Edit View Project Tools Window Help Osualaleajo o TANIA ERA x PEZ Files BS ff main function d 78 Hardware setup eg Game a Baan Can Ha 3 ADC_demo Debug lv ID Code Time Unit Ha Bede msin c or B init c Cancel El interrupt c El Icd c r Main Clock Sub Clock npu Output Clock Board Glock Board ngs B CAN_demo Debug Y External Extemal Default izatio
68. nnector CN7 To enable On Chip debugging by using the QB 78KOMINI please set switch SW4 to the following configuration Table 16 SW4 configuration for OCD via QB 78KOMINI For more details on how to configure 78KO Fx2 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING User s Manual U18596EE1VOUMOO 24 78K0 Fx2 CAN it NEC 5 On Chip debugging The 78K0 Fx2 CAN it board offers two possibilities to use On Chip debugging OCD The On Board debug function of 78K0 Fx2 CAN 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 78K0 Fx2 CAN it supports the QB 78KOMINI On Chip debug emulator in order to use On Chip debug function of the 78KO FF2 device The system configuration for On Chip debugging is shown in figure below OCD via 78 KO Fx2 On Board debug function CAN it 1OOOOOOO000 71 0000000 alternative i E BO OO Ooz Os OCD via QB 78KOMINI On Chip debug emulator Figure 5 78K0 Fx2 CAN it configuration for On Chip debugging 5 1 OCD via On Board debug function
69. nnnnnnrrnnnnrrrnanarennnannns 61 10 4 Connecting a da Starting EE 62 10 5 Setting the programming envirONnMeNt occccnnnnccconcncccnconccnnnanconnnnnrrnnnnnnrrnnnnnrrnnnnnrrrnannrrrnanarernaaaness 63 10 6 Selecting a USED Te e AM essa dios 66 10 7 Autoprocedure EPV command executiON oocccocccccccccoccnnccocanoconaconnnarononarennnnrnnnnrnnannrrnnanennnanos 67 10 8 Terminating the GU ira iaa 67 10 9 Execute ADC DEMO application iia iaa 67 10 10 Restartingithe Go oasis se dida 67 11 ITROUBCESHOOTNG E 68 12 IAR sample session ninia idad 70 T Zoller 77 ach Generallitro dui O oa 77 132 PRG COMO id eta es ween etd E oats eee eee ees 78 To GAN NdSMO ti oo iaa 78 134 ROACTIMO COMO WEE 78 139 TIME demo ti iii 79 ab HEEN 79 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 14 USB interface cable MINI B type iucococioconri da 15 lt SCHNEMAUCS da ee User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC List of Figures Figure 1 78K0 Fx2 CAN it system configuration EE 13 Figure 2 78K0 Fx2 CAN it baseboard connectors switches and lEDTe 14 Figure 3 Connector CN6 USB Mini B Type Host Connector Pin Contfoguraton 17 Figure 4 78K0 Fx2 CAN it CPU module components occccccnnccnccccncccnncccnnncnnnnnnnnnnnnnonnnnennnnnancnnnnnnnanenennnnns 22 Figure 5 78K0 Fx2 CAN it configuration for On Chip debuggmng 25 Figure 6 Add New Hardware Wizard Windows 988SB ccooocc
70. ntation of human machine interfaces comfortable input output functions output of measurement values output of status information etc e FPL8 FLASH programming software A windows based FLASH programming software allows to select and download application programs to the 78K0 Fx2 CAN 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 Timer input output signals Two or three wire serial I O UART interface via USB UART chip FT232 High Speed CAN bus interface with transceiver PCA82C250 LIN bus support via TJA 1020 transceiver 16 analogue input lines Temperature sensor KTY13 5 41 0 ports connected to LED 2 push buttons prepared for external interrupt generation e The IAR Embedded Workbench for 78K and the IAR C SPY debugger simulator are included This package is restricted in such that maximum program code size is limited to 4 kByte of program code e Full documentation is included for the NEC 78K0 FF2 microcontroller IAR Systems Embedded Workbench IAR Systems C SPY debugger simulator and the NEC FPL3 FLASH programming software 78K0 Fx2 CAN it is not intended for code development NEC does not allow and does not support in any way any attempt to use 78K0 Fx2 CAN it in a commercial or technical product User s Manual U18596EE1
71. ock set in the Boot block Cluster setting as the last block At this time the warning message shown below is displayed Figure 51 Device Setup Window Disable Boot Cluster Reprogramming warning AN When Boot block cluster reprogramming is disabled boot block cannot be erased and programmed any more Cancel Caution Be aware that if the security flag is set in the target device the boot area cannot be rewritten to the device afterward User s Manual U18596EE1VO0OUMOO 57 78K0 Fx2 CAN it NEC 9 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 52 View Menu File Device view Help ES vw Toolbar y w Status Bar Si gt gt FlashOpernina 1 Toolbar command Checking the Toolbar command displays the toolbar Unchecking the command hides the toolbar 2 Status Bar command Checking the Status Bar command displays the status bar Unchecking the command hides the status bar User s Manual U18596EE1VOUMOO 58 78K0 Fx2 CAN it NEC 9 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 53 Help Menu File Device view Help 9 e About FPL3 Y N gt gt FlashApennina Flash Open OF 1 About FPL3 command The About FPL3 command opens the program entry window as shown below and indicate
72. oftware again by referring to CHAPTER 8 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 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 lt 1 gt When this product is connected to the personal computer right click the driver marked with or x Click when displayed lt 2 gt On Device Manager execute Hardware Modification Scan lt 3 gt 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 lf the USB connector of this product is not inserted into the USB port used at the installation time but into another
73. oftware that haz passed Windows Logo testing STOP Installation User s Manual U18596EE1VOUMOO 41 78K0 Fx2 CAN it NEC 8 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 30 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 E USE Serial Port Click Finish to close the wizard e Back Cancel User s Manual U18596EE1VOUMOO 42 78K0 Fx2 CAN it NEC 8 5 Confirmation of USB Driver Installation After installing the two types of drivers check that the drivers have been installed normally according to the procedure below When using the 78K0 Fx2 CAN it board in combination with FPL3 GUI the information to be checked here is needed By clicking the Device Manager tab check that the drivers are installed normally Figure 31 Device Manager E Computer Ma nageme nt E EIE m File Action View Window Help lej x E a a amp Computer Management Local d Computer CR System Tools s Disk drives Event Viewer 2 Display adapters Shared Folders lt 4 DYDICD ROM drives Fs Local Users and Groups Floppy disk controllers e Performance Logs and Alerts H Floppy disk drives aa Device Manager IDE ATA ATAPI controllers iy Storage 2 Keyboards Removable Storage M
74. ort2 Driver Installation Completion Windows An 42 ROUE 31 DEVICE Manada iaa 43 Figure 32 DIVErURINSTAN ANON eiii old 44 FIGUEE 3302 Diver Ee stn cas Sane 44 Figure 34 Completion of Driver Ulomstallaton 45 Figure 39 GUI Software Main rn Lee 46 FIgure 36 Keeler ne EE 47 Figure S 72 FEO MENU anio 48 Figure 38 HEX File Selection Window cccccoconccncccccocconncconcconconnnancnnnononancnnnononnnrnnnnnnnnnrnnnnrnnnnrnnnonnnanennnnss 48 Figure 39 Device En EE 49 Figure 40 Device Setup Window Standard ooccccccconnnccccococoncccnonncnnnononancnnnononancnnnnnnnnncnnnnnnnancnnnnnnnanennnoss 51 Figure 41 Device Setup Window Parameter File Selection cccccccccceeeeeeeeeeeeeeeeeeesaeeeeeeseaeeeeeeeeas 52 Figure 42 Parameter File Selection Wmdow 52 Figure 43 Device Setup Window Host connechon 53 Figure 44 Device Setup Window Supply Oscillator Selection cccooocccccccnnnncocononccconconoconnnnconanonoss 53 Figure 45 Device Setup Window Operation Mode 54 Figure 46 Device Setup Window Target Reset Message cccccccoocccnccccnncconcconnnncnnnonnnancnnnonnnancnnnonnnanennnnss 54 Figure 47 Device Setup Window Achyance c ccecccccseseeeeeceeeseeeeeceeaueeeeeceueuseeeessuaaeeeeessuaaeeeessaaaneeeeseaas 55 Figure 48 Device Setup Window Command options oocccccccnncccconnnccconcnnononcnnnnnnnnnonnononnnnoncnnononnnnnonaneness 55 Figure 49 Device Setup Window Secur
75. rature sensor KTY13 5 The temperature is calculated and the result is transferred via UART60 to a terminal program running on the host machine The data transfer speed is set to 115200 bps per default Additionally the temperature is displayed on the LCD Before the temperature measurement is started the calibration of the temperature sensor has to be done by adjusting the temperature offset via button SW2 and SW3 Character LC display A D converter Temperature sensor KTY13 5 UART60 Button SW2 Button Sw PY LEDs D1 D4 Please note by using the On Board debug mode serial communication via UART6O0 is not possible because the USB UART communication channel is used for debugging purpose User s Manual U18596EE1VOUMOO 79 78K0 Fx2 CAN it 14 USB interface cable Mini B type Series A Plug Series A Plug Series Mini B Plug Figure 73 USB interface cable Mini B type User s Manual U18596EE1VOUMOO NEC Series Mini B Plug 80 SIMA 0 19997 DAN U04NquisIid
76. reni diver or click Net bo conire Location of diver C PROGRG T HECTOO 14 FPL3 0F Click User s Manual U18596EE1VOUMOO 31 78K0 Fx2 CAN 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 10 Installation Completion Windows 98SE Add New Hardware Wizard USE High Speed Serial Converter Windows has finished installing the software that your new hardware device requires Cancel 8 4 2 Installation on Windows 2000 1 When the 78K0 Fx2 CAN 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 11 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 hor a hardware device Cancel To continue click Next User s Manual U18596EE1VOUMOO 32 78K0 Fx2 CAN it NEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 12 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers a A device diver is a software program that enables a hardware device to work with SS an operating system This wizard will complete
77. ret DNI ndo ON ld Q Lasta OUNIE NIN Y 17 sz AIN ES OTOS Cd 5 Ord 6 ONT MN 00N nd s oz D eem na ES T9AXA OTIS TId z Ind 3 mem dr ez vz PIN nd y I9AXL OIMOS Old 2 Crd TINIE DIAN Y Iz zz T G9NId do Ss psd S thd 9 DNA Y ei oz INIA zgd LAOA xa nds ae Ssd Sa vrd s DNIT NIDN D aI mr mn TEA VLOA T TINTA Ve 95d Q Std y WNIT NIDN Y ALON OCN TA EDNId nd ST ot T GINT na 35 LSd Le 9rd WNIT NIDN Er br z T GINA ndo 6 JH AA V GN Lyd z DNIT NIN dd Ip IL a 8 y y SEAN INTXA Od LNI 071d DY O30 DIA y ONNIA NAS 09 95 Q x 0 idy DNIT NAD ZINY TONIT dd 6 OL WINI Nd DOC T mg nd TINY GDNId Nd L 8 INIA Nd 09UXL I OINV INIA NJ 9 UOTIOSTSS 0A8L Te r Coen i z nan T9AXL 31e a UOISISA El TNO 2 Y gle fe ihe 2 gt 2 SS eg anss VUELVE SUS os l AE Dh Lan G G G o o o o o o w Si H Gs bh Lt ere ere eer ae SEET l SLELSEEKEEEEEEEEEEKEERK O SODA MP Lab toSi 204 L Eih L ge 2 8 8 2 3 8 3 2 8 S Z R S z 2332 38 doo ODA a la la la le E A la E Ala fa fa la alfa lle sella o BRARRAERERERERRERRARRER eee EK ee cee ec ee EE EE E 5 E BERRREBERRBERERBEEREERER ER PBBBBBBBBBEBEBBREBBABESB A A E E S T poaoiddy MOT U0ISIDA L 9 s r 7 I 82 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it CPU module schematics Figure 75 78K0 Fx2 CAN it MEMO User s Manual U18596EE1VOUMOO NEC 83
78. s finished installing the software for this device To close this wizard click Finish 8 4 3 Installation on Windows XP 1 When the 78K0 Fx2 CAN it board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Check that Install from a list or specific is selected then click Next gt Figure 23 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 your hardware came with an installation CD lt 4 or floppy disk insert it now What do pon 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 Cancel Back User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN 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 gt Figure 24 Search Location Specification 3 Windows XP Found Mew Hardware Wizard Please choose pour search and metallation options lt 1 gt Check
79. s the version Clicking terminates the display Figure 54 About FPL3 Window About FPL3 x L SERS RPE RRB RE RE RB REPRE ES e Bee en a User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 9 5 Programmer Parameter Window This window displays the settings of the programming parameters Figure 55 Programmer Parameter Window Device Hame Firm Version ExtCode Vendor Parameter file Name Format Version Processor Ver Mame Date Chksum rea Connection to device Pott Speed Range Fred 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 User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 10 How to use FPL3 FLASH programming software This chapter explains the basic operation of the FPL3 GUI for programming the 78K0 Fx2 CAN it board This chapter covers how to start the system execute the EPV command and program the 78KO FF2 target device The conditions of the series of operations described in this chapter are as follows
80. stems Embedded Workbench for 78K installation ccconccccccnnonccconcncononanonnnnanonnnnans 29 8 2 FPL3 FLASH programming GUI installation coonnccccnnnnccccnnncccocnncononcncononnanonnnnnnrononnnrrnnannrennnnns 29 8 3 Sample program installation atasca dia 29 84 USB Driver instalatii cssc a ara aa 30 8 4 1 Installation on Windows 98BSE M oocccccccccconnccconccococoncconnnnnooononononnnonnonnnnncnnnnnnnnnnnnnnnnnnnnnnenncnnnnnnnnns 30 842 Istallatlon of VWVINGOWS 2000 DEE 32 843 Motala ton On IINCOWS AR ranas 38 8 5 Confirmation of USB Driver InstallatioOn coonccccnnncioccnncocnnccocnnococanoconaronnnaronannnonnnnnnannnnnnanennnas 43 3 0 DFIVET lesen Eet il EENE EAN EEEE 44 9 FPL3 FLASH programming software cccssccesecseeeeeneeneecenseeneecnsscenseonsesenssoeeesoneess 46 QT gos E ed E 46 9 2 Starting up the GUI Software ica a 46 To e tee 47 94 Hee ee 48 LAr MEC MED a 48 Se ADEVICO Mel data aos 49 AS AE MN ii 58 GE E EK Eet Eug e Meee o A A 59 9 5 Programmer Parameter Wind OW oooncconnncconncccncccccncncconcncononcnnnnnrrnnnnrrnna nora rrrnnnrrnnnnrrnannrrnanrenanrrnnans 60 10 How to use FPL3 FLASH programming SOftWare occcccccoccconcccccnconccnonacenancnancnnanenancnnns 61 10 1 Installing the FPE3 GUESOT WAFe viii idad ea 61 10 2 InStalling the Oracion 61 10 3 Installing the parameter file ocoonnncccnnnncccccnncococcncoconconoccnnnnconnnnnncnnnnnrornnnnrr
81. that Search for the best driver in these locations is selected 5 Search for the best diver in these locations Use lhe check bowes balor to imit or expand the default search which includes local paths and removable media The best daver found vall be installed _ Search removable media kee CO R0M e Include this location in the search CA Program Fibs ANECT oo 4 FPL 3 DORMER lt 2 gt Check Include this location in the search only C3 Dont search will chdoze the drives lo install Choose this option to gelect the dewice dover from a het Windows does not guarantee that the diver you choose pall be Be bast match for pour hardware lt 3 gt Enter C Program Files NECTools32 FPL3 DRIVER lt 4 gt Click 3 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anywayl Figure 25 Windows XP Logo Testing 3 Windows XP Hardware Installation A The software you are installing for this hardware o USB High Speed Serial Converter haz not passed Windows Logo testing to verify its compatibility with Windows AP Tell me why this testing ls 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 passe
82. the installation for this device Check that Search for a oy USB lt gt Serial suitable driver is selected A device diver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the Installation click Next What do vou want the wizard to do Ce Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a spe driver lt Back veo Cancel 3 Check the Specify a location check box only then click Next gt Figure 13 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Files WK Where do vou want Windows to search for driver files Search for driver files for the following hardware device G 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 Next IF you are searching on a floppy disk or CD ROM drive insert the floppy disk or CO before clicking Hest location only is checked ed hed Optional search locations T Floppy disk drives Click CD ROM drives W Specify a location Microsoft Windows Update lt Back eo Cancel User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN it NEC 4 Enter C Program Files NECTools32 FPL3 DR
83. ting is displayed according to the parameter file User s Manual U18596EE1VOUMOO 53 78K0 Fx2 CAN it NEC lt 4 gt Operation Mode The setting of Operation Mode may divide the flash memory of some target devices into blocks or areas This menu is used to select an operation mode of the flash memory Some devices do not have the block and area division modes and some devices have only one of the modes In these cases a nonexisting mode is unchoosable Figure 45 Device Setup Window Operation Mode Operation Mode rn Chip Start Block End 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 whether numbers or addresses are displayed in the Start End list boxes If this check box is checked addresses are displayed If this check box is not checked numbers are displayed lt 5 gt Target Reset Message By checking the Target Reset Message check box the window promoting th
84. tor product operation and application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC Electronics no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visua
85. ure 28 Search Location Specification 2 Windows XP Found New Hardware Wizard Please choose pour sesch and installalion oplion s lt 1 gt Check that Search for the best driver in these locations is selected Co Search lor the best diver inihese locabons Use the check boxes below lo mi of eared the delad ceaich which meldes local pahe and removable mada The best deves found will be installed Search ramovable media ooo CDAD lt 2 gt Check Include this location in Include this location inthe search the search only Choate this option lo select the dawce deve fom a bel windows does nol oustartee Ihal ie divar pou choose well Ge the beH maich for ug hardware lt 3 gt Enter C Program Files NEC Tools32 FPL3 DRIVER lt 4 gt Click 7 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 29 Windows XP Logo Testing 2 Windows XP Hardware Installation A The software you are installing for this hardware USB Serial Port has not passed Windows Logo testing to very its compatibility with Windows A Tell me why this testing ls 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 s
86. y cannot be written Notes 2 Valid only for the area other than the area specified as the boot area User s Manual U18596EE1VOUMOO 78K0 Fx2 CAN 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 50 Device Setup Window Disable Chip Erase AN When Chip Erase is disabled chip cannot be erased and programmed any more eng 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 setting 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 bl

Download Pdf Manuals

image

Related Search

Related Contents

Anah - D`Dline 2020  copycat box manual  Edifier Enterprises Canada Edifier R351 Speaker System User Manual  共通取扱説明書 ェブソン用互換 エコカ一トリッジ  Industrial Turbo Meter User Manual  Service Manual - Air  

Copyright © All rights reserved.
Failed to retrieve file