DEMOKIT-LF3 Renesas Electronics America, DEMOKIT-LF3 Datasheet

no-image

DEMOKIT-LF3

Manufacturer Part Number
DEMOKIT-LF3
Description
KIT DEMO 78K0 LF3 UPD78F0495
Manufacturer
Renesas Electronics America
Datasheet

Specifications of DEMOKIT-LF3

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
User’s Manual
DemoKit-LF3
Demonstration Kit for NEC Electronics
8-bit 78K0/Lx3 Microcontrollers
©September 2007 NEC Electronics America, Inc.
All rights reserved. Printed in U.S.A.
Document No. U18759EE1V0UMU1

Related parts for DEMOKIT-LF3

DEMOKIT-LF3 Summary of contents

Page 1

... User’s Manual DemoKit-LF3 Demonstration Kit for NEC Electronics 8-bit 78K0/Lx3 Microcontrollers ©September 2007 NEC Electronics America, Inc. All rights reserved. Printed in U.S.A. Document No. U18759EE1V0UMU1 ...

Page 2

... DemoKit-LF3 User’s Manual The information in this document is current as of September 2007. 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 ...

Page 3

... DemoKit-LF3 User’s Manual U18759EE1V0UMU1 iii ...

Page 4

... DemoKit-LF3 User’s Manual Regional Information Some information contained in this document may vary from country to country. Before using an NEC Electronics product in your application, contact the NEC Electronics office in your country to obtain a list of authorized representatives and distributors and to verify: • Device availability • ...

Page 5

... DemoKit-LF3 User’s Manual Revision History Date Revision Chapter 09-16-2007 V1.00 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. Description ...

Page 6

... Contents ...................................................................................................................... 2 1.4 System configuration................................................................................................. 2 1.5 Demonstration board ................................................................................................. 2 1.6 Host computer ............................................................................................................ 3 1.7 Flexible power supply................................................................................................ 3 2. DemoKit-LF3 components ............................................................................................ 4 2.1 SW1 and SW2 configuration switches ..................................................................... 5 2.1.1 IDK78K0-TK on-board debugging mode .................................................. 5 2.1.2 WriteEZ3 flash programming mode .......................................................... 5 2.1.3 QB-MINI2 on-chip debugging / normal execution..................................... 5 2.2 SW4 reset button ........................................................................................................ 5 2 ...

Page 7

... View menu .............................................................................................. 41 7.3.3.1 Toolbar option .......................................................................................41 7.3.3.2 Status Bar option ..................................................................................41 7.3.4 Help menu............................................................................................... 41 7.4 Programmer Parameter window ............................................................................. 42 8. WriteEZ3 flash programming software ...................................................................... 44 8.1 Configuration of the DemoKit-LF3 board .............................................................. 44 8.2 Configuration of the WriteEZ3 software ................................................................ 44 8.3 Installing the parameter file..................................................................................... 44 8.4 Connecting and starting .......................................................................................... 45 U18759EE1V0UMU1 vii ...

Page 8

... The driver file cannot be found at a specified location. ....................................... 51 9.3 The drivers did not in install correctly. .................................................................. 51 9.4 The Add New Hardware Wizard initializes unexpectedly..................................... 52 9.5 Communication with the DemoKit-LF3 board is disabled. .................................. 52 10. Project Manager and Debugging ................................................................................ 53 11. Sample Projects ........................................................................................................... 57 11.1 Buzzer sample .......................................................................................................... 57 11.2 Kitchen Timer sample ...

Page 9

... Full documentation for the MCU and software tools, including downloadable updates of the software tools, documentation and utilities, if available, from The DemoKit-LF3 is not intended to be used for code development. NEC Electronics America does not allow and does not support any attempt to use the kit in a commercial or technical product. ...

Page 10

... Figure 1. 1.5 Demonstration board The DemoKit-LF3 board connects to the host computer via a USB interface cable. The host may be used for on-chip debugging using the ID78K0-TK debugger or for execution of application programs on the DemoKit-LF3 starter kit. The 78K0/LF3 MCU operates at 8 MHz and has a 32.768 kHz subclock. ...

