Home

datasheet: pdf

image

Contents

1. 82 t V850ES Fx3 CAN 15 Schematics lt 9 e e I zapen sse 100 Z0 7Z0 0090 SSHH cal eoo Arten 91 SI 7 8 S IEN y e a o mm El e pda 5 5 5 5 ol et ps 7 5 3 E TE ebeg pIPoqoseg 23 23 CH g 3 x E TaN ZI I 3 F TMS 3 3 3 a 5 3 KR 3 3 z 5 e E S g e ZS H KR A S 2 00 2 YHA pIeog Se de S 2 E 7 Gs ano S os OSODA gt D 8 L 2 3T NWO 0X84 ig ons P D ofi S os i es ls 9 s eE re Zod A PID DAS GE Burmeip E z ISOTA e SE E E BE S o uja DSO Dz Ajquiess 5 z v ISO IDA BEE E eg lla pdd LASHA z 1 oun z S ege 908d S E O SOOA PND amp 3 Mr E e Al el u propumogpemmryexorpy apurado os O SIDA o o i TAND IGL Idk ser aer DESEN ol J D zr 40001 S NOUWO CH T N peaoiddy pay9ayy paubisag EMS 8 L oz DI S OO i 9 TON SWL E on ajeas Kee D om ar 8 7 5 5 S TM z A 20A OGL A Se E El El os p Ss 3 z a QQ c 1 fon apa S 2 2 2 os i z a 2 9 E e a S oun XOL SS g E D E g 5 OSO DDA E No 3 SG
2. sopor rre Ec sssssss oww A FOnNWWOOHNWOKWHN AHR CEZEGEASEGRZBRSGBAH AS L WE T sank gE 2 8 8828 B f 8 8 S 8 B ls KEE 1 alala FONVIZIN VONS S ai NYO J He D se Dp mal e HNWO P L RE e i el PE WER KI z 716d 8 su e ye DES gt sowo a Ss le e ogs A 00 g eZ DE 00 00 00 0 0 0 00 0 000 0 0 00 00 azl ez S sie mg 05 0 0 0 00 5055 arar SC 8 8 82 B R28 BS Nas 929 ebe Den Gong E pz L gzz ij V M T I tan r e AR Y MAA Cf ee UO AR ER F sL Dz 16d o SIE ch S al BL OL6d e a BL 9 YS S S EL bh 00 Al Mi Zi z HNVO 8j el Di ZOO D D B SOONL CL d DE 00 0000 00 DO w i 4 e Sall al 55 sH CH J v osan 38828828 58 8 z oaaxL CH ZNO SND 2 83 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it CPU module schematics Figure 72 V850ES Fx3 CAN it MEMO User s Manual U18560EE1VOUMOO NEC 84
3. Cancel User s Manual U18560EE1VOUMOO 38 V850ES Fx3 CAN it NEC 12 Click to complete the installation of the USB driver Figure 23 USB Driver Installation Completion 2 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard O USB Serial Port Windows has finished installing the software for this device To close this wizard click Finish Back rre Lance 8 5 3 Installation on Windows XP 1 When the V850ES Fx3 CAN it board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Check that Install from a list or specific is selected then click Next gt Figure 24 Found New Hardware Wizard 1 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USB lt gt Serial If your hardware came with an installation CD QES or floppy disk insert it now What do pon want the wizard to do Check that Install from a list or specific is selected Install the software automatically Recommended Pe Install from a list or specific location Advanced Click Next to continue Cancel Back User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 2 Check that Search for the best driver in these locat
4. User s Manual U18560EE1VOUMOO 26 V850ES Fx3 CAN it NEC 5 On Chip debugging The V850ES Fx3 CAN it board offers two possibilities to use On Chip debugging The TK V850 debug function of V850ES Fx3 CAN it allows On Chip debugging without a need of external debug hardware Within this mode the default USB UART connection to the Host computer is used as debug interface All standard debug functions are available in the On Board debugging mode like FLASH programming downloading code execution single stepping breakpoints memory manipulation etc Additionally V850ES Fx3 CAN it supports N Wire debugging by using the QB V850MINI EE On Chip debug emulator in order to use On Chip debug function of the V850ES FG3 device The system configuration for On Chip debugging is shown in the figure below TK V850 debugging via On Board debug function ez 4 ow i Y m RP D rs ET N Wire debugging via QB V850MINI EE On Chip debug emulator Figure 6 Configuration for On Chip debugging 5 1 OCD via TK V850 debugging To operate the V850ES Fx3 CAN it board within the On Board debug mode configure switch SW4 as following Table 19 SW4 configuration for TK V850 debugging User s Manual U18560EE1VOUMOO 27 V850ES Fx3 CAN it NEC 5 2 OCD via N Wire debugging To operate the V850ES Fx3 CAN it board together with the QB V850MINI EE On Chip debug emulator co
5. Quit to terminate the GUI software All settings executed so far are saved in the FPL INI file so that those settings can be reused when the GUI software is restarted 10 9 Execute ADC DEMO application Set the V850ES Fx3 CAN it board to the normal operation mode by switching SW4 S1 and SW4 S2 to OFF lt Plug and Play gt the V850ES Fx3 CAN it board to start in normal operation mode or press the reset button SW1 to release the normal operation mode 10 10 Restarting the GUI When the system is restarted the same screen as shown in Figure 59 appears User s Manual U18560EE1VOUMOO 66 V850ES Fx3 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 FPL 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 normal
6. User s Manual V850ES Fx3 CAN it Demonstration Kit for the V850ES Fx3 32 bit RISC microcontroller Document No U18560EE1VOUMOO Date Published January 2007 NEC Electronics Europe GmbH V850ES Fx3 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 ill
7. User s Manual U18560EE1VOUMOO 22 V850ES Fx3 CAN it NEC 4 V850ES Fx3 CAN it CPU module components The V850ES FG3 CPU module is equipped with 2 connectors CN7 and CN 8 in order to be connected to user defined hardware Additionally the V850ES FG3 CPU module contains about connector CN9 not assembled for N Wire debugging and connectors CN3 CN4 and CN6 for CAN communication purpose 4 1 V850ES Fx3 CAN it CPU module D70OF3377M2 FG3 Figure 4 V850ES Fx3 CAN it CPU module components User s Manual U18560EE1VOUMOO 23 V850ES Fx3 CAN it NEC 4 1 1 External connector CN7 and CNS CN7 and CN8 are connectors for external user hardware The following signals of the V850ES FG3 microcontroller are connected to CN7 and CNB CI A 7 PCMO 8 P76 ANI6 o Pem coor D PAN SSCS 11 PCM2 12 P74 ANI4 PCM3 P712 ANI12 P711 ANI11 P710 ANI10 P73 ANI3 P72 ANI2 P71 ANI1 P70 ANIO Na Gast Table 13 Connector CN7 P10 INTP9 P11 INTP10 P00 TIAA31 TOAA31 P01 TIAA30 TOAA30 P02 NMI TIAA40 TOAA4O P03 INTPO ADTRG TIAA41 TOAA41 P04 INTP1 CRXDO P32 ASCKDO TOAAO1 TIAAO0 TOAAOO P35 TIAA11 TOAA11 P50 KRO TIABO1 TOABO1 TOABOT1 P51 KR1 TIABO2 TOABO2 TOABOB1 P90 KR6 TXDD1 P91 KR7 RXDD1 P92 TIAB11 TOAB11 P93 TIAB12 TOAB12 P94 TIAB13 TOAB13 P95 TIAB10 TOAB10 P96 TIAA21 TOAA21 P97 SIB1 TIAA20 TOAA20 P98 SOB1 TIABO3 TOABO3 12
8. is done via the standard UART USB connection The monitor program is automatically downloaded to the starterkit in that case when the V850ES FG3 internal FLASH memory was erased by the user i e by using the FPL Therefore the user has not to take care about the monitor As communication interface the build in UARTDO of the V850ES FG3 device is used by the monitor Consequently it can not be used by the user program To set the V850ES Fx3 CAN it starterkit to the On Board debug mode configure SW4 as following User s Manual U18560EE1VOUMOO 69 V850ES Fx3 CAN it NEC 12 1 Monitor resources The debugging feature of the V850ES Fx3 CAN it starterkit has been realized by a monitor program that is running on the V850ES FG3 device Therefore the following resources are reserved by monitor and can not be used by a user program 12 1 1 UARTDO The UARTDO of the V850ES FG3 device is reserved for the monitor program and can not be used by a user program V850ES FG3 uPD70F3377 UARTDO UDORMK P30 TXDDO UDOSMK P31 RXDDO Additionally please note the following points Do not change the control registers of UARTDO Do not change or disable the interrupt control mask flags of UARTDO Do not change the port mode or port mode control registers for port bits P30 and P31 Debugging functions like forcible break debugger stop command do not operate normall
9. addresses are displayed If this check box is not checked numbers are displayed User s Manual U18560EE1VOUMOO 55 V850ES Fx3 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 Fal Device Setup a E x Standard Advance Command options Blank check before Erase Read verify after Program F Security lag after Program Checksum after Program Security flag settings Disable Chip Erase F Disable Block Erase F Disable Program Cancel lt 1 gt Command options This dialog box is used to specify the FPL flash processing command options Figure 48 Setup Window Command options Command options Blank check before Erase Read verify after Program Security flag after Program IT Checksum after Program Blank check before Erase check box If this check box is checked blank check is made before the Erase command or EPV command is executed If the result of a blank check indicates OK erase processing is not executed Read verify after Program check box If this check box is checked write data is sent from the programmer after execution of the Program command and EPV command then the data is verified against the data written to the flash memory Security flag after Program check box Not usable C
10. da DEZ prm File name FOF 3377 Files of type PRM Files PRM Cancel Zs lt 4 gt From the Port list box select the communication port that matches the host machine being used Select the communication speed of the Host connection Figure 56 Port Selection LT x Standard Adeance Farameter file EZ pm PAM File Read Host connection Fort come Supply oscillator Frequency 6 00 MHz Multiply rate 8 00 Operation Mode Block aa E O Area Show de Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation User s Manual U18560EE1VOUMOO 63 V850ES Fx3 CAN it NEC lt 5 gt Set Supply oscillator according to the specifications of the V850ES Fx3 CAN it board Frequency 4 00 MHz and Multiply rate 8 00 In Operation Mode please specify the Chip mode The following figure shows the recommended settings Figure 57 lt Standard Device Setup gt Dialog Box after Setting LT x Standard Advance Farameter file EZ pm PAM File Read Host connection Supply oscillator Fort come Frequency 4 00 MHz Speed 38400 Multiply rate D Operation Mode Block alle O Area Show Addtes lt 6 gt Switch to the Advance dialog box Figure 58 lt Advance Device Setup gt Dialog Box x Standard dwance Command optio
11. 0 0000096 0A01 H LCD_write_CGRAM 0x04 bgpat4 0 OOO0096E FFS00232 J LCD write CGRAM 0x0 LCD te CGRAM 0x05 sbgpat5 0 Se e EE 00000972 2E200SE2 S _write_CGRAM O0x06 bgpat6 0 gt b nganana ANAN 1 Overview 4DC_demo CAt lt fo 4 e Thu Jan 11 11 23 25 2007 IAR C SPY Processor Descriptor for W850 3 305 Thu Jan 11 11 23 25 2007 IAR C SPY TK Driver for 850 3 304 Kickstart 16K Thu Jan 11 11 23 27 2007 4850 All Flash Executor E1 75a Copyright 2006 4850 Mgb2hg3_uartd0 mon E1 09a Copyright 2006 Device chipname uPD 0F3377 f3377 file version 1 00 Boardinfo 00018004 product id 0003 version B firmware version 00 00 Thu Jan 11 11 23 30 2007 Loaded debugee J td_v1 SVAStarterkits 850ESFX3 Can ithwork samplePrograms AD Converter Demonstration Debug Exe ADC_demo d85 Thee Law 11 11 99 99 9007 Te wen ek ve eech Debug Log Build x Ready Po Wwi 2 Figure 69 IAR C SPY debugger User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 13 Sample programs 13 1 General Introduction Each of the sample programs is located in a single directory which will be called main directory of the sample This main directory of each sample contains the complete project inclusive all output files of the development tool The workspace file V850ESFX3_CANit eww is located on top of the sample program directories All sample programs use the same directory structure CH AD Converter Demonst
12. 13333 panouddy papaya paubisag d BMN zez e o ce es 1 D L DL slalaslalalalrla sl2 3 8 8 818 Ble aisle HM WM HM HH VIVU 3 3 S 8 8 E 8 9 e 2 8 3 S 7 ZS o e a ABAABRAAAA o OO gt EELER 3338866585552 W B66 aC Se ROL EBS ss ss 222733 A EEES Ba LU A BrP ESE Teens DETTI ES 3 ooc BASSE E a lll 93 E eeu 973 way Lane lolo 2 eeng 08VOL E08WLL180S 864 SS penoiddy ASH LOISISA eeng O08VOL OOSVLL L8NOS 66d P Z Oe s Set Ee Got y m L16d LL d Zu 0840S Zed vz Ogos kel Zl6d ZL d LILON GOXL LYX 080S ttd ez 0808 kel rd INI 19d FOIN EL d LILON FLAIN LILON COON IN 08IS Ord zz ogis ke UN LILON FOX Dog SAN Fl d OOXLO EdIN 90d iz Leg E 8 6 LILON POOXL 0010S 9dIN SL6d 1SYO ZAIN S0d oz isya H 2 e Seng 0SOd DON Id LN vOd er sisng DEE 09sng 1SOd LPYVOL LPL DULOW Od LNT Ed er sisng DC OPYWOL Opel INN 20d Log DI sng 5 z9sng JO NOA Zx 5 1 x oad T uo E e9sng UN Ce z i 7 LL we S rosna Wod 1353 oh EH de 9 y 0013 Ed Ud e SVN e e LN E x Fa em a plod bLOd sa CC 8 i LD D 919d ee S a OL z 1530 a aL9d Leen eeng HOA 6 er ee EH LADA aana DO Is E ee DS 8 D ew MO CIE 010d O VVOL Eve LO z oana 100 aluoln on UO 110d LevvOL LEWWU 00d 5 as S R E Ech 5 Zad 00043 e K SC E 2 10d y Old LN bd E gt Li PY Pp v S a el Ie j KEN nad E SIA oon oe ae ees 6dIN Old EE lt OO No Had EI SS an gt Nal Yee 3 ES a 3 a 3 N gt 3 Seu z die Ach
13. 62 10 6 Selecting a USEF progra RE 65 10 7 Autoprocedure EPV command executiON ooonccocnccccccccccnnccnconoconanonnnaronnnaronnnnronanrrnannernannnnnnanos 66 10 8 Terminating the CUL cata EE 66 10 9 Execute ADC_DEMO application oocccocccccocncicocncicncococonoconnnnncnnnncnnnnonnnnnonnnnrennnnrrnnnnernnnnennnanos 66 10 10 Restarting the GU eege 66 Ti TROUBLESHOOTING EE 67 12 TIK V G00 GEDUG CIN iii 69 12 1 MONnItOF TeSQUECOS iia dia da dc dee 70 MM DATO a o el li io 70 E A Eege 70 1 E TEE 71 1214 MEMON AC E 71 1215 sClOCK OPS lion ro Lao 71 1221 6 SOUMER TAOS usaste ii cd tidad 71 122 TAR Sample BEE 72 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 13 Sample Programs cita 78 1351 General Introduction SE Ee 78 132 ADCGAOMO ui a a acido e das eds od a 79 13 3 CAN demo ee 79 134 Reaciime demo WEEN 79 130 CEET e OE ete eM E ed ee E E S 80 13560 WAR EE aT 80 14 USB interface cable Mini B type o cooncooncocncocccocccoccconccnnccnnrcnnccnncnnnrnnnronnrnnnrnnrnanenanenns 81 15 lt SCHNEMAUGS de e e to eu 82 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC List of Figures Figure 1 V850ES Fx3 CAN it system configuration cccccccccooccnnonnnccncnononccnnnnnonnnannnnnnnnnnnnnnnanennnnnnonnnans 14 Figure 2 V850ES Fx3 CAN it baseboard connectors switches and LEDen 15 Figure 3 Connector CN6 USB Mini B Type Host Connector Pin Contfoguraton 18 Figure
14. 8 OSODA EC Ol OZOTVEL 19490S NXV Sudoy mme jayoos dot ven OMS ki SE GC AX NIT gt ax ano IMS wm SETT 3 We MT a VYA EELER E lt ra er ob TMS sc 8H Or 5 SENO e e MLC GLI IVAN wl 9 rer SNIL a rg LIOT Ier T Le se SWL j T ee SLI TALA VW auteur Wea se e TAS ndo ee BE ES ls SLY IGL JSN D S aval l i a 2 ec TANDO a TINO Los DA g Tdf a VW use Tode X za Ig ze TAN oal sc DO TDA faf 1 axe uN 8 l Cz Se Es ol OTTO L SIV SIOT Fer Erem sa z TIAL ANN e Te 9 SOT 2 tIVtIO 1 r SLODMOL AST V Leper nouns Ta dr Trauer ida lz st EE td ata E 3 OO aa os Coco reen sz 9 GTM Ge g poem EE TAXL S Se a ET E Se SE See e SE E ZC TT A OSIDA TZ zz LNOSTA ADO vot ve PE KE oi aezoni ott os 6T oz NISTA A20 s Se Se ge Kee Kl oaxa Si a Di asa nao ve 9H OFT SOL TAN B j a m Te LT IOT Been ou OSO DDA gt E er vr TEX NAO KR ae AOL Da pus i T ec ra oan Hy er Se IN 001 gel EI 20 6 Di ere Wi E Asmar T L A Tr 9V IOT aL me 8 LEN Ta e Ge ER s 9 Rer Ge TI Jeu 3 SE SCH 5 poe E E R ck z SES Pesche a z cc ECHO vsom H See S i 0 o aja u a winj IND 69 5 ajajo e 20 7 E DI d0001 S NOYWO ROS DEEEEEEEEECEEERE DD GD DD D D I Loo e zs AARUN OO a A os O o I al EE TMS O SIDA os os os e A TXI ARIAS VZOTLHAN ISTIM a OSO DIA OSO DIA x OSODA ua e 30 ar E A eme E ISOTIDA os os OSOOA DEA F s E E SS EE 3 _ o S Gr 8 v S 19318 1 4sn surds
15. A kel TRRKVKNWKKKRNOKSRKKURI geg Ee o e I we CS a Be no f E User s Manual U18560EE1VOUMOO 58 V850ES Fx3 CAN it NEC 9 5 Programmer Parameter Window This window displays the settings of the programming parameters Figure 52 Programmer Parameter Window Device Name GPU Version Firm Wersion ExtGode Vendor Parameter file Mame Format Version Processor Ver Load tile Mame Date Chk zum rea Connection to device Saag eee Fz Device Updated after communication with the target device to display information about the target device Parameter file Updated after Setup command execution to display information about a read parameter file Load file Updated after Load command execution to select information about a selected program file Connection to device Updated after Setup command execution to display information about the connection with the target device User s Manual U18560EE1VOUMOO 59 V850ES Fx3 CAN it NEC 10 How to use FPL FLASH programming software This chapter explains the basic operation of the FPL GUI for programming the V850ES Fx3 CAN it board This chapter covers how to start the system execute the EPV command and program the V850ES FG3 target device The conditions of the series of operations described in this chapter are as follows Hardware configuration of V850ES Fx3 CAN it Base board V850ES Fx
16. General Options Select TK V850 C C compiler Setup Extra Options Plugins to use On Board Assembler Custom Build Driver debugging Build Actions reves GZ Linker Gl cure main Emulator IECUBE Setup macros MINICUBE N Wwire OCD E cally Check that device ROM Monitor E d otion fil SE escription file Tk 4850 107013377 ddf Device description file l Overde default is selected STOOLKIT_DIR CONFIGADDF io70F3377 det p o Figure 64 IAR debugger options 1 2 User s Manual U18560EE1VOUMOO 73 V850ES Fx3 CAN it NEC Before using the On Board debug function it is necessary to set the corresponding USB serial COM port of the host computer To set the COM port please select the category TK V850 and choose the corresponding serial port Options for node ODC demo l X Category Factory Settings General Options E C compiler Setup Assembler Custom Build Download Build Actions Suppress Linker Debugger Met Emulator IECUBE Use serial port Choose serial port MINICUBE N Wwire OCD come DOMMopntor Simulator Communication log Use communication log file SPROJ_DIR cspycomm log E Cancel Figure 65 IAR debugger options 2 2 Next the correct linker settings of the demo project will be checked This can be done in the Linker category as shown below Select the Config tab and check that the li
17. HEX file is displayed Yera E1 00b Processor Ver 0200 Name ADC DEMO HES Date 2007701710 15 20 29 Chksum 222Bh Area OOOO0UK 00 The display is updated Pot COME Speed 38400 Range Chip Freg 4 00 Multiply 8 00 User s Manual U18560EE1VOUMOO 65 V850ES Fx3 CAN it 10 7 Autoprocedure EPV command execution NEC Select Device gt Autoprocedure EPV from the menu bar When the Autoprocedure EPV command is executed Blank Check gt Erase gt Program and FLASH Internal Verify are executed sequentially for the uPD70F3377 device Figure 61 After EPV Execution File Device View Help S gt gt COMMAND AutoProcedurelE py Flash Blank Checking not blank then Erase a0 160 Programmirig gt Lart Flash Programming lt 1 0 Flash Programming AUS Flash Programming lt 30 Flash Programming lt 40 Flash Programming lt 50 Flash Programming lt 60 Flash Programming US Flash Programming lt 80 Flash F Ing 290 Piva i finish is displayed D x Dey DOF SST Name Firm Version 2 01 Evtl ole FO461 Eh Vendor 10h Parameter file Mame FOF SSF Format 0417 Version E1 00b Processor Wer 0200 Load file Name ADC DEMO HES Date 2007701710 15 20 29 Chksum 222Bh Area OOO000h 000027h Connection to device Part COMES Speed 38400 Range Chip Freg 4 00 Multiply 5 00 10 8 Terminating the GUI Select File gt
18. Initialization b React_demo Debug Y LCD_inst 0x01 clear display 6 Timer_demo Debug Y i QUART_demo Debug y LCD_write_CGRAM Ox00 bgpatO 0 write display character RAM LCD_write_CGRAM 0x01 bgpatl 0 LCD_write_CGRAM 0x02 bgpat2 0 LCD_write_CGRAM 0x03 bgpat3 0 LCD_write_CGRAM 0x04 6bgpat4 0 LCD_write_CGRAM 0x05 ebgpat5 0 LCD_write_CGRAM 0x06 ebgpat6 0 LCD_write_CGRAM 0x07 ebgpat 0 LCD_cursor 0x0 LCD_string text01 0 LCD_cursor 0x40 LCD_string text02 0 vilaitlOms 200 ff delay for 2s while 1 LCD_cursor 0x0 LCD_string text03 0 LCD_cursor 0x40 LCD_string text04 0 i D d Overview CAN_demo React_demo 14 GER RSR 200 2 e Ln 1 Col 1 Figure 63 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 V850ES Fx3 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 V850 in order to use the On Board debug function of the V850ES Fx3 CAN it board The device description file must be set to io70f8377 ddf according to the V850ES FG3 device Options for node ADC_demo 3 x Category Factory Settings
19. V850ES Fx3 CAN it board in order to debug application software or program the V850ES FG3 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 UARTDO respectively UARTD2 of the V850ES FG3 device are connected to CN6 Please configure switch SW4 accordingly to use this mode LO Figure 3 Connector CN6 USB Mini B Type Host Connector Pin Configuration AL NC 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 V850ES Fx3 CAN it board User s Manual U18560EE1VOUMOO 18 V850ES Fx3 CAN it NEC 3 7 Connector CN4 CN4 connector not assembled allows connecting the PG FP4 flash programmer to V850ES Fx3 CAN it board in order to program application software into the FLASH memory of the V850ES FG3 device Please note PG FP4 is a separate product from NEC and it is not included in this package M6 Nne Table 8 CN4 PG FP4 connector When using PG FP4 the programming interface to the V850ES FG3 device must be set to clock serial interface CSI Set configuration of switch SW4 of the V850ES Fx3 CAN it board to the following Table 9 SW4 configuration when using PG FP4 3 8 External Potentiometer R7 A 47K pote
20. device Check the specifications of the device used before making a setting If the target device does not have an on chip PLL circuit select 1 0 On the initial screen the default setting is displayed according to the parameter file User s Manual U18560EE1VOUMOO 94 V850ES Fx3 CAN it NEC lt 4 gt Operation Mode The setting of Operation Mode may divide the flash memory of some target devices into blocks or areas This menu is used to select an operation mode of the flash memory Some devices do not have the block and area division modes and some devices have only one of the modes In these cases a nonexisting mode is unchoosable Figure 46 Setup Window Operation Mode Operation Mode e Chip Start sl C Block End sl Ares Show Address 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
21. dialogues will guide you through the installation process 8 4 Sample program installation To install the sample programs for the V850ES Fx3 CAN it board select the SETUP program in the directory SamplePrograms of the CDROM The setup dialogues will guide you through the installation process User s Manual U18560EE1VOUMOO 30 V850ES Fx3 CAN it NEC 8 5 USB Driver Installation When the V850ES Fx3 CAN it board and FPL is used the driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 98SE Me Page 31 Installation on Windows 2000 Page 33 Installation on Windows XP Page 39 8 5 1 Installation on Windows 98SE Me 1 When the V850ES Fx3 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 7 Add New Hardware Wizard Windows 98SE Add New Hardware Wizard This wizard searches for new dirvers for USB lt gt Serial A device driver is a software program that makes a hardware device work Cancel 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 8 Search Method Windows 98SE Add New Hardware Wizard What do you want Windows to do Check that Search for suitable drive
22. emulator to use On Chip debug function of the V850ES FG3 device Please note the QB V850MINI EE is separate product from NEC and it is not included in this starterkit package Power supply via USB interface V850ES Fx3 CAN it is powered via USB interface no separate power supply is needed Character LCD module V850ES Fx3 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 FPL FLASH programming software A windows based FLASH programming software allows to select and download application programs to the V850ES Fx3 CAN it board for evaluation purposes Analogue to digital signal conversion is supported Various input output signals available such as WO ports prepared to be connected to user hardware Timer input output signals Two or three wire serial I O UART interface via USB UART chip FT232 High Speed CAN bus interfaces 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 The IAR Embedded Workbench for V850 and the IAR C SPY debugger simulator are included This package is restricted in such that maximum program code size is limited to 16 kByte Full documentation is includ
23. not displayed or the mark x or CHAPTER 11 TROUBLESHOOTING is prefixed refer to User s Manual U18560EE1VOUMOO 44 V850ES Fx3 CAN it NEC 8 7 Driver Uninstallation The driver uninstallation program is installed on the host machine when the FPL software is installed Use the procedure below for driver uninstallation 1 When using Windows XP log on as the computer administrator When using Windows 2000 log on as the Administrator 2 Double click in the order from My Computer to C to Program Files to NEC Tools32 to FPL to DRIVER Ftdiunin exe is displayed Double click Ftdiunin exe Figure 33 Driver Uninstallation ES a Fie Edit View Favorites Tools Help E Back cs Si Search K Folders Hab Address ICH C roor am ElesuNECToclk22uebG FD VDDINEDUET DI E ce File and Folder Tasks a Make a new Folder Ed Publish this Folder to the Web El Share this Folder Other Places E DRIVER CH My Documents E Shared Documents e My Computer a My Network Places Details Mame 901 Release Info DOC 2134 Release Info DOC COMPORT PDF 8 FTCOMMS YXD SoM ETOIBUS CAT F TDIBUS INF Fedibus sys Sad ETOIPORT CAT BFTDIPORT INF IN FTSENUM S 5 S FTSENUM AND Frserzk sys FTSERIAL SYS OB FTSERMOU INF SS FTSERMOU wat E Frserui2 dll A FTSERUI DLL README TXT Type wordpad Document wordpad Document POF File Virtual device driver Security C
24. program sets the operation clock of the CPU to the maximum speed of 32 MHz The monitor program switches also to the maximum CPU speed of 32 MHz when releasing a forcible break debugger stop command or when the user program execution is stopped caused by a software breakpoint After the user program execution is restarted debugger go command the monitor restores the previous CPU operation clock setting Note Do not change the frequency of the external oscillator connected to the X1 and X2 pins The baud rate calculation for UARTDO is based on a 4 MHz input frequency otherwise no communication to the V850ES Fx3 CAN it starterkit can be established 12 1 6 Other limitations The watchdog timer can not be used Please be sure to set the option bytes of the V850ES FG3 device accordingly to allow the watchdog timer disable The forcible break debugger stop command can not be used when the global interrupts were disabled by the user program DI instruction User s Manual U18560EE1VOUMOO 71 V850ES Fx3 CAN it NEC 12 2 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 V850 The following screen appears 10 x IAR Embedded Workbench IDE File Edit Yiew Project Tools Window Help Da S Belo A R HD Pw O
25. 16 AIN 00 gt O 20 Table 14 Connector CN8 4 2 High Speed CAN connector CN6 CN6 is a D SUB 9 connector for High Speed CAN with CiA standard pin assignment The used CAN transceiver is the PCA82C250 with bus termination The transceiver is connected to the CANO interface of the V850ES FG3 device per default whereby the standby mode control is selected by port P915 Table 15 CAN connector CN6 User s Manual U18560EE1VOUMOO 24 V850ES Fx3 CAN it NEC 4 3 CAN connectors CN3 and CN4 By closing the connectors CN3 and CN4 not assembled both CAN macros of the V850ES FG3 device are connected via a PCA82C250 CAN transceiver each Within this mode a simple CAN network with two CAN nodes can be simulated VDD5 0 CN6 Ic3 CTXDO Ian Ch Rs 8 P915 E J a a N 2 V 7 GND Y CANH 3 vec CANL 6 o r gt a a Y a CRXDO 4Irxo N VREF 5 Can Transceiver 0 Hafe V N o PCA82C250T i 8 e 50 0603 100 0603 2PINS e CN4 1 CN3 M CTXD1 17x0 CH Rs 8 P912 EH F y a e N 11 2 GND Y CANH7 r e _ 3 vec CANL 4 EE y 5 E CRXD1 RXO VREF 9 Can Transceiver PCA82C250T Figure 5 CAN transceiver
26. 1VOUMOO 75 V850ES Fx3 CAN it NEC Now the debugger is started and the demo project is downloaded to the V850ES Fx3 CAN it board In other words the FLASH memory of the V850ES FG3 device is reprogrammed with the user application The progress of downloading is indicated by blue dots in the TK V850 Emulator window P IAR Embedded Workbench IDE O x File Edit View Project Tools Window Help D Skga elo ol TRAMA AE Workspace OS x Lade main geg ADC_demo Debug y form nnn nn nnn nnn nnn nnn nn nnn nnn nnn nnn nnn nnn nnn nnn nnn D v850ESFX3_CANIT dd main function Lola demo Debug Y A A A A E adc_main c void main void E DF3377_HwWInit s85 E init c unsigned char i E interrupt c unsigned int tmp _ result Ha lcd c El Lowinit V850ES_FG3 c LI peripheral settings La E Output variable Initialization BD CAN_demno Debug v Programming flash LCD Initialization b React_demo Debug Y clear display 6 Timer_demo Debug Y LETT LT l D UART_demo Debug Y write display character RAM LCD_ write CGRAM 0x01 cbgpatl1 0 LCD_write_CGRAM 0x02 bgpat2 0 H LCD_write CGRAM 0x05 bgpat3 0 LCD_write_CGRAM 0x04 bgpat4 0 LCD_write_CGRAM 0x05 bgpat5 0 LCD_write_CGRAM 0x06 bgpat 6 0 LCD_write_CGRAM 0x07 bgpat 0 Overview CAN demo React_demo 14 fol la e Building configuration ADC_demo Debug Updating build tree Configurat
27. 3 CAN it Target device V850ES FG3 uPD70F3377 Clock 4 MHz Voltage level 5V Software configuration of FPL Parameter file 70F3377 PRM Clock setting 4 MHz Multiplied by 8 Port COMBS 38400 bps Operation mode Chip Write HEX ADC_demo hex Option setting Blank check before Erase 10 1 Installing the FPL GUI software Install the FPL GUI software on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the software has not been installed yet 10 2 Installing the driver Install the USB driver on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the driver has not been installed yet 10 3 Installing the parameter file The parameter file for the V850ES FG3 device is installed automatically during installation of FPL GUI folder lt FPL install path gt PRM Nevertheless newest version of parameter file for the uPD70F3377 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 FPL EXE install path gt PRM created during GUI software setup refer to CHAPTER 8 SOFTWARE INSTALLATION User s Manual U18560EE1VOUMOO 60 V850ES Fx3 CAN it NEC 10 4 Connecting and starting lt 1 gt Set the V850ES Fx3 CAN it board to the FLA
28. 30 8 3 FPL FLASH programming GUI installation oooccccconnnccconcnnconocncononcnnonnnnnncononanronnnnanennnannrennnnns 30 8 4 Sample program Installation circa a 30 8 9 USB Driver Installation gege Ee 31 8 5 1 Installation on Windows 98BSE M oocccccccccconncccnnocccocoocccnnnnononnnnnncnnnononnnnnnnnnnnnonnnnnnrnnnnnnnonennrnnnnnnnnns 31 8 9 2 IMStallation on Windows AT DEE 33 8 5 3 Instalator on VVINGOWS XP did dai 39 8 6 Confirmation of USB Driver InstallatioOn ocoonncccnnnniccnncoccnccocanococanoconanoconaronannnonnnnnnnnnrnnnnnnnnnas 44 9 7 Diver Uns tala e e E 45 9 FPL FLASH programming SO tWarF ooccoonccocnccccconccconaconnncnonconancnanrnnnrnnnnrrnnnrnnnrnnnrrnanrenanen 47 91 JEE Ee Ee EE 47 9 2 Starting Up the ege Ee EE EEN 47 A A E E N E 48 94 Ment Eege 49 IR IENE MEN EE 49 GAZ DEVICE MENU EE 50 2 Re eG amy TAC 217 7010 018 ees eno oR A 57 GR A OCIO MENU EEN 58 9 5 Programmer Parameter Wind OW oooccconnncconncccocccocncncconnnconanrnnnnnrcnnnnrrnnnrrrnnn norma rrnnnnrrnannrrnanrenannrnnans 59 10 How to use FPL FLASH programming Software ccccccssecssseeseeeeeeeeseeeseeeseneseneenees 60 10 1 Installing the FPL GUI software E 60 10 2 InStalling the driverene iia 60 10 3 Installing the parameter Hee 60 104 Connecting ANG starting nassar ad 61 10 5 Setting the programming environment s sssessssssnnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn nennen
29. 4 V850ES Fx3 CAN it CPU module components occcccccnnccnncccncncnonnccnnncnnnnanncnnnnnnnononnnnnnnnnnnnnnanness 23 Selten EE 25 Figure 6 Configuration for On Chip debugging n 1nnosse1rnnensrnreresrnrrrensrnrrrrsrnrrressrnrrrrsnnrrressnnrrrrsnnnrrenne 27 Figure 7 Add New Hardware Wizard Windows 988SB ccoooccccccccnnnccconcncoconcnnononnnnnonononnononnnnononnnnnonanennss 31 Figure 8 Search Method Windows 98SB ccccooccnccconconoconcnncocononnnnoncnnnnnnnnnnononcnnononnnnnnnnnnnnonanennnnnnnnnnnaneness 31 Figure 9 Search Location Specification Windows O89GE 32 Figure 10 Checking Driver to Be Installed Windows O9GE 32 Figure 11 Installation Completion Windows O8GE 33 Figure 12 Found New Hardware Wizard 1 Windows 20001 33 Figure 13 Search Method 1 Windows 20001 34 Figure 14 Driver File Location 1 Windows 20001 34 Figure 15 Address Specification 1 Windows 20001 35 Figure 16 Driver File Search 1 Windows 20001 35 Figure 17 USB Driver Installation Completion 1 Windows 20001 36 Figure 18 Found New Hardware Wizard 2 Windows 2000 36 Figure 19 Search Method 2 Windows 20001 37 Figure 20 Driver File Location 2 Windows 20001 37 Figure 21 Address Specification 2 Windows 20001 38 Figure 22 Driver File Search 2 Windows 20001 38 Figure 23 USB Driver Installation Completion 2 Windows 20001 39 Figure 24 Found New Hardware Wizard 1 Windows Sb 39 Figure 25 Search L
30. Di e a amp Rus CS e GE ons mg mg ri Si o 9 D 8 6 1990S NX V SuIdo y mc goos dop L ra 5 SOR 45 2 S S SOSS ou 70ND AN9 ru 825 EK a a B S E N STOUO0OT 6E oF N NN e sagao e ee a LE se r AE e se og XS it FAND naasa MN E a as ts bas ze pourzop alegrar R EI daasn mm i EAE S row I zE os ei Z doa _ENOAE AST Shga vs e a g Zasa Z OLASAN NINN ees OND os o lt 87 WLC GLI To Z ALa Z lasia J qd UOISISA AN sc a SID TULA a 2 SLO TODA NI ODA OSOOA a e aaa g Z SLA E VLVdad j E I Ei reste m HS d astm onss et oc Ed ado AXIAL a S TANTA 1 a d M EN oaWwit SI 9 apom D Di lt x22 4m SH don ag dE fa S z Shee 6888 A ee ee TA 5 6 or TAXY 3 A x de Ze z eats eiel elele lt E E 5 5 A L 8 TAXL z 5 S S 3 on SE E E E E spanen 1 2 E s 9 S E 8 E 8 E E S tra FA TAS 43 t OO e Bo da 3 E Q 3 w I 7 Oax AT TALA E Ae ke ZNO 3 os ano E z ES no os os OSODA F 294 7 os os os Tod OSDOA O SIDA NI ODA OSODA OSODA poaoiddy w U0ISIDA L 9 g r z I V850ES Fx3 CAN it baseboard schematics Figure 71 User s Manual U18560EE1VOUMOO t V850ES Fx3 CAN 3 Haw edoun3 euopep DIN geng pe ejdno s amet 3 vamm vao o g2 yy 902002 E arre ENEE ERE bz oo y SS N OO W e QOS WWS 2S N 8
31. ES Fx3 CAN it is connected the USB driver needs to be installed on the host machine Please refer to the folowing CHAPTER 8 SOFTWARE INSTALLATION 8 Software installation The V850ES Fx3 CAN it package comes with several software demo packages e AR Systems Embedded Workbench for V850 including C compiler assembler linker librarian and IAR C SPY debugger e TK V850 Driver for V850ES Fx3 CAN it e FPL FLASH programming software e Sample programs The IAR Systems Embedded Workbench and the FPL 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 V850 installation To install the IAR Systems Embedded Workbench for V850 including C SPY debugger select the SETUP program in the directory IAR Embedded Workbench V850 ewv8s50 of the CDROM The setup dialogues will guide you through the installation process 8 2 TK V850 driver installation To install the TK V850 driver for the V850ES Fx3 CAN it in order to use the IAR C SPY debugger and On Board debugging select the SETUP program in the directory TK V850 driver of the CDROM The setup dialogues will guide you through the installation process 8 3 FPL FLASH programming GUI installation To install the FPL FLASH programming GUI select the SETUP program in the directory FPL of the CDROM The setup
32. ESFX3 CAN it CD ROM directory structure 29 Table 22 Example directory STUCCIU vto 78 User s Manual U18560EE1VOUMOO 10 1 V850ES Fx3 CAN it NEC Introduction V850ES Fx3 CAN it is a demonstration kit for the V850ES Fx3 32 bit RISC microcontroller It supports On Board debugging via the TK V850 interface monitor debugging or via N Wire Additional FLASH programming and real time execution of application programs based on the V850ES FG3 32 bit RISC microcontroller is supported by the V850ES Fx3 CAN it demonstration kit The board is prepared to be connected to user hardware parts such as digital I O or analogue signals 1 1 Main features of V850ES Fx3 CAN it Easy to use device demonstration capabilities V850ES Fx3 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 TK V850 debugging The V850ES Fx3 CAN it supports an On Board debug function by using the IAR C SPY debugger and the UART USB interface without a need of additional debug hardware It allows FLASH programming and supports standard debug functions i e code execution single stepping software breakpoints memory manipulation etc N Wire debugging The V850ES Fx3 CAN it is prepared to be equipped with a 20 pin connector in order to connect the QB V850MINI EE On Chip debug
33. GGING 3 4 3 UART LIN mode selection SW4 S3 SW4 switch S3 controls the serial communication mode of V850ES Fx3 CAN it board Setting SW4 S3 to OFF connects the UARTDO receive and transmit signals to the FT232 interface lines and the UARTD2 receive and transmit signals to the TJA1020 LIN transceiver Switching SW4 S3 to ON connects the UARTDO and UARTD2 signals vice versa OFF UARTDO connected to FT232 UART chip UARTD2 connected to TJA1020 LIN transceiver ON UARTDO connected to TJA1020 LIN transceiver UARTD2 connected to FT232 UART chip Table 4 UART LIN mode selection SW4 S3 By using the TK V850 debugging FPL FLASH programming mode set switch SW4 S3 to OFF UARTDO is reserved as communication channel for On Board debugging or FLASH programming and can not be used by a user program 3 4 4 User switch SW4 S4 SW4 switch S4 is connected to port P911 of the V850ES FG3 device This switch can be freely used by the user software Switching SW4 S4 to ON applies V to port P911 Ven applied to P911 Vss applied to P911 Table 5 User switch SW4 S4 3 5 LIN plug JP1 JP1 is a3 pin connector for the LIN bus connected to the transceiver TJA1020 Reference voltage for the LIN bus level LIN bus line Table 6 LIN plug JP1 User s Manual U18560EE1VOUMOO 17 V850ES Fx3 CAN it NEC 3 6 USB interface connector CN6 The CN6 connector allows connecting the IAR C SPY debugger or FPL FLASH programming software to the
34. K Figure 15 Address Specification 1 Windows 2000 Found New Hardware Wizard jj x Insert the manufacturers installation disk into the drive DK Click selected and then click OF Cancel Remark If the installation destination folder is changed at the time of GUI software installation enter new folder FPL DRIVER 5 Click Next gt Figure 16 Driver File Search 1 Windows 2000 Found New Hardware Wizard y eee if Driver Files Search Results The wizard has finished searching for driver files for your hardware device The wizard found a driver for the following device USB lt gt Serial Windows found a diver for this device To install the driver Windows found click Next c program files nectoolss24 folydriver dibus int Cancel User s Manual U18560EE1VOUMOO 35 V850ES Fx3 CAN it 6 7 Click to complete the installation of the USB driver Figure 17 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 gt Figure 18 Found New Hardware Wizard 2 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps y
35. On Board debug mode TK V850 debugging serial communication via VARTD2 is not possible because the USB UART communication channel is used for debugging purpose To connect UARTD2 to the FTDI USB UART chip please set switch SW4 S3 to ON User s Manual U18560EE1VOUMOO 80 V850ES Fx3 CAN it 14 USB interface cable Mini B type Series A Plug Series A Plug Series Mini B Plug Figure 70 USB interface cable Mini B type User s Manual U18560EE1VOUMOO NEC Series Mini B Plug 81 SIMA 0 19997 DAN U04NquisIid
36. P Logo Testing 2 Windows XP Hardware Installation A The software you are installing for this hardware USB Serial Port has not passed Windows Logo testing to very its compatibility with Windows A Tell me why this testing ls important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that haz passed Windows Logo testing STOP Installation User s Manual U18560EE1VOUMOO 42 V850ES Fx3 CAN it NEC 8 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 31 USB Serial Port2 Driver Installation Completion Windows XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for E USE Serial Port Click Finish to close the wizard e Back Cancel User s Manual U18560EE1VOUMOO 43 V850ES Fx3 CAN it NEC 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 V850ES Fx3 CAN it board in combination with FPL GUI the information to be checked here is needed By clicking the Device Manager tab check that the drivers are i
37. SH programming mode by switching SW4 S1 and SW4 S2 to ON The UARTDO of the V850ES Fx3 device is used as FLASH programming interface therefore set switch SW4 S3 to OFF lt 2 gt lt Plug and Play gt Connect the V850ES Fx3 CAN it board with the host machine via the USB cable If the connection was already done press the reset button SW1 to release the FLASH programming mode User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC lt 3 gt Start the FPL GUI Figure 53 GUI Software Startup Screen Kr ox File Device wiew Help gt gt FlashO penning Flash Open OF Mame Firm Version ExtCode Vendor Parameter file Mame Format Version Processor Ver Connection to device Port Speed Range Freq Multiply 10 5 Setting the programming environment lt 1 gt Select Device gt Setup from the menu bar lt 2 gt The Standard dialog box for device setup is activated Figure 54 lt Standard Device Setup gt Dialog Box F Device setur x Standard Advance Supply oscillator Frequency MH Multiple rate Operation Mode Chip Block Ena Area Show Addres User s Manual U18560EE1VOUMOO 62 V850ES Fx3 CAN it NEC lt 3 gt Click PRM File Read to open the parameter file selection window Select the parameter file 70F3377 prm then click Open Figure 55 Parameter File Selection zix Look in O PRM
38. TWHECTOO 14 FPLADF User s Manual U18560EE1VOUMOO 32 V850ES Fx3 CAN it NEC 5 When the window below is displayed the installation of the USB driver is completed Click Finish The installation of the USB Serial Port driver is then automatically performed Figure 11 Installation Completion Windows 98SE Add New Hardware Wizard USE High Speed Serial Converter Windows has finished installing the software that your new hardware device requires Cancel 8 5 2 Installation on Windows 2000 1 When the V850ES Fx3 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 12 Found New Hardware Wizard 1 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver hor a hardware device To continue click Next l Back Wer Cancel User s Manual U18560EE1VOUMOO 33 V850ES Fx3 CAN it NEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 13 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers Dia A device diver is a software program that enables a hardware device to work with SS an operating system This wizard will complete the installation for this device Check that Sea
39. able 1 Configuration switch SW4 factory settings 3 4 1 Operation mode selection SW4 S1 SW4 switch S1 controls the operation mode of the V850ES Fx3 CAN it board Setting SW4 S1 to ON enables the TK V850 On Board debug function Additional On Board FLASH programming by using the FPL software is supported in this mode Within normal operation mode setting SW4 S1 to OFF the user program stored in the internal FLASH memory of V850ES FG3 device is executed Additional debugging via N Wire interface and FLASH programming via the PG FP4 FLASH programmer is supported in this mode Normal operation mode TK V850 debugging FPL FLASH programming mode Table 2 Operation mode selection SW4 S1 For more details on how to configure V850ES Fx3 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING User s Manual U18560EE1VOUMOO 16 V850ES Fx3 CAN it NEC 3 4 2 TK V850 FPL mode selection switch SW4 S2 SW4 switch S2 selects the TK V850 On Board debugging or FPL FLASH programming mode Setting SW4 S2 to OFF enables the TK V850 On Board debug function Switching SW4 S2 to ON allows On Board FLASH programming by using the FPL FLASH programmer software TK V850 debugging mode FPL FLASH programming mode Table 3 TK V850 FPL mode selection switch SW4 S2 For more details on how to configure V850ES Fx3 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBU
40. abled 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 FPL may not be set correctly Action Set the port checked using Device Manager Cause The V850ES Fx3 CAN it board is operating in normal mode Action Set the board to the FLASH programming mode by setting SW4 switches S1 and S2 to ON and connect UARTDO signals to the FTDI USB UART chip by switching SW4 S3 to OFF 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 FPL FLASH programming software Cause The setting of Supply oscillator in Device Setup may be incorrect Action Make a correct setting according to the specifications of the target device User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 12 TK V850 debugging Before using the On Board debug function of the V850ES Fx3 CAN it board together with the IAR C SPY debugger it is necessary to install the USB driver first The V850ES Fx3 CAN it starterkit uses a monitor program for debugging purpose The communication between the starterkit and the IAR C SPY debugger that is running on the personal computer
41. ain the measurement stops and the reaction time is shown on the LC display Pressing button SW2 starts a new measuring cycle Character LC display TimerT AAO Button SW2 Button SW3 PY LEDS D1 D4 User s Manual U18560EE1VOUMOO 79 V850ES Fx3 CAN it NEC 13 5 Timer demo This sample program demonstrates a real time clock After the program is started the TimerTAAO is initialized to generate a clock reference based on the 8 MHz main clock The actual time is displayed using the LCD module By pressing button SW2 SW3 the time can be adjusted Character LC display TimerT AAO Button SW2 Button SW3 po LED s D1 D4 13 6 UART demo This sample program realizes a temperature meter with serial communication channel The sample program does a cyclic measurement of the input voltage of ANI15 analogue input equal to port P715 of V850ES FG3 device connected to the temperature sensor KTY13 5 The temperature is calculated and the result is transferred via UARTD2 to a terminal program running on the host machine The data transfer speed is set to 9600 bps per default Additionally the temperature is displayed on the LCD Before the temperature measurement is started the calibration of the temperature sensor has to be done by adjusting the temperature offset via button SW2 and SW3 Character LC display TimerTAAO Temperature sensor KTY13 5 A D converter Button SW2 UARTD2 Button SW3 LED s D1 D4 Please note by using the
42. atalog Setup Information System File Security Catalog Setup Information Configuration Settings Application Configuration Settings System File Virtual device driver System File System File Setup Information Virtual device driver Application Extension Application Extension Text Document 3 Click Continue Figure 34 Driver Uninstaller FIDI Uninstaller Version 2 1 IF your USB device is connected please unplug it now Press Continue to uninstall the Click cel to quit Cancel User s Manual U18560EE1VOUMOO Date Modified 6 12 2003 3 18 PM 6 16 2003 1 22 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 6 16 2003 1 23 PM 6 16 2003 1 24 PM 4 10 2003 3 00 PM 6 16 2003 1 24 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 6 10 2003 5 10 PM 6 16 2003 1 24 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 11 2003 12 48 PM 5 20 2003 2 04 PM 6 16 2003 1 22 PM 45 V850ES Fx3 CAN it NEC 4 Click to complete driver uninstallation Figure 35 Completion of Driver Uninstallation FIDI Uninstaller Version 2 1 Uninstalling ID_O403 amp PID_6001 Deleting registry entries Deleting files Uninstall complete press Finish to exit Caution Ifthe GUI software is uninstalled earlier Ftdiunin exe is also deleted At this time delete USB Serial Port COM and USB High Speed Serial Converter from Device Manager manually User
43. chnical literature e Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and otherlegal issues may also vary from country to country NEC Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 0 Fax 0211 65 03 1327 Sucursal en Espana Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Succursale Frangaise Velizy Villacoublay France Tel 01 30 67 58 00 Fax 01 30 67 58 99 Filiale Italiana Milano Italy Tel 02 66 75 41 Fax 02 66 75 42 99 Branch The Netherlands Eindhoven The Netherlands Tel 040 244 58 45 Fax 040 244 45 80 Branch Sweden Taeby Sweden Tel 08 63 80 820 Fax 08 63 80 388 United Kingdom Branch Milton Keynes UK Tel 01908 691 133 Fax 01908 670 290 NEC Electronics Hong Kong Ltd Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Hong Kong Ltd Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 NEC Electronics Singapore Pte Ltd Singapore Tel 65 6253 831 1 Fax 65 6250 3583 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 5951 NEC do Brasil S A Electron Devices Division Guarul
44. d The Verify command sends a specified user program to the target device connected with the FPL 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 This command is not supported 6 Che cksum command The Checksum command reads the checksum value of the target device connected with the FPL This value differs from the value displayed in the parameter window of the main window 7 Autoprocedure EPV command E The Autoprocedure EPV command executes the Erase command Program command and Verify command in succession When a user program is to be resent to the target device for comparison with the data written to the flash memory of the target device because of a user program communication error execute the Program command by selecting Device gt Setup and specifying Command options on the Advance tab then set the automatic execution of the Verify command During EPV execution the progress status is displayed in the action log window to indicate programmer operation For a selected comma
45. e for user application hardware and software Please read the user s manual of the V850ES FG3 device carefully to get information about the electrical specification of the available I O ports before you connect any external signal to the V850ES Fx3 CAN it board User s Manual U18560EE1VOUMOO 15 V850ES Fx3 CAN it NEC 3 1 RESET button SW1 SW1 is a reset button It activates the power on reset It is connected to the reset input of the V850ES FG3 CPU module 3 2 User button SW2 SW2 is a push button connecting Voe to external interrupt input INTP4 of the microcontroller This is equal to port P913 of the V850ES FG3 device The port may be programmed to generate interrupt INTP4 The necessary initialisation for this purpose is described in the user s manual of the V850ES FG3 device The port is connected to a 4 7K pull down resistor 3 3 User button SW3 SW3 is a push button connecting Voe to external interrupt input INTP5 of the microcontroller This is equal to port P914 of the V850ES FG3 device The port may be programmed to generate interrupt INTP5 The necessary initialisation for this purpose is described in the user s manual of the V850ES FG3 device The port is connected to a 4 7K pull down resistor 3 4 Configuration switch SW4 The different operation modes of the V850ES Fx3 CAN it board can be set by SW4 switches S1 S4 Operation mode select TK V850 FPL mode select UART LIN mode selection User switch T
46. ed for the NEC V850ES FG3 microcontroller IAR Systems Embedded Workbench IAR Systems C SPY debugger simulator and the NEC FPL FLASH programming software User s Manual U18560EE1VOUMOO 11 V850ES Fx3 CAN it NEC V850ES Fx3 CAN it is not intended for code development NEC does not allow and does not support in any way any attempt to use V850ES Fx3 CAN it in a commercial or technical product User s Manual U18560EE1VOUMOO 12 V850ES Fx3 CAN it NEC 1 2 System requirements HOST PC A PC supporting Windows 98SE Windows ME Windows 2000 or Windows XP is required for the IAR Systems Embedded Workbench demo version and the FPL FLASH programming software Pentium 166 MHz at least 128 MB of RAM 256 color display 1024 768 mouse CD ROM drive and 200 Mbytes of free hard disk space are required to install the tool packages Above listed requirements are valid for the IAR Systems Embedded Workbench and the FPL 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 V850ES Fx3 CAN it package If any part is missing or seems to be damaged please contact the dealer from whom you received your V850ES Fx3 CAN it starterkit Note Updates of the IAR Embedded Workbench for V850 FP3 FLASH programming software documentatio
47. er parameter window button Selects a user program as a program to be written to the target device button Closes the window without selecting a program User s Manual U18560EE1VOUMOO 49 V850ES Fx3 CAN it NEC 2 Quit command The Quit menu is the command for terminating the FPL GUI software Clicking on the right side of the task bar also terminates the FPL GUI software User settings are saved in the FPL INI file so that the GUI software starts up next time with the same settings Note FPL INI is created in the Windows folder when Windows 98SE Windows Me or Windows XP is used When Windows 2000 is used FPL INI is created in the Winnt folder 9 4 2 Device menu Clicking the Device menu displays the pull down menu as shown below This menu mainly contains commands for programming operations such as deletion programming and verification on the target device Figure 40 Device Menu Fel FPL File Device Miew Help Blank Gheck Erase Program Wer ity Securty Checksum AutoproceduretEPy Slenature read Setup 1 Blank Check command The Blank Check command allows you to make a blank check on the target device a connected to the FPL lf 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
48. h e S19 Worksp Embedded Workbench Startup i Create new project in curent workspace D Add existing project to current workspace Open existing workspace Example workspaces Recent workspaces T Do not show this window at startup ee RE Ready Figure 62 IAR Embedded Workbench Now select the option Open exiting workspace from the File menu and locate the sample project Open the file V850ESFX3_CANit eww This is the workspace file that contains general information about the demonstration projects and settings User s Manual U18560EE1VOUMOO 72 V850ES Fx3 CAN it NEC After the demo workspace has been opened the projects contained in the workspace are displayed Now click on the little sign next to the ADC_demo project to show files that were part of the project The screen should now look similar to this IAR Embedded Workbench IDE 5 xj File Edit Yiew Project Tools Window Help D eug lel ol SKA AH EIERE adr main Wo ADC_demo Debug Files T pa NS DJ V8s0ESPx3_ CANIT dd main function Ha BADC_demo Debug EA ee Le eae mone e ENE void main void Ha E DF3377_HWInit s85 Laf init c E unsigned char i Ha interruptc unsigned int Cup result Hal led c a B Lowinit v850ES_FG3 c vHardwareInit dd peripheral settings La Output vSoftwareInit Variable Initialization B CAN_demo Debug Y LCD_init vd LCD
49. he V850ES FG3 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 Character LC display A D converter Potentiometer R14 Button SW2 Button Sw LED s D1 D4 13 3 CAN demo This sample program simulates a simple CAN network consisting of two CAN nodes By using the integrated ADC the voltage supplied to the ADC input channel ANI13 port P713 of the V850ES FG3 device is measured The input voltage is adjusted by potentiometer R14 The measured voltage is transferred via CAN channel 0 to CAN channel 1 each 500ms The transmit and receive status is shown on the LC display Please close connectors CN3 and CN4 two connect both CAN transceivers and to allow communication In case of an error frame or missing acknowledgement a fast recovery of the CAN channel is done The communication can be restarted by pressing button SWS po LED s D1 D4 po CAN transceiver IC2 pC CAN transceiver IC3 13 4 ReacTime demo This sample program demonstrates a reaction time measurement After the button SWS is pressed the application waits for a random time duration between 0 50 and 5 45 seconds Then the measurement starts by incrementing a reaction counter every 10ms 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 ag
50. hecksum after Program check box If this check box is checked the flash memory checksum value of the target device is read from the target device after execution of the Program command and EPV command This value differs from the value displayed in the parameter window of the main window lt 2 gt Security flag settings Not usable User s Manual U18560EE1VOUMOO 56 V850ES Fx3 CAN it NEC 9 4 3 View menu Clicking the View menu displays the pull down menu shown below This menu contains commands for setting whether to display the toolbar and status bar Figure 49 View Menu Fea FPL File Device View Help e Toolbar e Status Bar gt gt Fla sh Op en nin 1 Toolbar command Checking the Toolbar command displays the toolbar Unchecking the command hides the toolbar 2 Status Bar command Checking the Status Bar command displays the status bar Unchecking the command hides the status bar User s Manual U18560EE1VOUMOO 57 V850ES Fx3 CAN it NEC 9 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 50 Help Menu Fea FPL Eile Device Vie Help About F PE gt FlashOpennine Flash Open OKA 1 About FPL command The About FPL command opens the program entry window as shown below and indicates the version Clicking terminates the display Figure 51 About FPL Window About FPL 5 nin q J k
51. hos Brasil Tel 55 11 6465 6810 Fax 55 11 6465 6829 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC Revision History Revision Chapter Description 12 01 2007 First release User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC Table of Contents Vc Ia n e Te d La EEN 11 1 1 Main features of V850ES FX3 CAN it cccccccccsccnsscnescnesenssenesenssenesensecseccsensensenueceuessueseesancnsrens 11 1 2 DYSEM FEGUIFEIMGIIES EE 13 Ned PACKAGE Contents ee 13 E det TE TEE 13 2 V850ES Fx3 CAN it system CONFIQUIATION c cccceeeeeeeeceeeeeeeeeeneeeeneeaneeenseeneseeeeneneess 14 ZN ENEE 14 2 2 MOST COMPU Ata is 14 2 3 Power supply Via USB INtOrTaco ici ia css 14 3 V850ES Fx3 CAN it baseboard components 0cconccccconcconccnnccnnccanccancnnnconaronaronaranaranarnnas 15 3 1 RESET Dutton SW Linn EEN 16 3 2 USO DUHOM SWZ EE Eed 16 3 3 User Hutton S WI ui SEENEN 16 3 4 Configuration SWITCH WA io ironia ariadna 16 3 4 1 Operation mode selection SW4 S1 nie a a a a 16 3 4 2 TK V850 FPL mode selection Switch GWAI7 17 34 3 UART LIN mode Selection SW4 S3 ia 17 SAA SUIS SR SVT VV AS Ee Set dE reat en dot arden ee 17 39 LIN ON Pe mes e 17 3 6 USB interface connector GING msuprricrico orienta 18 37 GONNA CNi a oe 19 3 8 External PotentiometerR Cai aaa 19 3 9 Display D1 122 character EC display cda 20 3 10 External Potentiometer Rl4 ococconcnnccconconcancnn
52. ing the internal PLL of the microcontroller 2 2 Host computer The USB host interface enables communication to the V850ES Fx3 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 V850ES Fx3 CAN it is powered by USB interface no separate power supply is needed The USB interface provides the V850ES Fx3 CAN it board with 5V supply voltage User s Manual U18560EE1VOUMOO 14 V850ES Fx3 CAN it 3 V850ES Fx3 CAN it baseboard components NEC The V850ES Fx3 CAN it baseboard is equipped with push buttons a 12 2 character LC display LED s and with several connectors in order to be connected to host computers FLASH programmer and LIN busses QOOUOUCDC000000U0000 2 QO000000000 CI E E 00000000000 e 02480 d 17500 S Bp fo El a 0000 El E a a a MESS GG ES B E F E E CN E E S 8 8 A cid Dag oo S E 102 oo Ol a bis eS RIS oo E gl e Ci 0000 co WE im JE oo CS e H cf rm Y y vi Figure 2 V850ES Fx3 CAN it baseboard connectors switches and LED s Some of the V850ES Fx3 CAN it components are fre
53. ion is up to date CO Fy Build Debug log Ready Po ae ee Figure 68 IAR project download User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC After the download was completed all debug features of IAR C SPY debugger are available i e Single Stepping Step Over In Out Go Stop Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the V850 IAR Embedded Workbench IDE User Guide of the IAR installation TAR Embedded Workbench IDE 7 e x File Edit Yiew Project Debug Emulator Tools Window Help D SWB ol Jy kA p EDARI AO ZA SE ADC_demo Debug DI 00000942 E1E0 et gem EE 00000944 OSEA es f if Ibcd0 LCD Ha EJADC_de v EE 00000346 0F208021 1 Ha B CAN_dem v void sain void 0000094E 05D5 B ha fd React_de Y H else LCD strin a BlTimer_de v pee ge ee 00000950 0F208025 L ee ehre 00000954 FF80022C J BIVART_de Y A O Can TEMILE 00000958 064170FF D void main void vHardwarelInit ff peripheral settings H v oftwareIniti ff Variable Initialization LCD_init ff LCD Initialization gt a A E LCD_inst 0x01 f clear display 00000960 FFS00158 J vSoftwarelnit LCD_write_CGRAM 0x00 sbgpat0 0 write display character RAM aa FF800148 J LCD write CGRAM 0x01 bgpatl 0 CP anit ty LCD_write_CGRAM Ox02 bgpat2 0 gt ae eet We J LCD write CGRAM 0x03 sbgpat3
54. ions is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL DRIVER in the address bar then click Next gt Figure 25 Search Location Specification 3 Windows XP Found New Hardware Wizard Please choose your search and installation options lt 1 gt Check that Search for the best driver in these locations is selected Search for tne best diver in these bocations Use the check boxes below bo limit or expand the default search which inchides local paths and removable media The best diver found vall be inetalked Search removable media Tore CD ROM Include this location in the search C Program Files M ECT ook 324 FPLADRIVER lt 2 gt Check Include this location in the search only C 3 Dont search will choose4e driver to install Choose this option bo sel the diver you choose wall eck the device deer from a list Windows does not guarantee that ke the best match for your hardware lt 3 gt Enter C Program Files NEC Tools32 FPL 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 26 Windows XP Logo Testing 3 Windows XP Hardware Installation A The software you are installing for this hardware o USB High Speed Serial Converter haz not passed Windows Logo te
55. ly into the USB port of the personal computer Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector from the USB port then insert the USB connector again after a while Cause The driver may not be installed correctly Action lt 1 gt When this product is connected to the personal computer right click the driver marked with or x Click when displayed lt 2 gt On Device Manager execute Hardware Modification Scan lt 3 gt Install the driver again with Plug and Play Cause The device may not be recognized in the case of connection with the USB hub Action Try the following e Disconnect the USB connector then insert the USB connector again e Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer When this product is connected with a personal computer the Add New Hardware Wizard screen is displayed Cause lf the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port this product may be recognized as a new hardware item Action Install the driver by referring to CHAPTER 8 5 USB Driver Installation User s Manual U18560EE1VOUMOO 67 V850ES Fx3 CAN it NEC Communication with the V850ES Fx3 CAN it board is dis
56. ment equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact NEC Electronics sales representative in advance to determine NEC Electronics s willingness to support a given application Notes 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above User s Manual U18560EE1VOUMOO 2 V850ES Fx3 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 Directi
57. n and or utilities for V850ES Fx3 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 User s Manual U18560EE1VOUMOO 13 V850ES Fx3 CAN it NEC 2 V850ES Fx3 CAN it system configuration The V850ES Fx3 CAN it system configuration is given in the diagram below f Gemenstralion Kil NESUES FAZ CAN il Figure 1 V850ES Fx3 CAN it system configuration 2 1 V850ES Fx3 CAN it V850ES Fx3 CAN it is a demonstration kit for the V850ES FG3 32 Bit RISC microcontroller The V850ES Fx3 CAN it board is connected to the host system via a 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 V850ES FG3 internal FLASH memory by using the FPL programming GUI to allow execution of application programs on the V850ES Fx3 CAN it starterkit hardware The V850ES Fx3 CAN it is equipped within an 4 0000 MHz crystal oscillator This allows running the V850ES FG3 device at a speed of 32 MHz by us
58. ncnnnnnonononanncnnnnnnnnnnnnancnnnnnnnnnnnnnns 82 Figure 72 V850ES Fx3 CAN it CPU module schematce 83 List of Tables Table 1 Configuration switch SW4 factory settngs 16 Table 2 Operation mode selection SW4 S1 0 cccccesccceeececeseeeceneeeeeseeteeseeteneeetsuececeeeeeeeetseseetsneeetseeeteness 16 Table 3 TK V850 FPL mode selection switch SW4 S2 ooonccccccccoccnccccnonccononononccnnononancnnnononancnnncnnnanannnss 17 Table 4 UART LIN mode Selection SW4 S3 0 0 0 cecccccccecsssseseseceeeeeeseeeeeseeeeeeessaaeaseeeeeeessaaaseeeeeeeessaaaaeses 17 Table 5 USer SWItGh SW A Sd os 17 Table 6EIN plug a Pil EE 17 Table 7 Pin Configuration of USB Connector ONG ooocccccccccnccnnccccocccnnconcnononononnnncnnnnnnnnnnnnnonnnnnnnnnnnonnnnnnns 18 Table d CR PG FPA CONNECCION metsin an rE a E aae r a E aE EE EN 19 Table 9 SW4 configuration when USING PG EPA 19 Table 10 DISDIAY CONNECTIONS EE 20 Table 11 Distribution of temperature factor k 222 ccceeeceeeeeeeeeeceeee eens aare 21 Table t2 WED RK ER CONNECCION EE 22 Veale 13 CONNECCION ON KE 24 Table T4 Connector TEE 24 Table S CAN CONNECIO rn EE 24 Table 16 External power supply input CNS 25 Table eat E connector ONG da 26 Table 18 SW4 configuration for OCD via QB V850MINI Eb cocccoocccncccccccncnccoccncccnnconnoncnnnnononnnnnononnanonnnnos 26 Table 19 SW4 configuration for TK V850 debuggmg 27 Table 20 SW4 configuration for N Wire debuggmg 28 Table 21 V850
59. nd its execution operation and messages refer to CHAPTER 8 HOW TO USE FPL Upon completion of Autoprocedure EPV command execution the GUI software displays the result of executing the command on the target device 8 Signature read command The Signature read command reads the signature information device name flash memory information and so forth of the target User s Manual U18560EE1VOUMOO 91 V850ES Fx3 CAN it 9 Setup command P a El Device Setup 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 41 Device Setup Window Standard Standard Advance Parameter file FRM File read Host connection rot IR gt Frequency MHz Speed Multiply rate Operation Mode e Chip Start ll Block SCH ll Supply oscillator Area Show Addres Cancel User s Manual U18560EE1VOUMOO NEC 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 Setu
60. nfigure switch SW4 as following Table 20 SW4 configuration for N Wire debugging User s Manual U18560EE1VOUMOO 28 V850ES Fx3 CAN it NEC 6 V850ES Fx3 CAN it installation and operation 6 1 Getting started The IAR C SPY debugger allows to download and debug application software on the V850ES Fx3 CAN it starterkit hardware Additionally the FPL FLASH programming software can be used for simple FLASH programming of the V850ES FG3 internal FLASH memory As communication interface between the host computer and the V850ES Fx3 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 NEC 850ES Fx3 CAN it F CD ROM ROOT FPL setup directory PRM parameter files IA Embedded Workbench for V850 Sample programs for V850ES Fx3 CAN it TK V850 Driver for V850ES Fx3 CAN it Device Description File and SFR Description File for IAR C SPY Menu File for IAR Embedded Workbench TK V850 driver for IAR C SPY Device File Table 21 V850ESFx3 CAN it CD ROM directory structure User s Manual U18560EE1VOUMOO 29 V850ES Fx3 CAN it NEC 7 Hardware installation After unpacking V850ES Fx3 CAN it connect the board to your host computer using the provided USB interface cable When V850
61. nker command file Ink70f3377 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 Ei Category Factory Settings General Options CAC compiler Output Extra Output Hdefine Diagnostics List Contig Droce 3 A Assembler Linker command file Custom Build Build Actions Debugger Emulator IECUBE T Override default program entry MINICUBE Ge Entry label _program_start Hire OCD C Defined by application ROM Monitar Search paths one per line Simulator TOOLKIT_DIRSALIBA IEN Raw binary image File Symbol Segment Align E A Figure 66 IAR Linker options User s Manual U18560EE1VOUMOO 74 V850ES Fx3 CAN it NEC Now after everything has been setup correctly it s time to compile and link the demonstration project Close the Options menu and select Rebuild All from the Project menu If the project is compiled and linked without errors or warnings it can now be downloaded to the V850ES Fx3 CAN it board and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the Sch Debugger button In the next step the TK V850 Emulator has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration a
62. nnnrnrnnrrennrreonnrrennnrrennrrene 55 Figure 47 Device Setup Window Achyance 56 Figure 48 Setup Window Command options cccooccccccccncccoccnncncnnconoconnnnnonononnononnnnonnnnnnnononennonennnnnnnnnons 56 Fore Ao WIC Cl EE 57 FIQUEe 50 Help Menta 58 Roure Sl ADOUE PRL WINGOW siria riada 58 Figure 52 Programmer Parameter ale EE 59 Figure 53 GUI Soltware Startup EE 62 Figure 54 lt Standard Device Setup gt Dialog BOX oocccccccooccnnccononccononononcnonononanccnnononancnnnnnnnnncnnnnnnnanennnnnnns 62 Figure 55 Parameter de E 63 Figure 56 POM Selecionar litio tt 63 Figure 57 lt Standard Device Setup gt Dialog Box after Geitmg 64 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it Figure 58 lt Advance Device Setup gt Dialog Box 64 Figure 59 Completion of Parameter Setting ccccccssssesececcceeseecceceeeseeeeceeeaeeeeeeesaaseeeesesageeesessaaseeeessaas 65 Figure 60 Aner DOWNMIO AGING EE 65 Figure Gi Aner AT EXGCuUMON EE 66 Figure 62 IAR Embedded Workbench uk 72 Figure 63 IAR project WOMKSDaCe ii Ro E E AE E 73 Figure 64 IAR debugger options 112 it a aa aa d E dined a a 73 Fig re 65 IAR debugger OptiOnS 2 2 nr lios 74 Figure OO TAR e Lee le EE 74 Figure 67 TK V850 hardware setup men 75 Figure 68 IAI Project ao WO LE 76 Figure 69 IAR C SPY E ee E 77 Figure 70 USB interface cable Mini B bwper 81 Figure 71 V850ES Fx3 CAN it baseboard schematics ooooncccnnccccccnon
63. ns Read verify after Program F Security Hag after Program Checksum after Program Security flag settings Disable Chip Erase F Disable Block Erase F Disable Program lt Command options gt Blank check before Erase Checked User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC lt 7 gt Click the button The GUI software sets the parameters When the settings have been completed the following screen is displayed Figure 59 Completion of Parameter Setting KE File Device View Help Sa Were b gt FlashO penning Device Flash Open OK Name gt gt COMMAND Device Setup PAM File Read UE Firm Version Evtl ode e EE Parameter file PRM File Read OK is displayed Hame 70F2377 Format 0417 Version E1 00b6 Processor Ver 0 400 Mame Date The display is updated L Connection to device Port COME Speed 38400 Range Chip Freg 4 00 Multiply 8 00 Ready mum 10 6 Selecting a user program lt 1 gt Select File gt Load lt 2 gt Select a program file to be written to the target device then click Openl Figure 60 After Downloading Fire File Device View Help malda 8N gt gt FlashOpenning Flash Open OK Name gt gt COMMAND Device Setup PAM File Read UE Firm Version gt gt COMMAND LoadFile Open EstCode Success read HE file EE O x Parameter file Mame TUFAT i Pare Format 0417 Success read
64. nstall from a list or specific location Advanced Click Next to continue User s Manual U18560EE1VOUMOO 41 V850ES Fx3 CAN it NEC 6 Check that Search for the best driver in these locations is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL DRIVER then click Next gt Figure 29 Search Location Specification 2 Windows XP Found Mew Hardware Wizard Please choose your search and installation options lt 1 gt Check that Search for the best driver in these locations is selected Co Search fee the best driver in these locations Ue the check boxe below bo leg of expend the delaull search which includes local paths and removable mada The best diver found wall be installed _ Search removable media floppy CO AOb lt 2 gt Check Include this location in H Include thes location in the search the search only C Progiam Files NECToob324 FPLADRIVER C 3 Dont search ell choose the diver to install Choose this option lo select he dewice diver Irom a bel windows does nol guarantees thal the divar pou dhocse will be the best match hor pour hardware Cancel lt 3 gt Enter C Program Files NEC Tools32 FPL 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 30 Windows X
65. nstalled normally Figure 32 Device Manager E Computer Management Seles m File Action View Window Help _ x ee DIE amp E Computer Management Local d Computer CR System Tools ee Disk drives Event viewer 2 Display adapters Shared Folders lt 4 DYDICD ROM drives Fs Local Users and Groups Floppy disk controllers e Performance Logs and Alerte 4 Floppy disk drives aa Device Manager EY IDE ATA ATAPI controllers KS Storage 28 Keyboards Removable Storage Mice and other pointing devices Disk Defragmenter E Monitors Disk Management D i Network adapters s Services and Applications EI Ports COM amp LPT Ei Communications Pork COML E Communications Port COMZ n T Printer Port LPT1 Check that USB Serial Port Oy E a Se Processors gt SCSI and RAID controllers Sound video and game controllers Check that USB High Speed r System devices Serial Converter is present Universal Serial Bus controllers d AMD 756 PCI to USE OperkMost Contraer USB Hoh Speed Serial Converter Geh USB Root Hub For Windows 98SE Me Caution Do not select Update and when communicating with the target device For Windows 2000 XP Caution Do not perform Hardware Modification Scan when communicating with the target device Remark In the GUI port list box the same communication port as COM of USB Serial Port COM needs to be selected If the drivers above are
66. ntiometer R7 is connected between Vcc and ground The potentiometer arm is connected to the VO signal of the LCD module It controls the operating voltage contrast adjustment of the display User s Manual U18560EE1VOUMOO 19 V850ES Fx3 CAN it NEC 3 9 Display D1 12 2 character LC display The V850ES Fx3 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 V850ES FG3 device via three control lines and eight data lines Table 10 Display connections For more details about the LC display specification commands and character table please refer to the corresponding User s Manual WH1202A NFA ET pdf located in the doc folder of the V850ES Fx3 GAN 3 10 External Potentiometer R14 A 47K potentiometer R14 is connected between Vcc and ground The potentiometer arm is connected to port P713 of V850ES FG3 device This is equal to the ANI13 analogue input 3 11 AD converter reference voltage input A 1 2V reference voltage is supplied to the ANI14 analogue input equal to port P714 of V850ES FG3 device User s Manual U18560EE1VOUMOO 20 V850ES Fx3 CAN it 3 12 Temperature sensor NEC For temperature measurement and primarily as an application example a
67. ocation Specification 3 Windows Ab 40 Figure 26 Windows XP Logo Testing 3 Windows Ab 40 Figure 27 USB Driver Installation Completion 1 Windows SP 41 Figure 28 Found New Hardware Wizard 2 Windows Sb 41 Figure 29 Search Location Specification 2 Windows Ab 42 Figure 30 Windows XP Logo Testing 2 Windows AP 42 Figure 31 USB Serial Port2 Driver Installation Completion Windows An 43 Figure 32 DEVICE Manager scada loaded 44 Figure 39 DIVE URI Ss tala to a it 45 Figure 34 DRIVEN UNAS tale rastas 45 Figure 35 Completion of Driver Ulomstallaton 46 Figure 36 GUI Software Main WIndoOW sn000111nnnnens1n1nnreosrrnnrnrnnrssnnnrrrrnossnnnrrrrrossrnnrrrrrnnsnnnrnreennnnnnreeeee 47 ROUE 37 TOOIDAMBUNON Sx a oa 48 FIQUS 38 Ele Men soon 49 Figure 39 HEX File Selection nee EE 49 Figure 40 Device En RE 50 Figure 41 Device Setup Window Standard occccccoccncccccncoconcccnnnncnnnnnnnnncnnnononancnnnonnnancnnnnnnnnncnnnonnnanennnoss 52 Figure 42 Setup Window Parameter File Selection ooocccccccconnconccononnconncnnnanonnnonnnnncnnnnononncnnnnnnnanenonoss 53 Figure 43 Parameter File Selection Wmdow 53 Figure 44 Setup Window Communication interface to device occccccccocnccnccccnnnnnnnonnnnncnnnonnnancnnnonnnanennnnss 54 Figure 45 Setup Window Supply Oscillator Gelechon 54 Figure 46 Setup Window Operation Mode n01nnn01nnn01nnn01nnnoennnesnnnnnnnrnnnnnnnonnrre
68. of the target device 2 Erase command E da The Erase command erases the flash memory of the target device connected to the de FPL 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 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 3 Program command D 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 FPL 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 comman
69. on between the V850ES Fx3 CAN it board and host machine Figure 44 Setup Window Communication interface to device Communication interface to device Port Speed Port list box Select a channel for communication between the V850ES Fx3 CAN it board and host machine e COM1 to COM16 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 Remark For selectable communication rates refer to the user s manual of the device used lt 3 gt Supply oscillator Supply oscillator is used to select a clock that determines programming data transfer and a transfer rate Figure 45 Setup Window Supply Oscillator Selection supply oscillator Frequency Mis 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
70. oncanonconcancnnnnroncnncanonrnnrnnnnrnnrnn ran nnrnnrnrnnrnnrnnnnrnnrnananes 20 3 11 AD converter reference voltage input ooooncccconnncicoccnnccocnncononcnconnnnanconnnnnronnnnnnrrnnnnrrrnannrrrrnannrenmanas 20 3 12 Temp rature EIERE EE 21 3 13 External LED S DI DA ee ee Eed Ee ee ee 22 4 V850ES Fx3 CAN it CPU module Components cs cseseceeeceeeceeeceeeceeseeeeenenenenenens 23 4 1 V850ES Fx3 CAN it CPU lee TITTEN 23 4 1 1 External connector ENT and Ke LEE 24 4 2 High Speed CAN connector CNG cccconocccconccccconcocccnnnancononanrnnnnnnrcnnnnnrrrnnnnrrrnnnnnrrrnnnnrrrnannrrrnannrrnnananes 24 4 3 CAN connectors CN3 and CN4 n ooccocccccocccccocconcnncanconconconconconconrnnronrnnrnnrnnrnnrnnrnnnrnranrnnnnnnnnnnaranraanasa 25 4 4 External power supply input CNB ccconncccococococcccococccnnnccnnanononaronanarennnrnnnnnrnnnnrrnnnrenanarenanarenanrrnannnns 25 44At IN WIFe CONNECIO CNO EEN 26 5 On Chip debugging dia 27 SCH OGD Via Ke EEGEN 27 5 2 OCD Via N Wire debugging WE 28 6 V850ES Fx3 CAN it installation and Operation ccooccocccoccconccnnconaconaronaronaronananananananos 29 6 1 Getting started EE 29 eti DOV COMEN EEN 29 User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC Ez Hardware instalation a eege 30 9 SOTMWare INSTA AMON eo Dd do 30 8 1 IAR Systems Embedded Workbench for V850 installation ooocccconnnicononicoconicccnncannnonannnnnnas 30 9 2 TK V850 driver IS CANA ON oa
71. ou install a device driver for a hardware device To continue click Mert Back User s Manual U18560EE1VOUMOO Cancel NEC 36 V850ES Fx3 CAN it NEC 8 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 19 Search Method 2 Windows 2000 Found New Hardware Wizard E Install Hardware Device Drivers A device diver is a software program that enables a hardware device to work with y an operating system This wizard will complete the installation for this device G USB Serial Port Check that Search for a suitable driver is selected k device driver is a software program that makes a hardware device work Windows eeds driver files for pour new device To locate driver files and complete the rstallation click Next What do vou want the wizard to do Ce Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a sp driwer Cancel 9 Check the Specify a location check box only then click Next gt Figure 20 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Files W Where do vou wart Windows to search for driver files Search for driver files for the following hardware device USB Serial Port The wizard searches for suitable drivers in its driver database on your compu
72. p menu allows you to modify the settings of items other than those items consisting of shadowed characters according to the user environment This window shows all basic options that can be set in accordance with the user environment and target device button Clicking the button saves the settings on the Standard and Advance menus and closes the window Cancel button Clicking the button closes the window without saving the settings on the Standard and Advance menus 52 V850ES Fx3 CAN it NEC lt 1 gt Parameter file This file holds parameters and timing data required to rewrite the flash memory of the target device Do not modify the data in the parameter file because the data is related to the guarantee of rewrite data The parameter file is protected by the checksum function If the checksum result indicates an error the FPL does not accept the parameter file Figure 42 Setup Window Parameter File Selection Parameter file PAM File read Figure 43 Parameter File Selection Window ee aixi Look in Sy PRM da ft File name Fp Files of type PRM Files PRM Lancel PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open E User s Manual U18560EE1VOUMOO 53 V850ES Fx3 CAN it NEC lt 2 gt Communication interface to device Communication interface to device is used to select a channel for communicati
73. r is selected f e Search for the best diver for your device Recommended Display a list of all the drivers in a specific location 0 You can select the driver you warnt Back SS Cancel User s Manual U18560EE1VOUMOO 31 V850ES Fx3 CAN it NEC 3 Check the Specify a location check box only and enter C Program Files NECTools32 FPL DRIVER in the address bar then click Next gt Figure 9 Search Location Specification Windows 98SE Add New Hardware Wizard Windows wull search hor new dineers m ts diner database on your hard dive and in arg of the following selected locahors Click Next bo sat the search Floppy disk drives CD ROM dive Microsoft Windows Update lt 1 gt Check Specify a location only vw Specily a locatar C Program Files HNECT 003 FP Vic KM yi lt 3 gt Click lt 2 gt Enter C Program Files NECTools32 FPL DRIVER Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 4 The window below is displayed Click Next gt Figure 10 Checking Driver to Be Installed Windows 98SE Add Hew Handware Wizard Windows diver hle search for the device USB High Speed Senal Correte Windoves is now ready to install the best diner for the device Chick Back to select a diflerent diver or click He to Combine Location ol driwer l Click 3 CAPROGRS
74. r icons Action log window Displays an FPL action log displayed under the toolbar Programmer parameter window Displays programming parameter displayed to the right of the action log settings window Status bar Displays status 9 3 Toolbar The toolbar contains buttons for starting the important procedures of the FPL Figure 37 Toolbar Buttons Device gt Program button Device gt Verify button Device gt Autoprocedure EPV button User s Manual U18560EE1VOUMOO 48 V850ES Fx3 CAN it NEC 9 4 Menu Bar Depending on the actual device status and device type some menu items may be enabled or disabled 9 4 1 File menu Clicking the File menu displays the pull down menu as shown below This menu mainly contains commands related to file operation Figure 38 File Menu zz File Device Wi Load Flash lpennine ash Open OK 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 39 HEX File Selection Window File name Files of type HEX FilesfHEX 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 programm
75. ration V850ES FG3 project and output files ER workspace file IAR Embedded Workbench V850 V850ESFX3_CANIt eww VESES pec and opes oS L Debug L inc L settings source E xc L CAN Demonstration L Reaction Time Measurement L Timer Demonstration L UART Demonstration emt JAR Embedded Workbench veso Table 22 Example directory structure The main directory contains only the project files for the IAR Systems Embedded Workbench V850 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 V850ES FG3 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 V850ES FG3 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 V850 IAR Embedded Workbench IDE User Guide User s Manual U18560EE1VOUMOO 78 V850ES Fx3 CAN it NEC 13 2 ADC demo This sample program realizes a simple voltage meter By using the integrated ADC the voltage supplied to ADC on input channel ANI13 port P713 of t
76. rch for a oy USB lt gt Serial suitable driver is selected A device diver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the Installation click Next What do vou want the wizard to do Ce Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a spe driver lt Back veo Cancel 3 Check the Specify a location check box only then click Next gt Figure 14 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Files WK Where do vou want Windows to search for driver files Search for driver files for the following hardware device oy USB lt gt Serial The wizard searches for suitable drivers in its driver database on your computer and in Check that Specify a any of the following optional search locations that you specify To start the search click Next IF you are searching on a floppy disk or CD ROM drive insert the floppy disk or CO before clicking Mest location only is checked ed hed Optional search locations T Floppy disk drives Click CD ROM drives W Specify a location Microsoft Windows Update lt Back Nets f Cancel User s Manual U18560EE1VOUMOO 34 V850ES Fx3 CAN it NEC 4 Enter C Program Files NECTools32 FPL DRIVER in the address bar then click O
77. s The CANO interface of the V850ES FG3 device is connected to transceiver IC3 whereby the standby mode control of the CAN transceiver is selected by port P915 The CAN1 interface of the V850ES FG3 device is connected to transceiver IC2 whereby the standby mode control of the CAN transceiver is selected by port P912 4 4 External power supply input CN5 By using connector CN5 not assembled external power supply can be applied to the V850ES Fx3 CAN it board without a need of an active USB connection VDD 5V Table 16 External power supply input CN5 Note Be sure to unplug the USB connection before applying external power supply to input CN5 User s Manual U18560EE1VOUMOO 25 V850ES Fx3 CAN it NEC 4 4 1 N Wire connector CN9 Connector CN9 not assembled allows connecting the QB V850MINI EE On Chip debug emulator to the V850ES Fx3 CAN it board in order to use the N Wire debug function of the V850ES FG3 device QB V850MINI EE is a separate product from NEC and it is not included in this starterkit package 5 GND J6 DDN 7 JGND 8 DRST 9 GND t0 ENC 17 GND 18 DO Table 17 N Wire connector CN9 To enable N Wire debugging by using the QB V850MINI EE please set switch SW4 to the following configuration Table 18 SW4 configuration for OCD via QB V850MINI EE For more details on how to configure V850ES Fx3 CAN it in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING
78. s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 9 FPL FLASH programming software 9 1 Introduction The parameter file of the V850ES FG3 device is installed automatically during installation of FPL GUI folder lt FPL install path gt PRM Nevertheless newest version of parameter file for the uPD70F3377 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 FPL EXE install path gt PRM created during GUI software setup refer to CHAPTER 6 SOFTWARE INSTALLATION 9 2 Starting up the GUI Software e GUI software startup Select FPL EXE from the start menu to start the FPL GUI software When the GUI software is started normally the following screen appears Figure 36 GUI Software Main Window Menu bar RFPL gt FlashOpennine Bi x Flash Open K Mame GPU Version Programmer Firm Version Toolbar ExtCode parameter Wendor window Load file Parameter file Name Format Version Processor Ver Action log window Connection to device Status bar 4 Ready NUM User s Manual U18560EE1VOUMOO 47 V850ES Fx3 CAN it NEC This window consists of the following items Display Information displayed at the top FPL displayed under the menu ba
79. s show in the figure below and start the download by pressing the OK button IAR Embedded Workbench IDE him File Edit View Project Tools Window Help PEA ee See Workspace ADC_demo Debug i s Hardware Setup for TK 850 850ES DF3377 i x EF BR DG ZS x 8 O Bl vs50ESPX3_CANIT EJ ADC_demo Debuc ER CPU mode Single chip Glock Main WS 5 000 E MHz Ha DF3377_HWinit s85 e Cancel a D inite cee Sub SE kHz e fz interrupt c FFFFFFFFFFFFFFFFFFF None Hal led c Default a E Lowinit_V850ES_FG3 c Peripherals in debug state Clock in debug state ttings La E Output CG Running tain OSC talization D CAN_demo Debug Y Stopped Curent OSE ation b React_demo Debug Y Bb Timer_demo Debug d Pin mask Combo break DJUART_demo Debug J MNMIO AE MW HOLD W RESET f Enabled character RAM MN M DBINT M WAIT IV STOP Disabled Memory map Access size Auto il Start address Length Kbytes Type 0x0 Y Ox00000000 Ox0007FFFF Internal ROM 512 KE Auto Ox03FF7000 Ox03FFEFFF Internal RAM 32KB Auto Overview 4DC_demo CAN_demo React_demo AU Modify Remove Remove All Messages Building configuration ADC_demo Debt Updating build tree Configuration is up to date Ready num 2 Figure 67 TK V850 hardware setup menu User s Manual U18560EE
80. silicon temperature sensor KTY13 5 is connected to the ANI15 analogue input equal to port P715 of V850ES FG3 device The temperature sensor has a resistor range of R 1mA The distribution of the temperature factor k is shown in the table below centigrade with 1 1950 e and R 25 min 25 max Ta kr max 50 0 506 0 518 0 530 A0 0 559 0 570 0 581 30 0 625 0 635 20 0 676 0 685 0 694 10 0 741 0 748 0 755 a 032 10 0 886 0 890 20 0 961 0 962 25 10 30 1 040 1 041 40 1119 1 123 1 126 50 1 209 1 215 60 1 300 1 308 70 E ER 50 1 506 a0 E ren 100 1 680 1 700 1 720 110 1 810 1 833 120 1 896 1 923 1 951 130 2 041 2 072 140 2 128 2 163 150 2 235 2 274 1 Normalising point The sensor resistance can be calculated as following Table 11 Distribution of temperature factor kr 1 m Example R 2000 2 A a a ere ES E DEER Ee User s Manual U18560EE1VOUMOO 1990 e at 25 degrees 21 V850ES Fx3 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 4AxfB 4xBxkr a C 2XxB with a 7 88x10xK 5 2 B 1 937x 10 xK Fr R25 kT 3 13 External LED s D1 D4 LED s D1 to D4 are connected to port PCT of the V850ES FG3 device A low signal output at each port switches the corresponding LED on Table 12 LED D1 D4 connection
81. sting to verify its compatibility with Windows AP Tell me why this testing ls important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation User s Manual U18560EE1VOUMOO 40 V850ES Fx3 CAN it NEC 4 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 27 USB Driver Installation Completion 1 Windows XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for USB High Speed Serial Converter Click Finish to clase the wizard lt Back Cancel Finch 5 Proceed to the installation of the USB Serial Port driver Click Next gt Figure 28 Found New Hardware Wizard 2 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USB Serial Port Pa If your hardware came with an installation CD a WES or floppy disk insert it now What do you want the wizard to do Check that Install from a list or specific is selected Install the software automatically Recommended I
82. ter and in any of the following optional search locations that you specify Check that Specify a To start the search click Next IF you are searching on a floppy dick or CD ROM drive location only is checked Insert the floppy disk or CO before clicking Hest Optional search locations T Floppy disk drives CD ROM drives IY Specify a location Microsoft Windows Update lt Back Cancel User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it NEC 10 Enter C Program Files NECTools32 FPL DRIVER in the address bar then click OK Figure 21 Address Specification 2 Windows 2000 Found New Hardware Wizard Insert the manufacturer s installahor disk into the dive selected and then click OK Copy mapuachrerz Aes fran C Program Filess NECT oola FPLADIRA IVE F Enter C Program Files NECTools32 FPL DRIVER Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER Browse 11 Click Next gt Figure 22 Driver File Search 2 Windows 2000 Found New Hardware Wizard We Driver Files Search Results The wizard has finished searching for driver tiles for pour hardware device The wizard found a driver for the following device USB Serial Port Windows found a driver for this device To install the diver Windows found click Next CG c program Des kpechools 32 Tolkdrtver dort int
83. ustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC Electronics no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measure
84. ve 89 336 EEC Directive on compliance with the EMC protection requirements this equipment has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 005 10 CAUTION This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands EEDT ST 004 10 Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste NEC Electronics Europe GmbH offers to take back the equipment All you need to do is register at www eu necel com weee User s Manual U18560EE1VOUMOO V850ES Fx3 CAN it Regional Information NEC Some information contained in this document may vary from country to country Before using any NEC product in your application please contact the NEC office in your country to obtain a list of authorized representatives and distributors They will verify e Device availability e Ordering information e Product release schedule e Availability of related te
85. y in the following states where the clock supply to UARTDO is disabled IDLE mode STOP mode Main oscillation fx is stopped 12 1 2 Interrupt vectors The following interrupt vectors are used by the monitor program and can not be used by a user program V850ES FG3 uPD70F3377 0x0060 0x0063 DBTRAP debug interrupt vector 0x02C0 0x02C3 UARTDO receive interrupt vector 0x02B0 0x02B3 UARTDO status interrupt vector User s Manual U18560EE1VOUMOO 70 V850ES Fx3 CAN it NEC 12 1 3 Reset vector When a user program is downloaded by using the IAR C SPY debugger the reset vector address 0x0000 of the user program is replaced by the one of monitor program The debugger moves the reset vector of the user program automatically to address 0x0004 The correction of the relative jump address is also done automatically by the debugger Example 0x0000 MOV start R31 0x0000 gt 0x0004 Ox0006 JMP R81 MOV _start R31 0x0008 Ty Ox000A JMP R31 12 1 4 Memory area The monitor program is located in the highest FLASH block of the V850ES FG3 device Only 2 kByte of memory are allocated by the monitor program V850ES FG3 uPD70F3377 0x0007F800 Ox0007FFFF program Moreover the monitor reserves 10 bytes of the global stack area by halting the user program caused by a forcible break debugger stop command or a software breakpoint 12 1 5 Clock operation After releasing a reset the monitor

Download Pdf Manuals

image

Related Search

Related Contents

Manual - The Owl  KX-BP800N 取扱説明書  Combined Course Tool User Manual  VIBROACTION - Tavulesprix.com  Slendertone Premium Abs Bauchtrainer für Damen  クローラトラクター デルタマックス CT401・CT451  HP ElitePad Mobile Retail Solution 64GB Silver  別添1(2)(PDF形式:2262KB)  Makita MAC8000 User's Manual  lil` Boss & lil`Boss Deluxe  

Copyright © All rights reserved.
Failed to retrieve file