Home
78K0/Fx2 - CAN it! - Renesas Electronics
Contents
1. LO Z BB 27 SW SW SW2 SW3 O ON SA 1116 O S1 S2 S3 S4 S OUI DR 13 R12 O R23 wm o s R34 C18 R10 C8 R a EN 1 la o SB 5 E R3 6 cz E o e C19 l TH Om Le d d MN SCH i t 0 D5 C1 C1 5 E EN E 3 N N 5 Im CN2 y Cio R36 0 A pom 5 2 e 2 o 00000000 4 E R15 o 9 9 GI 64 5 NEC 00000000 Ee anos V Z8KO Fx2 CAN it si Di 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 78KO FF2 device carefully to g
2. 9 c y 7 I sse ou gt sudgp Z0 7Z0 0090 SSHH ES LPONING WdV 91 el 7 0 A CANTE y E 5 o mm 2 pda 5 5 5 5 d a E B 3 8 5 D 3 5 4 paeoqeseg 23 3 2 B E VII el E 3 5 E TMS gt gt 5 a EI 5 E 5 2 3 8 gt 8 8 Q8 8 OT 6 D EI 00 YHA 5 E TMS ND 5 f CSS D 8 L 2 o 1no NVO 0318 L os P ENT os i A os Zod 9 5 os afo fa o PID DAS 2 Guimelp 8 z ISO DIA O SODA Ajquiessy 5 z t PES 280 20A S os ano z 5 oeds 5 ES LL O SDOA PNO gt E Mr Su e a el u peopoavo gai ero os O SODA 9s 77 TAND IdL ar LV OSOOA 01 6 s Dr zn 40001 S 8 NOYWO SON CON peaoiddy pex29u5 paubisag EMS 8 L m S Q O 9 ION SWL E on ajeos d000T SES NOWINO m ar 8 gt TMS z 20A OdL ou 5 5 5 LAND 3r E g a 8 E 8 ii 280 22 To 8 8 8 OSODA OH OZOTVEL
3. t 78K0 Fx2 CAN 9 c v z I nose purs opeur opiuviooysutdg pu TO 0 0 0090 SSHH H 1pu3 O57978VDA Ol D 8 z 6 E 5 gt oxy t 9E NIA nao 504 paeog ndo DESS gt zana L a L HNVO A d ano 00 T MHA PprIeog 8 8 iV T su oxL I LONIA ndo d NWO O38 3 b suidoz suidoz su
4. eeeeeeee nee nnn 27 0 1 5 0 lo PRESE LE UU E 27 coo ERA MA alt EE 27 78K0 Fx2 CAN it NIEC Ex HaraWare Instala co 28 9 Soltware Si dass 28 8 1 IAR Systems Embedded Workbench for 78K0 78K0S installation 28 8 2 Device file installation dis 28 8 3 FPL3 FLASH programming GUI installation oooocccconcncconnnccconcnncononancnnonnnnonnnnnnnnnannrrrnnnnnrnnnnnns 28 9 4 Sample program installatioN w smmmmmzama re eae bcc ome i ceo aav ease a 28 8 5 USB Driver Installation o EE 29 8 5 1 Installation on Windows 98SE ME nennen nenne nnnninnnnni nnns nass rises sns n annis 29 8 5 2 Installation OMm VVINGOWS 2000 EE 31 8 5 9 dnstallddornr onm 37 8 6 Confirmation of USB Driver Installation leeeeeee eese nana ene nnne nnns 42 Na Driv r NS 3110 eS 43 9 FPL3 FLASH programming software 1 1leeeeeeseeeniee aana nunanzaanuaunaazaanaaazaanaaa 45 SL ATUA re 45 9 2 Starting up the US WW ii KA 45 9 9 AA EE 46 94 ENTREE 47 A a a 47 942 Device e VE EE 48 Se 57 GR SEIT UA EE 58 9 5 Programmer Parameter Window 1 eeceeeeiieeeeeee nennen nennen enhn nn nn nnn nnn enhn nnn nnns 59 10 How to use FPL3 FLASH programming software eeeeeeee eene 60 Ty Installing die FPES GUI SOIWAEFe i a
5. Uninstall Universal Serial Bus Control 7 E e LISBIO controlled devices Scan For hardware changes m RR Figure 66 Configuration of COM port for IAR C SPY debugger 1 4 69 78K0 Fx2 CAN it NIEC The following USB Serial Port Properties Window appears USB Serial Port COM3 Properties E ajx General Fort Settings Driver E USB Serial Port COM3 E Device type Ports COM amp LPT Manufacturer FT DI Location an USB High Speed Serial Converter Device status This device is working properly IF are having problems with this device click Troubleshooter to start the troubleshooter Device usage Use this device enable r UK Cancel Figure 67 Configuration of COM port for IAR C SPY debugger 4 Then select the Port Settings tab of the USB Serial Port Properties Window and press the Advanced button USB Serial Port COM3 Properties BEEN 21 xl General Port Settings Driwer Bits per second Sau Data bits fe yl Parity Nowe stop bits h rl Flow control Ne sl Restore Defaults Press the Advanced button Cancel Figure 68 Configuration of COM port for IAR C SPY debugger 4 70 78K0 Fx2 CAN it NIEC Within the Advanced Settings menu change the Latency Timer msec to a value between 2 and 4 For faster host computers set the Latency Timer to value 1 Advanced Settings for COM
6. C C compiler setup Plugins use On Board Assembler Custom Build Driver debugging Build Actions TR 78 TE zZ8K sxs Linker mms v Funto main IECUBE Setup macros MIMICLIBE ru fi Simulator EE Choose device TK 78 Ki E description file Device descriptions io78f0893 ddf Use device description file DIRiS configsddPsio ZOU 3 ddl Cancel Figure 72 IAR debugger options 73 78K0 Fx2 CAN it NIEC 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 DFO54780_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 ADC demo 3 x Category Factory Settings Config Processing General Options C C compiler Output Extra Output define Diagnostics List Assembler Linker command file SPRI DI DIR XCLAD F0833 V4 XLL Custom Build Build Actions Debugger IE 78 IECUBE Override default program entry MINICLIBE Entry label program start Simulator C Defined by application TK 78 Search paths one per line TOOLKIT DIRSALIB gt Raw binary image Kb Symbol Segment Align Figure 73 IAR Linker options Now aft
7. 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 is prefixed refer to CHAPTER 11 TROUBLESHOOTING 42 78K0 Fx2 CAN it NIEC 8 7 Driver deinstallation The driver deinstallation program is installed on the host machine when the FPL3 software is installed Use the procedure below for deinstall the USB driver 1 When using Windows XP log on as the computer administrator When using Windows 2000 log on as the Administrator 2 Double click in the order from My Computer to C to Program Files to NECTools32 to FPL3 to DRIVER Ftdiunin exe is displayed Double click Ftdiunin exe Figure 32 Driver Uninstallation ejes File Edit View Favorites Tools Help gt d ya Search Folders Ss File and Folder Tasks cJ Make a new Folder Ed Publish Ehis Folder to Ehe Web El Share this Folder Other Places DRIVER El My Documents E Shared Documents E My Computer a My Network Places Details 901 Release Info DOC 2134 Release Info DOC COMPORT PDF S FTCOMMS VXD SM FTDIBUS CAT bFTDIBUS INF FEdibus sys Sa ETOIPORT CAT T FIDIPORT INF A PFTDIUNIN INI FTSENUM SYS 3 FTSENUM vest riser2k sys FTSERIAL SYS bFTSERMOU INF S FTSERMOU VXD EN FEseruiz dll 2 FTSERUI DLL 2 README TXT Type wordpad Document wordpad Document PDF
8. 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 L3 Computer Management Sele mi File Action View Window 2 x 213 y Computer Management Local e Computer CR System Tools is Disk drives Event viewer E Display adapters Shared Folders 24 DVD CD ROM drives X Local Users and Groups Floppy disk controllers G Performance Logs and Alerts 4 Floppy disk drives we Device Manager ic IDE ATA ATAPI controllers KS Storage cx Keyboards Gel Removable Storage Mice and other pointing devices Disk Defragmenter E Monitors Disk Management B i Network adapters Hn Services and Applications F Ports COM LPT of Communications Port COMI E Communications Pork COM n ene Check that USB Serial Port 4 USE Serial Port COMIS COM is present Saget Processors gt SCSI and RAID controllers Sound video and game controllers Check that USB High Speed System devices Serial Converter is present E Universal Serial Bus controllers Urt SMO 756 PCI Ea USB Opa Host Contromer E USB High Speed Serial Converter Ge ISE Root Hub For Windows 98SE Me Caution Do not select Update and when communicating with the target device For Windows 2000 KP Caution Do not perform Hardware Modification Scan when communicating with the target
9. User s Manual 78K0 Fx2 CAN it Demonstration Kit for the F Line Family Document No 78KOFX2CANITV101 Date Published June 2006 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 semiconducto
10. SE os T z T A ARIAS VCOCTHAN TeISULA a OSO DIA 2S0 DIA OSODA ua m 5 See E ISOTIDA os os OSOOA DEA 8 St E Hi ua 3 _ o S B E op 8 303v gs n suidc aa laln S ER LIT mE uldo dzuzdmsaeoo 9 L 8 6 IPPOS NXW SUIdOY mme pos UKO 555 5 IGND 70ND SIND POND SIE ES G Cn sngano SCHON 6 OF N NN D LE se e E pe sc og os 8 and INd sn Wa E i ZE pas ka pourzop mM daasn Ka n ze os 2 God T ver sosa sc of o Z asa Z 0158 N vs ae 2 1 sc ULC lali E Wd Z 139 E EN sc sc SID TALA 2 SLO YA OAT NI DDA 0 KSE ET vc SIX TALA Z SLA d MER T 1c cc MATALI x XH 3 et oc td TD AKI TALA 3 E TANTA m a td quo ON OTE 1 or apom t 1 lt lt 5 5 SH 95 t m A I eu 0 0 89 8 3 6 or TANA gulae ala 3 5 5 5 5 L 8 TANI Ta is E E 5 5 5 5 on 89 E E 8 E E aporney T BS s 9 TS 5 8 I ds 2 B E E S 5 S Ha z 7 E CHEN EEN a 28 vB 8 5 T t BE TALA E Ec TND 3 os and 5 100 os os OSODA 5 Y pant os os os 14 00 O SIDA NI ODA OSODA OSODA pe ouddy waji UOISJ9A L 9 c v c I 100mm eg enss UOISJOA 78K0 Fx2 CAN it baseboard schematics Figure 78 81 SIII uo noopq DAN TAA
11. 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 SW starts a new measuring cycle Character LC display Button SW2 Button SW3 5 4 78 78K0 Fx2 CAN it NIEC 14 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 LED s D1 4 14 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 temperature 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 temperat
12. e Device Files for 78K0 Fx2 CAN it e FPL FLASH programming software e Sample programs The IAR Systems Embedded Workbenches and the FPL3 FLASH programming GUI must be installed on your PC For detailed installation hints refer to the following chapters and to the corresponding documentation of the IAR Embedded Workbench 8 1 IAR Systems Embedded Workbench for 78K0 78KOS installation To install the IAR Systems Embedded Workbench for 78K0 KO0S 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 Device file installation To install the device files for the 78K0 Fx2 CAN it in order to use the IAR C SPY debugger select the SETUP program in the directory Device Files of the CDROM The setup dialogues will guide you through the installation process 8 3 FPL3 FLASH programming GUI installation To install the FPL3 FLASH programming GUI select the SETUP program in the directory FPL3 of the CDROM The setup dialogues will guide you through the installation process 8 4 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 28 78K0 Fx2 CAN it NIEC 8 5 USB Driver Installation In order to use the
13. sudg surdi oS NX V sutdog ure jeyxoos 007 6 ech TS 0001 Les TEE NEL i ax NO 6 sc men 3 Q4 6101 Hr cur t a V Ae EELER E lt ra 6 or TMS sc mor 5 SHE MIO T pe WLC TALA IVAN 9 mn se SWL mE e Q sr I ran t T Aa nT e a VV auteur KA ca se 9 TAS ndo THE Se gr SLY TALA JSN D S a l i amp a yr ND 52 Los DA 9 i Tdf a V Va lt a za Ig 3 IAN oal oc oni 3 POA sr 1 axa HNI 8 L z n TA vr 08 cO TI L SIV SIOT xr Gxridur sa c TIAL ANN Tp I8 SOT 2 TIV 01 ker SLODMOL AST V L ePorqmouog TH dr Trauer lt ta lz sc EE tid T 3 MATALI E 901 5 EVET ker 0 sc sc ta qM NE EE TAKI A m a dp Se Dao raw t d E ev Het Uu Dni 0 20A 17 7 LNOSTA doo vot ve PE KE OTXL 1 ov OIO T For ys 1 oc NISdW ado es 6 e da ST Jasi ndo yp 980501 SOL TAN e B B st 91 Te A ne mol AD TALA DS0 DDA y z e TDA XL E 1 Wiere XL pui n T ec and 00 Lal m mei LV 001 mn te 19 90 6 or TX nad Mu E asenn T n P Tr 9V TO IL Le 0 LA m e da s 9 1X ndo A Sv tO UOTE JSN 9 p3 s AL 5 EE ce viol 1901 Le MIS Pesche cc ECHO vsom See 3 t m IND 62 5 0 td y E IDDI dO00T SEH NOWIWO POT VAL 23 lt gt lt lt lt 55555358 4 os o_o xd L LLL E TMS D
14. 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 29 Installation on Windows 2000 Page 31 Installation on Windows XP Page 37 8 5 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 drivers for USE 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 Figure 7 Search Method Windows 98SE Add New Hardware Wizard What do you want Windows to do Check that Search for suitable driver is selected Search tor the best diver for your device Recommended Display a list of all the drivers in a specific location so you can select the driver you want Cancel 29 78K0 Fx2 CAN it NIEC 3 Check the Specify a location check box only and enter C Program FilesNECTools32FPL3 DRIVER in the address bar then click Next Figure 8 S
15. 88x10 xK 5 2 B 1 937 10 xK Fr R25 KT 3 13 External LED s D1 D4 LED s D1 to D4 are connected to port P5 of the 78KO FF2 device A low signal output at each port switches the corresponding LED on Table 12 LED D1 D4 connection 20 78K0 Fx2 CAN it NIEC 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 78KO 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 Kara 7 78FO893GK ma UE E Germany CN3 NT Figure 4 78K0 Fx2 CAN it CPU module components 21 78K0 Fx2 CAN it 4 1 1 External connector CN3 CN4 CN5 and CN6 CN3 CN4 CN5 and CN6 are connectors for external user hardware P120 INTPO EXLVI 3 6 P o EIS 9 P0 oe PEGEA ds COPE 3 6 6 P6 o Per 12 esm H4 PT BUZ IWTPT 15 6 Table 13 CN3 CNA CN5 and CN6 connection to 78K0 FF2 4 2 High Speed CAN connector CN8 3 6 Im B PI6 TOHI INTP5 9 Im m Jm Sp SI10 RXD61 Ta Pro ScKi0 eer CN NEC ata P95 ANI13 4 Poe ANT Pa 6 8 Im 9 Pean 12 ess Aa H4 Pane 15 Pean C
16. 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 202323333333 G o000000000 alternative E RO 0 0 0 0 0 0 0 0 0 Os OCD via QB 78K0MINI On Chip debug emulator Figure 5 78K0 Fx2 CAN it configuration for On Chip debugging 5 1 OCD via On Board debug function 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 24 78K0 Fx2 CAN it NIEC 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 25 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 bits FFIFH General purpose Short direct addressing registers 32 x 8 bits Internal high speed
17. Embedded Workbench IDE User Guide 77 78K0 Fx2 CAN it NIEC 14 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 78KO 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 TimerO1 Potentiometer R14 Timer50 Button SW2 A D converter Button SW3 LED s D1 D4 14 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 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 DA 14 4 ReacTime demo This sample program demonstrates a reaction time measurement After the button SW3 is pressed the application waits for a random time duration between 0 50 and 3 45 seconds
18. 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 17 78K0 Fx2 CAN it NIEC 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 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 78KO FF2 device via three control lines and eight data lines 15 A J gt IL 00008 006 X 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 466 folder of the 78K0 Fx2 CAN itl 3 10 External Potentiometer R14 A 47K potentiometer R14 is connected between Vcc and ground The potent
19. 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 Date Modified 6 12 2003 3 18 PM 6 16 2003 1 22 PM 4110 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 4110 2003 3 00 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 6 10 2003 5 10 PM 6 16 2003 1 24 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 11 2003 12 48 PM 5 20 2003 2 04 PM 6 16 2003 1 22 PM 3 Click Continue Figure 33 Driver Uninstaller FTDI Uninstaller Version 2 1 If your USB device is connected p Press Continue to uninstall the dri 43 78K0 Fx2 CAN it NIEC 4 Click to complete driver uninstallation Figure 34 Completion of Driver Uninstallation FTDI Uninstaller Version 2 1 Uninstalling YID 040357 6001 Deleting registry entries Deleting Files Uninstall complete press Finish to exit Caution If the GUI software is uninstalled earlier Ftdiunin exe is also deleted At this time delete USB Serial Port COM and USB High Speed Serial Converter from Device Manager manually 44 78K0 Fx2 CAN it NIEC 9 FPL3 FLASH prog
20. 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 The software you are installing for this hardware USE Serial Port has nat passed Windows Logo testing to verify its compatibility with Windows P Pell 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 passed Windows Logo testing STOP Installation 78K0 Fx2 CAN it NEC 40 78K0 Fx2 CAN it NIEC 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 hor y USE Serial Port Click Finish to close the wizard 41 78K0 Fx2 CAN it NIEC 8 6 Confirmation of USB Driver Installation After installing the two types of drivers check that the drivers have been installed normally according to the procedure below When using the 78K0 Fx2
21. SWA iii ai KI dE 14 3 4 1 Operation mode Selection SW4 STi A ta 14 3 4 2 On Chip debug mode selection SW4 S2 oocococcconcccccccoconoconooncnnonononnnnnonononnnnnononnnnnnnononnrnnnnnnnannns 14 34 3 UART SClECHOMSVWV4 SO ite a menta A da 15 3 44 UARI ZLIN mode 4 A ads 15 LIN pUJ JR E A r a a A a E a Eana aa a eE AAEE Ea 15 3 6 USB interface connector 6 nriee siii isaRneaoaan 16 37 6 NA E 17 30 External POtentiometer RT AA 17 3 9 Display D1 122 character EC 18 30 10 External Potentiometer ergeet Eeer ege 18 3 11 AD converter reference voltage input 11 eeeeeeeeeee cesses esee eene nennen nnn nnn nnn nn nnn nnns 18 3 12 Temperature EE ee ds 19 3 13 External CED S DISDA Em 20 4 78K0 Fx2 CAN it CPU module components ooocccocccccnccconcnccnncnonnncnnnnnnnnnconancnnannnnananons 21 41 78K0 Fr2 CAN it CPU 6 pots ic 21 4 1 1 External connector CNS CN CNS and 665 22 4 2 High Speed CAN connector CNG 1 eeeeieeeeeeieeeee esee enne nenne nnn nnn nh nnn nnn nnne hann nn nnn nnn 22 421 OCD COMMECIOM GING me 23 PPP A 24 5 1 OCD via On Board debug function ooocccconnnciccncnnccnncncononcnnocnnnnnconnnnnrrnnnnnnrrnnnnnrrrnnnnrrnanarrrrnanarennanas 24 5 2 OCD via QB 78KOMINI On Chip debug emulator ooonccconnnniconcnccccoccccoconcnconnnnnnconnnnronnnnanorenannrennnnns 25 5 3 7000 72 Memory a mee 26 6 78K0 Fx2 CAN it installation and operation
22. device connected with the FPL3 and performs verification against the data written to the flash memory of the target device During verification the progress status is displayed in the action log window to indicate programmer operation This progress status display window displays the progress status of target device verification by percentage Upon completion of Verify command execution the GUI software displays the result of executing the command on the target device 5 Security command The Security command initiates the programming of the security flag of the target device connected to the FPL3 Set Security flag settings on the Advance tab of the Device gt Setup menu 6 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 stat
23. 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 setting is displayed according to the parameter file 52 78K0 Fx2 CAN it NIEC 4 Operation Mode lt b gt The setting of Operation Mode may divide the flash memory of some target devices into blocks or areas This menu is used to select an operation mode of the flash memory Some devices do not have the block and area division modes and some devices have only one of the modes In these cases a nonexisting mode is unchoosable Figure 45 Device Setup Window Operation Mode Operation Mode T Chip Start Block SEN 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 thi
24. to the target device button Closes the window without selecting a program 47 78K0 Fx2 CAN it NIEC 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 settings 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 lt lt 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 Era
25. while Cause The driver may not be installed correctly Action 1 When this product is connected to the personal computer right click the driver marked with or x Click when displayed 2 On Device Manager execute Hardware Modification Scan 3 Install the driver again with Plug and Play Cause The device may not be recognized in the case of connection with the USB hub Action Try the following e Disconnect the USB connector then insert the USB connector again e Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer When this product is connected with a personal computer the Add New Hardware Wizard screen is displayed Cause If the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port this product may be recognized as a new hardware item Action Install the driver by referring to CHAPTER 8 5 USB Driver Installation 67 78K0 Fx2 CAN it NIEC 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 F
26. window as shown below and indicates the version Clicking terminates the display Figure 54 About FPL3 Window 58 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 Mame Firm Version ExtCode Vendor Parameter file Mame Format Version Processor Yer Connection to device Port Speed Range Freq Multiply Device Updated after communication with the target device to display information about the target device Parameter file Updated after Setup command execution to display information about a read parameter file Load file Updated after Load command execution to select information about a selected program file Connection to device Updated after Setup command execution to display information about the connection with the target device 59 78K0 Fx2 CAN it NIEC 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 Hardware configuration of 78K0 Fx2 CAN it Base board 78K0 Fx2 CAN it Target device 78KO FF2 uPD78F0893 C
27. 0 d N z ru 9 Amy GD il B NS e AN lt o Figure 1 78K0 Fx2 CAN it system configuration 2 1 78K0 Fx2 CAN it 78K0 Fx2 CAN it is a demonstration kit for the 78KO 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 FTDI s Virtual COM Port VCP driver appears to the windows system as an extra Com Port in addition to any existing hardware Com Ports 2 3 Power supply via USB interface 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 12 78K0 Fx2 CAN it NIEC 3 78K0 Fx2 CAN it baseboard components The 78K0 Fx2 CAN it baseboard is equipped with push buttons a 12 2 character LC d
28. 2 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 Heference voltage for the LIN bus level LIN bus line Table 6 LIN plug JP1 15 78K0 Fx2 CAN it NIEC 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 i e by using a terminal program the input output signals of UART6O respectively UART61 of the 78KO FF2 device are connected to CN6 Please configure switch SWA accordingly to use this mode Figure 3 Connector CN6 USB Mini B Type Host Connector Pin Configuration VBUS DM DP GNDBUS 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 16 78K0 Fx2 CAN it NIEC 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
29. 3 E 2 xl COM Port Number mmm USE Transfer Sizes Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for Faster performance Defaults Receive Bytes 4096 iz Transmit Bytes 4096 v BM Options Change Latency Timer value Select lower settings to correct response problems Latency Timer msec E Miscellaneous Options Serial Enumerator Minimum Head Timeout meec fo Serial Printer Cancel IF Power Off Minimum Write Timeout msec fo Event On Surprise Removal Set ATS On Close LN A A 3 Figure 69 Configuration of COM port for IAR C SPY debugger 4 4 Press the OK button to save the configuration and close the properties menu The configuration of the USB serial COM port is finished now and the IAR C SPY debugger can now be used in combination with the On Board debug function of the 78K0 Fx2 CAN it board T1 78K0 Fx2 CAN it NIEC 13 IAR sample session When everything is set up correctly the IAR Embedded Workbench can be started To do so start the Embedded Workbench from Windows Start menu gt Programs gt folder IAR Systems gt IAR Embedded Workbench Kickstart for 78K The following screen appears H TAR Embedded Workbench IDE SS EE inl x File Edit View Project Tools Window Help ays eee 6 55 5 0 Workspace Embedded Workbench Startup Create new project in
30. AM Ox00 amp bgpatO 0 write display character RAM LCD write CGRAM O xO0l s bgpatl 0 LCD write CGRAM x0Z s bgpat2 0 LCD write CGRAM Ox03 s bgpat3 0 LCD write CGRAM Ox04 sbgpat4 0 LCD write CGRAM OxOS5 sbgpat5 0 LCD write CGRAM Ox 6 s bgpat6 0 LCD write CGRAM Ux07 amp bgpat7 0 enable interrupt enable all interrupts LCD_cursor 0x0 LCD string stext0l 0 LCD_cursor 0x40 LCD string stext02 0 vWait25 80 delay while TRUE LCD_cursor 0 0 LCD string amp text03 0 LCD_cursor 0x40 LCD_string text04 0 vllait25 80 LCD_cursor 0x0 LCD_string text05 0 Overview 2DC demo CAN demo REACT dem 4 fol OS fiera of 7 Ln 1 Col 1 Figure 71 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 io78F0893 ddf Options For node ADC demo X Category Factory Settings i Select 7 4 78 to General Options
31. Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Command options Blank check before Erase Checked 78K0 Fx2 CAN it 7 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 File Device View Help P lu y Sal Ze lt lt Flash penrning Flash Open OF gt gt COMMAND Device Setup PAM File Read OF PRM File Read OK is displayed The display is updated inl x Device Mame Firm Version Eat ode Parameter File ZOU 4 VII Mame Format Version Processor Ver 0200 Mame Date bk eum Connection to device COM4 speed 175200 Range Chip Freg 12 00 Multipl 1 00 Ready 6 Selecting a user program 1 Select File gt Load 2 Select a program file to be written to the target device then click Open Figure 63 After Downloading File Device View Help a PARKER gt lt FlashOpennina Flash Open Dk gt gt COMMAND Device Setup PAM File Read OF gt gt COMMAND LoadFile Open Success read HEX file Success read HEX file is displayed inl x Mame Firm version Eat ode Vendor Parameter file Mame TBF SS3 Format 0414 Version 41 01 Processor Ver 0200 Load file Mam
32. EACT dem 4 i 00000 OxBFFF Internal ROM 48 Kbytes 05000 OxF 7FF Internal Extended RAM 6144 bytes OxFBOO OxFEFF Internal ROM 1024 bytes 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 bei Monitor Clock Peripheral Break Target Target Power Off System Disabled Connect Permit C User C Enabled C Not Connect Not Permit Pin Mask Fail sate Break 4 WAIT TARGET RESET r View Setup E NMI INTERNAL RESET m Memory Map Start amp ddress Length Type Press OKto enter Emulator Hardware Setup Build Debug Log Ready Figure 74 TK 78 hardware setup menu 74 78K0 Fx2 CAN it NIEC 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 greater executables can take some time H TAR Embedded Workbench IDE BEES loj x File Edit View Project Tools Window Help S X Belo IS 9 485 Ww EI zy perpe 2 JADC demo Debug LCD data bcdl Files LCD data bcd2 E LCD_data bed3 E 7860 Taste it 2 if bcd0 LCD string stext07 0 La IGJADC demo Debug else LCD string stext08 0 E adc main c Ha inite Ha interrupt c Ha Q icd c Cm Output J
33. EMO application Set the 78K0 Fx2 CAN it board to the normal operation mode by switching SW4 S1 to OFF gt Plug and Play 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 Restarting the GUI When the system is restarted the same screen as shown in Figure 62 appears 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 software 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
34. EP e B REACT demo Debug v main function Ha B TIMER demo Debug v EE JL APT demo Debug v void main void TK 78 Emulator unsigned int Downloading application disable im EE Fiertrunis vHardwareIni ttings vSoftvareInit variable Initialization LCD init LCD Initialization LCD inst 0x01 clear display LCD write CGRAM O0x00 amp bqgpatO 0 write display character RAM LCD write CGRAM x l sbgpatl 0 LCD_write_CGRAM 0x02 bgpat2 0 LCD write CGRAM Ux03 bqgpat3 0 Overview AD demo REACT demo TIM gt fol fa Messages Building configuration ADC demo Debug Configuration is up to date 00 Build DK Ready 000 Z7 Figure 75 IAR project download 75 78K0 Fx2 CAN it NIEC 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 BE inl xl File Edit View Project Debug Emulator Tools Window Help 5 8 2 2 Workspace 7 praep Een x EFEC ADC_demo Debug y A a Goto DI ceu Registers DI void maint void main 0467 B3 E B 8
35. K0 Taste unsigned char i disable inter 00 48 id unsigned int tup result i vHardwarelnit Ha B REACT d v DAGA Gg 7AU OxFBIO Ha B TIMER d L gt disable interrupt disable 211 interrupts vSoftwarelInit R4 E 0x90 La BJUART de v vHardwareIniti peripheral settings Econ 9 D30 R5 D OxFB vSoftwareInit variable Initialization 0470 9A140 RP3 HL 0x0724 LCD init LCD Initialization LCD inst 0x01 SE E e LCD inst 0x01 clear display 0473 101 psy TEES 0475 9A3EQ D LCD write CGRAM 0x00 sbgpat0 0 write display character RA LED pete e ISP 271 LCD_write_CGRAM Ox01 sbgpatl 0 047 12300 RBSO 0 LCD_write_CGRAM 0x02 bgpat2 0 047D JAF1OE AC 0 LCD write CGRAM 0x03 amp bgpat3 0 LCD write CGRAb RBS1 0 b A 0480 A101 0482 12380 ze LCD write CGRAM Ux05 amp bgpats 0 il 0485 9AF1D IE LCD_write_CGRAM 0x06 bgpat 0 LCD write CGRA LCD_write_CGRAM 0x07 bgpat 0 0488 102 048 124005 _ enable interrupt enable all interrupts a ER s 0490 A103 m nana ENKE Overview ADC_demo RE 4 fo ac rurenr M4 3 gt Sg Debug Log Build x Goto sl ss 7 r D redo 00 00 00 00 00 00 00 00 00 00 00 00 00 OO c5 O1 PO sel O000Fe20 0000fe3F NUM OVR Z Figure 76 IAR C SPY debugger 78K0 Fx2 CAN it NIEC 14 Sample programs 14 1 General Introduction Eac
36. L3 DRIVER lt 4 gt Click 3 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 25 Windows XP Logo Testing 3 Windows XP Hardware Installation PN The software you are installing for this hardware USE High Speed Serial Converter has not passed Windows Logo testing to verify its compatibility with Windows AH Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation 38 78K0 Fx2 CAN it NIEC 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 Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software Far e USB High Speed Serial Converter Click Finish to clase the wizard Back Feil Cancel 5 Proceed to the installation of the USB Serial Port driver Click Next gt Figure 27 Found New Hardware Wizard 2 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps yo
37. N8 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 22 78K0 Fx2 CAN it NIEC 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 78KO FF2 device QB 78KOMINI is a separate product from NEC and it is not included in this starterkit package 1 RESEIN 2 RESTOUT 3 J FLMDO 4 NDDIN 5 X2 00 6 GND 8 GND 9 NOG Table 15 OCD connector CN7 To enable On Chip debugging by using the QB 78KOMINI please set switch SWA 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 23 78K0 Fx2 CAN it NIEC 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
38. PL3 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 78K0 Fx2 CAN it NEC 12 IAR configuration for On Board debugging 12 1 Setup COM port for IAR C SPY debugger 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 set the corresponding USB serial COM port of the host computer Just be sure that you have installed the USB driver first To set the COM port please execute the registry script file FTDI_Set_Registry reg The script file can be found in the typical installation path of the IAR Embedded Workbench i e C Program FilesUAR System Embedded Workbench 4 0 78k config nec This script file will set the COM port number in the following registry key HKEY_LOCAL_MACHINE SOFTWARE NEC ToolsNNECDEVV 8KO EX a Registry Editor E x Registry Edit View Favo
39. RAM 1024 x 8 bits FE20H FE1FH FE10H FEOFH FBOOH FAFFH AFCAN area d FAOOH 256 x 8 bits F9FFH Ee Reserved 16384 x 8 bits Data memory space F800H F7FFH bank 4 pum Internal expansion RAM which instruction bank2 Program area Sa can be fetched 6144 x 8 bits EOOOH Fd 1000H DFFFH OFFFH 7 Reserved LE CO00H A LET CALLF entry area BFFFH A 0800H Flash memory JA 07FFH 16384 x 8 bits Ee D bank O l Program area 8000H 7FFFH 16384 x 8 bits 0082H Loans Program 16384 C 8 Ge Geck Option byte area memory space bank 3 Flash memory 6384 x 8 bits e 32768 x 8 bits bank 1 CALLT table area common 0040H 003FH Note 2 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 78KO FF2 device consequently all available memory of the device is free for application software 26 78K0 Fx2 CAN it NIEC 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 Addi
40. Re 6 6 6 8 6 6 5 5 8 8 5 panoiddy Wali UOISIJA L 9 s 2 c I 82 78K0 Fx2 CAN it CPU module schematics Figure 79 78K0 Fx2 CAN it MEMO NEC 83
41. S o sc B C Germony 5 a Mode in 9N2 T8KS F CAN it mecum 2 Plug and Play 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 61 78K0 Fx2 CAN it NIEC 3 Start the FPL3 GUI Figure 56 GUI Software Startup Screen File Device View Help paula gx gt gt Flash penning Mame Firm Version Ext Cade V endar Parameter file Mame Format Version Processor Wer Mame Date Chk sum rea Connection to device Port Speed Range Freq Multiply Ready md mE 5 Setting the programming environment 1 Select Device gt Setup from the menu bar 2 The Standard dialog box for device setup is activated Figure 57 Standard Device Setup Dialog Box EE Device Setup B x Standard Advance Supply oscillator Frequency MHz Speed 115200 Multiply rate Operation Mode C Block sl Area Show Addres Target Reset Message OF Cancel 62 78K0 Fx2 CAN it NIEC 3 Click PRM File Head to open the parameter file selection window Select the parameter file 7 8F0893 prm then click Open Figure 58 Parameter File Selection File name prm Files of type PRM Files PRM Cancel A l
42. W4 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 SWA switch S2 controls the On Chip debug function of the 78KO 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 78KO 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 78KO Fx2 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING 14 78K0 Fx2 CAN it NEC 3 4 3 UART selection SW4 S3 SWA switch S3 specifies the corresponding UART signals of the 78KO FF2 device connected to the FT232 interface lines OFF default UARTSOO select UART61 select Table 4 UART selection SW4 S3 3 4 4 UART LIN mode SW4 S4 SWA switch 54 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 FT23
43. baseboard connectors switches andlE e 13 Figure 3 Connector CN6 USB Mini B Type Host Connector Pin CGonfguraton 16 Figure 4 78K0 Fx2 CAN it CPU module components c cccccccnccncccccnnccnncncnccnnnnononcnnnnonnncnnnnnnnnnnnnnonannnnnennnnns 21 Figure 5 78K0 Fx2 CAN it configuration for On Chip debuggingQ occcncccoocconcccnoncconccononncnnnnonanccononnnnns 24 Figure 6 Add New Hardware Wizard Windows 988SB ccooocccccccnnccccconcnccconconocononononanonnononennnnonnnononanennos 29 Figure 7 Search Method Windows 985 29 Figure 8 Search Location Specification Windows 98SB oncccccccconcconccoocconncononncnnnonanonnnononanennnononncnnnnnnnns 30 Figure 9 Checking Driver to Be Installed Windows O92E 30 Figure 10 Installation Completion Windows O8GE 31 Figure 11 Found New Hardware Wizard 1 Windows 2000 31 Figure 12 Search Method 1 Windows 20001 32 Figure 13 Driver File Location 1 Windows 20001 32 Figure 14 Address Specification 1 Windows 20001 33 Figure 15 Driver File Search 1 Windows 20001 33 Figure 16 USB Driver Installation Completion 1 Windows 20001 34 Figure 17 Found New Hardware Wizard 2 Windows 2000 34 Figure 18 Search Method 2 Windows 20001 35 Figure 19 Driver File Location 2 Windows 2000 35 Figure 20 Address Specification 2 Windows 20001 36 Figure 21 Driver File Search 2 Windows 2000 36 Figure 22 USB Driver Installation Comple
44. ck box is checked write data is sent from the programmer after execution of the Program command and EPV command then the data is verified against the data written to the flash memory Security flag after Program check box If this check box is checked automatic programming of the selected security flag is executed after execution of the Program and Autoprocedure EPV commands 54 78K0 Fx2 CAN it NIEC 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 2 Security flag settings The Security flag settings dialog box is used to specify which security function is valid Figure 49 Device Setup Window Security flag settings m Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Caution The following is the correspondence between the Erase and Program Commands when the security functions of a 78K0 FF2 microcontroller are valid 00 Chip Erase Command Block Erase Command Program Command Disable Chip Erase Valid ZEE Disable Block Erase Vaid Disable Program Disable Boot block Invalid Valid Note2 Valid Note2 cluster reprogramming No
45. connected to user hardware Timer input output signals Two or three wire serial I O 5 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 78K0 78K05S and the IAR C SPY debugger simulator are included These packages are restricted in such that maximum program code size is limited to 4 kByte of program code e Full documentation is included for the NEC 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 10 78K0 Fx2 CAN it NIEC 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 Embedd
46. current workspace Add existing project to current workspace pen existing workspace Example workspaces Recent workspaces Do not show this window at startup Cancel Ready eegend ed Cal Figure 70 IAR Embedded Workbench Now select the option Open exiting workspace from the File menu and locate the sample project Open the file 7860 CANit eww This is the workspace file that contains general information about the demonstration projects and settings 72 78K0 Fx2 CAN it NIEC 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 File Edit View Project Tools Window Help peunggas v As ee pe e ox 3 E 6 nager 2 ADC demo Debug KA Files main function Aa E E 78K0 CANit d Ha 006 demo Debug Sp Lo BEE EE E init c unsigned int tup result Ha B interruptc Ha E Icd c disable interrupt disable all interrupts La E Output vHardwareInit ff peripheral settings Ha B CAN demo Debug G REACT demo Debug S TIMER demo Debug B UART demo Debug vSoftwareInit ff variable Initialization LCD init LCD Initialization LCD inst 0x01 ff clear display amp amp amp amp LCD write CGR
47. d a diver for thie device To install the diver Windows found click Nest 3 e program Files smeckools32 Tod 3 Sdmeers fidibus inf 33 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 click Net gt Back Cancel NEC 34 78K0 Fx2 CAN it NEC 8 The window below is displayed So check that Search for a suitable driver is selected then click Next Figure 18 Search Method 2 Windows 2000 Found Mew Hardware Wizard Install Hardware Device Drivers A device driver ig a software program that enables a hardware device to work with ey an operating system This wizard will complete the installation For this device USE Serial Port Check that Search for a suitable driver is selected device driver iz a software program that makes a hardware device wo
48. do a oc NISAW Q0 660 dSIG 4 NIT ndo m vr omnis TASTY 681 351 Cd ONTA 91 Tad d S Id T vd ndo m I TONI ndo 4 0 HG d S Td 0 vd 6 NId dd IL ZI 4 GONE NI 6 or HAUSER ZX 0 7TAaTq E 3 M Y 185716 4 TONITE ndo i i 5 7 99d INIA Ndd n 9 GDNId ndo HES o DDAA ER Setz 1 c 8 INO 5 n L os os d E E 8 5 y Z z 6 000 O SODA E E 55 eee SI Oo SS OS ooo J gt 8 8 8 8 8 8 8 8 8 8 8 8 8 8 0 8 168 6 82 FEF 8 8 8 8 CREE RFE EC EC 2 EERE gzz2zzzgpzzzzzzzzzzzzEz BEBEBBEEBBEEBEBBBEBERBEBRE Sursnot opeujsurdo if 01 6 sje esa jejejejejeje se s e B w u n v 8 1 E 0 2 9 ed pe EN E e E gt p a udo L E p WN LUNId nido TUNA fido 0 0 9 9 d Y 9 5 5 4 5 5 cozzo a ber 5 B Nar 4 EDNITA A 1 55 KEE 2 2 0 3 y 4 t OS 5 du a Seg ay 7 10 NISTA 100 E SODA c I 5 5 E LNO 3 ER UNId dd B k PND MINI COOLL 16d QGAH nono is T emm t osd ddA 6l SDNId TION Y T em nao e Isd SSAH SI SUNId TON T O SOOA 0 ZSd SSA uiu peop uidop TEN ndo w LUNId dD T nay E Sd 9999 91 DNIT TON Y Gt Or JopeoH NX V Sutdoy mm ndo oF Td LNT oed IK Teld SONA NIN LE oe Na ndo n OSOL OSIL LId ATOKA 4 PONIAN Y sE 9 Wana ndo OIMOS MOS T GPNId nao SdLNI IHOL 91d Od IH m TDN naa dS TE INI MID OTOS IS
49. e ADC DEMO HES Date 2005 10 13 14 07 11 Chksum E354h Area QOO000h 000760h COM4 175200 Chip 12 00 Multiple 1 00 The display is updated Port Speed Hange Freq NEC 65 78K0 Fx2 CAN it NIEC 7 Autoprocedure EPV command execution Select Device 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 PD78F08993 device Figure 64 After EPV Execution BCE File Device View Help XN 6 4 lt lt Autobirocedurelt pr Flash Blank Checking Name sKIp erase Firm Version Flash Programming Start E t Ende TF ATCh Flash Frogramming 10x 1 h Flash Programming gt Flash Programming 30 Flash Programming 3055 ITE Mis Ge dur Flash Programming 505 finish is displayed Palin 2 49 01 Flash Programming BU Se y 020 Flash Programming gt x ui ba Flash Programming 80 Load file E rmina gt Mame ADC DEM HEX Date 2005 10 13 14 07 11 a Chksum E354h Area h Connection to device Port 4 Speed 115200 Range Chip Freg 12 00 Multiply 1 00 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 9 Execute ADC D
50. earch Location Specification Windows 98SE Add Hew Hardware Wizard Windows yali search for nies divers mits drer database on your hard dense and in any of the following selected locatione Click Next to start the search Eloppg disk driver CD ROM dive Microsoft Windows Update lt 1 gt Check Specify a location only kg c VProqiean Files WHE CT cols 32s FPL 3 MRI n 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 folde DRIVER 4 The window below is displayed Click Next gt Figure 9 Checking Driver to Be Installed Windows 98SE Add New Handware Wizard Windows dree ble sesch for lhe device USB High Speed Senal Converter Windows rz nom nady lo instal Ihe best diver foi thes device Click Back to select a diflerent diver or cick Mes Lo continue Location of diver Click IA 30 78K0 Fx2 CAN it NIEC 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 ha
51. eck box only then click Next Figure 13 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Filez Where do vou want Windows to search hor driver files ey Search for driver files For the following hardware device oy USB Serial The wizard searches for suitable drivers in its driver database on pour computer and in any of the following optional search locations that you specify om To start the search click Mest IF you are searching on a floppy disk or CO AOM drive location only is checked Insert the floppy disk or CD before clicking Next ed hed Check that Specify a Optional search locations Floppy disk drives Click CO ROM drives lt Specify a location Microsoft Windows Update Back we Cancel 32 78K0 Fx2 CAN it NIEC 4 Enter C Program FilesNECTools32FPL3 DRIVER in the address bar then click OK Figure 14 Address Specification 1 Windows 2000 Found New Hardware Wizard DE x Insert the manufacturer s mstallation disk into the drive selected and then click DE 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 direer files for your hardware device Windows foun
52. ed 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 78KO Fx2 CAN itl Note Updates of the IAR Embedded Workbench for 78K FP3 FLASH programming software documentation and or utilities for 78KO 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 registered trademarks of their respective owners 11 78K0 Fx2 CAN it NIEC 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 0 4 y m eoo BR d g c 8 SSe E we ww KE E pup 275 B 5 CR HI e e o desc MN E X al eee Q 5 G A o SHEHE AAA o5 H Wm O o lt Y a DW
53. electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation eguipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety eguipment and medical eguipment 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 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 compliance with the EMC protection requirements this equipm
54. eng ndo er OHOL Sid Z LLX 4 a mm n ES TESINIA ndo 0 T IS OS ADKINS AR VI t SXTOXH GLX vld TORT E m E st m Seen Dij ajia Supe yaa T WN nd n 09qXL ld a Jasi m OUNId DON T a sz eg ndo ES OTOS cId amp Ord TONIC DON 00Na ndo sz oc DN ndo ES T9qxs OTIS 4 Ind 8 MIO Y e T nao S I9dXL OIXOS 4 5 todi DNIT AIN z zz SINIT ndo ve GE S 9 NIE NED 61 oz oman Zed LAOA INIA NAO os 0 g SIM na LI at rv DD T d VIOO T Gonna Ve 95d E Std WNIT AD ndo 3 m 91 T na eS Led 9vd n nd2N T Er vt rA em 47 65 THHAV Q Lyd z NIE NIN Y estu a T SSAV IA TX OdINI OcId T q20 DIA z y ndo 09 SS a A 0 07 T IN Dd INV PONIA ndo 6 OL SINT Nd 0 94 T AUN nadi TINV SON Nd e 8 ndo 09UXTL 1 OINV GDNW ndo 9 U0TID9T9S 0M8L m OH ndo T9OAXY i 2 TINI Td LOOS 3210 UOISISA EI TNO 3 B gle Ce um BOB d ay nss 5 7 5 MPO UA ROO qo O 2 gt gt 5 gt M b m m D js 3 gt e e e e i gt gt gt gt 233332 8 28 O SODA t2 0 9 00 OQ ta U I9 O O d a a a e a al a elel al alal e aja 32 els DIA la la lo la lla pp ap la ja JQ 3 8 8 AA 5 5 RBRERRERERRERERR RRR e
55. ent has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 0005 10 Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste NEC Electronics Europe GmbH offers to take back the equipment NI All you need to do is register at www eu necel com weee 78K0 Fx2 CAN it NEC Revision History Revision Chapter Description 16 12 2005 First release 21 06 2006 i Correction of CAN connector CN8 78K0 Fx2 CAN it NEC Table of Contents To ci cos 10 1 1 Main features of 78K0 Fx2 CAN IL eos eoru Eb deeg penu MER nuna VEG Su ES Yao Few E ee 10 12 System A 11 1 3 Package E 11 WA Trademarks EE 11 2 78K0 Fx2 CAN it system configuration 1 eeeesceeesieeen RRE nenne nnn n annu nnns 12 24 ZBK U EX2 CAN eo cii Ic E MIRI D MM I EI Ei NE 12 2 2 id 12 2 3 Power supply via USB 12 3 78K0 Fx2 CAN it baseboard components wmsmmzmamzamzunznnunaunua nennen nnn nnn nnn nnns 13 39 1 RESET b tton SW T iiic cu ite eoo aee irt sere us poised deer eas ewes died wearer 14 9 it e ed ARE 14 3 3 5 WO os 14 34 Configuration switeh
56. equency MHz Speed 115200 Multiply rate Operation Mode o Chip Start C Block SCH Supply oscillator Area Show Addres Target Reset Message OF Cancel This window shows all basic options that can be set in accordance with the user environment and target device button Clicking the button saves the settings on the Standard and Advance menus and closes the window button Clicking the button closes the window without saving the settings on the Standard and Advance menus 50 78K0 Fx2 CAN it NIEC 1 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 lf 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 Head Figure 42 Parameter File Selection Window Open sl Look in PRM sl amp er ES File name am Files of type PRM Files PAM Cancel PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open 2 51 78K0 Fx2 CAN it NIEC 2 Host connection 3 Host connection is used to select a channel for com
57. er 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 3 Debugger button In the next step the TK 78 Emulator has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration as show in the figure below and start the download by pressing the OK button D IAR Embedded Workbench IDE NS ell x File Edit View Project Tools Window Help wigii Te y AA AZ 9 Jadc demo Debug El Files o 780 main function ET wa 78 Hardware Setup for 78K0 78F0893 Time Unit Cancel EE SIS ADC_demo Debug Cv C Ha B ede meinc B init c interrupt c a Icd c P r Main Clock Sub Clack La Output Clock Board Clock Board BD CAN demo Debug v C External Extemal S REACT_ demo Debug v System C System Ha B TIMER demo Debug v Tz wae Ju Ha BJUART demo Debug v m Default Internal ROM Overview ADC demo CAN demo R
58. ero elas Oo teat ato ies cu ia ied du Sa ala 60 2 Instalan e a 00 3 Installing the parameter 60 4 C nnecing 5 ishas 61 5 Setting the programming environment w memwemamamumuna nunu nennen nnne nnne nnn nnne nnns n nnns nnns 62 6 Selecting a user 7 65 7 Autoprocedure EPV command execution nennen 66 B Terminating the genee 66 9 Execute ADC DEMO application ooa o EE 66 10 acu n 66 TL TROUBLESHOOTING Garra 67 12 IAR configuration for On Board debugging eceeereee eee nere nenne 69 12 1 Setup COM port for IAR C SPY debugger 1 leeeeeeeeeee eese EEN nnne nnn nnn nnn nnn 69 12 2 Configuration of USB serial COM port 1 1 eeeeeeeeeeeeeeeee eee eee nennen nennen nnn nnn nnn 69 13 IAR lee Musso 72 14 Sample Programs ona 77 78K0 Fx2 CAN it NEC 14 1 14 2 14 3 144 14 5 14 6 15 General Introduction nt is 77 E E E E E E E S EA 78 BA e SE 78 JET ll Te BEE 78 Timer e IA DE 79 WAR 79 USB interface cable Mini B type sinaloa 80 10 56 ii AA AA AA EE 81 78K0 Fx2 CAN it NEC List of Figures Figure 1 78KO Fx2 CAN it system configuration oocccccccocccnncccnoncnonononncnnnnononncnnnnonnnnnnnnonnncnnnnnnnnennnnnnnns 12 Figure 2 78K0 Fx2 CAN it
59. et information about the electrical specification of the available I O ports before you connect any external signal to the 78KO Fx2 CAN it board 13 78K0 Fx2 CAN it NIEC 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 V to external interrupt input INTP1 of the microcontroller This is equal to port P30 of the 78KO FF2 device The port may be programmed to generate interrupt INTP1 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 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 UART O select LIN bus disabled Table 1 Configuration switch SWA factory settings 3 4 1 Operation mode selection SW4 S1 SWA switch S1 controls the operation mode of the 78K0 Fx2 CAN it board Setting S
60. h 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 Debug J ine settings B source A xd CAN Demonstration Reaction Time Measurement Timer Demonstration L UART Demonstration al 78K0_CANit eww workspace file IAR Embedded Workbench 78K0 78K0S Table 21 Example directory structure The main directory contains only the project files for the IAR Systems Embedded Workbench 78K0 78KOS 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 78KO 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 programmable file i e the Intel HEX file for programming the 78KO 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
61. idoz TRINTT ndo o 6l met ido oc et GENId ndo OPNId ndo oc WI VONIA ndo oz et Tea Dido E 5 Bip DNI Na 8 D Y_ SON ndo ER GENI AIN ndo m TE AGN GUNId ndo ER DNI MT 0 A GDNid nao 91 SI ADN T 05 do 91 Si GON naa GON ndo 91 ct 3 6 ndo 91 SI DNId Adam T GONIT ndo UTR liac CA Ajquessy T Wd ndo m El TEDNId AI d APSINI ndo m T GONA ndo D TEONId NIN f PONTE ndo m 5 ICT MT T a ae seess T nds zu TI AGNI na zi u DON TONI ndo a m dd NIDN T UNI nay a TI TN e oeds T ODN ndo oi 6 SINIT T T ol 6 TON Odo oi 6 GORE AIN Y AODNI nd oi 6 TON T e 6 H ndo L TINI DON OPNA ndo 8 i TIN ndo L ONT NIN ndo 8 1 TINA 1 T nds 9 c WANI MT T ndo 9 DESS T GON ndo 9 Td ndo 9 SN AIN Y E O SOOA og Tido T t INGA eem ndo E TAN TONA ndo i TON NIN Y mm ndo E ON 242v 1 Vo Y o V e v I JepeaH NXW SUIdoy TINTA dD z 1 TONE dD PINT Nd z 1 TaD ZONA ndo t 1 TONI Td TINA nao z I Wala TD E m 0 d 8NO 1opeou uidoy WA nd m ae wu 1 SN END MS 1 MS OdLNI WS DaD se 9 G 5 7 pad l 4 ndo E ye CO Gd naw D and YA LNT panolddy pax9ayy peuBiseg zadi cd eeneg 2 TAHT 4 NId ndo 1 sc AID Lad dSIG vd NT Crs 980 dSIG 43 WNIT na ez IX doo Sad 1510 Syd en a THOSE do yaad dSIG ppd ONI n
62. iometer arm is connected to port P80 of 78KO FF2 device This is equal to the ANIO analogue input 3 11 AD converter reference voltage input A 1 2 reference voltage is supplied to the ANI1 analogue input equal to port P81 of 78KO FF2 device 18 78K0 Fx2 CAN it NIEC 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 78KO FF2 device The temperature sensor has a resistor range of R 1950 e and R a 1990 e at 25 degrees centigrade with l p 1mA The distribution of the temperature factor k is shown in the table below Ta kr ds max SE 0 530 40 0581 30 0 625 0 635 20 0 554 10 0 758 0 0 815 0 821 10 0 886 0 890 20 0 961 0 962 25 1 0 30 190 40 1119 1123 1 126 50 1 204 1 209 1 215 60 1 308 70 1405 80 1 506 2 ren 100 1720 ma 1 833 120 1 923 1 951 130 2 072 140 2 128 2 163 150 2 235 2 274 1 Normalising point Table 11 Distribution of temperature factor kr The sensor resistance can be calculated as following R gt DH e T I 1 mA Example K s 2000 Q Epp LL p gp TAS 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 o 4 4 a C 2xPp with a27
63. isplay LED s and with several connectors in order to be connected to host computers FLASH programmer LIN and High Speed CAN busses fT 0 Version 2 00 2
64. lock 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 bex Option setting Blank check before Erase 1 2 3 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 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 Installing the parameter file The parameter file for the 78KO FF2 device is installed automatically during installation of FPL3 GUI folder 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 60 78K0 Fx2 CAN it NIEC 4 Connecting and starting 1 Set the 78K0 Fx2 CAN it board to the FLASH programming mode by switching SW4 S1 to ON CN3 e O at THI
65. me execution of application programs up to 4 kBytes of program code for the 78KO FF2 microcontroller The board is prepared to be connected to user hardware parts such as digital 1 0 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 implementation of human machine interfaces comfortable input output functions output of measurement values output of status information etc e FPL3 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
66. munication between the 8K0 Fx2 CAN it board and host machine Figure 43 Device Setup Window Host connection Host connection Part speed 195200 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 users manual of the device used Supply oscillator Supply oscillator is used to select a clock that determines programming data transfer and a transfer rate Figure 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
67. ndow Host CONNECtION occcccocccnncccnoncconccononcnonononancnnnononancnnnonnnanrnnnnnnnanenanonnos 52 Figure 44 Device Setup Window Supply Oscillator Selection ccoooccnccccnnnncccononccconcnnoconnnnconanenoss 52 Figure 45 Device Setup Window Operation Mode nennen nnns 53 Figure 46 Device Setup Window Target Reset Message cccccooccccccccocccnnccononcnonononancnnnonnonncnnnnonanncnnenonnns 53 Figure 47 Device Setup Window Achyance nennen nennen nennen hann rss n nnns nnns 54 Figure 48 Device Setup Window Command options nennen nnns 54 Figure 49 Device Setup Window Security flag settings oooccccccoconnconccononnnnncnonancnnnononancnnnnnnnancnnnonnos 55 Figure 50 Device Setup Window Disable Chip Erase ccoooccnccccncccccconcncononcnnoconnnnnonanonnononcnnononnnononaneness 56 Figure 51 Device Setup Window Disable Boot Cluster Reprogramming warning 56 Figure G2 MICW dE H 57 PIQUE ICID WIC Weare AA 58 FIGURE 542 ADOUL EI DS sitas 58 Figure 55 Programmer Parameter WIN Wi Ai 59 Figure 56 GUI Software Startup 5066 WI aa 62 Figure 57 Standard Device Setup Dialog BOX occcccccococcnnccccnoccnncnononcnnnononnncnnnononancnnnononancnnnnnonanennnnnnns 62 78K0 Fx2 CAN it Figure 58 Parameter File Gelechon nanma nennen nnns hann nns nna saris nnns 63 POS SUA si
68. nnss 14 Table 2 Operation mode selection SW4 S1 eene n anna nsn 14 Table 3 OCD mode Selection 14 Table 4 UART Selection S VIS EE 15 Table 5 UART 7 EIN selection SW4 S4 2 15 Bee eM ES 15 Table 7 Pin Configuration of USB Connector CN 16 Table e 4 EE E Rene EE 17 Table 9 SW4 configuration when using PG EPA nennen nnne nnne nnne nnne nnn nnns 17 Fable 102 DISDIAY CONNECTIONS reve c aut 18 Table 11 Distribution of temperature factor kK 2 ccececeeceeeeeeeeeceecceeeeeeeseeeeeeeeeeeeeeeeeneeeececeeseseeeeeeereeeeeees 19 Table 12 RR DISDA 0 ii 20 Table 13 CN3 CN4 CN5 and CN6 connection to OROEFE 22 Fable TA 22 Table 15 OCD 8 23 Table 16 SW4 configuration for OCD via QB 78KOMINI nnns 23 Table 17 SWA configuration for OCD via On Board debug function ooccccccncccccccnnnccnnnnconenanononononononanos 24 Table 18 SW4 configuration for OCD via QB 78K0MINI 2 eese nennen 25 Table 19 78KO FF2 memory 26 Table 20 78K0 Fx2 CAN it CD ROM directory siruchure 4444 27 Table 21 Example directory SIE DICTI EE 77 78K0 Fx2 CAN it NEC 1 Introduction 78K0 Fx2 CAN it is a demonstration kit for the NEC s F Line 78K0 Fx2 microcontroller family It supports On Board debugging FLASH programming and real ti
69. o x T 63 Figure 60 Standard Device Setup Dialog Box after Setting oooonnccnccccooncnnnccnonncnnnononanonnnnonanncnnnoos 64 Figure 61 Advance Device Setup Dialog Box 64 Figure 62 Completion of 65 ile MI 60 Alter 65 Figure 64 After EPV 00 66 Figure 65 Registry entry for IAR C SPY debugger COM port settng 69 Figure 66 Configuration of COM port for IAR C SPY debugger 1 4 ooocccccccocccnccccnoccnncconnnncnncnonanncononnnnns 69 Figure 67 Configuration of COM port for IAR C SPY debugger 214 70 Figure 68 Configuration of COM port for IAR C SPY debugger 2343 70 Figure 69 Configuration of COM port for IAR C SPY debugger 4 4 oocccccccocccnccccooccnncccnoancononononncnnnnonnns 71 Figure 70 IAR Embedded Workbench ke 72 Figure 7 JAR project WorkSpace TT cc 73 Figure 72 IAR depugger lee EE 73 Figure 7 SIAR 74 Figure 74 TK 78 hardware setup menu 74 Figure 75 IAR project EE 75 Figure 76 td debugger 02 76 Figure 77 USB interface cable Mini B PE ni Ia 80 Figure 78 78K0 Fx2 CAN it baseboard schemaice 81 Figure 79 78KO Fx2 CAN it CPU module schematce nnns 82 List of Tables Table 1 Configuration switch SWA factory SettiNgQS cocoonccnnccononccnncnononnconononanccnnnnnnnncnnnononancnnnnnnnnnnn
70. ogramming check box If this check box is checked the boot area is set with the boot block set in the Boot block Cluster setting as the last block At this time the warning message shown below is displayed Figure 51 Device Setup Window Disable Boot Cluster Reprogramming warning AN When Boot black cluster reprogramming is disabled boot black cannot be erased and programmed any more c Caution Be aware that if the security flag is set in the target device the boot area cannot be rewritten to the device afterward 56 78K0 Fx2 CAN it NIEC 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 Ibar E v Too YA 1 NE P ES w Status Bar gt gt FlashUpennina Flash Open UK 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 57 78K0 Fx2 CAN it NIEC 9 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 53 Help Menu File Device View Help S About FPL3 f N lt lt FlashUpenning Flash Open OK 1 About FPL3 command The About FPL3 command opens the program entry
71. olbar Programmer parameter window Displays programming parameter displayed to the right of the action log settings window otatus 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 Autoprocedure EPV button 46 78K0 Fx2 CAN it NIEC 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 pm lt lt FlashO 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 Cancel Sec Hex files recs hex 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
72. r product operation and application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC Electronics no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home
73. ramming 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 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 Menu bar E File Device view Help Device View INN PAPAS gt gt We Ol x Mame Firm Version ExtCode Programmer Vendar parameter window Action log window Format Version Processor Yer Toolbar Connection to device Port Speed Range Status bar Fre Multiply Ready Im 45 78K0 Fx2 CAN it NIEC 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 to
74. rdware device requires Cancel 8 5 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 Mew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps vou install a device driver for a hardware device To continue click Net Cancel 31 78K0 Fx2 CAN it NIEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next Figure 12 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers WK A device driver is a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device Check that Search for a USB lt gt Serial suitable driver is selected A device driver ls a software program that makes a hardware device work Windows needs driver Files for your new device Ta locate driver files and complete the Installation click M ext What do vau want the wizard to do Ce Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can choose a spe driver Back we Cancel 3 Check the Specify a location ch
75. rites Help EHC NEC Tools DI MECDEV C lab Default value nat set m dE ES EE lab Port COM3 My Computer HKEY LOCAL MACHINETSOFTWAREINEC Tools NECDEVI7GKO Ex 4 Figure 65 Registry entry for IAR C SPY debugger COM port setting As default the serial port COMG is set in the script file If the 78K0 Fx2 CAN it board is used on a different USB serial COM port please edit the script file accordingly To do so open the script file with your preferred editor i e NOTEPAD and make changes as described in the file Then run the script file 12 2 Configuration of USB serial COM port To optimize the communication between the IAR C SPY debugger and the 78K0 Fx2 CAN it board the USB serial COM port must be configured To do so open the Device Manager which can be found in properties of My Computer Then locate the USB serial COM port and select Properties as show in figure below pri WD CD ROM drives SE Display adapters 3 5 Floppy disk controllers Ge Floppy disk drives Ha Human InterFace Devices 8 59 IDE ATAJATAPI controllers H Keyboards Es Mice and other pointing devices Fp Midas lab Drivers o RI Monitors Ed NECPCIF e B Network adapters Lei 24 Other devices B 4 Ports COM amp LPT A F Communications Port COM1 e A Communications Pork COM l D Drinkar E ri Locate the USB Serial Port COM and select properties ble
76. rk Windows eeds diver files for your new device To locate driver files and complete the nstallation click Next What do you want the wizard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device sa that can choose a sp driver Cancel 9 Check the Specify a location check box only then click Next Figure 19 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Files WK Where da vou want Windows to search for driver Files Search for driver files for the following hardware device USE Serial Port The wizard searches for suitable drivers in its driver database on pour computer and in any of the following optional search locations that you specify Check that Specify a pecify To start the search click Mest f vau are searching on a floppy disk or CO AOM drive Insert the floppy disk or CO betore clicking Hest location only is checked Optional search locations Floppy disk drives CD ROM drives Jh Specify a location Microsoft Windows Update Cancel 78K0 Fx2 CAN it NIEC 10 Enter C Program Files NECTools32WPL3 DRIVER in the address bar then click OK Figure 20 Address Specification 2 Windows 2000 Found New Hardware Wizard Insert the manufacturer z retalabom dik into the dive selected and then click OK Remark If the installation des
77. s check box is not checked numbers are displayed Target Reset Message By checking the Target Reset Message check box the window promoting the reset operation manually is displayed even when the reset signal cannot be connected to the target cable Figure 46 Device Setup Window Target Reset Message Target Reset Message 53 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 Es Device Setup E P X 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 1 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 verify after Program Security flag after Program Checksum after Program Blank check before Erase check box If this check box is checked blank check is made before the Erase command or EPV command is executed If the result of a blank check indicates OK erase processing is not executed Read verify after Program check box If this che
78. se command FER The Erase command erases the flash memory of the target device connected to the FPL3 While the flash memory is being erased the progress status is displayed in the action log window to indicate programmer operation The execution on the Blank Check command before the Erase command is executed follows the setting of Command options of the Advance tab displayed by selecting Device gt Setup Upon completion of Erase command execution the GUI software displays the result of executing the command on the target device 48 78K0 Fx2 CAN it NIEC 3 Program command 4 Veri The Program command sends a specified user program to the target device and writes the program to the flash memory The execution of Verify operation for detecting an error in user program communication from the 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
79. t 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 I od Standard Advance Parameter File 78F0893 prm FAM File Head Supply oscillator Frequency 20 00 MHz Multiply rate 1 00 Host connection Part coma speed us 2 Operation Mode C Block aa Dres 7 Area Show Addres Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation 63 78K0 Fx2 CAN it NIEC b 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 Standard Device Setup Dialog Box after Setting LT x Standard Advance Parameter file 78F0893 prm PAM File Read Host connection Supply oscillator Frequency Port coma Speed i5200 v Operation Mode Chip Start oon C Block End 127 7 Area Show Adare Multiply rate 11 00 lt 6 gt Switch to the Advance dialog box Figure 61 lt Advance Device Setup gt Dialog Box F Device Setup 0n Standard Advance Command options Read verify after Program Security flag after Program
80. tes 1 Since the Erase command is invalid the data that differs from the data already written in the flash memory cannot be written Notes 2 Valid only for the area other than the area specified as the boot area 55 78K0 Fx2 CAN it NIEC 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 ce 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 repr
81. tination folder is changed at the time of GUI software installation enter new folde 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 diwer hes for your hardware device Lem AA TT TT TT TT TT TE AA TT TI The wizard found a driver For the following device LIS B Serial Port Windows found a diver For this device To retal the diver Windows found click Next 3 c program Flessnectools 32s pie ipo 36 78K0 Fx2 CAN it NIEC 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 LY USE Senal Port Windows has finished installing the software for this device To close this wizard click Finish 8 5 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 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 Ce If your hardware came with an installation CD WES or flopp
82. tion 2 Windows 20001 37 Figure 23 Found New Hardware Wizard 1 Windows Sb 37 Figure 24 Search Location Specification 3 Windows XP sees nennen 38 Figure 25 Windows XP Logo Testing 3 Windows Ab 38 Figure 26 USB Driver Installation Completion 1 Windows SP 39 Figure 27 Found New Hardware Wizard 2 Windows Sb 39 Figure 28 Search Location Specification 2 Windows XP oonnccccccncnccccccnccconcnnnoncnnnononnnnonononononnnnnnnnncnnos 40 Figure 29 Windows XP Logo Testing 2 Windows Ab 40 Figure 30 USB Serial Port2 Driver Installation Completion Windows An 41 Figure 31 Device e 42 Figure 32 Diver ninstallallol 43 Figure 33 Driver 6 000 43 Figure 34 Completion of Driver Ulnmnstallaton nnne nnns 44 Figure 35 GUI Software Main WINO iioii in coetu ted aliada 45 SOMENI 10 nec 46 Foure 375 MENG MENU X 47 Figure 38 HEX File Selection WINdOW kii aki niaaa nennen nnn nnn nnn nnn ann nnn nnns 47 Foure Device Mella ainia io tirita 48 Figure 40 Device Setup Window Standard sessi nn nnns annis 50 Figure 41 Device Setup Window Parameter File Selection sese 51 Figure 42 Parameter File Selection WiNdOW ccooooccnccccccooncnnccononncnnnnononnnnnononancnnnononnnnnnnnonannnnnnnrnananennnnas 51 Figure 43 Device Setup Wi
83. tionally 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 MEE 78KO Fx2 CAN it F CD ROM ROOT 7 Acrobat Acrobat Reader tor 32Bit Windows OS Device Files Device Files for 78K0 Fx2 CAN it C DDE Device Description Files and SFR Description Files for IAR C SPY L NEC Device Files for IAR C SPY C Doc Documentation Srs L FPL3 Be C3 AR Embedded Workbench 78K0 L SamplePrograms Sample programs for 78K0 Fx2 CAN it Table 20 78K0 Fx2 CAN it CD ROM directory structure 27 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 ARH Systems Embedded Workbench for 78K0 78KO08 including C compiler assembler linker librarian and IAR C SPY debugger
84. u install software Far LISB Serial Port d j 9 If your hardware came with an installation CD lt nr floppy disk insert it now What da you want the wizard to do Check that Install from a list or specific is selected CO Install the software automatically Recommended 5 Install from a list or specific location Advanced Click Next to continue Cancel 39 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 CAProgram FilesNECTools32FPL3 DRIVER then click Next Figure 28 Search Location Specification 2 Windows XP Found Mew Hardware Wizard Please choose pour seach and installation oplion pum 1 Check that Search for the best e driver in these locations is selected Co Seach loc Ihe best dime im these bogue Use the check boxes bakya to Ties oc the dalari which neludes local pah and removable mada The best diva found rll be installed Search removable media oop CDESCHG lt 2 gt Check Include this location in Ee Include this locaton in the search the search only C3 Donat search all choose the dires bo install Cnoasze this cpllan te select the device dever bom a Et Windows does nel oustartee Ihal he divar vou choose vell ba the best maich for pour hadaa as Jp one 3 Enter C Program Files
85. ure offset via button SW2 and SW3 Character LC display A D converter Temperature sensor KTY13 5 UART60 Button SW2 Button Sw LED s D1 4 Please note by using the On Board debug mode serial communication via UART60O is not possible because the USB UART communication channel is used for debugging purpose 79 78K0 Fx2 CAN it NIEC 15 USB interface cable Mini B type Series A Plug Series Mini B Plug Series A Plug Series Mini B Plug Figure 77 USB interface cable Mini B type 80 t 78K0 Fx2 CAN 16 Schematics lt S39IA9 0 19997 DAN uonnquisiq
86. us 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 the result of executing the command on the target device 8 Signature read command The Signature read command reads the signature information device name flash memory information and so forth of the target 49 78K0 Fx2 CAN it NIEC 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 Ft Device Setup a X Standard Advance Parameter file PAM File Head Hast connection Part Fr
87. y 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 5 Install from a list or specific location Advanced Click Next to continue Cancel 37 78K0 Fx2 CAN it NIEC 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 CAProgram FilesNECTools32FPL3 DRIVER in the address bar then click Next Figure 24 Search Location Specification 3 Windows XP Found Hew Hardware Wizard Please choose your search and mstallation options lt 1 gt Check that Search for the best driver in these locations is selected amp Search for he best driver in these locations Use lhe check boxes below bo imit or expand the default search which includes local paths and removable media The best daver Found yali be installed Search removable media opo CD ROM Include this location in the zg asch 2 Check Include this AProgram FilesNECTools3AFPL3WIRNER location in the search only C Don t search vill choose the drives lo install Choose this option Eo select the device dover from a list Windows does not guarantee that the diver you choose pall be the best match For your hardware 3 Enter C Program Files NEC Tools32 FP
Download Pdf Manuals
Related Search
Related Contents
Zlinx XTreme I/O - B&B Electronics Info mars 2009, vol. 17, no. 2 - Sainte A User's Manual for MetaPost User Manual, Cordless Telephone OfficeT, TD 92282GB Superterm Accelerator™ - Napco Security Technologies MODE D`EMPLOI GUIDES Copyright © All rights reserved.
Failed to retrieve file