Page 11

... RS-232 interface. • The FTDI driver for the virtual COM port (VCP) appears to the Windows operating system as an extra COM port. 1.7 Flexible power supply The DemoKit-LF3 can receive power from the USB interface, the QB-MINI2 on-chip debugger external power supply. U18759EE1V0UMU1 3 ...

Page 12

... DemoKit-LF3 User’s Manual 2. DemoKit-LF3 components The DemoKit-LF3 is equipped with a navigation switch, 224-segment LCD panel, temperature sensor, and several connectors that can be used for connection to host computers, flash programmers, or external target hardware. Figure 2. Board connectors and switches (top view) U18759EE1V0UMU1 4 ...

Page 13

... DemoKit-LF3 User’s Manual Some of the DemoKit-LF3 components are free for user application hardware and software. Refer to the 78K0/LF3 device user’s manual to obtain information about electrical specifications for the available I/O ports before connecting any external signals to the DemoKit-LF3 board. ...

Page 14

... DemoKit-LF3 User’s Manual 2.3 SW3 navigation switch The SW1 navigation switch connects to the microcontroller’s key interrupt input. The switch operates in five directions and has a push function in the center. 2.4 J1: external A/D measurement inputs You can configure connector J1 to measure external analog signals using the internal 10-bit A/D converter or the MCU’ ...

Page 15

... Connector J4 (not assembled) can be used to measure the microcontroller’s current consumption. To use this mode, open the V8 soldering bridge. 2.7 J5: external power supply input Connector J5 (not assembled) enables you to apply an external power supply to the DemoKit-LF3 board without an active USB connection. Table 4. Connector J3 inputs ...

Page 16

... ON QB-MINI2 OFF OFF For more information about how to configure the DemoKit-LF3 for on-chip debugging, refer to Section 3, “On-Chip Debugging.” 2.10 USB1 interface connector This interface enables you to connect the ID78K0-TK debugger to the DemoKit-LF3 for on-board debugging using commands for programming memory, executing code, single-stepping, setting breakpoints, and manipulating memory. The WriteEZ3 flash programming software also uses the USB communication channel to program application software into the CPU’ ...

Page 17

... DemoKit-LF3 User’s Manual 2.11 LCD1: 224-segment LCD panel The DemoKit-LF3 board is equipped with a 224-segment, transflective-type LCD panel that operates at a supply voltage of 5V and a multiplex rate of ×8. The LCD driver specifications are defined in Table 8. Table 8. LCD driver specifications Specification Driver voltage generation ...

Page 18

... RR1–RR5: external LCD resistors The DemoKit-LF3 board can also be configured to use external voltage divider resistors for the generation of the LCD drive power supplies. For information about the external resistance division method, refer to the microcontroller user’s manual. 2.13 U2: temperature sensor For temperature measurement and primarily as an application example, the DemoKit-LF3 board is equipped within an S-8120C temperature sensor IC ...

Page 19

... LED1 is the power LED that indicates when the DemoKit-LF3 board has power. 2.17 Connectors T1–T13 and wire-wrap field Pin assignments for the T1–T13 connectors are shown in Table 10. Additionally, the DemoKit-LF3 board provides a wire-wrap field area that allows integration of additional application hardware. ...

Page 20

... T12 T13 2.18 Soldering bridges Additional configuration of the DemoKit-LF3 board can be done using the A1–A8 and V1–V11 soldering bridges as described in the tables below. The A1–A8 and V7 soldering bridges can be used to reconfigure the A/D converter input channels and the reference input voltage. ...

Page 21

... DemoKit-LF3 User’s Manual The V1–V6 and V8–V11soldering bridges can be used to reconfigure the power supply of the board’s dedicated circuits. For more information, refer to Section 13, “Schematics.” Table 12. Setting of V1–V6 and V8–V11 soldering bridges Soldering bridge Configuration Closed (default) V1 Open ...

