Home

User`s Manual EV-K0-HCD

image

Contents

1. AUI q7s457 071 j I esmas 7037 euuouj SH UN wyop IB u7zua7am AO d 7zu37031 sj KI ze u3s a31 eJ g 9euupnuj MIA Abojodo yong KI pasoo H99SZZzYdf zAgo 037 end LA 031 dH NO3 S0d 8 NO23 S04 8 d H27031 ED vr gr d eha 037 D NzHo7037 ED N7tHo aa7 LED H LO31 dH NO2 S0d 8 031 dH d zu3 a31 0D dihan ED 3 1 PJDOB 487331413 GUN gayo 031 uuag ONDA SIB u7eu37 031 By Novus 037 LED d vus 037 UD NzH57 037 ID d zH3 037 ED N02 SOd t NO9 SO0d t Wenga LED d sko 037 LED JIHAW 34AW NOD SOd NO2 SUd t wina 031 UD do 031 EH j3dAv JIHAW 3 1 suibu3 34617 d KH demoran A 3 ozz S 473871 vAud 031 LED i lt 13000 2 SN3s 031 LID Cel qxu d as La fel gy17d ONSd aas ms aL IT ul SE 19d z IU esuas 21 INJA i i La i a B kl a a Te ogy m Bee s A ne Ant II FEE pri BLI 39549920 513 cuu LI ANGAZA sore ka yari 913 SUub ta 30x1 zld eg EJ E Pm m ZYSNIS ERES 2508 19453 ye idle Josuag dua SN3S 031 SS In ZANG NA cAug a3 ED NIA L a s yopzogsazadn Jdogz 199 10N9d E in Z ONDA 3 ras Mites Jdozz 19 I8SN3S on S006 s dY LA 031 D LAGO ao S 5 w4qaq DE ea HYSNAS SU d ONY 0cd Toon Josuas 14617 zn x suas 031 LID Bad NN Bb ta S ai S GREER AJ pzid ceo U gt szm nz
2. NEC do Brasil S A Electron Devices Division Guarulhos Brasil Tel 55 11 6465 6810 Fax 55 11 6465 6829 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC Revision History Revision Chapter Description 28 01 2009 First release 17 04 2009 Description of external LED board corrected 11 05 2009 Updated to Applilet EZ for HCD V3 50 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC Table of Contents T BOTN 11 TE Package Contents si o 11 T2 FANSEN 11 13 System reguiremehfs ee 12 19 TradelunarKS A A AA 12 2s AI WAO o 13 De AS O wa 13 22 EO Sima 13 2 9 On bo rd LUXEON Rebel LEDS si ii a uie a a eed 14 2A iexternal CED BOAT A Pr PET MENS 16 2 5 LED Eight Engine CONE ti se 16 2 06 RS 4S5 DMX 512 Interface aa 17 2l RS NEA NN 17 2 6 Expansion IO Connector e an as 17 2 9 USB Programming and Debugging Interface n xxrnnnnnunnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnennnnnnnenn 18 210 Ampient Light SONAS n cede Yap eic eaa cua ali kW ad 18 2 11 Temperature SEIS OF ii iii el MIS IU 18 2 12 DIP WC coito rm 18 2 13 C SWNG OT D IIT SEES III 18 3 Shine It installation and operation eeeeeeeeeeeee seen e eene enne nnn nnn nnns 19 SL Getting Started ni ee GA 19 3 2 CD ROM CONTENTS ii A es 19 3 3 Pre programmed Demo Application xrannrnnnnnnnnonnnnnnnnnnnnnnnnnnennnnennnnnnnnnnnnnnnnnnnnnnennnnennnnnnnnnnnnnennnner 19 4 Had wa NSA ANN ad
3. User s Manual 78KO Shine It Demonstration Board for NEC Electronics uPD78f8024 High Current Drive LED Microcontroller Document No U19610EE3VOUMOO Date Published May 2009 O NEC Electronics Europe GmbH 78K0 Shine It NEC e The information in this document is current as of June 2008 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 Electronics sales representative for availability and additional information e No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document e 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 products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others e Descriptions of circuits software and other related information in this document are provided for illust
4. 0603 R16 R17 R24 R25 Vishay R30 Resistor CRCWO0603100KFKEB 5 100 kQ 0603 aa er ammen i meme R18 Resistor CRCWO0603470RJNEA 1 4700 0603 R19 Resistor CRCWO06031K50FKEA 1 1 5 kQ 0603 en lenis CR NN R20 R21 Resistor CRCWO60333ROFKEA 2 330 0603 KOA RK73B2ETTD111J 1100 1210 1 2 watt Murata RT1 Thermistor NCP21XV103JO3RA 1 NTC 10 kQ 0805 Table 8 Bill of materials EV K0 HCD board User s Manual U19610EE3VOUMOO 55 78K0 Shine It NEC 13 EV K0 HCD Board Assembly J5 en J6 J7 Rem J8 mmo Ril R14 mm D3 CI 2008 ons mu NEC ak m fad iii aCe a ne RIO pm mm mn m xl Wn is Ya o A oe om O c Z w C R23 m m m m R28 LUFTET 22 C21 LLILLIES JMPI kalati LL m SE HP LED4 P en 1 t NEC ELECTRONICS AMERICA INC ol mi og ma High Current Drive Evaluation Kit EV K0 HCD Rev 1 0 e een tt Figure 63 EV K0 HCD Bottom Assembly User s Manual U19610EE3VOUMOO 56 NEC 78K0 Shine It 14 Board Layout Figure 64 EV K0 HCD Top Layer o O O e DO WOOD WAO QOQ 000000 000000 38 00000 o DOO e O 95 90 59 e o Figure 65 EV K0 HCD Layer 1 User s Manual U19610EE3VOUMOO 57 78K0 Shine It NEC Figure 66 EV K0 HCD Board Layer 2 01010101010 Figure 67 EV K0 HCD Bottom Layer User s Manual U19610EE3VOUMOO 58 78K0 Shine It MEMO Us
5. Figure 8 Search Method Windows 2000 cccccccssececceeeeeceeseeeceeseecesueeessaeeecsaaeesseageeessaeeessenseeeesas 22 Figure 9 Driver File Location Windows 2000 occccooccncococccnccnoccncononononnnconconononnononcnnnnnnrnnnonnnrnnnnnrnnonnonnnnns 22 Figure 10 Address Specification 1 Windows 2000 ocoococnccccccccncococcnnoconcnconoconnononcnnnnnanonconancnnonnnnnonnaninnns 23 Figure 11 Address Specification 2 Windows 2000 ooccooncncccccccncococcnnoconcnconononnononnnnonnanonnonancnnonnnnnonnnninnns 23 Figure 12 Address Specification 3 Windows 2000 occcoonnccccccccncococcnnocononcononcnnononcnnnonanonnonancnnononnnnnnaninnnss 24 Figure 13 Driver File Search Windows 2000 cooocccccconnoccccoconccconococoncnnnnoncnnnononnnnononnnnnnnnnnnonannnnenonaneness 24 Figure 14 USB Driver Installation Completion Windows 2000 occcccoccncccncccnccocconononcnnconanonconnonononcnnonnns 24 Figure 15 Found New Hardware Wizard 1 Windows XP rrrrnrnnrnrnrnnnrenrnnnrrevnnnenenrnnerennnnnrnnrnnerennnnsnennnnn 25 Figure 16 Found New Hardware Wizard 2 Windows XP rrrnnnnnrnenrnnnrerrnnnrrrnrnnnrenrnnsrennnnnrnnrnnenenrnnsnennnnn 25 Figure 17 Search Location Specification 1 Windows XP oooooccccccocccccccocnconononnononcnnconanononnoncnnnnnnrnncnnaninnnns 26 Figure 18 Search Location Specification 2 Windows XP ooooccccccocccccocococonononnononnnnoonnonnononcnnnnnnrnnonnaninonns 26 Figure 19 Wind
6. occcccooccnnccccnnononcnnconacononnanenononcnnonnns 34 Figure 33 Applilet EZ for HCD Controller Flash programming status ooocccnconconoconnnnccnanonnnnanennnnoncnnnnos 34 Figure 34 Applilet EZ for HCD Controller Save File as variable xMl ooooooccncccoccnncccoccnconononononcnnnnnns 39 Figure 35 Applilet EZ for HCD Controller Dimmer Program selection Variable 35 Figure 36 Applilet EZ for HCD Dimmer Programming Window ccccceeceeseeeeeeeeeeeeesaeeeeesaeeeesaeeeeessaees 35 Figure 37 Applilet EZ for HCD Controller Wave Editor Set ocooooccccocncococoncnnononnononnononnononnnnonnanonnos 36 Figure 38 Applilet EZ for HCD Controller Variable Dimmer Control settings set 37 Figure 39 ADC potentiometer connection cccccccseeeeecceeseeecseseeecceuseecceuseeeceseecseaseeessageeessageeesssaseeeses 38 Figure 40 Applilet EZ for HCD Controller Save File as ADC xml oooocccccocccncococconononcnnconanononononnononcnnnnnos 38 Figure 41 Applilet EZ for HCD Controller Dimmer Program settings Analog Input 39 Figure 42 Applilet Ez for HCD Controller Save File as uartO xml ooocccconccncococcnncccoconconononononnnnonnanonoos 40 Figure 43 Applilet EZ for HCD Controller Dimmer Program settings Serial Command 40 Figure 44 Microsoft HyperTerminal Connection
7. 20 5 Software Instalados 20 5 1 Applilet EZ for HCD Controller installation annernnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnennnnennnnnennnnnennnnne 20 5 2 IAR Systems Embedded Workbench for 78K installation 21 5 3 Device file package of pPD78F8024 for IAR Embedded Workbench installation 21 54 WEZI INS CAMAUON ii id 21 5 5 USB Driver Installa mE pues 21 5 5 1 Installation on Windows 2000 A A AAA AA dees 21 9 92 Installation on Windows B iii ie e AAA A 25 5 6 Confirmation of USB Driver Installation easrrnnnnnnnnnnornnnnernnnennnnnnnnnnnnnnnnnnnnnnennnnnennnnnennnnnennnnnnnnnr 27 6 Applilet EZ for HCD Controller iia 29 T Using the Applilet EZ for HCD Controller anrnnnrnnnnnnnnnnannnannnennnennnennnnnnnnnnnnnnnnnnnnnnnnnnnre 30 7 1 Exercise 1 Applilet EZ for HCD Controller settings eese 30 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC 8 1 8 2 9 1 9 3 10 10 1 11 12 13 14 Exercise 2 FIX dimmer program id 32 Exercise 3 Variable dimmer proQraM ccoonnccocncccococccnnocincnronnnnronnnnrrnnnnrrnnnrrnnnnrenanrrnnnnrrnannrenannrnnans 34 Exercise 4 Analog input program e ia AKRA KENN rrrnnnrrrnnrrrnnrenannrenanes 37 Exercise 5 UARTO serial command program srxrrnnnvvnnnnnvnnnnnnnnnnnnnnnennnnnennnnnernnnnrnnnnennnnennnnnennnnnr 39
8. 3 Driver My Comenta A C EVK HCD l SE My Netefbrk Places lane IMOB2SALL int Files of type Setup Information inf Cancel Locate to CDROM Driver EV KO HCD Figure 10 Address Specification 1 Windows 2000 Ss My Network P 5 The setup information file MQB2ALL inf is automatic selected then click to proceed within driver installation Locate File MOBZSALL e My Documents hy Computer uw File name MOB2SALL My Network F Files of type Setup Information int Figure 11 Address Specification 2 Windows 2000 Cancel 6 After the location of the USB driver has been specified click to proceed User s Manual U19610EE3VOUMOO 23 78K0 Shine It NEC xi Inzert the manufacturer s installation disk into the drive OK selected and then click OK Cancel Copy manufacturer s files from fl ADriversEV KO HCD Figure 12 Address Specification 3 Windows 2000 T Click Next Driver Files Search Results gt The wizard has finished searching for diver files for your hardware device SS The wizard found 4 driver for the following device p USB Device Windows found a driver For this device To install the driver Windows found click Next Z c program hles ar speterstembedded workbench 4 0 f8kAconfiginecte po drversminicube mdqhesall inf Cancel Figure 13 Driver File Search Windows 2000 8 Click to complete the
9. Description ooocccccocnnnccncccncononnnnononcnnnonanonnnnancnnonnnnnnnnos 41 Figure 45 Microsoft HyperTerminal Connect to occccccocnoccccoconoconnnnoconcnnnnnnnnnnonannnnononnnnonannnnnnannncnnnnnaness 41 Figure 46 Microsoft HyperTerminal COM1 PropertiesS ooooccccooccoccccoconconoccnnononcnnnnnnnnnnonanonnonnnrnnonanenonos 42 Figure 47 Microsoft HyperTerminal ASCII settings 1 2 ooocccoonncnncccccnccnoccnnononcnnnonanonconanonnononnnnnnnanonnos 42 Figure 48 Microsoft HyperTerminal ASCII settings 2 2 occcoooncncconnnnconoccnnononcnnnonanonnonanonnononrnnnnnanonnos 43 Figure 49 Microsoft HyperTerminal Command Window ccccooccncccoccncccnncnnconccnnonononnnnoncnnconanononnanenonnncnnnnnns 43 Figure 50 WIITGEZ 3 Stantu Wi 45 Figure 51 WriteEZ Device Setup Dialogue coooccococccnoccccoconccconocononnnnnnnnnnnnonannnnononnnnnnnnnnnnnnannncnnnnnaness 45 Fogure 92 WriteEZS Device Men Uli e e A 46 Figure 53 WIIGEZ30PeN NE ua A i 47 Figure 54 IAR Embedded Workbench Startup occccococcocccccconncconnncoconcnnonacnnnononnnnononnnnnnnannnnnnannnnnnnaneness 48 Figure 55 IAR Embedded Workbench Open Workspace cccoocccccccncccccnccoccnccononocononcnncnonncnnnnnnnononcnononenonos 49 Figure 56 IAR Embedded Workbench Debugger Options occccccoccncccocccnccnoccnnononcnnononononnanononnancnnononcnnnnnos 49 Figure 57 IAR Embedded Workbench Linker Options cccoooccncococcncccon
10. Flash Programmer Win gt ii oa 45 DEVICE Sep aura 45 USING WINGE a AA E 46 Set up a IAR C SPY debug sessioOn rrranrrrnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnennnennnnennnnnnnnr 47 Flashing the Debug monitor usais 47 Changing the EXEC communication DLL rrnnnnnvrnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnennnnnnnnennnnennnnnnennnnn 47 Debugging the project within the IAR Embedded Workbench 48 ESN 51 USB interface cable Mini B type rrrvnnnnnnnnnnnnvnnnnnvnnnnnnennnnnnnnnnnnnnvnnnnnnennnnnennnnnnnnnnnnnnennnnnnennnnnnner 51 SCENE AA RES 52 Bill OT maternal AA 54 EV KO HCD Board Assembly nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnennnunnnnun 56 Board LAO 57 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC List of Figures Figure 1 EV KO HCD Board Top VIEW sa 13 Figure 2 EV KO HCD Board Bottom View ooocccccocccncoconcnnconoconcononcnnonnnnnnonncnnononcnnnnnnrnnnnnnnrnnonnnrnnnnnaninns 13 Figure 3 Driving ihe On board LEDS cid 15 Fig re 4 Driving External LED Boards a a a a EN 16 Figure 5 Driving the Dialight Light Engines rrrnnnrernnnrernnnnvrnnnnvrnnnvnnnnnvnnnnvnnnnnennnnnennnnnennnnennnnsensnnnennnnnene 16 Figure 6 Shine It CDROM autorun exe scien een Bene een eatin een 20 Figure 7 Found New Hardware Wizard Windows 2000 oooccccccoccncccccccnconoccnonononnononcnnconarononnanennononcnnnnos 21
11. XI Wikan SAAANA SEZ 00d g S did E toll us od SR TU gus aay Y 7 T Ca Oy J DO La ani E Cn Cn OG i5 OHJ 20 SU gins a3 gt LJ 49790 x JIWAW s isu3s 031 UD mrs o9 2 Murs kam SE eH3790Y qam IED A 40077 Te Zid 1H isnas7a131 Ll ud 2 pid NIA fant 1209 JIHAW JSUUDUD angry 803 suonpanBijuog PJDOg 53 y OGA NIA EV K0 HCD schematics 1 2 Figure 60 User s Manual U19610EE3VOUMOO 92 78K0 Shine It A 9 g 2 2 d2H 03 43 Lo sl ale 80 27 5000 dt 2u DDIJOLUV 5821u04 28 4 JIN oe NO9 SOd E 0 ED Mi Isir 7170 3 1 ZISXNO FT 740H NOHS TT ridna ND aga r Inola Uu GU ood jill 680 i Niza inoz i Fm val see uzid gt oot NL ser3d 8 2 822 ZAS 3 1 zecsu T aig IEDA480 u jNILL LQ 1NOLL YMd NOD ar INDIG e T angg ua WA 3nz0 Ng 1037 ELSA anpe 225 FZ 29 a 929 ange Ay OYIS 922 h 19 BI TUF l zn y 3 1 S8vSu Y TETSU 00 LAS JIHAW aga aga 00A88f m mal G 194053 x hzo pza Eza T ar 194 ondasn 77 094 N S 90Nd 1 HD gi 8090 d1NI 2 4 Jasi nere 293485N gg KULE aga l Ex ix iz SSA ssa zz sal isiL eed 9934 5 DLHAQVAH aaa X00L youl gz 0601 0611 41d v0020 1X 1zld hz a ada ol 874 28 LHOL Dld 80020 12x3 2X 7zld as dg QQABSN 111 gt yds lt TH be E L9d 09d AWAY ha 13838 L az Sid owi ood IED al CU zia ganan ED il UXLTA gz 90 4 tld 138385 gia Le os x1 CU
12. a d ITS agya Lo rate INTXA OdLNI Od Id xdi aga OND fx gz 0105 74 Q001L 00d zz L9PPST QIIS Hd 000 1 01011 10d A0 OGA S 3 ba 09 201820dN EN izy gg 098 014 Ld1NI 02d 4 sosuag 9 agbiz ES x uoisupdx DI J ER mi lt L gama gza E lt 13s38 d X0 czy ZMS aaa 3 1 bngag 9 bunuwnibold gsn 53 EV K0 HCD schematics 2 2 User s Manual U19610EE3VOUMOO Figure 61 78K0 Shine It NEC 12 Bill of materials ur HODMLEDMOY ppovercozick 1 Tai U HCD LED MCU l uPD78F8024GK 1 64 pin LQFP unus MOSFETS pPAvSSGR la epnSoP ane U2 U3 MOSFETs uPA2756GR 8 pin SOP dual N FET HE Voltage regulator Tl UA78M05CDCYR SOT 223 5V 500 mA Light sensor Avago APDS 9005 020 1 6 pin miniature SMD NEC Electronics USB MCU uPD78F0730MC 1 30 pin SSOP m 3 RS 232 485 tcrv Maxim MAX3161EAG 24 pin SSOP Q1 Q2 MOSFETs NEC 25J461 SC 59 PFET D1 D2 D3 D4 Schottky diode ST STPS140A 1A 40V SMA footprint Schottky diode Diodes BO520LW 7 F 500 mA 0 385 Vf SOD 123 R4 Current sensor KOA SR732BTTER332F 4 100 PPM EM BOP eones HP LED1 High power LED 0040 1 LUXEON Rebel Red um MM HP LED2 High power LED 0050 1 LUXEON Rebel Green amer rr HP LED3 High power LED 0023 1 LUXEON Rebel Blue EF rr HP LED4 High power LED 0070 1 LUXEON Rebel White L4 Inductor 470MR59 PF 4 6028 SMD J1 J2 J3 J4 connector Tyco 5535676 5 dual dip jm E rn J5 J6 J7 J8 connector 172703
13. adc xml Select File Save as and input ADC xml and then click Save Fl ml variable xml File name ADC xml Save as type Save Files xml v Figure 40 Applilet EZ for HCD Controller Save File as ADC xml User s Manual U19610EE3VOUMOO 38 78K0 Shine It NEC 3 Change the Dimmer Program to Analog Input Use each channel moving average E Figure 41 Applilet EZ for HCD Controller Dimmer Program settings Analog Input 4 Use the each channel selection and choose a moving average of 6 5 Make sure that the EV KO HCD board is in programming mode SW1 1 set to OFF and the USB cable is connected correctly Click the save button and afterwards the All P button After downloading the application disconnect the USB and set the EV KO HCD board in the run mode as described in Exercise 2 point 7 Turning the potentiometer clockwise will dim the LEDs and counter clockwise will increase the brightness the LEDs 7 5 Exercise 5 UARTO serial command program This program controls the duty value for each channel based on the given serial communication command The serial command programs support either binary or ASCII communication format For this exercise we will use UARTO with the ASCII command set A straight DB9 female to female cable is required for this exercise Host PC target EV KO HCD KI Comma 0x2C Comma 0x2C LineFeed 0x0D ik OKOA Comma 0x2C Comma
14. allows configuration these peripherals for the simple control programs We will take a look at UARTO Select Project UARTO UARTO Settings Speer Data Parity Start bit Stop Figure 25 Applilet EZ for HCD UART settings on In the UARTO setting you can configure the baud rate or Speed and the Parity type Click OK to leave the setting at 9600bps and odd parity 6 The Applilet EZ is able to use the NEC Compiler for 78KO as well as the IAR Embedded Workbench for 78K To select click Setting Compiler and choose the IAR compiler when using the Applilet EZ for HCD Controller with the Shine t starter kit User s Manual U19610EE3VOUMOO 31 78K0 Shine It NEC pplilet El for HCD Controller d Bete Help Compiler CO7BEO w LOR FLASH Program Folders ar Program HHED O Fix Figure 26 Applilet EZ for HCD Controller Compiler selection Note Make sure that you have installed the selected compiler correctly to your PC host system before building the project ra Now let s take a look at the output folder option select Setting Folders These locations will specifv the output paths of the generated files Enter in vour desire destination but keep in mind that Applilet EZ will create subdirectories under this folder for each Applilet EZ project Click OK Folder Setting Save to CA Documents and Settings HCO m Project C Documents and settings H LD tl Figure 27 A
15. and complete the Installation click Next What do vou want the wizard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can choose a specific driver Back Cancel Figure 8 Search Method Windows 2000 3 Check the Specify a location check box only then click Next gt Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search for driver files for the following hardware device y USB Device Check that Specify a location only is checked The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Nest If vau are searching an a floppy disk or CD ROM drive insert the floppy disk or LLI before clicking Next Optional search locations Floppy disk drives CD ROM drives IV Specify a location O Microsoft Windows Update Back Cancel Figure 9 Driver File Location Windows 2000 4 Locate to the folder CDROMiDriventv KO HOCD User s Manual U19610EE3VOUMOO NEC 22 78K0 Shine It NEC 5 c EBs History Desktop 4 My Documents in Computer cd 3 Floppy amp Local Disk L History 3 Local Disk D iz Local Disk E m Lacal Disk F Mu Document Removable Disk h m BK SHINEIT 1
16. installation of the USB driver Found New Hardware Wizard Completing the Found New Hardware Wizard O MEL Electronics Starter Kit Virtual UAA T Windows has finished installing the software for this device Click To close this wizard click Finish amp Back Cancel Figure 14 USB Driver Installation Completion Windows 2000 User s Manual U19610EE3VOUMOO 24 78K0 Shine It NEC 5 5 2 Installation on Windows XP 1 When the EV KOHCD board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started At first the hardware wizard will ask if windows should search on the windows update web check No not this time and then click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Check that No not this time is selected Can Windows connect to Windows Update to search for software CO Yes this time only Ses now and every time connect a device Click Nest to continue Figure 15 Found New Hardware Wizard 1 Windows XP 2 Check that Install from a list or specific location Advanced is selected then click Next gt Found New Hardware Wizard This wizard helps
17. one red R one green G one blue B and one white W By default the board is set to drive the LEDs with jumper wires inserted into the four Tyco six position receptacle connectors refer to J1 J2 J3 and J4 in the schematics User s Manual U19610EE3VOUMOO 14 78KO Shine It yu is HP LED HP LED2 HP LEDA HP LEDI gt k NEC ELECTRONICS AMERICA INC High Current Drive Evaluation Ki EV KO HCD Rev 1 0 Ooooh Figure 3 Driving the On board LEDs User s Manual U19610EE3VOUMOO NEC 15 78K0 Shine It NEC 2 4 External LED Board The EV KO HCD board can connect and drive commercially available external LED boards To do so you must first remove the jumper wires inserted into the four Tyco receptacle connectors J1 J2 J3 and J4 before installing the LED boards You can then cascade multiple LED boards in one channel as long as the number of LEDs meets the requirement specified by Formula 2 Figure 4 Driving External LED Boards 2 5 LED Light Engine Connector The EV KO HCD board has four LED light engine connectors refer to J5 J6 J7 and J8 in the schematics to the 4 pin terminal block The following table describes the function of each pin Analog input Ground 2 Ground LED anode LED cathode Table 1 LED Light Engine Connectors They can be used to drive up to four off the shelf LED light engines for example the POWERWHITE linear light engine modules from Dialig
18. resistor is disconnected To connect it insert a jumper into the JMP1 header refer to JMP1 in the schematics 2 7 RS 232 Interface A DB9 male connector is used for the RS 232 interface By default RS 232 function is disabled To enable it place DIP switch refer to SW1 in the schematics position 4 in the ON position 1 4 6 7 8 9 Not connected Table 3 RS 232 Connector 2 8 Expansion IO Connector A dual row 10 pin header footprint in 2mm pitch is available on the EV KO HCD board refer to CN3 in the schematics the uPD78F8024 device s UARTO CSI and I2C signals are pulled out on this connector The following table shows the pin out connections Pot GND Ground S 2 VDD Logicpowersupply 3 RXSI UARTORXsignal CSldatainputsignal 4 TXSCK UARTO TX signal CSI clock signal 5 SO CSI data output signal A JO PO O Timer TMOO capture input 8 SDA PCdatasignal AA 9 X GND X Ground y O 10 VDD Analog voltage reference Table 4 Expansion IO Connector The expansion IO connector pin outs are compatible with the NEC Electronics ZigBee sticks interface users can add ZigBee 802 15 4 wireless capability to LED lighting applications User s Manual U19610EE3VOUMOO 17 78K0 Shine It NEC 2 9 USB Programming and Debugging Interface The EV KO HCD evaluation board implements an on board USB programming and debugging interface using the NEC Electr
19. 0x2C LineFeed 0x0D TUNE OKOA 1 byte 1 byte 2 bytes 1 byte 3 bytes 1 byte 1 byte 1 Make sure that you have set all the settings as explained in Exercise 1 2 We will resave the new Applilet EZ project name to uart0 xml Select File Save as and input uart0 xml and then click Save User s Manual U19610EE3VOUMOO 39 78K0 Shine It NEC ADE xml Fix xml om variable xmi File name art xml Save save as type Save Files xml v Figure 42 Applilet Ez for HCD Controller Save File as uart0 xml 2 Change the dimmer program to Serial Command Select UARTO as the interface and ASCII type e Serial Command br UARTO type Figure 43 Applilet EZ for HCD Controller Dimmer Program settings Serial Command 3 Make sure to deselect the All Channel Synchronize check box Configure the board into programming mode SW1 1 set to OFF and attached the USB cable Click the save button and then click the All P button 4 Remove the USB cable and now change the SW1 4 to ON in order to change the Maxim RS232 485 device to be in RS232 mode 5 Attached the DB9 cable to the board and then applv power to the board 6 Open a text terminal application We will use Windows HyperTerminal as an example Click Start Programs gt Accessories gt Communications gt HyperTerminal T Enter the connection name EV K0 HCD and click OK User s Ma
20. 6 4 POS 3 8 1 MM PCB GRN CUI PJ 102A 2 1 mm barrel internal switch o musa isse USB connector Hirose UX60A MB 5ST oe Be rre i jme CN2 connector Tyco 1734352 1 1 angle Expansion IO 2DSA 05 2 5 2 mm pitch EN RART a osammrenem onnector 1727023 3POS 3 81MM PCB GRN JMP1 o Jumper 2POS 0 1 pitch SWi Tactileswith Omron B3FS 1012 me DIP switch Omron A6H 6101 6 position SMD 1 27 mm pitch mme Ed EE Y1 resonator BO 1 8 MHz radial ve lon ir ng MN Y2 Crystal 16 000MABJ UT 1 ppm 18 pF 140805 footprint 0805 footprint EP ans iria SB3 Solder bridge 0603 footprint EP PE C21 C22 Capacitor C0603C180J5GACTU 2 18 pF 0603 cs cocos Capacitor COGociosKePACTU 3 1uF 10v 0603 0 C3 C24 C25 Capacitor C0603C105K8PACTU 3 1 uF 10V 0603 User s Manual U19610EE3VOUMOO 54 78K0 Shine It NEC Coto imens a aam Capacitor C0603C221K5RACTU 4 220 pF 50V 0603 commie Emne Capacitor C0603C101J5GACTU 1 Kemet Capacitor CO603C104K5RACTU 10 0 1 uF 50V 0603 C10 C16 C18 C31 Kemet C32 Capacitor C0805C475K8PACTU 5 4 7 uF 10V 0805 TDK C1608X7R1E473K 0 047 uF 0603 EE oe S wewu a C29 C30 Capacitor C0603C334K8PACTU 4 0 33 UF 0603 ad PE i mm R8 Resistor OO0ELF 4 0Q 0603 100 pF 0603 Vishay Resistor CRCW060311KOFKEA 1 11 kQ 0603 Vishay Resistor CRCWO060310KOFKEA 10 KO 1 0603 R15 R26 Vishay R28 Resistor CRCWO6031KOOFKEB 3 1 KQ 1
21. 78K installation To install the IAR Systems Embedded Workbench for 78K including C SPY debugger simulator press the regarding button from the Autorun of the CDROM provided within the Shine it package The setup dialogues will guide you through the installation process The installation can also be started by executing the Autorun exe program in the directory IAR Embedded Workbench of the CDROM For further information about the IAR Embedded Workbench installation refer to the InstallationGuide ENU pdf in the directory of the CDROM Note Please make sure to install the device file package of the uPD78F8024 for the IAR Embedded Workbench as explained below before using the Applilet EZ for code generation and download to the target device 5 3 Device file package of uPD78F8024 for IAR Embedded Workbench installation To install the device file package of the uPD78F8024 for the IAR Embedded Workbench just press the regarding button from the Autorun of the CD ROM provided within the Shine it package The setup dialogues will guide you through the installation process The installation can also be started by executing the dev install exe in the directory ADevice file package of the CDROM 5 4 WriteEZ3 installation To install WriteEZ3 for the IAR Embedded Workbench just press the regarding button from the Autorun of the CD ROM provided within the Shine it package The setup dialogues will guide you through the installation process T
22. U19610EE3VOUMOO 19 78K0 Shine It NEC 4 Hardware installation After unpacking the 78KO Shine it Starter kit connect the board via connector CN1 to your host computer using the provided USB interface cable When EV KO HCD board is connected the USB driver needs to be installed on the host machine Please refer to the following CHAPTER 5 SOFTWARE INSTALLATION 5 Software installation The Shine it package comes with the following software packages e Applilet EZ for HCD Controller e AR Systems Embedded Workbench for 78K 4Kbyte code size limited including C compiler assembler linker librarian and IAR C SPY debugger simulator e Device file package of uPD78F8024 for IAR Embedded Workbench for 78K e WriteEZ3 flash programmer including the PRM file for uPD78F8024 Demonstration Kit 78K0 Shine it Applilet EZ Installation IAR Embedded Workbench Installation Device file package uPD78F8024 Installation Figure 6 Shine it CDROM autorun exe 5 1 Applilet EZ for HCD Controller installation To install the Applilet EZ for HCD Controller just press the regarding button from the Autorun of the CD ROM provided within the Shine it package The setup dialogues will guide you through the installation process The installation can also be started by executing the AppEZHCD msi in the directory Applilet ofthe CDROM User s Manual U19610EE3VOUMOO 20 78K0 Shine It NEC 5 2 IAR Systems Embedded Workbench for
23. as expected 1 Select the right prm file as explained in chapter 8 1 Device Setup The regarding 78F8024 prm file can be found on the CDROM in the folder CDROM WRITEEZ3 PRM files 78KO 2 Set the Supply Oscillator frequency to 8MHz 3 The next step is to load the debug monitor hex file File Load and select the KO_MF2_UART6_MON hex from the CDROM folder CDROM WRITEEZ3 Look in WRITEEZ3 amp e Eg Filename IKO MF2 UARTE MON hex Files of type S rec i Hex files rec si hex Lancel Figure 53 WriteEZ3 Open file 4 Click the erase program verify button 5 If the procedure was successfull the debug monitor is now correctly flashed to the device 9 2 Changing the EKEC communication DLL The next step to establish a debug session is to change the regarding debug communication DLL of the IAR Embedded Workbench Note Please make sure that the IAR Embedded Workbench for 78K is closed during this procedure 1 Locate the exk0320 dll in the C Program Files VAR Systems Embedded Workbench Kickstart 5 0 78k config nec User s Manual U19610EE3VOUMOO 47 78K0 Shine It NEC 2 Create a backup of this file for example exk0320_backup dll d Copy the new EXEC communication DLL exk0320u dll from the CDROM folder CDROM IAR Embedded Workbench to the folder C Program FileslAR Systems Embedded Workbench Kickstart 5 0 78k config nec 4 Rename the exk0320u dll in
24. ault B8 Figure 56 IAR Embedded Workbench Debugger Options 5 Exchange the linker command file Project Options Linker Config Override default and then push the button User s Manual U19610EE3VOUMOO 49 78K0 Shine It NEC Options for node debug project Category Factory Settings General Options Clt Compiler Assembler Custom Build Build Actions Config Processing Et Extra Output define Diagnostics List Linker command file kW Override default Debugger aa EJ IE 75 zi IECUBE MINICLIBE Simulator Override default program entry TK 78 fa e Search paths one per line TOOLKIT DIFSALIEA Haw binary Image File Symbol Segment Align E M P teen Figure 57 IAR Embedded Workbench Linker Options 9 Select the Ink78f8024 EV K0 HCD xcl linker command file This file can be found in the IAR Embedded Workbench folder C Program FilesUAR Systems Embedded Workbench Kickstart 5 0 78k config Look in B config e t er Ed i Ink78F 1187 e4 xcl Ink78FBDZ0 hex xcl Ink78F9177 xcl Ink78F 1188 e4 xcl Ink78f8024 xcl Ink 8f9177a xcl My Recent iInk7er8002 xcl a E ink7efo177ay xcl Documents eS nkzefeo04h xcl ll Ink78f9026 xcl ls Ink78f9177y xcl My Me Flaces Ink78F8005h xl Ink78F8006 xcl Ink78F8006h xcl Ink78F8014 xcl Ink7ef8015 xcl Ink78F8016 xcl Ink78F8017 xcl Ink78F8018 xcl Ink7ef8019 xcl Ink7BF8019 he
25. be controlled either by menu or by buttons F WriteEZ3 View Help Blank Check Erase Program Verify Security Checksum AutopracedurerEPV Signature read Get Security settings Setup Device Mame D IBERIA Firm Version 2 10 ExtCode fFO4 Ch Vendor 10h Parameter file Name 8F50 4 Format 0414 Version 44 00 Processor Ver 0200 Load file Mame KO MF2 UARTE_MON Date 2008 06 18 16 06 56 Chksum OBEEh Area OOO000h 0003C35h Connection to device Port LOMA Speed 115200 Range Chip Freg 800 Multiply 1 00 Figure 52 WriteEZ3 Device Menu device setup button load file button blank check button erase button program button verity button erase program verify button Table 7 WriteEZ3 action buttons WriteEZ3 supports Intel Hex and Motorola S record file formats as input file User s Manual U19610EE3VOUMOO 46 78K0 Shine It NEC 9 Set up a IAR C SPY debug session The following chapter describes the necessary steps to set up an IAR C SPY debug session using the EV KO HCD board 9 1 Flashing the Debug monitor Unlike to other 78K OCD Debug Interfaces the debug monitor program is not automatically downloaded by the C SPY Driver to the target device To be able to start a debug session this debug monitor has to be downloaded by an additional tool WriteEZ3 Please use following configuration to make sure that the flash programming of the debug monitor works
26. cnnconconconononnononcnncnnanononnanenononcnnnnnos 50 Figure 58 IAR Embedded Workbench xcl file selection ooooooccccoooccncoconcnnocononoononcnnononcnnonanononos 50 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC Figure 59 Figure 60 Figure 61 Figure 62 Figure 63 Figure 64 Figure 65 Figure 66 Figure 67 USB Interface cable MINIFB NYA ai A Matis 51 EV KO HCD Schematics 1 AI Ai 52 EV KOHOD Schematics Ia 53 EV KO HCD TOpsASSOMIDIY is 56 EV KO HCD BDSM ASSEN ai 56 EV KO ACD LOP EVE AA 57 EV KOHCD LAE a E 57 EV RO FCD Board ai 58 EV KO HED Boton Layer sii io 58 User s Manual U19610EE3VOUMOO 78K0 Shine It NEC List of Tables Table 1 LED Light Engine Connectors emisiami i a a ae a a e a NA 16 Table 2 RS 485 DMX 512 CONNEC CIOFS avsa 17 Table 3 19 292 ONE 17 Tabled Expansion IO EM ii 17 Table 5 Board Conig raton O DION Si a a e 18 Table 6 Shine I t CD ROM directory structure ooccccccocncccccnnncoconcnncnnonnnnnnonnnononcononnnnnnnnnannnconannnnenannnnnss 19 Table 7 WALEZI acuon DUTON se 46 Tabie 8 Bill of materials EV KO HED board ii aw 55 User s Manual U19610EE3VOUMOO 10 78K0 Shine It NEC 1 Introduction The Shine it evaluation kit for NEC Electronics highly integrated general purpose uPD78F8024 microcontroller MCU with high current drive allows you to demonstrate the MCU s capabilities and easily develop intelligent code for emerging high power LED l
27. er s Manual U19610EE3VOUMOO NEC 99
28. hOpenning Device Flash Open OK Name gt gt ParameterFile Heading Su s Head ParameterFile Firm Version Ext ade Vendor Parameter file Name FOFOF 30 Format 0414 Version 141 02 Processor Ver 0200 Load file Mame Date Chksum rea Connection to device Port COMES Speed 115200 Range Chip Freg 16 00 Multiply 1 00 c Figure 50 WriteEZ3 Startup 8 1 Device Setup To provide all necessary information about the device to be programmed only the corresponding flash parameter file must be loaded The parameter file prm for the uPD78F 8024 is located on the CDROM in the same folder as the WriteEZ3 setup file Please use the menu Device gt Setup to open the following dialogue and the button PRM File Read to select the parameter file f Device Setup i Schreibtisch erfassen e Parameter file 78F8024 prm FRAM File Read Host connection Supply oscillator Fort CoM Frequency 18 00 Speed Multiply rate 11 00 Operation Mode t Block Sud C y i Target Reset Message Figure 51 WriteEZ Device Setup Dialogue User s Manual U19610EE3VOUMOO 45 78K0 Shine It NEC Please check that the correct host communication port is selected The used communication port can be seen in the Windows Device Manager 8 2 Using WriteEZ3 After a successful device selection the internal flash memory can be blank checked erased programmed or verified WriteEZ3 can
29. he installation can also be started by executing the setup exe in the directory AWRITEEZ3 of the CDROM 5 5 USB Driver Installation In order to use the EV KO HCD board the USB driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 2000 Page 21 Installation on Windows XP Page 25 5 5 1 Installation on Windows 2000 1 When the EV K0 HCD 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 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next Figure 7 Found New Hardware Wizard Windows 2000 User s Manual U19610EE3VOUMOO 21 78K0 Shine It 2 Following the window below is displayed So check that Search for a suitable driver is selected then click Next gt Found New Hardware Wizard e Install Hardware Device Drivers device driver is software program that enables a hardware device to work with an operating system This wizard will complete the installation For this device Check that Search for a USB Device suitable driver is selected device driver is a software program that makes a hardware device work Windows eeds driver files for your new device To locate driver files
30. ht Before installing the modules you must first remove the jumper wires inserted at the four Tyco receptacle connectors J1 J2 J3 and J4 The analog inputs pin 1 amp 2 on the connectors are mainly for connecting to off board thermister on the light engine module but can be used for any analog inputs such as potentiometer light sensors etc Please not that each analog input is biased with a 10kohm resistor refer to R11 R12 R13 and R14 Note There are six LUXEON Rebel high power LEDs in series in one POWERWHITE light engine module Therefore the power supply must be a 24Voc 1 5A with a 2 1mm center pole center positive Jack connector to meet the requirement specified by Formula 2 EA Figure 5 Driving the Dialight Light Engines User s Manual U19610EE3VOUMOO 16 78K0 Shine It NEC 2 6 RS 485 DMX 512 Interface The EV KO HCD board supports DMX 512 protocol over RS 485 using the MCU s UARTO port The RS 485 DMX 512 connector is a 3 pin terminal block connector that accepts up to 24 American Wire Gauge AWG wires 2 D Table 2 RS 485 DMK 512 Connectors The uPD78F8024 MCU s UARTO portis shared between the RS 485 and RS 232 connectors through a Maxim level shifter refer to U7 in the schematics By default the RS 485 connector is enabled and the RS 232 one is disabled If required an on board 1100 resistor can be inserted between D and D of the RS 485 DMX 512 port as a terminating resistor By default the
31. ighting applications Compact yet flexible and functionally versatile the board can be used to drive four channels of single or multiple high power LEDs in any of three different configurations e With the on board LUXEON Rebel LEDs e Example for Use of External LED Board e Using off the shelf LED lighting engines such as the Dialight linear engine The board also can be used to control and dim individual LED channels by means of analog and digital sensor inputs such as temperature light and color Various serial communication protocols are supported by this board including C SPI RS 232 and RS 485 DMX 512 Users can program change and debug code easily and free of charge using the on board USB programming and debugging interface available June 2008 1 1 Package contents e EV KO HOD board e 15Vpc 1A power supply e USB cable e One set of plastic stands and screws e CD ROM with Applilet EZ software and an evaluation copy of the IAR Embedded Workbench for 78K with 4Kbyte code size limitation Please verify that you have received all parts listed in the package contents list attached to the Shine it package If any part is missing or seems to be damaged please contact the dealer from whom you received your Shine it 1 2 Features e NEC Electronics uPD78F8024 high current drive HCD LED MCU e NEC Electronics uUPA2756 dual N channel MOSFETs e Four channels of constant high current LED drivers e Buck topology e Upt
32. ings as explained in Exercise 1 2 Save the new Applilet EZ project name to variable xml Select File Save as and input variable xml and then click Save User s Manual U19610EE3VOUMOO 34 78K0 Shine It NEC Save n HCO fix Fix xml File name variable xm Save as type Save Files ml v Figure 34 Applilet EZ for HCD Controller Save File as variable xml 3 Now we have a new Applilet EZ project file and we will change the dimmer program to Variable Figure 35 Applilet EZ for HCD Controller Dimmer Program selection Variable 4 Click on the Edit button under Variable and the Variable Dimmer Control window will open Enter 600 for the data points and enable the Cyclic check box Select Ch 1 for the RED LED channel an activate the Graph Button DIMMER PROGRAMING All Sole 4 ee B ae aj EH a duty p 30 Data Size 600 Points 1 600 10points s v Cyclic CANCEL Figure 36 Applilet EZ for HCD Dimmer Programming Window User s Manual U19610EE3VOUMOO 35 78K0 Shine It NEC 5 Using vour mouse pointer vou can draw the PWM dutv cvcle versus time in the Black window 6 Draw something close to the sinusoidal wave below DIMMER PROGRAMING Edit Ta xy Ch l ch 2 ch 3 Ch 4 3l Data Size 600 Points 1 600 10points s v Cyclic CANCEL Figure 37 Applilet EZ for HCD Controlle
33. l Directive 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 For customers in the European Union only 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 http www eu necel com weee User s Manual U19610EE3VOUMOO 78K0 Shine 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 P
34. lliamps mA of constant output current However you can increase output current up to 700 mA by changing the current sensor s User s Manual U19610EE3VOUMOO 13 78K0 Shine It NEC resistor values using the following formula refer to R1 R2 R3 and R4 in the schematics Please note that you need to change the inductors refer to L1 L2 L3 and L4 in the schematics current rating accordingly if you wish to drive at more than 350mA R 0 115 LED Fomula 1 Where Rs current sensor s resistor value and liep LED current When driving the LEDs at 350 mA the current sensor s resistor value should be set to 0 33 ohm The number of LEDs that can be used in series per channel is determined by the supply voltage and the LED forward voltage using this formula y Nun Fomula 2 Where Vin supply voltage Vr LED forward voltage current and Nmax maximum number of LEDs in series per channel Generally the sum of LED forward voltages must be less than the supply voltage for buck mode operation For a 24V power supply for example a maximum of six LEDs with 3 5V forward voltage may be used in series per channel LED driver outputs can be connected in one of three configurations e To the on board LUXEON Rebel high power LEDs e To LED boards with LUXEON K2 high power LEDs e To LED light engines 2 3 On board LUXEON Rebel LEDs There are four LUXEON Rebel high power LEDs mounted on the back of the EV KO HCD board
35. 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 an NEC Electronics sales representative in advance to determine NEC Electronics willingness to support a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above M8E 02 11 1 User s Manual U19610EE3VOUMOO 78K0 Shine 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 Counci
36. nual U19610EE3VOUMOO 40 78K0 Shine It NEC Connection Description 1 a x 7234 Mew Connection Enter a name and choose an icon Far the connection Mame JEW KOH CD Icon Figure 44 Microsoft HyperTerminal Connection Description 8 Specify the appropriate COM port for your connection and click OK D EW K0 HCD Enter details for the phone number that you want to dial Country region United States of America 1 Area code 408 Phone number Connect using E Cancel Figure 45 Microsoft HyperTerminal Connect to 9 Input 9600 for baud rate 8 bit odd parity and no flow control Click OK User s Manual U19610EE3VOUMOO 41 78KO Shine It LOMI Properties Figure 46 Microsoft HyperTerminal COM1 Properties 10 Click File Properties Settings tab Click on the ASCII Setup button EY K0 HCD Properties Figure 47 Microsoft HyperTerminal ASCII settings 1 2 User s Manual U19610EE3VOUMOO NEC 42 78K0 Shine It NEC 11 Enable the check box for Send line ends with line feeds and Echo typed characters locally Next click OK to close the ASCII Setup window ASCII Sending W Send line ends with line feeds v Echo typed characters locally Line delay o millseconds Character delay o milliseconds ASCII Recewing Append line feeds to incoming line ends Force incoming data to 7 bit ASCII M wrap lines that exceed terminal wid
37. o 700 mA per channel e Supply voltage from 10 to 24 Vpc e On board LUXEON Rebel LEDs red green blue white e Four External LED Board Connectors e Four LED light engine connectors e USB programming and debugging interface User s Manual U19610EE3VOUMOO 11 78K0 Shine It NEC e RS 232 interface e RS 485 DMX 512 interface e Expansion IO connector e On board temperature sensor e On board ambient light sensor e DIP switch for board configurations e Reset switch for uPD78F8024 device reset 1 3 System requirements HOST PC A PC supporting Windows 2000 Windows XP or Windows Vista is required for the IAR Systems Embedded Workbench demo version A Pentium processor with at least 1 GHz CPU performance with at least 256 Mbytes of RAM allowing you to fully utilize and take advantage of the product features 500 Mbytes of free disk space and an additional 10 Mbytes of free disk space on the Windows system drive A web browser and Adobe Acrobat Reader to be able to access all the product documentation Host interface USB interface that enables communication based on USB Ver1 1 or later Note Updates of the lAR Embedded Workbench for 78K documentation and or utilities for the Shine it Starter Kit if available may be downloaded from the NEC WEB page s at http www eu necel com SHINEIT 1 4 Trademarks IAR Embedded Workbench visualSTATE IAR MakeApp and C SPY are registered trademarks of IAR Systems AB Microsoft Windo
38. obat 3 Applilet 7j Device file package Gy Doc i3 dotnet E E Driver me EV KE H CD C IAR Embedded Workbench Eh samplehex Ey WRITEEZ3 To view any subfolders click a plus sign above Figure 18 Search Location Specification 2 Windows XP 9 As shown below NEC Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway User s Manual U19610EE3VOUMOO 26 78K0 Shine It NEC Hardware Installation The software you are installing for this hardware NEC Electronics Starter Kit Virtual UAR T has not passed Windows Logo testing to verify its compatibility with Windows P Tell me why this testing i 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 Continue Anyway e Figure 19 Windows XP Logo Testing Windows XP 6 After the installation of the USB driver is completed the window below is displayed Click to close the hardware wizard Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for iem NEC Electronics Starter kit Virtual LI amp RT E Click Finish to cl
39. onics uPD78F0730 USB MCU You can download code to the uPD78F8024 HCD LED MCU from a host computer via a mini USB cable and then proceed to debug that code for information about debugging refer to the regarding chapter 2 10 Ambient Light Sensor The EV KO HCD board populates a miniature surface mount light sensor part number APDS 9005 from Avago Technologies to sense the intensity of ambient light By default this sensor is disconnected from the uPD78F8024 MCU s A D converter input To connect to it place DIP switch SW1 position 5 in the ON position 2 11 Temperature Sensor The EV KO HCD board populates a negative temperature coefficient NTC 10 kQ thermistor to sense the temperature of the on board LEDs By default the thermistor is disconnected from the uPD78F8024 MCU s A D converter input To connect to it place DIP switch position 6 in the ON position 2 12 DIP Switch The EV KO HCD board uses a 6 position DIP switch SW1 for configuration purposes The following table shows the various configuration options SW1 1 USB programming mode Normal operation SW1 2 Self flash programming mode SW1 3 User defined User defined SW1 4 RS 485 enabled RS 232 RS 232 enabled RS 485 disabled disabled SW1 5 Ambient light sensor disabled Ambient light sensor enabled SW1 6 Temperature sensor disabled Temperature sensor enabled Table 5 Board Configuration Options 2 13 Reset Switch The on board reset switch refer
40. ontroller Applilet EZ for HCD Controller is a tool used to automatically generate software for microcontroller UPD 8F8024 which is used to control the high current driver and write programs Software can be easily generated by specifying the setting and operation of the y4PD78F8024 on the GUI The generated software can be directly written to the flash memory of the uPD78F8024 via a USB cable and an operation check can be performed by using the EV KO HCD evaluation board By using Applilet EZ for HCD Controller an application system that uses the uPD78F8024 can be introduced without requiring a detailed knowledge of complex programming languages Furthermore labor for software development for microcontrollers which used to take a long time and operation checking can be significantly reduced For a further information please refer to the Applilet EZ for HCD Controller User s Manual U19178EJ4V0UM00 pdf which can be found in the CDROM Doc Applilet EZV folder User s Manual U19610EE3VOUMOO 29 78K0 Shine It NEC 7 Using the Applilet EZ for HCD Controller In the following chapter the different functionalities will be explained in short exercises Exercise 1 and 2 can be used as short quick start example to light up the LEDs mounted to the EV KO HCD board The exercise 3 to 5 will give a further description of the possibilities in usage of the Applilet EZ for HCD Controller 7 1 Exercise 1 Applilet EZ for HCD Controller se
41. ontroller compilation progress 5 Next click OK when prompt to start flash programming User s Manual U19610EE3VOUMOO 33 78K0 Shine It NEC AppEzHCD b s i 1 Start FLASH programing Cancel Figure 32 Applilet EZ for HCD Controller Start Flash programming 6 During the flash procedure you will be informed about the actual status of the download Create the project folder Generate C code Start Compilation HEA file fik hes was created Start FLASH programing HEX file was read Flash Blank Checking not blank then erase Flash Erasing chip erase finish Flash Programming Start Flash Programming 1027 Flash Programming 202 Flash Programming 3055 Flash Programming lt 5083 Flash Programming lt 60 Flash Programming lt 7043 Flash Programming 8055 Flash Programming finish Figure 33 Applilet EZ for HCD Controller Flash programming status 7 Click CLOSE to exit the Build window Remove the USB and change SW1 1 to the on position for run mode Insert the power connector or the USB cable to the board and you should see the LEDs light up to finish this exercise HP LED1 channel 1 Red Il HP LED2 channel 2 Green Il HP LED3 channel 3 Blue IV HP LED4 channel 4 White 7 3 Exercise 3 Variable dimmer program This program sets the duty value for each channel given by drawing pattern data 1 Make sure that you have set all the sett
42. ose the wizard Cancel Figure 20 USB Driver Installation Completion Windows XP 5 6 Confirmation of USB Driver Installation After installing the USB driver check that the driver has been installed normally according to the procedure below When using the EV KO HCD board the NEC Electronics Starter Kit Virtual UART should be present like in the figure below Please check in the Windows Device Manager within the Windows Properties Hardware tab that the driver is installed normally User s Manual U19610EE3VOUMOO 27 78K0 Shine It NEC ak Es Device Manager File Action View Help E r ES Am Mg ETC LABOR X Computer See Disk drives E Display adapters DVDICD ROM drives Floppy disk controllers A Floppy disk drives y IDE ATAJATAPI controllers vu Keyboards 77 Mice and other pointing devices Monitors BS Network adapters 4 Ports COM amp LPT Communications Pork COM E Communications Pork COM Ag ECP Printer Port LPT1 E MEC Electronics Starter Kit Virtual UART COP de Processors E SCSI and RAID controllers a Sound video and game controllers S s Storage volumes mg System devices Universal Serial Bus controllers FF GE GE GE EGG EG Check that NEC Electronics Starter Kit Virtual UART COM is present Figure 21 Windows Device Manager User s Manual U19610EE3VOUMOO 28 78K0 Shine It NEC 6 Applilet EZ for HCD C
43. ows XP Logo Testing Windows XP oooooccccccoccocccooconconoconconononnononcnnnonanonnononcnnnnnnrnnnnnaninnnns 27 Figure 20 USB Driver Installation Completion Windows XP oo ooooccccccocccccccoccococononnonnaconconanonnononcnnnnnanenoos 27 Figure 21 Windows Device Manager o 28 Figure 22 Applilet EZ for HCD Controller Main Window ccooccccoccncccccnccoccnoconnnonocnnoncnnnnnnnnnonnnononononononos 30 Figure 23 Applilet EZ for HCD Controller Setting nn ra nanna nanna 30 Figure 24 Applilet EZ for HCD Controller CPU settings ss nennnnnnnnnn nanna mann nanna rna nnnnnnnmn nn nn n na 31 Figure 25 Applilet EZ for HCD UART settings lessen nennen 31 Figure 26 Applilet EZ for HCD Controller Compiler selection ss nnnnnnnnznnnnnnnnnnnnnnnnnnnnnn nazz nn 32 Figure 27 Applilet EZ for HCD Controller Folder SettingS seren nnnnnnn nara mann n nn nn nn nnmn nn nn 32 Figure 28 Applilet EZ for HCD Controller Dimmer Program settings FIX neennnzzennnznennnnzznnni 32 Figure 29 Applilet EZ for HCD Controller Save File as fix xml L nennnnnnnnnnnnnnnnnnennnnnnana nn nanna 33 Figure 30 Applilet EZ for HCD Controller All Program button ss nnnennnnnnnnnnnnnnnnnnnnannnnnnann nn nanna 33 Figure 31 Applilet EZ for HCD Controller compilation progressS ccoccccccccccccnncccnnnnoconononononononononononononos 33 Figure 32 Applilet EZ for HCD Controller Start Flash programming
44. pplilet EZ for HCD Controller Folder Settings 7 2 Exercise 2 Fix dimmer program This program set a fixed duty value for each channel of the 4 LED channels Make sure that all settings like explained in Exercise 1 are still correctly set for this exercise 1 Make sure Fix is still selected as the dimmer program and input 10 to all the channels so they are not too bright Dimmer Program e Fix Chi duty 10 Ch2Duy 10 Ch3Dute 10 Ch Dute 10 Select DJ Figure 28 Applilet EZ for HCD Controller Dimmer Program settings Fix Duty parameter available 0 255 2 Now let s save the Applilet EZ project xml We will resave the new Applilet EZ project name to fix xml Select File Save as and input fix xml and then click Save User s Manual U19610EE3VOUMOO 32 78K0 Shine It NEC Save in 9 HCD E fil File name Save as lype Save Files ml w Figure 29 Applilet EZ for HCD Controller Save File as fix xml 3 Make sure to remove the power cable Click the All P Button Make sure that SW1 1 of the Switch Dip is in the OFF position which is the programming mode and then insert the USB connector All P Figure 30 Applilet EZ for HCD Controller All Program button 4 You will be informed about the progress of the compilation Create the project folder Generate L code Start Compilation HES file Tis hes was created Figure 31 Applilet EZ for HCD C
45. r Wave Editor set 8 Repeat the same process for the red channel to the rest of the 3 channels When done click on the close button to exit the variable dimmer control window User s Manual U19610EE3VOUMOO 36 78K0 Shine It NEC DIMMER PROGRAMING ir rl ef elm wje ale 0 30 Data Size Points 1 600 1dpoints s Cyclic CANCEL Figure 38 Applilet EZ for HCD Controller Variable Dimmer Control settings set 9 Make sure that the EV KO HCD board is in programming mode SW1 1 set to OFF and the USB cable is connected correctly Click the save button and afterwards the All P button After downloading the application disconnect the USB and set the EV KO HCD board in the run mode as described in Exercise 2 point 7 You should now see the LEDs on the board running the variable dimming application based on the wave table drawn 74 Exercise 4 Analog input program This program controls the duty value for each channel by looking at the A D conversion result In order to perform this exercise you will need to have a 2 pole 100KQ potentiometer attached the J5 connector which is the ADC channel 0 of the MCU AVREF ADC CHO LED CHI P 1 lt T LED CHIN 4 PDS CUN User s Manual U19610EE3VOUMOO 37 78K0 Shine It NEC Figure 39 ADC potentiometer connection 1 Make sure that you have set all the settings as explained in Exercise 1 2 We will resave the new Applilet EZ project name to
46. rative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information e 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 e 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 an 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
47. roduct release schedule e Availability of related technical 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 other legal issues may also vary from country to country NEC Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 0 Fax 0211 65 03 1327 Sucursal en Espa a Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Succursale Francaise V lizy Villacoublay France Tel 01 30 67 58 00 Fax 01 30 67 58 99 Filiale Italiana Milano Italy Tel 02 66 75 41 Fax 02 66 75 42 99 Branch The Netherlands Eindhoven The Netherlands Tel 040 244 58 45 Fax 040 244 45 80 Branch Sweden Taeby Sweden Tel 08 63 80 820 Fax 08 63 80 388 United Kingdom Branch Milton Keynes UK Tel 01908 691 133 Fax 01908 670 290 NEC Electronics Hong Kong Ltd Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Hong Kong Ltd Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 NEC Electronics Singapore Pte Ltd Singapore Tel 65 6253 831 1 Fax 65 6250 3583 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 5951
48. th E Cancel Figure 48 Microsoft HyperTerminal ASCII settings 2 2 12 Click OK to exit the communication port properties 13 Type 1 wd 100 and hit the Enter key in HyperTerminal Make sure to type it correctly and that you don t use the backspace key if you mistyped If you mistyped hit the enter key to re enter the command E KO HCD HyperTerminal ioj xj File Edit wiew Call Transfer Help Dl i 818 pf d Connected 0 10 03 ANSIW 9600 B O 1 SCROLL Caps NUM Capture P 2 Figure 49 Microsoft HyperTerminal Command Window 14 The red LED should light up with this command User s Manual U19610EE3VOUMOO 43 78K0 Shine It NEC 15 Here s the command list for the ASCII input 1 wd 000 Duty 000 255 Status 128 shutdown 000 enable driver wd Set Duty Write duty cycle from channel number rd Read Duty Read duty cycle from channel number ws Set Status The status of the target is set rs Read Status The status of the target is demanded Channel number from 1 to 4 16 Try to set the other channels using the ASCII command set User s Manual U19610EE3VOUMOO 44 78K0 Shine It NEC 8 Flash Programmer WriteEZ3 The WriteEZ3 is flash programming software to flash hex files to the related device For installation information refer to the chapter WriteEZ3 installation Wiritet g Ix File Device wiew Help PA EAS gt gt Flas
49. to exk0320 dll 9 3 Debugging the project within the IAR Embedded Workbench 1 Start the IAR Embedded Workbench for 78K Start All Programs IAR Systems gt IAR Embedded Workbench Kickstart for NEC 78K 2 Click the Open existing workspace button Embedded Workbench Startup Create new project in current workspace Add existing project to current workspace Open existing workspace Example applications Recent workspaces Do not show this window at startup Cancel Figure 54 IAR Embedded Workbench Startup 3 Open your with Applilet EZ for HCD Controller created IAR workspace file eww User s Manual U19610EE3VOUMOO 48 78K0 Shine It NEC Open Workspace e 1 El 2 C debug project wt include My Recent y obj Documents Esc la debug project ewn Desktop My Network File name debug project eww m Places Files of type workspace Files em Cancel Figure 55 IAR Embedded Workbench Open Workspace 4 Select the MINICUBE as debugger driver Project Options Debugger Driver Options for node debug project Category Factory Settings General Options CIC Compiler Assembler Custom Build Setup Extra Options Plugins Build Actions TUUM Driver MINICUBE QB 7SKOMINL GB 7SKDSssMINI HB MINI2 IE 78 iv Run to IECUBE MINICUBE main Simulator TE 78 Setup macros Use macro file Device descriptions Override def
50. to SW2 in the schematics can be used to reset the uPD78F8024 MCU User s Manual U19610EE3VOUMOO 18 78K0 Shine It NEC 3 Shine it installation and operation 3 1 Getting started The Applilet EZ for HCD Controller allows a GUI based program building and downloading application programs to the EV KO HCD board Therefore it is necessary to have a valid IAR Embedded Workbench for 78K installation on the PC host system As communication interface between the PC host system and the EV KO HCD board a standard USB interface line is needed Before you can download and run a program software and hardware have to be installed properly 3 2 CD ROM contents The CD ROM shows following directory structure E Shine TA CDROM ROOT 1 Acrobat Acrobat Reader for 32Bit Windows OS Applilet EZ for HCD controller UPD78F8024 Device file package Documentation Microsoft dotnet package EV KO HCD driver files AR Embedded Workbench for 78K Example program for the Shine it Starter Kit m WriteEZ3 Flash Programmer WriteEZ3 incl PRM file for UPD78F8024 Table 6 Shine itl CD ROM directorv structure 3 3 Pre programmed Demo Application The EV KO HCD board is pre programmed with a demonstration code that cyclically dims the four on board high power LEDs To run the demo application make sure that the DIP switch SW1 1 is set to ON when connecting the power supply or the USB cable to the EV KO HCD board User s Manual
51. ttings This exercise will go through the Applilet EZ for HCD controller s general settings 1 Open the Applilet EZ EZ for HCD Click Start All Programs Applilet EZ for HCD gt AppEzHCD Untitled Applilet EZ for HCD Controller File Project Build Setting Help Dimmer Program Figure 22 Applilet EZ for HCD Controller Main Window 2 Under the Project menu all of the MCU settings will be listed for configuration Select CPU Untitled Applilet EZ for HCD Controller File Aia Build Setting Help i CPU kjem Te Dimmer Program 9 ke LI Figure 23 Applilet EZ for HCD Controller Setting User s Manual U19610EE3VOUMOO 30 78K0 Shine It NEC 3 In the CPU settings you have to select the Target EV KO HCD Under the clock setting you can choose between the internal 8 MHz and external clock oscillator setting Make sure the clock is on External 8 MHz and then click OK Furthermore you can select the active LED channels Board Property Target EVKOHCD Device UPD FoF 5024 Enable On Chip Debug B IF you check this you cant Clock Source use ARTE Frequency MHz CO Channel 1 v Enable Color M ik All Channel Synchronized Channel 2 Enable Color m Logarithmic dimming contorol Chennel 3 1 Enable Color H Channel 4 Enable Color OH Figure 24 Applilet EZ for HCD Controller CPU settings 4 The uPD78F8024 device contains two UART peripherals Applilet EZ
52. vou install software for USB Device Fasili If your hardware came with an installation CD E or floppy disk insert it now What do pon want the wizard to do CO Install the software automatically Recommended Click Next to continue Tasa fen Figure 16 Found New Hardware Wizard 2 Windows XP User s Manual U19610EE3VOUMOO 25 78K0 Shine It NEC 3 Check that Search for the best driver in these locations is selected Select the Include this location in the search check box and then click Browse Found Mew Hardware Wizard lt 1 gt Check that Search for the Please choose your search and installation options Phan as best driver in these locations SS is selected 8 Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Include this location in the search uoc omes location in the search only Dont search I will choose the driver to install Choose this option to select the device driver from a list Windows dog not guarantee that the driver pon choose mill be the best match for yoyr hardware Figure 17 Search Location Specification 1 Windows XP 4 Locate the folder C CDROM DrivenEV KO HOD and click OK Browse For Folder Select the Folder that contains drivers For your hardware MEE 78K SHIMEIT 65 Ty Acr
53. ws and HyperTerminal 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 U19610EE3VOUMOO 12 78K0 Shine It NEC 2 Hardware The EV KO HCD board measures 3 15 x 3 15 inches or 80 x 80 millimeters mm This small form factor is enabled by the use of components such as inductors that are small in size thanks to the uPD78F8024 MCU s constant current drives with high switching frequency The board is designed with four layers The top layer contains most of the components the first middle layer serves as the power plane the second middle layer adds additional space for traces and the bottom layer serves as the ground plane and assembly for the temperature sensor and high power LEDs The heat generated by the LEDs is dissipated through the pads and vias surrounding the LEDs and LED temperature is sensed by the temperature sensor mounted on top of the dissipation pad Figure 2 EV K0 HCD Board Bottom View 2 1 Power Supply The EV KO HCD board requires a 10 to 24 Vpc power supply with output wattage of at least 5 watts W to light the high power LEDs The barrel type power jack mounted on the board accepts a 2 1 mm center pole connector center positive 2 2 LED Drivers The board s four channel LED drivers are set in buck topology for 350 mi
54. x xcl Ink78F8020 xcl File name Files of type Ink78f9026a xcl Ink78f9046 xcl Ink78F9076 xcl Ink78F9088 xcl Ink78f91 16 xcl Ink78f9116a xcl Ink78f9116b xcl Ink78F9136 xcl Ink78f9136a xd Ink78f9136b xcl Ink78F9156 xcl Ink 78f8024_EW K0 H CO scl el Files cl Ink78F9200 xcl Ink78F9201 xcl Ink78F9202 xcl Ink78f9210 xcl Ink78f9211 xcl Ink78F9212 xcl Ink78F9221 xcl Ink78F9222 xcl Ink78f9232 xl Ink78f9234 xc Ink78F9306 xcl Open Figure 58 IAR Embedded Workbench xcl file selection Cancel Note If you have changed the install location of the IAR Embedded Workbench during installation please refer to the selected location IAR installation folder 78K config T Start a Debug session Project Debug Now you should be connected to the target device using the IAR C SPY debugger Note Make sure to set back the original debug communication DLL from the backup file after finishing the debug session User s Manual U19610EE3VOUMOO 50 78KO Shine It 10 Cables 10 1 USB interface cable Mini B type Series A Plug Series A Plug Series Mini B Plug Figure 59 USB interface cable Mini B type User s Manual U19610EE3VOUMOO NEC Series Mini B Plug 91 78K0 Shine It 11 Schematics e 2h T een 78 Neo 037 LED R DUJ paawy S9 U047928 3 23N 4330425 0 494319438 ZO gu WHO SIBI N tH 031 E

Download Pdf Manuals

image

Related Search

Related Contents

基本情報(特定福祉用具販売)  West Bend L5339 User's Manual  FF 220T User Guide - Extron Electronics  smerigliatrici, pulitrici e levigatrici grinders, polishing  

Copyright © All rights reserved.
Failed to retrieve file