Home
K_Line - Taste it! - Renesas Electronics
Contents
1. OD z 27 UES SWI SP SWS gi wa eT OOTO Si S2 S3 S4 d L upg DODOR13 R12 00 aC E D R34 cig OO RTO co a NI aL g EN Vek O IE O Or R37 Ed on H SE e C19 SS i C2400 C C ai Es A KE DE Se Ou Ss a
2. 9 e E I DEE EE 8 SE C0 720 0090 55H2 lg EN HOE ROE Iroana wadv GE 91 SI 8 a 8 EL ET tr SE et BT el ydd a a 8 a 5 ee A EMS 2 z E R e El 5 T T obed paeogeseg ee ee Sr 4 g s Tani ZI TI 5 5 a TMS gt 3 3 a 5 3 Zoo 3 a 3 3 3 e E 3 g 38 3 007 YHA paeog o CI C4 OSODA gt KS Z AL Sigg b 8 L EE l g s i OMS ja z DA 1 ya eege os gt naa jo 9 D gt OS SSES K i BID PAS Burmeip E z t De D0A O SODA jquiassy SDDOO 2 P afol ul
3. oy NEC EE o SP GI N K LINE Taste it 2 an cs uae A Figure 2 K Line Taste it 2 baseboard connectors switches and LED s Some of the K Line Taste it 2 components are free for user application hardware and software Please read the user s manual of the 78K0 KF2 device carefully to get information about the electrical specification of the available I O ports before you connect any external signal to the K Line Taste it 2 board 12 K Line Taste it 2 NEC 3 1 RESET button SW1 SW1 is a reset button It activates the power on reset It is connected to the reset input of the 78K0 KF2 CPU module 3 2 User button SW2 SW2 is a push button connecting Vcc to external interrupt input INTPO of the microcontroller This is equal to port P120 of the 78K0 KF2 device The port may be programmed to generate interrupt INTPO The necessary initialisation for this purpose is described in the user s manual of the 78K0 KF2 device The port is connected to a 4 7K pull down resistor 3 3 User button SW3 SW3 is a push button connecting Vcc to external interrupt input INTP1 of the microcontroller This is
4. 1 Load command The Load command allows you to select a program file The selected program file is programmed into the flash memory of the device by executing the Program command or Autoprocedure EPV command Figure 38 HEX File Selection Window File name Files of type ES Hex files fr recz sn hes Cancel The file selection window for program loading displays the most recently used directory to which a user program has been loaded After a user program is loaded a checksum calculation is made and the result is displayed in the programmer parameter window button Selects a user program as a program to be written to the target device button Closes the window without selecting a program E 45 K Line Taste it 2 NEC 2 Quit command The Quit menu is the command for terminating the FPL3 GUI software Clicking on the right side of the task bar also terminates the FPL3 GUI software User settings are saved in the FPL3 INI file so that the GUI software starts up next time with the same settings Note 9 4 2 Device menu FPL3 INI is created in the Windows folder when Windows 98SE Windows Me or Windows XP is used When Windows 2000 is used FPL3 INI is created in the Winnt folder Clicking the Device menu displays the pull down menu as shown below This menu mainly contains commands for programming operations such as deletion programming and verification
5. 25 K Line Taste it 2 NEC 7 Hardware installation After unpacking K Line Taste it 2 connect the board to your host computer using the provided USB interface cable When K Line Taste it 2 is connected the USB driver needs to be installed on the host machine Please refer to the following CHAPTER 8 SOFTWARE INSTALLATION 8 Software installation The K Line Taste it 2 package comes with several software demo packages e AR Systems Embedded Workbench for 78K0 78K0S including C compiler assembler linker librarian and IAR C SPY debugger e Device Files for K Line Taste it 2 e FPL FLASH programming software e Sample programs The IAR Systems Embedded Workbenches and the FPL3 FLASH programming GUI must be installed on your PC For detailed installation hints refer to the following chapters and to the corresponding documentation of the IAR Embedded Workbench 8 1 IAR Systems Embedded Workbench for 78K0 78KOS installation To install the IAR Systems Embedded Workbench for 78K0 KOS including C SPY debugger select the SETUP program in the directory IAR Embedded Workbench 78K ew78k of the CDROM The setup dialogues will guide you through the installation process 8 2 Device file installation To install the device files for the K Line Taste it 2 in order to use the IAR C SPY debugger select the SETUP program in the directory Device Files of the CDROM The setup dialogues will guide you through the instal
6. 90 100 110 120 130 140 150 r max 0 518 0 530 0 570 0 581 0 625 0 635 0 685 0 694 0 748 0 755 0 815 0 821 0 886 0 890 0 961 0 962 1 07 1047 1125 1 204 1 209 1 215 1305 1405 ES ren 1720 ES 1 923 1 951 2072 2 128 2 163 2 235 2 274 1 Normalising point The sensor resistance can be calculated as following Table 11 Distribution of temperature factor kr I I mA Example K s 2000 Rr kr Bass Ta 18 K Line Taste it 2 The temperature at the sensor can be calculated from the change in the sensors resistance from the following equation which approximates the characteristic curve a2 4xB 4xBxkr a C 2xB with a 788x10xK 5 2 B 1 937x 10 xK RT R25 kT 3 13 External LED s D1 D4 LED s D1 to D4 are connected to port P5 of the 78K0 KF2 device A low signal output at each port switches the corresponding LED on Table 12 LED D1 D4 connection 19 K Line Taste it 2 4 K Line Taste it 2 78K0 KF2 CPU module components The 78K0 KF2 CPU module is equipped with 4 connectors in order to be connected to user defined hardware Additionally the 78K0 KF2 CPU module contains about connector CN7 for On Chip debugging purpose 4 1 K Line Taste it 2 78K0 KF2 CPU module K LINE Taste it 2 EESS 0600 026 03 Version 3 00 78FO547DGC O ADN CN3 20 19 Figure 4 K Line Taste it 2 78K0 CPU module components 4 1
7. Disable Boot block cluster reprogramming Target Reset Message Cancel lt 1 gt Command options This dialog box is used to specify the FPL3 flash processing command options Figure 48 Device Setup Window Command options Command options Read verify after Program Security fag after Program Checksum after Program Blank check before Erase check box If this check box is checked blank check is made before the Erase command or EPV command is executed If the result of a blank check indicates OK erase processing is not executed Read verify after Program check box If this check box is checked write data is sent from the programmer after execution of the Program command and EPV command then the data is verified against the data written to the flash memory Security flag after Program check box If this check box is checked automatic programming of the selected security flag is executed after execution of the Program and Autoprocedure EPV commands 52 K Line Taste it 2 NEC Checksum after Program check box If this check box is checked the flash memory checksum value of the target device is read from the target device after execution of the Program command and EPV command This value differs from the value displayed in the parameter window of the main window lt 2 gt Security flag settings The lt Security flag settings gt dialog box is used to specify which securi
8. Location on USB High Speed Serial Converter T Device status 2 22 This device is working properly a If you are having problems with this device click Troubleshooter to start the troubleshooter Device usage Use this device enable y OK Cancel Figure 67 Configuration of COM port for IAR C SPY debugger 2 4 Then select the Port Settings tab of the USB Serial Port Properties Window and press the Advanced button USB Serial Port COM3 Properties 3 Ax General Port Settings Driver Bits per second Data bits ax Parity Noe y Stop bits hy Flow control None y Advanced Restore Defaults Press the Advanced button Cancel Figure 68 Configuration of COM port for IAR C SPY debugger 3 4 68 K Line Taste it 2 NEC Within the Advanced Settings menu change the Latency Timer msec to a value between 2 and 4 For faster host computers set the Latency Timer to value 1 Advanced Settings for COM3 9 x COM Port Number USB Transfer Sizes Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for faster performance Defaults Receive Bytes 4096 x Transmit Bytes 4096 ed Change Latency Timer value BM Options Select lower settings to correct response problems ee Latency Timer msec m Miscellane
9. d clear display LCD write CGRAM Ox00 amp bgpatO 0 write display character RAM LCD_write_CGRAM 0x01 ebgpat1 0 LCD_write_CGRAM 0x02 6bgpat2 0 LCD_write_CGRAM 0x03 6bgpat3 0 CGRAM 0x04 amp bopat4 0 LCD write CGRAM O0x05 sbgpats 0 LCD write CGRAM Ox06 sbopat6 O0 LCD write CGRAM 0x07 amp bypat 7 0 ff enable all interrupts dd delay Ln 231 Col 4 Figure 71 IAR project workspace As a next step check some settings of the IAR Embedded Workbench that have to be made for correct operation and usage of the On Board debug function of the K Line Taste it 2 board First highlight the upper folder called ADC demo Debug in the workspace window Then select Project gt Options from the pull down menus Next select the category Debugger Make sure that the driver is set to TK 78 in order to use the On Board debug function of the K Line Taste it 2 board The device description file must be set to io78f054780 ddf Options for node ADC demo Category General Options C C compiler Assembler Custom Build Build Actions Linker IE 78 IECUBE MINICUBE Simulator TK 78 Setup Plugins D rive TK 78 MV Run to main Factory Settings Select TK 78 to use On Board debugging TK 78KOxxx y Setup macros Use macro file le Choose device description file io78f0547
10. e SCSI and RAID controllers 2 sound video and game controllers Check that USB High Speed d System devices Serial Converter is present Universal Serial Bus controllers de AMD 756 PCI to USB Opa Host Contraer E USE High Speed Serial Converter Be USB Root Hub For Windows 98SE Me Caution Do not select and when communicating with the target device For Windows 2000 XP Caution Do not perform Hardware Modification Scan when communicating with the target device Remark In the GUI port list box the same communication port as COM of USB Serial Port COM needs to be selected If the drivers above are not displayed or the mark x or I is prefixed refer to CHAPTER 11 TROUBLESHOOTING 40 K Line Taste it 2 NEC 8 7 Driver deinstallation The driver deinstallation program is installed on the host machine when the FPL3 software is installed Use the procedure below for deinstall the USB driver 1 When using Windows XP log on as the computer administrator When using Windows 2000 log on as the Administrator 2 Double click in the order from My Computer to C to Program Files to NEC Tools32 to FPL3 to DRIVER Ftdiunin exe is displayed Double click Ftdiunin exe Figure 32 Driver Uninstallation File Edit View Favorites BIK r Tools Help Address C Program Files MECTools32lbin PG FPLIDRIVER FTDI Mame gt 901 Release Info DOC E 2134 Release Info
11. 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 41 K Line Taste it 2 NEC 4 Click to complete driver uninstallation Figure 34 Completion of Driver Uninstallation FIDI Uninstaller Version 2 1 Uninstalling YID D0403 amp PID 6001 Deleting registry entres 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 K Line Taste it 2 NEC 9 FPL3 FLASH programming software 9 1 Introduction The parameter file for the 78K0 KF2 device is installed automatically during installation of FPL3 GUI folder lt FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0547D device can by download from the NEC Electronics Web site Download the parameter file for the PG FP4 from the following NEC Electronics Web site http www eu necel com updates Copy the parameter file downloaded from the NEC Electronics Web site into sub directory lt FPL3 EXE install pathAPRM created during GUI software setup refer to CHAPTER 8 SOFTWARE INSTALLATION 9 2 Starting up the GUI Software e GUI software startup Select FPL3 EXE from the start menu to start the FPL3 GUI software When the GUI software i
12. DOC COMPORT DEE A FTCOMPMAS YXD ES FTDIBUS CAT FTDIBUS INF ftdibus sys S FTDIPORT CAT DFTDIPORT INF Ca DRIVER a ETO ee I G My Documents rFTDIUNIN EXE Ey Shared Documents JF FTDIUNIN INI FTSENUM SYS d fly Computer 1 FTSENUM YD J My Network Places feed ce FTSERIAL SYS FTSERMOU INF 3 FTSERMOU YXD E Frseruiz dll 2 FTSERULDLL README TXT File and Folder Tasks 2 Make a new Folder DS Publish this Folder to the Web Ki Share this Folder Other Places Details 3 Click Continue Figure 33 FID Uninstaller Version 2 1 i Continue GJ KS E Search MES Folders ka Double click Driver Uninstaller If your USB device is connected p Press Continue to uninstall the dri Cancel Type wordpad Document wordpad Document PDF File virtual device driver Security Catalog Setup Information System File Security Catalog Setup Information Configuration Settings Application Configuration Settings System File virtual device driver System file System File Setup Information virtual device driver Application Extension Application Extension Text Document wi EJ co Date Modified 6 12 2003 3 18 PM 6 16 2003 1 22 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 4 10 2003 3 00 PM 6 16 2003 1 23 PM 6 16 2003 1 24 PM 4 10 2003 3 00 PM 6 16 2003 1 24 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 4 10 2003 3 00 PM 6 10 2003 5 10 PM 6 10 2003 5 10 PM
13. ISOTA 3 S wise LJ E 0 T Land z 5 rseds E 5 ee ee 3 OSA PNO 6 3 A t su ml a ua peounogsunrxseonv ope os O SODA E es P TAND IAL EI ar AL O SDDA 01 6 zi z 2 _ Amt raumen gt Kei on ZON TT panosddy paxoayy paubisag EMS 8 B A 2 0 I SNL 000 T SEH NOUWNO wa We ra 2 FA L TMS Ya OAL WN a S ii su E 3 S ES et Eo ES Er amp e amp 2 DSO IDA 3 ES S 5 OSODA CH OZOTVEL sunde 18400 sud gt POSEN EO ES udo mikoa uroon be OMS _ _ 8 el AXL NIT AXL ans ATI S HCH IMS n 5 TE MOUNT a Ver VPO TAS lt a e or TMS e 34 20 I 5 N r Mr ULA TALA E ivan n 9 z LE D SAL me SAE 2 FEL LI SIO TALA MM mutt ans sa SE I gg ms nd gt gt SEIGE fyr SIA TALA dISN T Lex vall R EG OG Lo TANDO rr Vy OM Ct CG TODA L Idf za T VIPAT tute lt za Te E TAN oal 3 y Zb 1 axa mal IN 7 oe T sa AN S Se kanel 2 E oe SIODHO MASI Tapora moos a na T vuorsnpedTTans lt Ura lz a ern Bee SE g Bees arian ET CH E FUD ei 14901 CO iv OT rer ax s z Ta Olds JE DD Loh ET LZOT El TV TOT rer ZER ET Loi IX GJO TONTA et Taxa VE o Che Inos ADO DEn SV ay DEG et oz NISTI ADO ee HCH gr DC 4 a D TASTE NAD sel Set VT a TAN O E E a ai E La TE0T sv 801 IOHA KS OSO ODA pi z ET TI TIX NAO ELSEN Ge MOL DA pu mn pl re er FUND OGND Lo ee P O E zi SE OF Se or ow e KSE 20 S S z m ovo Tal hy a LEN SE el OO mon H Se 53 g CH EZ er PVO 1V901 gren
14. equal to port P30 of the 78K0 KF2 device The port may be programmed to generate interrupt INTP1 The necessary initialisation for this purpose is described in the user s manual of the 78K0 KF2 device The port is connected to a 4 7K pull down resistor 3 4 Configuration switch SW4 The different operation modes of the K Line Taste it 2 board can be set by SW4 switches S1 S4 OCD disabled UARTE select LIN bus disabled Table 1 Configuration switch SW4 factory settings 3 4 1 Operation mode selection SW4 S1 SW4 switch S1 controls the operation mode of the K_Line Taste it 2 board Setting SW4 S1 to ON allows to reprogram the internal FLASH memory of the 78K0 KF2 device using the FPL3 FLASH programming software OFF default Normal operation mode FLASH memory programming mode Table 2 Operation mode selection SW4 S1 Within normal operation mode the user program stored in the FLASH memory of 78K0 KF2 device is executed 3 4 2 On Chip debug mode selection SW4 S2 SW4 switch S2 controls the On Chip debug function of the 78K0 KF2 device Setting switch S2 to ON allows to use the On Board debug function of the K Line Taste it 2 board or alternative connecting the QB 78KOMINI On Chip debug emulator to the 78K0 KF2 CPU module connector CN7 OFF default OCD disabled OCD enabled Table 3 OCD mode selection SW4 S2 For more details on how to configure K Line Taste it 2 in order to use On Chip debugging p
15. gps 0x0000 OxBFFF Intemal ROM 48 Kbytes OxE 000 OxF7FF Internal Extended RAM 6144 bytes Log OxFBOO OxFEFF Internal RAM 1024 bytes Fri Oct 07 14 31 04 2005 C SPY Processor Descriptor for Fri Oct 07 14 31 04 2005 C SPY TK 78 Emulator Driver for Remove Al Fri Oct 07 14 31 04 2005 Emulator has to be configured be sr Press OK to enter Emulator Hardware Setup 2 Build Debug Log x Ready MN E Figure 74 TK 78 hardware setup menu 72 K Line Taste it 2 NEC Now the debugger is started and the demo project is downloaded to the K Line Taste it 2 board The progress of downloading is indicated by blue dots in the TK 78 Emulator window Please note downloading of greater executables can take some time JAR Embedded Workbench IDE File Edit View Project Tools Window Help DeOAa sl Belo TY KE Hl WH AID Works adc main c LCD dataf bodl LCD_data bed2 LCD_data bcd3 if bcd0 LCD_string text07 0 Ha BJADC_demo Debug y else LCD string stext08 0 a B78K0 Taste it 2 E adc_main c El inite y El interrupt c E led c Output EE BIREACT demo Debug v main function TIMER demo Debug v DEE BUART demo Debug Y void main void CE TK 78 Emulator unsigned chal unsigned int Downloading application _ disable in MN vHardwarelni ttings vSoftwareInit ff Variable Initialization LCD_init ff LCD Initialization LCD_inst O0x01
16. quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home 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
17. FPL3 FLASH programming software Cause The setting of Supply oscillator in Device Setup may be incorrect Action Make a correct setting according to the specifications of the target device 66 K Line Taste it 2 NEC 12 IAR configuration for On Board debugging 12 1 Setup COM port for IAR C SPY debugger Before using the On Board debug function of the K Line Taste it 2 board together with the IAR C SPY debugger it is necessary to set the corresponding USB serial COM port of the host computer Just be sure that you have installed the USB driver first To set the COM port please execute the registry script file FTDI_Set_Registry reg The script file can be found in the typical installation path of the IAR Embedded Workbench i e C Program FilesdAR System Embedded Workbench 4 0 78k config nec This script file will set the COM port number in the following registry key HKEY LOCAL _MACHINE SOFTWARE NEC Tools NECDEV 78K0 EX e Registry Editor aS aj xj Registry Edit View Favorites Help EMD NEC Tools ER NEDE Et lab Default value not set ees EPEC O0 ORM Pon coms My Computer HKEY LOCAL MACHINEISOFTWAREINEC ToolsyNECDEVI7SKO EX E Figure 65 Registry entry for IAR C SPY debugger COM port setting As default the serial port COM3 is set in the script file If the K Line Taste it 2 board is used on a different USB serial COM port please edit the script file a
18. This is the workspace file that contains general information about the demonstration projects and settings K Line Taste it 2 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 i 5 x File Edit view Project Tools Window Help D suga relel YME MURAD E a 5 78k0_Taste_it_2 Ha BJADC demo Debug y i Overview JADE demo REACT demo Ta gt fo 4 LCD write adc_main c ADC_demo Debug y Files ff main function D adc_main c unsigned char i E in t c unsigned int tup result El interrupt c E Icd c _ disable interrupt Dutput vHardwareInit B REACT_demo Debug v vSoftwareInit BITIMER demo Debug v LCD initij BJUART demo Debug v LCD_inst 0x01 _ enable _interrupt LCD_cursor 0x0 LCD string amp textOl 0 LCD_cursor 0x40 LCD_string text02 0 vllait25 80 while TRUE LCD_cursor 0x0 LCD_string text03 0 LCD_cursor 0x40 LCD_string text04 0 vWait25 80 LCD cursor Ox0 ron LCD string amp textOS 0 VIE EEE EEE SEE GET EE ed de void maini void ff disable all interrupts f peripheral settings Variable Initialization d LCD Initialization
19. UOISJOA L 9 s v T I 79 ICS Taste it 2 baseboard schemat Ine KL Figure 78 SIMAI UO DAN uonnquisig I LOAN 80 K Line Taste it 2 9 e r z pteog Ndd 00 HHA DO Nad Z 31 33521 ia ai ani se WIELER oT 61 GDNF NAO WONIE NAD oz et ia Nad oz et INIA Add oT et TT WINIA Ndo D D TONIT dd BHN NAO D D T DES D Li ODN na 81 D nn Burmeip UT na 91 a GT TONITE na 91 O O Gr Zoom Nad or Cy cr GON nda or O C4 E 1 E Ajquessy a a WAN na En a Y emm vi e T mm do I tI T rr DN NAT Zl D INIA DA al D 1 al TI TN ndo Ti D 1 ET 1 veds WINI
20. and removable mada The best dire found rll be installed Search removable media Pocos CD ROM lt 2 gt Check Include this location include Ihis location in the search in the search only C Program Fies NECT 00432 FPL 3 DRIVER LI Dont search fail choose the dives ko ratal Croase this eplan lo elect the dawce darer bom hel Windows does nol oustartee bat De diwar pou ghocse will be the best match for pour hardware lt 3 gt Enter C Program Files NEC Tools32 FPL3 DRIVER lt 4 gt Click 7 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 29 Windows XP Logo Testing 2 Windows XP Hardware Installation The software you are installing for this hardware USE Serial Port haz not passed Windows Logo testing to verify its compatibility with Windows AP Tell me why this testing ls important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation K Line Taste it 2 NEC 38 K Line Taste it 2 NEC 8 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 30 USB Serial Port2
21. be mstalled LI Seach removable media loopy CD ROM Include this location m the search lt 2 gt Check Include this location in the search only O Dont search I vill chdose the driver lo install Choose this option to defect the device driver from alist Windows does not guarantee that the diver you choose pall be te best match for pour hardware CA Program FilesiMECTo0ls3AFPL3WANER d lt 3 gt Enter C Program Files NECTools32 FPL3 DRIVER lt 4 gt Click 3 As shown below has not passed Windows Logo testing to verify its compatibility with Windows XP is displayed Click Continue Anyway Figure 25 Windows XP Logo Testing 3 Windows XP Hardware Installation The software you are installing for this hardware USE High Speed Serial Converter has not passed Windows Logo testing to verify its compatibility with Windows 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 al STOP Installation 36 K Line Taste it 2 NEC 4 When the window below is displayed the installation of the USB driver is completed Click Finish Figure 26 USB Driver Installation Completion 1 Windows
22. developed or manufactured by or for NEC Electronics as defined above M8E 02 10 K Line Taste it 2 NEC CAUTION This is a Test and Measurement equipment with possibility to be significantly altered by user through hardware enhancements modifications and or test or application software Thus with respect to Council Directive 89 336 EEC Directive on compliance with the EMC protection requirements this equipment has no autonomous function Consequently this equipment is not marked by the CE symbol EEDT ST 0005 10 Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste NEC Electronics Europe GmbH offers to take back the equipment MIN All you need to do is register at www eu necel com weee K Line Taste it 2 NEC Revision History Date Revision Chapter Description First release 19 10 2005 K Line Taste it 2 NEC Table of Contents Me Ted d nn E 9 1 1 Main features of K Line Taste itl Z nranannnnnnununnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnunnnnnnnnvnnnnnnnnnnnnnnvnnnvnnevennnn 9 12 SSenredmenens nisoria aa a a aaa AEE AENA N aE ENA 10 1 3 e Een EE 10 la Tadema kS merset 10 2 K Line Taste it 2 system configuration s rasxervannernnnvnnnnnvnnnv
23. hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Re
24. i kalia ECI AE sei EN POT vsot gt T 7 NI LESTE D D AS ha Kaa eje Sau KAA E IND 6 S s DI 4000 1 SEH NOUNO 2 gt 99UUUUUNmAmM lt A A DON nodes z AE anc bel SE ue O O a Dr en Zak IMS Bk OSIDA os os 5 isi ISO DIA DSO DIA O SODA TXTI Ada VZOTIHM ien e e HA 9 5 z TER A ISO IDA os os OSODA OSOOA 3 S E ot ei r S Jos 1 asn suide w 7 ES rl E S e Bez SC SE II Ir vs Janssen 5 199205 NK V SuIdop wwe 191205 dor 2 a SS 3 2 9 L 8 6 z SS S ba E SC IAND ZANO gp HUND 42445 v Pi e remm Og NUT NNN Snuano e Le se Ka SIE e SE SE 9 Een D CAND Waasi Wa ze SIE Is baa Aq paurzap edegreasks I mm k a Z Ta ddasn i e Ya I O Mg aa LNOEAE aer rer sam TH EH ve Z asa Z OLasaa WA P OND os El fra s MLC TAJA 17 Z ald Z Lassa ed UOISJON A s 97 SIO TALA SE SID IDDA g NI DDA OSODA k i a a SLY 3 VIVGYI CS ri Dra Or Ia y XU 3 ASH aNSS 61 HI td Add AKI TALA 3 El TAWH ape Oo td Add ATIPAN PAARA VANT SI or i lt y R240 apouy er vr bel KE Q lt 8 na E SEE E Z a Z a H Zb w oc UNBEUNSJA Si m 6 or TAKA ser lt a EI EI NI 2 sie 228 E El E z L 8 TANI o E 3 3 3 S ESCH a3 v s 9 8 3 5 8 5 S gt E gt 8 3 TIA z ms nu v oa A 3 Bo 3 E 5 3 D I 7 oaxL ATI TALA ie e a t 5 a TND 8 2 ge AND El at Bs 100 os os OSODA E PAT os S os os Tod OSODA OSODA Eek NIDDA OSODA OSODA panoiddy we
25. manini zama 15 Table SONA PG FPA00ME e EE 16 Table 9 SW4 configuration when using PDG EPRA muna wwminwu manana nini meni muniwunutunuzu nami zi namana 16 Table 10 Display connections nanu nznwwna eleedamdeson ini wuni kunukia ku akina Kanana 17 Table 11 Distribution of temperature factor ku 18 Table 12 LED D1 D4 EE Eege ee EEGEN Ee 19 Table 13 CN CN4 CN5 and CN6 connection to 78KO KF2 arasenrvnennnnrenennnnrnsnnnnnensennnvrnnnnnnvrnnnnenvnanen 20 Table 14 OCD connector CN7 A e Por A a 21 Table 15 SW4 configuration for OCD via OB 29kOMINT nuna wwmunuwanzanunazunana niwa waa 21 Table 16 SW4 configuration for OCD via On Board debug Tuncton 22 Table 17 SW4 configuration for OCD via QB 7SKOMIN coco coccion aiii 23 Table 18 78K0 KF2 memory MAD croata ti 24 Table 19 K_Line Taste it 2 CD ROM directory Structure ccooonncccccncnconccnccnononncnnnnnonnnnonannnoncnnnnannnss 25 Table 20 Example directory structure secreciones iia 15 K Line Taste it 2 NEC 1 Introduction K Line Taste it 2 is a demonstration kit for the NEC s K Line 78K0 Kx2 microcontroller family It supports On Board debugging FLASH programming and real time execution of application programs up to 4 kBytes of program code for the 78K0 KF2 microcontroller The board is prepared to be connected to user hardware parts such as digital 1 0 or analogue signals 1 1 Main features of K Line Taste it 2 Easy to use device demonstration ca
26. o o o The IAR Embedded Workbench for 78K0 78KOS and the IAR C SPY debugger simulator are included These packages are restricted in such that maximum program code size is limited to 4 kByte of program code Full documentation is included for the NEC 78K0 KF2 microcontroller LAR Systems Embedded Workbench IAR Systems C SPY debugger simulator and the NEC FPL3 FLASH programming software K Line Taste it 2 is not intended for code development NEC does not allow and does not support in any way any attempt to use K Line Taste it 2 in a commercial or technical product K Line Taste it 2 NEC 1 2 System requirements HOST PC A PC supporting Windows 98SE Windows ME Windows 2000 or Windows XP is required for the IAR Systems Embedded Workbench demo version and the FPL3 FLASH programming software Pentium 166 MHz at least 128 MB of RAM 256 color display 1024 768 mouse CD ROM drive and 200 Mbytes of free hard disk space are required to install the tool packages Above listed requirements are valid for the IAR Systems Embedded Workbench and the FPL3 FLASH programming software Host interface USB interface that enables communication based on USB Ver1 1 or later 1 3 Package contents Please verify that you have received all parts listed in the package contents list attached to the K Line Taste it 2 package If any part is missing or seems to be damaged please contact the dealer from whom you received your K L
27. penning 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 55 K Line Taste it 2 NEC 9 4 4 Help menu Clicking the Help menu displays the following pull down menu Figure 53 Help Menu File Device view Help S About FPL3 Y N gt gt FlashOpennina Flash Open DK 1 About FPL3 command The About FPL3 command opens the program entry window as shown below and indicates the version Clicking terminates the display Figure 54 About FPL3 Window About FPL3 ts z HE LTAT RER ENN NENNE gt ALI A ma og KR w CT D Les 56 K Line Taste it 2 NEC 9 5 Programmer Parameter Window This window displays the settings of the programming parameters Figure 55 Programmer Parameter Window Device Mame Firm version El ode Vendor Parameter file Mame Format Version Processor Ver Name Date Chksum Area Connection to device Port Speed Range Freq Multiply Device Updated after communication with the target device to display information about the target device Parameter file Updated after Setup command execution to display information about a read parameter file Load file Updated after Load command execu
28. processing When Block is selected Specify the Block number range subject to rewrite processing by using Start End The Start End list boxes display the Block numbers where the flash memory of the target device is configured When Area is selected Specify the Area number range subject to rewrite processing by using Start End The Start End list boxes display the Area numbers where the flash memory of the target device is configured Show Address check box Specify whether numbers or addresses are displayed in the Start End list boxes If this check box is checked addresses are displayed If this check box is not checked numbers are displayed Target Reset Message By checking the Target Reset Message check box the window promoting the reset operation manually is displayed even when the reset signal cannot be connected to the target cable Figure 46 Device Setup Window Target Reset Message Target Reset Message 51 K Line Taste it 2 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 Ft Device Setup E KA Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program
29. program communication from the FPL3 to the target device after the execution of the Program command follows the setting of the Command options on the Advance tab displayed by selecting Device gt Setup During programming the progress status is displayed in the action log window to indicate programmer operation This progress status display window displays the progress status on target device programming by percentage Upon completion of Program command execution the GUI software displays the result of executing the command on the target device 4 Verify command The Verify command sends a specified user program to the target device connected with the FPL3 and performs verification against the data written to the flash memory of the target device During verification the progress status is displayed in the action log window to indicate programmer operation This progress status display window displays the progress status of target device verification by percentage Upon completion of Verify command execution the GUI software displays the result of executing the command on the target device 5 Security command The Security command initiates the programming of the security flag of the target device connected to the FPL3 Set Security flag settings on the Advance tab of the Device gt Setup menu 6 Checksum command The Checksum command reads the checksum value of the target device connected
30. with the FPL3 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 command its execution operation and messages refer to CHAPTER 10 HOW TO USE FPL3 Upon completion of Autoprocedure EPV command execution the GUI software displays the result of executing the command on the target device 8 Signature read command The Signature read command reads the signature information device name flash memory information and so forth of the target 47 K Line Taste it 2 NEC 9 Setup command Pp a The Setup menu allows you to make settings related to flash memory rewriting according to the user environment and to set command options Each time the GUI software is started the most recently used parameter file PRM is read and the settings are dis
31. 1 External connector CN3 CN4 CN5 and CN6 CN3 CNA CN5 and CN6 are connectors for external user hardware P120 INTPO EXLVI P47 P46 P45 P44 P43 P42 P41 P40 RESET P124 XT2 EXCLKS P123 XT1 FLDMO P122 EXCLK OCDOB P121 X1 OCDOA REGC Vss EVss VDD EVDD N 6 Fa 8 9 _ Port 78KO KF2 GE P gt P gt PA Pi Pi PA Po gt O RESET P124 XT2 EXCLKS ESP DW gt P122 EXCLK OCDOB P121 X1 OGDOA REGC Vss Pis gt vo Evo P60 SCLO P61 SDAO P62 EXSCLO P63 P33 TI51 TO51 INTP4 P64 P65 P67 P77 KR7 P76 KR6 P75 KR5 P74 KR4 P73 KR3 P72 KR2 P71 KR1 P70 KRO P06 T1011 TOO1 P05 T1001 SSI 1 P32 INTP3 OCD1B Table 13 CN3 CN4 CN5 and CN6 connection to 78K0 KF2 IR P31 INTP2 OCD1A P50 P51 P52 P53 P30 INTP1 P17 TI50 TO50 P16 TOH1 INTP5 P15 TOHO P14 RxD6 P13 TxD6 P12 S010 P11 S110 RxDO P10 SCK10 TxDO P54 P55 P56 P57 AVREF AVss NEC Port ANI7 P27 ANI6 P27 ANI5 P27 ANI4 P27 ANI3 P27 ANI2 P27 ANI1 P27 ANIO P27 P130 P04 SCK11 P03 SI11 P02 SO11 P01 T1010 TOOO POO T1000 P145 STBO P144 SOAO P143 SIAO P142 SCKAO P141 BUZ BUSYO INTP7 P140 PCL INTP6 NI N OO AI OI ND CH CO N amp O1 RA GO PO 20 K Line Taste it 2 4 1 2 OCD connector CN7 NEC Connec
32. 1 External connector CN3 CN4 ONS and CNG EE 20 4k22 DEN 21 RP a 22 5 1 OCD via On Board debug function acusativo iii 22 5 2 OCD via QB 78KOMINI On Chip debug emulatOr rrrnnnrrrnnnnnnnnnnnnnnnnnennnnnnnnnnennnnunnnnnnnnnnnrennnnunnr 23 53 T KOKF2 memory Map rer 24 6 K Line Taste it 2 installation and operation r rnnvrnnnvnnnvvnnnvnnnvnnnnnnnnennnnnnnnvnnnunnnnvnnnuenn 25 61 Getting SUIS vvs 25 El DRM 25 7 Hardware installation EEN 26 K Line Taste it 2 NEC 8 Software NR DE 26 8 1 IAR Systems Embedded Workbench for 78K0 78K0S installation rnnnnnnennnnnnnnnnnnnnnnnnennnunnn 26 8 2 DEVICE EM SUN AU Lasses emne 26 8 3 FPL3 FLASH programming GUI installation axxvnnnvennnnnnnnnevnnnnnnnnnnennnnennnnnennnnennnnnnnnnnenennnnnnnn 26 84 Sample program installation scisiiconannenrcariala ic 26 8 5 USB Driver E NW e EN 27 8 5 1 Installation on Windows O9GE Me kuna wununanuanuananaananunaananzanuwaa anunua 27 852 Installation on Windows 2000 E 29 8 5 3 Installation on o 35 8 6 Confirmation of USB Driver Installation aaxrrnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnennnnnnnnn 40 8 7 Der CEU o PROS OO CO 41 9 FPL3 FLASH programming SOftWare ra rxrnnnunnnnnvnnnunnnnnvennnnnnnnnnnnnnnnnnnnnnnnvennnuvennnnennnnunnn 43 Did o A OO un DEKU MASH MAMA a Ne MEENA Naa 43 92 Staring Up he GUI SOM Ware iia aaa aa E Sa a E aE 43 A e EE AAA 44 GT MEN BT rn 45 L LEEI ee 45 A e UU 46 E EN N
33. 5 memory space 16384 x 8 bits 0040H Flash memory ie 003FH 32768 x 8 bits 16384 x 8 bits common BECH Vector table area 0000H Table 18 78K0 KF2 memory map The K Line Taste it 2 does not reserve any resources of the 78K0 KF2 device consequently all available memory of the device is free for application software 24 K Line Taste it 2 NEC 6 K Line Taste it 2 installation and operation 6 1 Getting started The IAR C SPY debugger allows to download and debug application software on the K Line Taste it 2 starterkit hardware Additionally the FPL3 FLASH programming software can be used for simple FLASH programming of the 78K0 KF2 internal FLASH memory As communication interface between the host computer and the K Line Taste it 2 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 K Line Taste it 2 F CD ROM ROOT 2 Acrobat Acrobat Reader for 32Bit Windows OS Device Files Device Files for K Line Taste it 2 DDF Device Description Files and SFR Description Files for IAR C SPY NEC Device Files for IAR C SPY FPL3 FLASH programming software d Drivers USB driver 3 FPL3 FPL3 setup directory T AR Embedded Workbench 78K0 G Sample Progrsn Table 19 K Line Taste it 2CD ROM directory structure
34. 80 ddf Device descriptions Iw Use device description file STOOLKIT_DIR config dal io781054780 dat W Cancel Figure 72 IAR debugger options 71 K Line Taste it 2 NEC Next the correct linker settings of the demo project will be checked This can be done in the Linker category as shown below Select the Config tab and check that the linker command file DF054780 V4 XCL is selected This file is used by the linker and contains information on where to place the different sections of code and data that may be used within the demo project Options for node ADC demo Category Factory Settings General Options C C compiler Output Extra Output Hdefine Diagnostics List Config Processing Assembler Linker command file Custom Build Je Override default JA PROJ_DIRS XCL DF054780_V4 XCL El Debugger IE 78 IECUBE Override default program entry MINICUBE Entry label program start Simulator Defined by application TK 78 Search paths one per line TOOLKIT_DIR SLIBS Symbol Segment Align Figure 73 IAR Linker options Now after everything has been setup correctly it s time to compile and link the demonstration project Close the Options menu and select Rebuild All from the Project menu If the project is compiled and linked without errors or warnings it can now be downloaded to the K Line Taste it 2 board and debugged To s
35. A MAD or 6 mm MIS or O C4 ya WATANI or E e mm or O C4 6 i te 3 T IER Nd 3 L PINT ONY 3 L Y A N nad L ji el TYNE Tay 5 S INIA 1d TANIA ds 3 SG CONA TIAN dere 9 5 OMA 3 F ji WANI dI r Cr TYNT dD PINIA NAD 7 OG CRN DIN APONTE nda y tt FNH Na I CE 7 T 5 D Ya Y Ae JopeaH NXW Suldoy TINE MAS S TINA TaD TINE mr m i WS TaD TN na z i UNI J z 7 e ge Y Y Y e PINE NEI z S uu sape3H dg 9NO SNO NO END EMS TALNI s CMS OdINI TON DET se 9 i past Sd Na nad SI Gi EAHT Gd ran 1 g emo YA LNT panouddy pax99y9 paubisag HT Ica OS lt Taa 0Sd GN nd le s aai Se A Sud Tara saa mari d 994 dt 9fd GES ape Ei TX UIO saa dsSId Gd ndo TE ES Inosaw 130 yaa dsId Gd NIE nad et oz NISAN 030 COOC ASIA Eva nas a Ora wano LYST Zdd_dSId_ pd vr Tad_dSId_lyd em a 7 we ZIX oga ASIT ova Nea na Eta 4 dSId S9d WONT na S ep TINE nao PX SEN M Y ASI 994 emm g ST 3 DDJA SY ASIA L 9d T RT NI 5 3 TX lt E EQ ra ii z IND la la la sd E ha Ly E E a O SODA O SODA g E ei L T08 NIT NAD PRPREEREEEEREEEEEEEFEEFEE hhh Sa ee EERE REE ER hE LEE AEA E 4 IZ _ BEBSBBEBBEBREBSBBEBBE H sursnoyapeysurdor or 6 sjejeja ale e e e eje ejes spe eye Rye UNE SCH EE GUNNA 3J33IJJIIIIIIFIKRFRIAIKT NANENANE INI E l UNM Nad ZIODRRZARZRA 3 mae s ZESRRRRRERE S SS ore la DS y A TET NITTI 22 o 5 i 2 a ee ISS gg 130 E NISTA doo Z HESS T 3 LNO E 6DNid Nad RETA TALNI Ted AAI anna z i osd dda Gr TOINI NED
36. Aner EFV ENN 64 Figure 65 Registry entry for IAR C SPY debugger COM port settmg 67 Figure 66 Configuration of COM port for IAR C SPY debugger 7143 67 Figure 67 Configuration of COM port for IAR C SPY debugger 214 68 Figure 68 Configuration of COM port for IAR C SPY debugger 243 68 Figure 69 Configuration of COM port for IAR C SPY debugger A2 wima 69 Figure 70 IAR Embedded Workbench occcccocccccccnncccncccocccnnnnnnnncconnnnnnnnnconnconnnnnrnoncnnnnnnnnoncnnnnnnnnoncnnnnas 70 EE 71 Figure 72 IAR debugger options EE 71 Figure 73 IAR Linker 0 ONS aa 72 Figure 74 TK 78 hardware setup mem 72 Foure AR 73 Figure 76 IAR GC SPY EDGE EE 74 Figure 77 USB interface cable Mini B type wwii serissnsinwaacssoescenaccsavencesewetawancennedsewesiidumecddunndeawedbeunedeaucdaies 78 Figure 78 K Line Taste it 2 baseboard SCHEMATICS munini znina 79 Figure 79 K Line Taste it 2 78KO KF2 CPU module schemaltics oococcooncccconnnncononnncnonnnenonanannnnnas 80 List of Tables Table 1 Configuration switch SW4 factory settings ccooccccononccocononooncnonnnonanncnnnnnonnnnnnnnnonnnnnonannnnss 13 Table 2 Operation re e de 13 Table 3 OCD mode selection SW4 S2 cccccccccescesseeecceceesseesececeesseeceeecessseesecesenseeeseeeeesseesesoeeesesesees 13 Table 4 UART selection SW4 S ME 14 Table 5 UART LIN selection SW4 S4 EE 14 Tee ON DUA A 14 Table 7 Pin Configuration of USB Connector CNB wena wunuwunuzu
37. Driver Installation Completion Windows XP Found Mew Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for rear USB Serial Port Click Finish to close the wizard 39 K Line Taste it 2 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 K Line Taste it 2 board in combination with FPL3 GUI the information to be checked here is needed By clicking the Device Manager tab check that the drivers are installed normally Figure 31 Device Manager EL Computer Management Feld ON File Action 3 ioe en Help o MENT eo 8H 623 l Computer sen Local fe KS System Tools ep Disk drives H ail Event Viewer a Display adapters d Computer Ps Shared Folders 4 DYDICD ROM drives gt Local Users and Groups H 454 Floppy disk controllers E Performance Logs and Alerts q Floppy disk drives Device Manager y IDE ATA ATAPI controllers Sig Storage 2 Removable Storage wp Keyboards vi Mice and other pointing devices Disk Defragmenter E Monitors al Disk Management 88 Network adapters s Services and Applications E A Ports COM amp LPT Ei Communications Port COM d Se ds Port ONE Check that USB Serial Port z WE i ieee g s Processors
38. ES 55 944 BARN A A a S ES 56 95 Programmer Parameter WNdOW siii 57 10 How to use FPL3 FLASH programming software nnnvrnnnnnnnunnnnnnennnnnnnnnnnnnnevnnnvennnuvennnr 58 1 Installing the FPL3 GUI SINA siete cosisunondncostesin sastictsiesmaetsneyciedu noes tienteisueetadich seldiceeinesaatdaestalienseedensaeeuses 58 2 er Olne 1e le 58 3 Installing the parameter file EE 58 4 Connecting and E ENG REN EE EE 59 5 Setting the programming environment ocoocnccncnnnnnnnccncnnnnnnncnnnnnnnnnnnnnnnnoncnnnnnnnnonnnnnnnnnnrnrnnnnarennnennnnns 60 Ce eee auser ee EEE 63 7 Autoprocedure EPV command executon mza wumamumanww waana nananani meni keni zinki na 64 lor EE Gas 10 EG EE 64 9 Execute ADO DEMO EE 64 VENN 64 1 TROUBLESHOOTING Lg 65 12 IAR configuration for On Board debuggiNQ omccooncconnonecncccenancconnconnancnnanrennaronnnrrenanennas 67 12 1 Setup COM port for IAR C SPY debugger aannernnnnnnnnvvnnnnnnnnnnennnnnnnnnnennnnnnnnnnennnnnnnnneennnnnnnnnnnn 67 12 2 Configuration of USB serial COM port nanxrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnennnnnnennnnnnnnn 67 18 TAR Sample SCSSION iIi 70 14 Sample d e MS IAA 75 141 GRETTE 75 12 A e PO RENO III a 76 14 3 ReacTime demo nrunnnnvnnnvnnnnvnnnvnnnvnnnvannvnvannvnvnnnvnnnnnennvnnnvnvnvnvavnvnvnnnnnrnnnnvnnevnnnvnnnnnnnvnnnnnnnnnnnnnnnr 76 K Line Taste it 2 o EE a dido 77 195 UART A 77 14 6 USB interface Gable Mini B NPE icon
39. Erase command becomes invalid in all the blocks of the flash memory selected under Operation Mode in the Standard Setup menu This setting is cleared by the Erase command when Chip was selected under Operation Mode Disable Program check box If this check box is checked the Program command becomes invalid as does the command in all the blocks of the flash memory selected under Operation Mode in the Standard Setup menu The Erase command for the entire flash memory area is valid This setting is cleared by the Erase command when Chip was selected under the Operation Mode Disable Boot block cluster reprogramming check box If this check box is checked the boot area is set with the boot block set in the Boot block Cluster setting as the last block At this time the warning message shown below is displayed Figure 51 Device Setup Window Disable Boot Cluster Reprogramming warning AN When Book block cluster reprogramming is disabled boot block cannot be erased and programmed any more cane Caution Be aware that if the security flag is set in the target device the boot area cannot be rewritten to the device afterward 54 K Line Taste it 2 NEC 9 4 3 View menu Clicking the View menu displays the pull down menu shown below This menu contains commands for setting whether to display the toolbar and status bar Figure 52 View Menu E vw Toolbar y vw Status Bar EN gt gt Flash
40. FF Led ESA emm O SODA St TSd SSA WUER i Cd KSC z z PPTaH NXV suldoy IdLNI Ofd IX TZId 2 gt OSOL OSIL LId MWIOXH TK Cd O Og TENK NES 0XDS yos SAINI mor 91d OGNA UNI TD ee ze TN NAS 008 IS OHOL Id Z LLX Etid D ze OD OIS OS s 19 td E SYTOXH TLX bild Ko php ele Er STAIS Burueu Nad ST IS Droen yaa OCL ld EN LISTA i OTOS Tid y 0015 Ord T RKE NED WONT na d A OR OTIS TIA 3 Ted wera ep Og JOAXL 013108 Old ka bi S e TINI nao Ped 5 Ebd e TONI nds o Sr 2 D o ced GLYOd GONT nad sed 3 urd gr Eg mann Ed WLYOd be Q ge TUDNIA Ado a 0 CANTA TEDNI NAD er or D 090819 A0S ULH ha c JIIAV E Ltd q Og SSAV a 3 IATXH OdLNI 07 Id MODA rue eme mz R 7 IRIS o TINV WIKI MID P 3 TU 145 9UXL I WONT ID CI Ct e OINV 5 9 P UOT IDETSS 0181 E ESNIA NAD DAKA 7 S Wani TD oax qd UOISJEA E TND 3 N els ws sg gt E I wal f r Kl GG o n yu yuu S 392 2u5d oe anss HHH H gees ker IARRESSAS greppa ji bd Kr roo aaa ane 2222333302 0 828855033 O SOOA aaron croon r SSSSSSEIGA os DO DIA SEREREBERBBERBBRERERERERERSB SRESERREERERGEREEEEEEEEkE BRERBRERBREREREBRRBEERBEEER FRBBEBEEBBREBBEBBEE BB ERE panouddy Wali U0ISIDA L 9 s v T ICS Taste it 2 78K0 KF2 CPU module schemati me K_L Figure 79
41. P20 of 78K0 KF2 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 Potentiometer R14 Button SW2 A D converter Button SW3 NN LED s D1 D4 14 3 ReacTime demo This sample program demonstrates a reaction time measurement After the button SW3 is pressed the application waits for a random time duration between 0 50 and 3 45 seconds Then the measurement starts by incrementing a reaction counter every 50ms The actual counter value is shown by a bar graph using the character LC display until the next keystroke of button SW3 When the button SW3 is pressed again the measurement stops and the reaction time is shown on the LC display Pressing button SW2 starts a new measuring cycle Character LC displa Button SW2 Button SW3 LED SD1D4 76 K Line Taste it 2 NEC 14 4 Timer demo This sample program demonstrates a real time clock After the program is started the watch timer is initialized to generate an exact clock reference based on the 32 768 kHz sub clock The actual time is displayed using the LCD module By pressing button SW2 SW3 the time can be adjusted Timer00 Character LC display Timer01 Button SW2 WatchTimer Button SW3 LED s D1 D4 14 5 UART demo This sample program realizes a temperature meter with serial communicatio
42. PL3 GUI folder lt FPL3 install path gt PRM Nevertheless newest version of parameter file for the uPD78F0547D device can by download from the NEC Electronics Web site Download the parameter file for the PG FP4 from the following NEC Electronics Web site http www eu necel com updates Copy the parameter file downloaded from the NEC Electronics Web site into sub directory lt FPL3 EXE install path gt PRM created during GUI software setup refer to CHAPTER 8 SOFTWARE INSTALLATION 58 K Line Taste it 2 NEC 4 Connecting and starting lt 1 gt Set the K Line Taste it 2 board to the FLASH programming mode by switching SW4 S1 to ON a gi I CNG OG YA K Ho BO ie JE 2 OA e TO E 288 g gt DE 7 G Hl sd 3427 S vis d S ONO lt 2 gt lt Plug and Play gt Connect the K_Line Taste it 2 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 K Line Taste it 2 lt 3 gt Start the FPL3 GUI Figure 56 GUI Software Startup Screen File Device view Help gt gt FlashOpenning Flash Open Dk Mame Firm Ve
43. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http wWwww renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas 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 Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted
44. XP Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for E USB High Speed Serial Converter Click Finish to close the wizard rel Cancel Back 5 Proceed to the installation of the USB Serial Port driver Click Netz Figure 27 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 Fort e If pour hardware came with an installation CD Se or floppy disk insert it now What do vou want the wizard to do Check that Install from a list or specific is selected Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue 37 6 Check that Search for the best driver in these locations is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL3 DRIVER then click Next gt Figure 28 Search Location Specification 2 Windows KP Found Mew Hardware Wizard Please choose your search and instalalron oplions lt 1 gt Check that Search for the best driver in these locations is selected Co Search loc Ihe best diver in these boosii Use Ihe check boxes below ho leet of emand the dela search which includes local pains
45. ame gt gt COMMAND Device Setup PAM File Read OF Firm Version Eat ode ES Parameter file PRM File Read OK is displayed Mera 75F0547D Format 0414 VII Version Processor Ver 0200 Mame Date The display is updated Ser Connection to device Port COM3 Speed 115200 Range Chip Freg 1200 Multiply 1 00 6 Selecting a user program lt 1 gt Select File gt Load lt 2 gt Select a program file to be written to the target device then click Open Figure 63 After Downloading 10 x File Device View Help pad K S XN gt gt FlashO penning Flash Open OK Name gt COMMSKD Device Setup PAM File Read OF Firm Version gt gt COMMAND LoadFile Open EstCode Success read HE file Wa Parameter file Mame F8FO54 D RE Format 0414 Success read HEX file is ege ANE displayed Processor Ver 0200 Load file Mame ADC DEMO HE Date 200610 007 14 21 42 Chksum EB30h rea DO0000h 00076h The display is updated Port COM Speed 115200 Range Chip Freg 1200 Multiply 1 00 63 K Line Taste it 2 7 8 9 10 Autoprocedure EPV command execution Select Device gt Autoprocedure EPV from the menu bar When the Autoprocedure EPV command is executed Blank Check gt Erase gt Program and FLASH Internal Verify are executed sequentially for the uPD78F0547D device Figure 64 After EPV Execution File Device View He
46. ccordingly To do so open the script file with your preferred editor i e NOTEPAD and make changes as described in the file Then run the script file 12 2 Configuration of USB serial COM port To optimize the communication between the IAR C SPY debugger and the K Line Taste it 2 board the USB serial COM port must be configured To do so open the Device Manager which can be found in properties of My Computer Then locate the USB serial COM port and select Properties as show in figure below Device Manager ction view SE Display adapters H 4 DYDICD ROM drives HS Floppy disk controllers H E Floppy disk drives Se Human Interface Devices H E IDE ATAJATAPI controllers H Keyboards Es Mice and other pointing devices E Midas lab Drivers a Monitors H NECPCIF 1 8 Network adapters H Other devices E 4 Ports COM amp LPT ven JW Communications Port COM Se F Communications Port COMe Zu St vied ot ente er D W System devices Uninstall H Universal Serial Bus controll i USBIG controlled devices Scan for hardware changes GE Figure 66 Configuration of COM port for IAR C SPY debugger 1 4 67 K Line Taste it 2 NEC The following USB Serial Port Properties Window appears USB Serial Port COM3 Properties HME General Por Settings Driver y USB Serial Port COM3 Device type Ports COM amp LPT Manufacturer FTDI
47. checksum function If the checksum result indicates an error the FPL3 does not accept the parameter file Figure 41 Device Setup Window Parameter File Selection Parameter file PAM File Head Figure 42 Parameter File Selection Window Ope a Look in E PRM File name rm Files of type PRM Files PRM Cancel PRM File Read button A window for specifying a parameter file is displayed Specify a desired file then click Open E 49 K Line Taste it 2 NEC lt 2 gt Host connection Host connection is used to select a channel for communication between the K Line Taste it 2 board and host machine Figure 43 Device Setup Window Host connection Host connection Part Speed 15200 Port list box Select a channel for communication between the K Line Taste it 2 board and host machine e COM1 to COM256 Remark Selectable ports can be checked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation Speed list box Select a communication rate for the selected communication channel from the following e 9600 bps e 19200 bps e 38400 bps e 115200 bps Remark For selectable communication rates refer to the user s manual of the device used lt 3 gt Supply oscillator Supply oscillator is used to select a clock that determines programming data transfer and a transfer rate Figure 44 Device Setup Wi
48. cs products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics xtENESAS User s Manual K Line Taste it 2 Demonstration Kit for the K_Line Family Global Document No U18136EE1VOUMOO et edition Document No K_LINETASTEIT2V100 Date Published October 2005 O NEC Electronics Europe GmbH K Line Taste it 2 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 produc
49. d on Plug and Play is disabled Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector then insert the USB connector again after a while The driver file cannot be found at a specified location Cause The FPL3 FLASH programming software may not be installed correctly Action Install the GUI software again by referring to CHAPTER 8 Software Installation In checking by Device Manager USB Serial Port or USB High Speed Serial Converter is not displayed Alternatively the or x is prefixed Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector from the USB port then insert the USB connector again after a 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 Disc
50. ecked using Device Manager For details refer to CHAPTER 8 6 Confirmation of USB Driver Installation 61 K Line Taste it 2 NEC lt 5 gt Set Supply oscillator according to the specifications of the K_Line Taste it 2 board Frequency 12 00 MHz and Multiply rate 1 00 In Operation Mode please specify the Chip mode The following figure shows the recommended settings Figure 60 lt Standard Device Setup gt Dialog Box after Setting Fe Device Setup E x Standard Advance Host connection Port coma sl Speed 115200 d Operation Mode Block End 127 Area Show Addres Multiply rate 1 00 lt 6 gt Switch to the Advance dialog box Figure 61 lt Advance Device Setup gt Dialog Box SEN RE a Standard Advance Command options Read verify after Program Security flag after Program Checksum after Program Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Target Reset Message Cancel lt Command options gt Blank check before Erase Checked 62 K Line Taste it 2 NEC lt 7 gt Click the OK button The GUI software sets the parameters When the settings have been completed the following screen is displayed Figure 62 Completion of Parameter Setting File Device Viem Help PAGES gt gt FlathOpenning Flash Open OK N
51. ected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Check that Install from a list or specific is selected then click Next gt Figure 23 Found New Hardware Wizard 1 Windows XP Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for USE lt gt Serial 9 If pour hardware came with an installation CD Se 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 3 Install from a list or specific location Advanced Click Nest to continue 35 K Line Taste it 2 NEC 2 Check that Search for the best driver in these locations is selected Check the Include this location in the search check box and enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click Next gt Figure 24 Search Location Specification 3 Windows XP Found New Hardware Wizard Please choose your search and metallation options lt 1 gt Check that Search for the best driver in these locations is selected Search for tne best driver in there locations Use Ihe check boxes below bo lint or expand the default search which includes local paths and removable media The best daver found rall
52. ess Specification 2 Windows 20001 34 Figure 21 Driver File Search 2 Windows 2000 NEG 34 Figure 22 USB Driver Installation Completion 2 Windows 20001 35 Figure 23 Found New Hardware Wizard 1 Windows Ab 35 Figure 24 Search Location Specification 3 Windows AP 36 Figure 25 Windows XP Logo Testing 3 Windows ab 36 Figure 26 USB Driver Installation Completion 1 Windows Ab 37 Figure 27 Found New Hardware Wizard 2 Windows Ab 37 Figure 28 Search Location Specification 2 Windows Ab 38 Figure 29 Windows XP Logo Testing 2 Windows ab 38 Figure 30 USB Serial Port2 Driver Installation Completion Windows ab 39 Figure 31 Device Manager EE 40 Foure 32 Driver NENNE 41 Figure Re Sr IMS UE 41 Figure 34 Completion of Driver Uninstallation ww ww wima wina wina kuweni 42 Figure 35 MT 43 Fe 36 TOOlpar BI EE 44 Fe ES ER E 45 Figure 38 HEX File Selection Window enn id iia 45 ge EAS aare iaaa EEE ana 46 Figure 40 Device Setup Window Standard ccccccccseecessseeccescecsenecceceesseescceeeesseesececeesseesseeeessaes 48 Figure 41 Device Setup Window Parameter File Gelechon E 49 Figure 42 Parameter File Selection Wrmdow muna muna nwwwamumananenzni wena kunukuu kinakuwa wakana 49 Figure 43 Device Setup Window Host Gonnechon 50 Figure 44 Device Setup Window Supply Oscillator Selection rrrrrrnnnnnvnnnnnnnnnnnnnrnnnnvnnrrnennnennnnnnnnne 50 Figure 45 Device Setup Window Operat
53. ff clear display LCD write CGRAM 0x00 amp bgpatO 0 write display character RAM LCD write CGRAM OxO1l sbgpatl O LCD write CGRAM 0x02 sbgpat2 0 LCD write CGRAM 0x03 s amp bgpat3 0 sl b Overview REACT demo TIM gt Ia ya Building configuration ADC demo Debug Configuration is up to date Ready NM 4 Figure 75 IAR project download 73 K Line Taste it 2 NEC After the download was completed all debug features of IAR C SPY debugger are available i e Single Stepping Step Over In Out Go Stop Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the 78K IAR Embedded Workbench IDE User Guide of the IAR installation IAR Embedded Workbench IDE File Edit View Project Debug Emulator Tools Window Help ENEE E gt x x ADC_demo Debug DI KEE Go to y P cru Registers y A Files void maini void se E m CS AX 0x0710 H BC 0x0000 O A 78k0_Taste_ unsigned char i disable inte on 0 00 Ha BJADC de v unsigned int tmp_result gt Phardva reinicia B 0x00 Ha BIREACT d v TF eT E AE HE BITIMER 4 v gt diseble imterrmpt disable all interrupts vSof twareInit E 0x90 BJVART de v vHardwareInit Au peripheral settings Se i JAD30 D OxFB vSoftwareInit variable Initialization 5470 1406 HL 0x0724 LCD init LCD Init
54. ialization LCD inst 0x01 edd LCD_inst 0x01 clear display 0473 A101 veer 0475 9AJEDE 2 LCD write CGRAM Ox00 amp bopatO0 0 write display character RA Leb grite s ch SCH LCD write CGRAM OxO0l s amp bgpatl O0 047A 123005 RBSO SD LCD write CGRAM 0x02 s amp bypat2 0 047D 9AF10 0 LCD write CGRAM 0x03 s amp bypat3 0 LCD write CGRAN S Si i Sbgpat3 Te 0480 2101 RBS1 gt LCD write CGRAM 0x05 amp bgpats 0 il gaer Fort 0 LCD write CGRAM 0x06 sbypat6 0 LCD write CGRA LCD_write_CGRAM 0x07 bgpat 0 0488 A102 0484 12400 __enable_interrupt dd enable all interrupts Ge o 0490 A103 a ADC demo Len rursarifyii nana A A AN Overview AD demo RE 4 gt fol 4 e gt S Debug Log Build x x e e 33 fedo 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c5 01 EE vi sel 0000fe20 0000fe3f NUM DYR 4 Figure 76 IAR C SPY debugger K Line Taste it 2 NEC 14 Sample programs 14 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 78K0 Taste it 2 eww is located on top of the sample program directories All sample programs use the same directory structure AD Converter Demonstration 8K0 KF2 project and output files 1 Debug debug output file
55. ick Next gt Figure 18 Search Method 2 Windows 2000 Found New Hardware Wizard o Install Hardware Device Drivers device driver le a software program that enables a hardware device to work with an operating syster This wizard will complete the installation for this device OSE Serial Part Check that Search for a suitable driver ER device driver is a software program that makes a hardware device work Windows selected eeds driver files for your new device To locate driver files and complete the netallation click Nest What do you want the wizard to do f Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that I can choose a zg driver Cancel 9 Check the Specify a location check box only then click Netz Figure 19 Driver File Location 2 Windows 2000 Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search for driver files for the following hardware device USE Serial Port The wizard searches for suitable drivers in its driver database om your computer and in any of the following optional search locations that you specify Check that Specify a tion onis checked To start the search click Nest It you are searching on floppy disk or CD ROM drive ocation only IS checked insert the floppy disk or CD before clicking Next Optiona
56. ine Taste it 2 Note Updates of the IAR Embedded Workbench for 78K FP3 FLASH programming software documentation and or utilities for K_Line Taste it 2 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 10 K Line Taste it 2 NEC 2 K Line Taste it 2 system configuration The K Line Taste it 2 system configuration is given in the diagram below ie NEC K Line Demonstration Kit Ces Taste if 2 kline Taste it 2 MOLE AAA EE EN ya Figure 1 K Line Taste it 2 system configuration 2 1 K Line Taste it 2 K Line Taste it 2 is a demonstration kit for the 78K0 KF2 8 Bit microcontroller The K Line Taste it 2 board is connected to the host system via USB interface cable The host system may be used for On Board debugging of application software by using the IAR C SPY debugger or the programming of the 78K0 KF2 internal FLASH memory by using the FPL3 programming GUI to allow execution of application programs on the K Line Taste it 2 starterkit hardware K Line Tas
57. installation destination folder is changed at the time of GUI software installation enter new folder FPL3 DRIVER 5 Click Next gt Figure 15 Driver File Search 1 Windows 2000 Found New Hardware Wizard T Res Driver Files Search Results The wizard has finished searching for diner hes for pour hardware device ne following device The wizard found driver for the USB lt gt Seral Windows found a driver for thie device To metall the diver Windows found click Nest c program Miesinectool34 fpl3 Vane fidibus int lt Back News Cancel 31 K Line Taste it 2 6 TA Click to complete the installation of the USB driver Figure 16 USB Driver Installation Completion 1 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard USB High Speed Serial Converter Windows has finished installing the software for this device To close this wizard click Finish ml Lance Proceed to the installation of the USB Serial Port driver Click Netz Figure 17 Found New Hardware Wizard 2 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install device driver for hardware device To continue click Nest Cancel NEC 32 K Line Taste it 2 NEC 8 The window below is displayed So check that Search for a suitable driver is selected then cl
58. ion Mode cccooccccccccnccconncnconncccnnnnnnnnoncnnononconononnononnncnnonnnnons 51 Figure 46 Device Setup Window Target Reset Message E 51 Figure 47 Device Setup Window Achyance muna ww munww manana nani meni wunakunukinuki nu wawa nana naa 52 Figure 48 Device Setup Window Command options rrvrnnvvvannvvnnvvrrnnnnvennrrnnnnevennsrnnnnevennsrnnnnennnunennnn 52 Figure 49 Device Setup Window Security flag SettingS oooomocccononnncconnnccconnnonccanonnnnnnnnnnnnnnecananes 53 Figure 50 Device Setup Window Disable Chip Erase meni wunamunuwinunununwnwa wamama 54 Figure 51 Device Setup Window Disable Boot Cluster Reprogramming wa rminmg ees 54 K Line Taste it 2 Foure 52 VIEW MENU EEE ET 55 Siedler n EE 56 Figure 54 About FPL3 o AA Me 56 Figure 55 Programmer Parameter Window sra Citi ica 57 Figure 56 GUI Software Startup SCreen cccccsscccscececssscscceeecesseeeseeeceeesesececaeeeseeasecaeeeesessceeeesees 60 Figure 57 Standard Device Setup gt Dialog BOX EE 60 Figure 58 Parameter File Selection occccconncccccnnccnncccccnononncnnncnononnnnnnncnonconnnnncnoncnnnnnnnnoncnnnnnnonencnnnnns 61 Fours 59 POr WA Pee 61 Figure 60 lt Standard Device Setup gt Dialog Box after Gettmg mina wwmawawani wima 62 Figure 61 lt Advance Device Setup gt Dialog BOX escocia cias 62 Figure 62 Completion of Parameter Setting DEE 63 Figure 63 After Downloading EE 63 Figure 64
59. l search locations T Floppy disk drives I CD ROM drives W Specify a location I Microsoft Windows Update Cancel K Line Taste it 2 NEC 10 Enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click OK Figure 20 Address Specification 2 Windows 2000 Found New Hardware Wizard Insert the manufacturers mitalabon dick into the chive selected and then click OK Remark If the installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 11 Click Next gt Figure 21 Driver File Search 2 Windows 2000 Found New Hardware Wizard Driver Files Search Results The wizard has finished searching for diver f es for your hardware device The wizard found driver for the following device USB Senal Port Windows found a driver for this device To metall the diver Windows found click Nest boots 3 pS Vimse fidiport int c program files nec Cancel 34 K Line Taste it 2 NEC 12 Click to complete the installation of the USB driver Figure 22 USB Driver Installation Completion 2 Windows 2000 Found New Hardware Wizard Completing the Found New Hardware Wizard DP USB Serial Port Windows has finished installing the software for this device To close this wizard click Finish i rm Cancel 8 5 3 Installation on Windows XP 1 When the K Line Taste it 2 board is conn
60. lation process 8 3 FPL3 FLASH programming GUI installation To install the FPL3 FLASH programming GUI select the SETUP program in the directory FPL3 of the CDROM The setup dialogues will guide you through the installation process 8 4 Sample program installation To install the sample demonstration program for the K_Line Taste it 2 board select the SETUP program in the directory SampleProgram of the CDROM The setup dialogues will guide you through the installation process 26 K Line Taste it 2 NEC 8 5 USB Driver Installation In order to use the K Line Taste it 2 board for On Chip debugging or FLASH programming the USB driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 98SE Me Page 27 Installation on Windows 2000 Page 29 Installation on Windows XP Page 35 8 5 1 Installation on Windows 98SE Me 1 When the K Line Taste it 2 board is connected with the host machine the board is recognized by Plug and Play and the wizard for adding new hardware is started Click Next Figure 6 Add New Hardware Wizard Windows 98SE Add Hew Hardware Wizard This wizard searches for new drivers for USB lt gt Serial A device driver is a software program that makes hardware device work S 2 The window below is displayed So check that Search for a suitable drive
61. lease refer to CHAPTER 5 ON CHIP DEBUGGING 13 K Line Taste it 2 NEC 3 4 3 UART selection SW4 S3 SW4 switch S3 specifies the corresponding UART signals of the 78K0 KF2 device connected to the F T2382 interface lines OFF default UARTS6 select ON UARTO select Table 4 UART selection SW4 S3 3 4 4 UART LIN mode SW4 S4 SW4 switch 54 controls the serial communication mode of K Line Taste it 2 board The corresponding UART signals RxD and TxD selected by SW4 S3 are connected to the TJA1020 LIN transceiver when setting SW4 S4 to ON Setting SW4 S4 to OFF connects the UART signals to the FT232 interface lines OFF default UART mode LIN mode Table 5 UART LIN selection SW4 S4 3 5 LIN plug JP1 JP1 is a 3 pin connector for the LIN bus connected to the transceiver TJA1020 Reference voltage for the LIN bus level LIN bus line Table 6 LIN plug JP1 14 K Line Taste it 2 NEC 3 6 USB interface connector CN6 The CN6 connector allows connecting the IAR C SPY debugger or FPL3 FLASH programming software to the K Line Taste it 2 board in order to debug application software or program the 78K0 KF2 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 UART6 respectively UARTO of the 78K0 KF2 device are connected to CN6 Please configure switch SW4 according
62. lp De gt gt COMMAND AutoProcedure Epv Flash Blank Checking not blank then erase Flash Programming 20 gt Flash Programming lt 30 gt Flash Programming lt 40 gt Flash Programming lt 50 gt Flash Programming DU Flash Programming lt 40 Flash Programming lt 804 gt a i IE Flash Programming Tren E V d Terminating the GUI KZ finish is displayed NEC Dev Mame D79F0647 Firm Version 1 00 ExtCode TFD FACh Vendor 10h Parameter file Mame FoF Oh4 7D Format 0414 Version 41 03 Processor Ver 0200 Load file Mame ADC DEMO HES Date 2005 10 07 14 21 42 Chksum E690h rea OO0000k 000767h Connection to device COM3 115200 Chip 12 00 Part Speed Range Freq Multiple 1 00 Select File Quit to terminate the GUI software All settings executed so far are saved in the FPL3 INI file so that those settings can be reused when the GUI software is restarted Execute ADC DEMO application Set the K Line Taste it 2 board to the normal operation mode by switching SW4 S1 to OFF lt Plug and Play gt the K Line Taste it 2 board to start in normal operation mode or press the reset button SW1 to release the normal operation mode Restarting the GUI When the system is restarted the same screen as shown in Figure 62 appears 64 K Line Taste it 2 NEC 11 TROUBLESHOOTING In driver installation recognition base
63. ly to use this mode deer va TN ri AL HLH 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 K Line Taste it 2 board 15 K Line Taste it 2 NEC 3 7 Connector CN4 CN4 connector not assembled allows connecting the PG FP4 flash programmer to K Line Taste it 2 board in order to program application programs into the microcontroller internal FLASH memory Please note PG FP4 is a separate product from NEC and it is not included in this package Table 8 CN4 PG FP4 connector When using PG FP4 the programming interface to the 78K0 KF2 device must be set to clock serial interface SIO chO without handshake Set configuration of switch SW4 of the K Line Taste it 2 board to the following S1 OFF 52 OFF 53 OFF 54 OFF Table 9 SW4 configuration when using PG FP4 3 8 External Potentiometer R7 A 47K potentiometer R7 is connected between Vcc and ground The potentiometer arm is connected to the VO signal of the LCD module It controls the operating voltage contrast adjustment of the display 16 K Line Taste it 2 NEC 3 9 Display D1 12 2 character LC display The K_Line Taste it 2 board is equipped with a character LC display The display font is equal to 12 character words at 2 lines The LCD module contains ab
64. n channel The sample program does a cyclic measurement of the input voltage of ANI2 analogue input equal to port P22 of 78K0 KF2 device connected to the temperature sensor KT Y13 5 The temperature is calculated and the result is transferred via UARTO to a terminal program running on the host machine The data transfer speed is set to 115200 bps per default Additionally the temperature is displayed on the LCD Before the temperature measurement is started the calibration of the temperature sensor has to be done by adjusting the temperature offset via button SW2 and SWS Timer00 Watch Timer A D converter To run the UART demo please set the configuration of switch SW4 to the following Please note by using the On Board debug mode serial communication via UARTO is not possible because the USB UART communication channel is used for debugging purpose 77 K Line Taste it 2 14 6 USB interface cable Mini B type Series A Plug Series A Plug Figure 77 USB interface cable Mini B type Series Mini B Plug NEC Series Mini B Plug 78 SIMIA HOI DAN Ge lt K Line Taste it 2 15 Schematics
65. ndow Supply Oscillator Selection Supply oscillator Frequency MH Multiply rate Frequency box Sets the clock frequency of the target system The range of operating frequency varies from one device to another So check the specifications of the device used before making a setting Multiply rate Specifies the division rate or multiplication rate of the target device If the target device has an on chip PLL circuit enter a division rate or multiplication rate according to the use environment The selectable division rate or multiplication rate differs depending on the device Check the specifications of the device used before making a setting If the target device does not have an on chip PLL circuit select 1 0 On the initial screen the default setting is displayed according to the parameter file 50 K Line Taste it 2 NEC lt 4 gt Operation Mode lt 5 gt The setting of Operation Mode may divide the flash memory of some target devices into blocks or areas This menu is used to select an operation mode of the flash memory Some devices do not have the block and area division modes and some devices have only one of the modes In these cases a nonexisting mode is unchoosable Figure 45 Device Setup Window Operation Mode Operation Mode C Chip Start O Block spd Area Show Addres When Chip is selected The entire flash memory area of the target device is subject to rewrite
66. nesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office eq
67. o ENEE 78 19 SUS SEE 79 List of Figures Figure 1 K Line Taste it 2 system configuration ccooocccoccccocnononncnononcononcnonanonnanoncnnnnrnonanonnanencnnonnnnnns 11 Figure 2 K Line Taste it 2 baseboard connectors switches and LED S rrarnnnrvnnnrrnnnnrvrnnrrnnnnevnnvrennnn 12 Figure 3 Connector CN6 USB Mini B Type Host Connector Pin Contfguraton esenee nnn 15 Figure 4 K Line Taste it 2 78K0 CPU module components E 20 Figure 5 K Line Taste it 2 configuration for On Chip debuogmng namana namana 22 Figure 6 Add New Hardware Wizard Windows O8GE wina nnza 27 Figure 7 Search Method Windows 98SE Lanseres ere 27 Figure 8 Search Location Specification Windows O9GE 28 Figure 9 Checking Driver to Be Installed Windows OooGE namu nanwananamuninwwzaunaminaninuna naza 28 Figure 10 Installation Completion Windows 98SE EE 29 Figure 11 Found New Hardware Wizard 1 Windows 20001 29 Figure 12 Search Method 1 Windows 2000 EE 30 Figure 13 Driver File Location 1 Windows 20001 30 Figure 14 Address Specification 1 Windows 20001 31 Figure 15 Driver File Search 1 Windows 20001 31 Figure 16 USB Driver Installation Completion 1 Windows 20001 32 Figure 17 Found New Hardware Wizard 2 Windows 20001 32 Figure 18 Search Method 2 Windows 20001 33 Figure 19 Driver File Location 2 Windows 2000 s csiiciosiuediaveausdsacandanerdhueardnesidkwanieswntad adeadastandueasduvantane 33 Figure 20 Addr
68. on the target device Figure 39 Device Menu File Device View Help J Blank Check F Erase Program gt gt FI Flask Verify gt gt LI GER Security CheckSum Autoprocedure EP Y Signature read Get Security settings Setup 1 Blank Check command The Blank Check command allows you to make a blank check on the target device connected to the FPL3 If the flash memory of the target device is erased a blank check is terminated normally If the flash memory is not completely erased the indication not blank is provided Before starting programming erase the flash memory of the target device 2 erase command an The Erase command erases the flash memory of the target device connected to the FPL3 While the flash memory is being erased the progress status is displayed in the action log window to indicate programmer operation The execution on the Blank Check command before the Erase command is executed follows the setting of Command options of the Advance tab displayed by selecting Device Setup Upon completion of Erase command execution the GUI software displays the result of executing the command on the target device 46 K Line Taste it 2 NEC 3 Prog ram command The Program command sends a specified user program to the target device and writes the program to the flash memory The execution of Verify operation for detecting an error in user
69. onnect the USB connector then insert the USB connector again e Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer When this product is connected with a personal computer the Add New Hardware Wizard screen is displayed Cause If the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port this product may be recognized as a new hardware item Action Install the driver by referring to CHAPTER 8 5 USB Driver Installation 65 K Line Taste it 2 NEC Communication with the K Line Taste it 2 board is disabled Cause The driver may not be installed correctly Action Check if USB Serial Port and USB High Speed Serial Converter are installed correctly by referring to CHAPTER 8 5 USB Driver Installation Cause The COM port selected via the Port list box within device setup menu of FPL3 may not be set correctly Action Set the port checked using Device Manager Cause The K Line Taste it 2 board is operating in normal mode Action Set the board to the FLASH programming mode by setting SW4 switch S1 to ON Cause The PRM file selected in Device Setup may be incorrect Action Use the corresponding PRM file that matches the target device For information about the PRM file refer to CHAPTER 9
70. or pour new device To locate driver files and complete the installation click Next What do you want the wizard to do f Search for suitable driver for my device recommended Display a list of the known drivers for this device so that can choose spe driver lt Back ner Cancel 3 Check the Specify a location check box only then click Netz Figure 13 Driver File Location 1 Windows 2000 Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search for driver files for the following hardware device USE lt gt Serial The wizard searches for suitable drivers in its driver database on pour computer and in Check that Specify a any of the following optional search locations that you specify i mg To start the search click Mest Fou are searching on floppy disk or CD ROM drive only is checked insert the floppy disk or CD before clicking Next ed ned Optional search locations T Floppy disk drives Click CD ROM drives W Specify location I Microsoft Windows Update x Back eo Cancel K Line Taste it 2 NEC 4 Enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click OK Figure 14 Address Specification 1 Windows 2000 Found New Hardware Wizard E i SR Cp o ES OK Insert the manufacturers nstallaton disk into the drive TT Click selected and then click OK Cancel Remark If the
71. ous Options Serial Enumerator Iv Minimum Read Timeout msec lo x Serial Printer Cancel If Power Off LI Minimum Write Timeout msec lo v Event On Surprise Removal TI Set RTS On Close LI Figure 69 Configuration of COM port for IAR C SPY debugger 4 4 Press the OK button to save the configuration and close the properties menu The configuration of the USB serial COM port is finished now and the IAR C SPY debugger can now be used in combination with the On Board debug function of the K Line Taste it 2 board 69 K Line Taste it 2 NEC 13 IAR sample session When everything is set up correctly the IAR Embedded Workbench can be started To do so start the Embedded Workbench from Windows Start menu gt Programs gt folder IAR Systems gt IAR Embedded Workbench Kickstart for 78K The following screen appears H JAR Embedded Workbench IDE File Edit View Project Tools Window Help DeHOlalipelecl TY KVEG wohl VRAIS Vorkspace x Worksp Embedded Workbench Startup Create new project in current workspace D Add existing project to current workspace Open existing workspace Qe d Example workspaces Recent workspaces I Do not show this window at startup Cancel Ready ES EES ES E Figure 70 IAR Embedded Workbench Now select the option Open exiting workspace from the File menu and locate the sample project Open the file 78K0 Taste it 2 eww
72. out a character generator ROM including predefined standard characters and a character RAM where the user can define its own characters The display is connected to the 78K0 KF2 device via three control lines and eight data lines E GND Vcc R7 potentiometer arm P66 z P65 ME EE RE A P64 P40 BL D I _ P41 HL DER P42 P43 P44 P45 P46 P47 Vcc via diode Table 10 Display connections For more details about the LC display specification commands and character table please refer to the corresponding User s Manual WH1202A NFA ET pdf located in the doc folder of the K Line Taste it 2 CDROM 3 10 External Potentiometer R14 A 47K potentiometer R14 is connected between Vcc and ground The potentiometer arm is connected to port P20 of 78K0 KF2 device This is equal to the ANIO analogue input 3 11 AD converter reference voltage input A 1 2V reference voltage is supplied to the ANI1 analogue input equal to port P21 of 78K0 KF2 device 17 K Line Taste it 2 3 12 Temperature sensor For temperature measurement and primarily as an application example a silicon temperature sensor KTY13 5 is connected to the ANI2 analogue input equal to port P22 of 78K0 KF2 device NEC The temperature sensor has a resistor range of Ros min 1950 Q and Ros max 1990 Q at 25 degrees centigrade with lop 1mA The distribution of the temperature factor kr is shown in the table below T s
73. pabilities K Line Taste it 2 contains elements to easily demonstrate simple l O functions i e push buttons 12 2 character LC display LED output AD reference voltage I O lines UART serial interface On Board debug function The K Line Taste it 2 supports an On Board debug function by using the IAR C SPY debugger It allows FLASH downloading and standard debug functions i e code execution single stepping breakpoints memory manipulation etc Power supply via USB interface K Line Taste it 2 is powered via USB interface no separate power supply is needed Character LCD module K Line Taste it 2 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 FPL3 FLASH programming software A windows based FLASH programming software allows to select and download application programs to the K Line Taste it 2 board for evaluation purposes Analogue to digital signal conversion is supported Various input output signals available such as All UO ports prepared to be connected to user hardware Timer input output signals Two or three wire serial 1 0 UART interface via USB UART chip FT232 LIN bus support via TJA 1020 transceiver 8 analogue input lines Temperature sensor KTY13 5 4 I O ports connected to LED 2 push buttons prepared for external interrupt generation o o o o o o
74. played The Setup menu allows you to modify the settings of items other than those items consisting of shadowed characters according to the user environment Standard setup This menu is used to set the environment for rewriting the flash memory of the target device The mode of communication with the target the operating clock and so forth differ depending on the device used For details refer to the manual of the device used when making settings The window shown below is opened Figure 40 Device Setup Window Standard Fi Device Setup Standard Advance Supply oscillator Frequency HUH Multiply rate Host connection Part ll Speed 175200 Operation Mode Chip C Block Area Show Addres Target Reset Message OF Cancel This window shows all basic options that can be set in accordance with the user environment and target device button Clicking the button saves the settings on the Standard and Advance menus and closes the window Cancel button Clicking the button closes the window without saving the settings on the Standard and Advance menus 48 K Line Taste it 2 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
75. r is selected then click Next gt Figure 7 Search Method Windows 98SE Add New Hardware Wizard What do you want Windows to do Check that Search for suitable driver WK is selected EE See 3 E paar Er gt Se nn Eed 3 Display a list of all the drivers in specific location so you can select the driver yau want 27 K Line Taste it 2 NEC 3 Check the Specify a location check box only and enter C Program Files NECTools32 FPL3 DRIVER in the address bar then click Next gt Figure 8 Search Location Specification Windows 98SE Add New Hardware Wizard Windor vell search for nes divers mits driver database on your had dance and in ang of the folowing selected locations Dick Mest to Hart the search l FT Meescht Windows Update lt 1 gt Check Specify a location only lt 3 gt Click lt 2 gt Enter C Program Files NECTools32 FPL3 DRIVER Remark Ifthe installation destination folder is changed at the time of GUI software installation enter new folder DRIVER 4 The window below is displayed Click Next Figure 9 Checking Driver to Be Installed Windows 98SE Add New Hardware Wizard Windows rz nor resdp do install the best diver for thes device Click Back to select a dilereni diver or click Mest Lo combine 3 CPROGRAMRECTOO IA FPL3ADE 28 K Line Taste it 2 NEC 5 When the window below is displayed the installa
76. rsion ExtCode Vendor Mame Format Version Processor Wer Connection to device Port Speed Range Freq Multiply Ready oss 5 Setting the programming environment lt 1 gt Select Device gt Setup from the menu bar lt 2 gt The Standard dialog box for device setup is activated Figure 57 lt Standard Device Setup gt Dialog Box Fi Device Setup E ES Standard Advance Parameter file PAM File Read Host connection Part Frequency MHz Speed 115200 Multiply rate Operation Mode ES Chip Start 1 Block sp Supply oscillator Area Show Addres Target fjeset Message UK Cancel NEC 60 K Line Taste it 2 NEC lt 3 gt Click PRM File Head to open the parameter file selection window Select the parameter file 78F0547D prm then click Open Figure 58 Parameter File Selection File name pr Files of type PRM Files PRM sl Cancel YA lt 4 gt From the Port list box select the communication port that matches the host machine being used Select the communication speed of the Host connection Figure 59 Port Selection Es Device Setup Standard Advance Host connection Port coma sl Supply oscillator Frequency 20 00 MHz Multiply rate 1 00 Ce Chip Start ooo Block End 127 rea I Show Addtes Remark Selectable ports can be ch
77. s for IAR C SPY debugger 2 inc C header files 3 Release release output files i e Intel HEX file 1 settings configuration files IAR Embedded Workbench J xcl Linker control file el ADC demo d ep dependency information file IAR Embedded Workbench el DEEN 0d project setting file IAR C SPY debugger 78K0 Taste it 2 eww workspace file IAR Embedded Workbench 78K0 78K0S Table 20 Example directory structure The main directory contains only the project files for the IAR Systems Embedded Workbench 78K0 78K0S All source files are located in the directory source and the inc directory contains the header files The xc1 directory contains the linker control file of the 78K0 KF2 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 78K0 KF2 internal FLASH memory All output files of the development tools for the corresponding target are generated in the directories Debug and Release For details of using the IAR Embedded Workbench and the IAR C SPY debugger please refer to the 78K IAR Embedded Workbench IDE User Guide 75 K Line Taste it 2 NEC 14 2 ADC demo This sample program realizes a simple volt meter By using the integrated ADC the voltage supplied to ADC on input channel 0 port
78. s started normally the following screen appears Figure 35 GUI Software Main Window Ge Device View File Device View Help E IKE gt FlashApennina A Flash Open DK Mame Firm version ExtCode Programmer Vendor parameter Parameter file window Action log window Mes Format Version Processor Ver Toolbar Connection to device Fort Speed Range Status bar Freq Multiply Ready DO m 4 43 K Line Taste it 2 NEC This window consists of the following items Name Display Information displayed at the top FPL3 displayed under the menu bar ICONS Action log window Displays an FPL3 action log displayed under the toolbar Programmer parameter window Displays programming parameter displayed to the right of the action log settings window Status bar Displays status 9 3 Toolbar The toolbar contains buttons for starting the important procedures of the FPL3 Figure 36 Toolbar Buttons 3 Device gt Autoprocedure EPV button 44 K Line Taste it 2 NEC 9 4 Menu Bar Depending on the actual device status and device type some menu items may be enabled or disabled 9 4 1 File menu Clicking the File menu displays the pull down menu as shown below This menu mainly contains commands related to file operation Figure 37 File Menu C FPL3 File Device View PE En gt gt FlashOpenning Flash Open OK
79. tain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electroni
80. tart the IAR C SPY debugger select the option Debug from the Project menu or press the a Debugger button In the next step the TK 78 Emulator has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration as show in the figure below and start the download by pressing the OK button IAR Embedded Workbench IDE A O xi File Edit View Project Tools Window Help 0 ugal SB mlo ca IV EH EA EA SS ab C_demo Debug y Fs EEE ERE A 5 2 Tea Modul namas Sutra raenml1 Files L Deser 1x 78 Hardware Setup for 78K0 78F054780 E a B78K0 Taste it 2 Time Unit EN DETA ya our ee adc_main c FFFFFFFFFFFFFFFFFFFF El inite Cancel mA E Binterupte un Man Clock Sub Clock E Icd c o s Output Clock Board Clack Board BIREACT demo Debug v un Extemal Eternal Default BITIMER demo Debug v System E System BJUART demo Debug v a Ame DO ke A Monitor Clock Peripheral Break Target r Target Power Off i fo System Disabled Connect Permit C User Enabled Not Connect Not Permit m Pin Mask m Failsafe Break I WAIT TARGET RESET I View Setup fo T NMI I INTERNAL RESET Memory Map Start Address Length Type gt MN os heann z Add iew ADC_d REACT_d TIME ae fer TIME so D
81. te it 2 run the microcontroller at 12 0000 MHz operating speed Sub clock is provided with 32 768 kHz 2 2 Host computer The USB host interface enables communication to the K_Line Taste it 2 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 K Line Taste it 2 is powered by USB interface no separate power supply is needed The USB interface provides the K Line Taste it 2 board with 5V supply voltage 11 K Line Taste it 2 NEC 3 K Line Taste it 2 baseboard components The K Line Taste it 2 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 or FLASH programmer f DI Sg
82. tion of the USB driver is completed Click Finish The installation of the USB Serial Port driver is then automatically performed Figure 10 Installation Completion Windows 98SE Add New Hardware Wizard USB 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 K_Line Taste it 2 board is connected with the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Click Next gt Figure 11 Found New Hardware Wizard 1 Windows 2000 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install device driver for hardware device To continue click Hest 29 K Line Taste it 2 NEC 2 The window below is displayed So check that Search for a suitable driver is selected then click Next gt Figure 12 Search Method 1 Windows 2000 Found New Hardware Wizard Install Hardware Device Drivers g A device driver is software program that enables hardware device to work with an operating system This wizard will complete the installation for this device Check that Search for a IS LISB lt gt Serial suitable driver selected device driver it software program that makes a hardware device work Windows needs driver files f
83. tion 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 57 K Line Taste it 2 NEC 10 How to use FPL3 FLASH programming software This chapter explains the basic operation of the FPL3 GUI for programming the K Line Taste it 2 board This chapter covers how to start the system execute the EPV command and program the 78K0 KF2 target device The conditions of the series of operations described in this chapter are as follows Hardware configuration of K Line Taste it 2 Base board K Line Taste it 2 Target device 78K0 KF2 uPD78F0547D Clock l 12 MHz Voltage level 5V Software configuration of FPL3 Parameter file 78F0547D PRM Clock setting 12 MHz Multiplied by 1 Port COM3 115200 bps Operation mode Chip Write HEX ADC_demo hex Option setting Blank check before Erase 1 Installing the FPL3 GUI software Install the FPL3 GUI software on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the software has not been installed yet 2 Installing the driver Install the USB driver on the host machine you are using by referring to CHAPTER 8 SOFTWARE INSTALLATION if the driver has not been installed yet 3 Installing the parameter file The parameter file for the 78KO KF2 device is installed automatically during installation of F
84. tor CN7 not assembled allows connecting the QB 78KOMINI On Chip debug emulator to the K Line Taste it 2 board in order to use the On Chip debug function of the 78K0 KF2 device QB 78KOMINI is a separate product from NEC and it is not included in this starterkit package 1 ESA 20 JRESELOUT OA 3 Fimbo 4 JVDDIN 9 JOND _______ 9 ING Table 14 OCD connector CN7 To enable On Chip debugging by using the QB 78KOMINI please set switch SW4 to the following configuration Table 15 SW4 configuration for OCD via QB 78KOMINI For more details on how to configure K Line Taste it 2 in order to use On Chip debugging please refer to CHAPTER 5 ON CHIP DEBUGGING 21 K Line Taste it 2 NEC 5 On Chip debugging The K Line Taste it 2 board offers two possibilities to use On Chip debugging OCD The On Board debug function of K Line Taste it 2 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 K Line Taste it 2 supports the QB 78KOMINI On Chip debug emulator in order to use On Chip debug function of the 78K0 KF2 device The system configuration for On Chip debugging is shown in figure belo
85. ts listed in this document or any other liability arising from the use of such NEC Electronics products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in 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
86. ty function is valid Figure 49 Device Setup Window Security flag settings Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Caution The following is the correspondence between the Erase and Program Commands when the security functions of a 78K0 KF2 microcontroller are valid Chip Erase Command Block Erase Command Program Command Disable Chip Erase Invalid Valid Note1 Disable Block Erase Valid Disable Program Valid Disable Boot block Invalid Valid Note2 Valid Note2 cluster reprogramming Notes 1 Since the Erase command is invalid the data that differs from the data already written in the flash memory cannot be written Notes 2 Valid only for the area other than the area specified as the boot area 53 K Line Taste it 2 NEC Erase Disable Chip Erase check box If this check box is checked the Erase command becomes invalid in the entire flash memory area of the target device At this time the warning message shown below is displayed Figure 50 Device Setup Window Disable Chip Erase AN When Chip Erase is disabled chip cannot be erased and programmed any more cane Caution Be aware that if the security flag is set in the target device neither erasing nor writing to the device can be enabled afterward Disable Block Erase check box If this check box is checked the
87. uipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality 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 medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under cer
88. vnnnnnnnnnvnnnnnernnnnnnnnnvnnnere 11 21 KNEET PN 11 22 HOSECOMPI EEN 11 2 3 Power supply via USB interface rrnnnnnnnnnnnnnnnnnnnnnnnnnvennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 11 3 K Line Taste it 2 baseboard components rrrsnrrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnner 12 Sel RESET NON SW canaria E 13 2 BENN Jakka ad 13 39 BEDT NNN Ren 13 3 4 Configuration switch SWS L ueusmsmnesn ep snvmman hj nnmnnn mnnn mannm nnna 13 3 4 1 Operation mode selection SW4 S1 mema wanan w waw nanzniazanuninini wima tinanuninunia nanu niniw enka 13 3 4 2 On Chip debug mode selection GA 13 34 3 TENNE 14 3 4 4 UART LIN mode SW 4 SA uante ist 14 A A A E PP UE E E E E 14 3 6 USB interface connector ENER geste agesin 15 ar ANENA oa 16 3 8 External Potentiometer AT tada eee nnmnnn nnna 16 39 Display D1 12 2 character LC display asii tc 17 3 10 External FotepnioroeterHi usskusegeekegEueeeER SEebSgeghREeuESEEAEAEEEER ENEE SENER ERESEAEEEEN EES nnmnnn nnna 17 3 11 AD converter reference voltage Input rrnnurannvnnnvennnnnnnnnnnnvnnnvevnnnnnnnnnnnvennvennnnnnnnnnnnvennnernnnnnnnennn 17 3 12 Temperature eebe assis eggehes ege gege Se eeN EEN Eeer 18 3 13 External LED s D IDA Lesere 19 4 K Line Taste it 2 78K0 KF2 CPU module components ssnrrrrnnnnvnnnnvevnnnnnnnnnnnvennnnnennnn 20 4 1 K Line Taste it 2 78KO KF2 CPU module uvanaununnnnununnununnnnnnunnnnnnunnnnnnnnnunnnnnnunnnnnnunnnnnnunnennnn 20 4 1
89. w OCD via NEC K Line On Board debug function Taste it 2 alternative OCD via QB 78KOMINI On Chip debug emulator Figure 5 K_Line Taste it 2 configuration for On Chip debugging 5 1 OCD via On Board debug function To operate the K Line Taste it 2 board within the On Board debug mode configure switch SW4 as following Table 16 SW4 configuration for OCD via On Board debug function 22 K Line Taste it 2 NEC 5 2 OCD via QB 78KOMINI On Chip debug emulator To operate the K_Line Taste it 2 board together with the QB 78KOMINI On Chip debug emulator configure switch SW4 as following Table 17 SW4 configuration for OCD via QB 78KOMINI 23 K Line Taste it 2 NEC 5 3 78K0 KF2 memory map The 78K0 KF2 memory layout is shown in the table below Special function registers SFR 256 x 8 bits General purpose registers 32 x 8 bits Internal high speed RAM 1024 x 8 bits Reserved Buffer RAM Data memory 32 x 8 bits 7FFFH space FAOOH Program area FOFFH 1081 F800H 1080H Option byte area F7FFH 16384 x 8 bits 107FH a bank 4 rogram area RAM space in ode 16384 x 8 bits OFFFH which instruction Internal expansion RAM bank 2 can be fetched 6144 x 8 bits CALLF entry area E000H DFFFH em 0800H Reserved a O7FFH TT Program area 0081H Flash memory 0080H Option byte area 16384 x 8 bits bank 0 007FH 8000H EN 7FFFH IER CALLT table area bank
Download Pdf Manuals
Related Search
Related Contents
MODE D`EMPLOI SPÉCIAL Identité personnelle Les séjours de vacances entre jeunes de la cité Giada D320 barebone IBFA User Guide - Oracle Documentation rapport narratif - Centre d`Echange d`Information sur la Biodiversité 2.4GHz RF Wireless Presenter User`s Manual full text Cliquez pour lire l`article Wet and Dry Vacuum cleaners Copyright © All rights reserved.
Failed to retrieve file