Page 22

... DemoKit-LF3 User’s Manual 2.19 Microcontroller memory map The memory map of the 78K0/LF3 microcontroller is shown in Figure 7. The DemoKit-LF3 board does not reserve any resources of the microcontroller; therefore, available device memory is free for application software. Figure 7. 78K0/LF3 memory map U18759EE1V0UMU1 14 ...

Page 23

... DemoKit-LF3 User’s Manual 3. On-chip debugging The DemoKit-LF3 offers two options for on-chip debugging (OCD): • Using the on-board ID78K0-TK debugger without external hardware, whereby the default USB connection to the host computer based on the virtual UART driver is used as a debugging interface ...

Page 24

... Table 14. Configuration for QB-MINI2 debugging SW2 Mode QB-MINI2 OFF OFF Note: When supplying power from the QB-MINI2, do not connect external hardware to the DemoKit-LF3 board. In this mode, the board can operate without external power from the USB. SW1 Don’t care OFF OFF ...

Page 25

... Installation and operation The bundled software tools, including the ID78K0-TK debugger, allow downloading and debugging af application software on the DemoKit-LF3 starter kit hardware. Additionally, you can use the WriteEZ3 flash programming program to perform simple flash programming of the microcontroller’s internal flash memory. A USB interface line is needed for communication between the host computer and the DemoKit- LF3 board ...

Page 26

... To install the WRITEEZ3 flash programming software, select the setup program in the \fscommand\K0\WRITEEZ3 directory and follow the instructions in the Setup dialog boxes. 6.4 USB driver installation To use the DemoKit-LF3 board for on-chip debugging, install the USB driver on the host computer in accordance with one of the following procedures: Installation on Windows 98SE/Me operating system ...

Page 27

... DemoKit-LF3 User’s Manual 6.4.1 Installation on Windows 98SE/Me operating system 1. When you connect the DemoKit-LF3 board to the host computer, the Plug and Play function automatically initializes the Add New Hardware Wizard. Click Next. Figure 9. 2. Select Search for a suitable driver for my device and click Next. ...

Page 28

... DemoKit-LF3 User’s Manual 3. Select the Specify a location box, click Browse… to find the \fscommand\K0\WRITEEZ3\drivers folder, and then click Next. Figure 11. 4. Click Next. Figure 12. Specify a Location (Windows 98SE) D:\fscommand\K0\WRITEEZ3\driver Search for a Driver File (Windows 98SE) D:\fscommand\K0\WRITEEZ3\drive U18759EE1V0UMU1 20 ...

Page 29

... Figure 13. Installation of USB High-Speed Serial Converter Complete (Windows 98SE) 6.4.2 Installation on Windows 2000 operating system 1. When you connect the DemoKit-LF3 board to the host computer, the Plug and Play function automatically initializes the Found New Hardware Wizard. Click Next. Figure 14. Found New Hardware Wizard (Windows 2000) ...

Page 30

... DemoKit-LF3 User’s Manual 2. Select Search for a suitable driver for my device and then click Next. Figure 15. 3. Select Specify a location and then click Next. Figure 16. Install Hardware Device Drivers (Windows 2000) Specify a Location (Windows 2000) U18759EE1V0UMU1 22 ...

Page 31

... DemoKit-LF3 User’s Manual 4. Click Browse… to find the \fscommand\K0\WRITEEZ3\drivers folder and then click OK. Figure 17. 5. Click Next. Figure 18. Copy Manufacturer’s Files (Windows 2000) D:\fscommand\K0\WRITEEZ3\drivers Driver Files Search Results 1 (Windows 2000) D:\fscommand\K0\WRITEEZ3\drivers U18759EE1V0UMU1 23 ...

Page 32

... DemoKit-LF3 User’s Manual 6. Click Finish to complete the installation of the USB driver. Figure 19. Installation of USB High-Speed Serial Converter Complete (Windows 2000) 7. Open the Found New Hardware Wizard to install the USB serial port driver and click Next. Figure 20. Found New Hardware Wizard 2 (Windows 2000) ...

Page 33

... DemoKit-LF3 User’s Manual 8. Select Search for a suitable driver for my device and then click Next. Figure 21. 9. Select Specify a location and then click Next. Figure 22. Install Hardware Device Drivers 2 (Windows 2000) Specify a Location 2 (Windows 2000) U18759EE1V0UMU1 25 ...

Page 34

... DemoKit-LF3 User’s Manual 10. Browse to the \fscommand\K0\WRITEEZ3\drivers folder and click OK. Figure 23. 11. Click Next. Figure 24. Copy Manufacturer’s Files 2 (Windows 2000) D:\fscommand\K0\WRITEEZ3\drivers Driver Files Search Results 2 (Windows 2000) D:\fscommand\K0\WRITEEZ3\drivers U18759EE1V0UMU1 26 ...

Page 35

... Installation of USB Serial Port Complete (Windows 2000) 6.4.3 Installation on Windows XP operating system 1. After you connect the DemoKit-LF3 board to the host computer, the Plug and Play function initializes the Found New Hardware Wizard. Select Install from a list or specific location (Advanced) and then click Next. ...

Page 36

... DemoKit-LF3 User’s Manual 2. Select Search for the best driver in these locations and Include this location in the search. Click Browse… to find the \fscommand\K0\WRITEEX\drivers folder and then click Next. Figure 27 you see this message, click Continue Anyway. Figure 28. Search for Best Driver (Windows XP) ...

Page 37

... DemoKit-LF3 User’s Manual 4. Click Finish to close the hardware wizard. Figure 29. Installation of USB High-Speed Serial Converter Complete (Windows ) 5. Open the Found New Hardware Wizard for the USB serial port driver, select Install from a list or specific location (Advanced), and click Next. Figure 30. ...

Page 38

... DemoKit-LF3 User’s Manual 6. Select Search for the best driver in these locations and Include this location in the search. Click Browse... to find the \fscommand\K0\WRITEEZ3\drivers folder and then click Next. Figure 31 you receive this message, click Continue Anyway. Figure 32. Search for the Best Driver 2 (Windows XP) ...

Page 39

... DemoKit-LF3 User’s Manual 8. Click Finish to complete the installation. Figure 33. USB Serial Port2 Driver Installation Complete (Windows XP) Caution: On Windows 2000/XP operating systems, do not execute a Hardware Modification Scan from the Windows Device Manager when communicating with the target device. 6.5 Confirmation of USB Driver Installation To confirm that the drivers have been installed, open the Windows Device Manager and verify that the USB serial port (COM3) and USB high-speed serial converter are listed ...

Page 40

... DemoKit-LF3 User’s Manual 6.6 Driver uninstallation The driver uninstallation program is stored on the host computer when you install the WriteEZ3 program. This procedure explains how to use the program to remove the USB driver Windows XP operating systems, log on as the computer administrator. On Windows 2000 operating systems, log on as the administrator. 2. Double-click My Computer → ...

Page 41

... DemoKit-LF3 User’s Manual 3. Click Continue. 4. Click Finish to complete the removal process. Figure 37. Caution: Removal of the GUI software causes the Ftdiunin.exe file to be deleted, in which case you must manually delete the USB serial port (COM?) and USB high-speed serial converter files from the Windows Device Manager ...

Page 42

... DemoKit-LF3 User’s Manual 7. WriteEZ3 flash programming program Installation of the WriteEZ3 program automatically installs the microcontroller’s <WriteEZ3 install- path>\PRM parameter file. Nevertheless, you can also download the newest parameter file for the µPD78F0495 microcontroller from the NEC Electronics America web site. ...

Page 43

... DemoKit-LF3 User’s Manual 7.2 Toolbar The toolbar contains buttons for executing WriteEZ3 commands. Icon 7.3 Menu bar Depending on the actual device status and device type, some commands may be unavailable. 7.3.1 File menu Clicking the File menu displays a pull-down menu of two commands. ...

Page 44

... DemoKit-LF3 User’s Manual 7.3.1.1 Load command 1. Click the Load command to view the Open box. 2. Select the file to be programmed io the microcontroller’s flash memory and click Open. 3. After you load the program, it performs a checksum calculation and displays the result in the Programmer Parameter window ...

Page 45

... DemoKit-LF3 User’s Manual 7.3.2.1 Blank Check command The Blank Check command enables you to check the target device connected to the WriteEZ3 program. If the device’s flash memory is blank, the command terminates normally. If the flash memory is not blank, the program displays a message to that effect, in which case you should execute an Erase command before proceeding ...

Page 46

... DemoKit-LF3 User’s Manual 7.3.2.8 Signature Read command The Signature Read command reads the device name, flash memory capacity, and other signature information of the target device. 7.3.2.9 Setup command The Setup command opens the Device Setup box and enables you to specify command and programming options that are saved in a parameter file ( ...

Page 47

... Opens a window for specifying a parameter file Specifies a channel (COM1 to COM256) for communication between the DemoKit-LF3 board and host computer (selectable ports can be verified using the Windows Device Manager, as described in the section titled, “Confirmation of USB Driver Installation” ...

Page 48

... DemoKit-LF3 User’s Manual The Advance tab contains the Command options and Security flag settings areas. Table 18. Advance tab elements Element Blank check before Erase check box Read verify after Program Command check box options area Security flag after Program check box ...

Page 49

... DemoKit-LF3 User’s Manual The following is the correspondence between the Erase and Program commands when the microcontroller’s security functions are valid. Table 19. Correspondence between Erase and Program command during valid security functions Option Disable Chip Erase Disable Block Erase Disable Program ...

Page 50

... DemoKit-LF3 User’s Manual Clicking About WriteEZ3… displays version and copyright information for the WriteEZ3 program. 7.4 Programmer Parameter window The Programmer Parameter window displays information about the device, parameter file, load file, and device connection. Figure 48. Figure 47. About WriteEZ3 Window ...

Page 51

... DemoKit-LF3 User’s Manual Table 20. Programmer Parameter window elements Element Description Updated after communication with the target device to display information about the Device area target device Parameter file area Updated after a Setup command to display information about a read parameter file Load file area ...

Page 52

... DemoKit-LF3 User’s Manual 8. WriteEZ3 flash programming software This section explains the basic operation of the WriteEZ3 flash programming software, including how to start the system, execute an Autoprocedure(EPV) command, and program a target device. 8.1 Configuration of the DemoKit-LF3 board • Baseboard : DemoKit-LF3 • Target device : 78K0/LF3 (µ ...

Page 53

... ON WriteEZ3 OFF OFF 2. After you connect the DemoKit-LF3 board to the host computer via the USB cable, the Plug and Play feature initializes the driver. If the connection was already established, press the SW4 reset button to release flash programming mode. Figure 49. SW1 and SW2 settings ...

Page 54

... DemoKit-LF3 User’s Manual 3. To initialize the WriteEZ3 program, click Start → Programs → NEC Electronics Tools → WriteEZ3 → WriteEZ3. 4. Click Device → Setup to open the Device Setup box. Click the PRM File Read button. Figure 50. Main window Figure 51. ...

Page 55

... DemoKit-LF3 User’s Manual 5. Locate and select the 78F0495.prm parameter file in the C:\Program Files\NEC Electronics Tools\WriteEZ3\V1.10\PRM directory and then click Open the Port list, select the communication port that matches the host computer being used. (Note: Selectable ports can be checked using the Windows Device Manager. For details, refer to Section 6.5, “ ...

Page 56

... DemoKit-LF3 User’s Manual 8. In the Supply oscillator area, set the Frequency to 6.00 MHz and the Multiply rate to 1.00 the Operation Mode area, select Chip. 10. Click the Advance tab. Figure 54. Standard tab settings Figure 55. Advance tab settings U18759EE1V0UMU1 48 ...

Page 57

... DemoKit-LF3 User’s Manual 11. Select Blank check before Erase and click OK to set the parameters. Figure 56. 12. Click File → Load, select a program file to be written to the target device, and then click Open. Completion of Parameter Setting Figure 57. After Downloading U18759EE1V0UMU1 49 ...

Page 58

... Click File → Quit to terminate the program and save your settings in the WriteEZ3.INI file for initialization at the next session. 15. Reset the DemoKit-LF3 board to normal operation (QB-MINI2 mode) using the Plug and Play feature or pressing the SW4 reset button. 16. Restart the program by clicking Start → Programs → NEC Electronics Tools → WriteEZ3 → ...

Page 59

... DemoKit-LF3 User’s Manual 9. Troubleshooting In some cases, connection to the DemoKit-LF3 cannot be established. This section provides some guidelines for troubleshooting the problem. 9.1 The Plug and Play feature does not initialize after driver installation. Cause: The USB connector may not be inserted normally into the computer’s USB port. ...

Page 60

... Cause: The COM port selected in the Device Setup → Port box may not be set correctly. Action: Use the Windows Device Manager to set the port. 3. Cause: The DemoKit-LF3 board is operating in normal mode. Action: Set the board to the WriteEZ3 flash programming mode. 4. Cause: The PRM file selected in the Device Setup box may be incorrect. ...

Page 61

... DemoKit-LF3 User’s Manual 10. Project Manager and Debugging Before using the DemoKit-LF3’s on-board debugging function with the debugger, you must first install the USB driver. The communication between the starter kit and debugger—running on the personal computer—is done via the standard UART / USB connection. ...

Page 62

... DemoKit-LF3 User’s Manual 1. To launch the NEC Electronics Project Manager (PM Plus), click Start → Programs → NECTools32 → PM Plus. 2. Click File → Open Workspace to locate the sample project. Open the 78K0_LCD_DEMO.prw file, the workspace file that contains general information about the demonstration projects and settings ...

Page 63

... DemoKit-LF3 User’s Manual 4. To debug the code, make sure that the board is configured for on-chip debugging. From the Start menu, click Programs → NEC Tools32 → Portconfig for ID78K0-TK and then configure the port for the serial communication. 5. Click Tools → Debugger Settings. Select the ID78K0-TK debugger and click OK. ...

Page 64

... DemoKit-LF3 User’s Manual 6. Click Build → Rebuild and Debug to invoke the ID78K0-TK. 7. Click Yes in response to the prompt. 8. After a successful download, standard commands for single-stepping, starting, stopping, setting breakpoints, and manipulating registers and memory are available. For more information about the debugger’s configuration and capabilities, refer to the user’s manual for the ID78K0-TK debugger ...

Page 65

... DemoKit-LF3 User’s Manual 11. Sample Projects Each of the sample programs is located in a single directory, called the main directory in each sample. This main directory contains the complete project, inclusive of all output files of the development tool. The 78K0_LCD_DEMO.prw workspace file is located on top of the sample program directories. All sample programs use the same directory structure ...

Page 66

... A/D converter. 11.6 Voltmeter sample This program measures either the DemoKit-LF3 board’s power supply voltage or an external voltage supplied to the J2 connector. Before applying an external voltage to the J2 connector, carefully read the user’s manual for your device to find the electrical specifications for the A/D converter’s input port. ...

Page 67

... DemoKit-LF3 User’s Manual 12. USB Interface Cable (mini-B type) U18759EE1V0UMU1 59 ...

Page 68

... DemoKit-LF3 User’s Manual 13. Schematics U18759EE1V0UMU1 60 ...

Page 69

... DemoKit-LF3 User’s Manual DemoKit-LF3 schematics (2/2) U18759EE1V0UMU1 61 ...

Related keywords