DEMOKIT-LG2 Renesas Electronics America, DEMOKIT-LG2 Datasheet

no-image

DEMOKIT-LG2

Manufacturer Part Number
DEMOKIT-LG2
Description
KIT DEMO 78K0 LG2 UPD78F0397
Manufacturer
Renesas Electronics America
Datasheet

Specifications of DEMOKIT-LG2

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
User’s Manual
DemoKit-LG2
Demonstration Kit for
NEC Electronics 78K0/Lx2 Microcontrollers
Document No. U17799EU1V0UM00
©November 2005. NEC Electronics America, Inc.
All rights reserved.

Related parts for DEMOKIT-LG2

DEMOKIT-LG2 Summary of contents

Page 1

... User’s Manual DemoKit-LG2 Demonstration Kit for NEC Electronics 78K0/Lx2 Microcontrollers Document No. U17799EU1V0UM00 ©November 2005. NEC Electronics America, Inc. All rights reserved. ...

Page 2

... DemoKit-LG2 User’s Manual The information in this document is current as of November 2005. 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 ...

Page 3

... DemoKit-LG2 User’s Manual This test and measurement equipment has the potential to be significantly altered by its 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. ...

Page 4

... DemoKit-LG2 User’s Manual Revision History Date Revision 11-2005 V1.00 Microsoft and Windows are registered trademarks of Microsoft Corporation. Pentium is a registered trademark of Intel 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. ...

Page 5

... DemoKit-LG2 User’s Manual Contents 1. Introduction.....................................................................................................................................1 1.1 Features..................................................................................................................................................1 1.2 System Requirements ...........................................................................................................................2 1.3 Kit Contents...........................................................................................................................................2 2. System Configuration .....................................................................................................................3 2.1 DemoKit-LG2........................................................................................................................................3 2.2 Host Computer ......................................................................................................................................3 2.3 Power Supply via USB Interface .........................................................................................................3 3. Components.....................................................................................................................................3 3.1 Jumper JP1: Power Supply Selection .................................................................................................5 3.2 Jumper JP2: Power Selection for On-Chip Debugging.....................................................................6 3 ...

Page 6

... DemoKit-LG2 User’s Manual 6.2 Toolbar.................................................................................................................................................39 6.3 Menu Bar .............................................................................................................................................40 6.3.1 File Menu................................................................................................................................40 6.3.1.1 Load Command ........................................................................................................41 6.3.1.2 Quit Command .........................................................................................................41 6.3.2 Device Menu...........................................................................................................................42 6.3.2.1 Blank Check Command............................................................................................42 6.3.2.2 Erase Command .......................................................................................................42 6.3.2.3 Program Command...................................................................................................42 6.3.2.4 Verify Command ......................................................................................................43 6.3.2.5 Security Command ...................................................................................................43 6.3.2.6 Checksum Command................................................................................................43 6.3.2.7 Autoprocedure(EPV) Command ..............................................................................43 6 ...

Page 7

... NEC Electronics C compiler and assembler (maximum 32 KB program code size) Full documentation for the NEC Electronics 78K0/LG2 MCU, software tools and FPL3 flash programming software Note: DemoKit-LG2 is not intended for code development. NEC Electronics does not support any application of the DemoKit-LG2 in a commercial or technical product. 1 ...

Page 8

... Note: Updates for the NEC Electronics software tools, FP3 flash programming software, documentation and/or utilities for DemoKit-LG2, if available, may be downloaded from the NEC Electronics America web site at http://www.am.necel.com/microcontrollers/devtools.php. 2 ...

Page 9

... Power Supply via USB Interface The DemoKit-LG2 supports a flexible configuration of its power supply. The board can be powered by the USB interface, the QB-78K0MINI on-chip debugging emulator external CR2032 3-volt lithium coin battery. ...

Page 10

... DemoKit-LG2 User’s Manual Figure 2. Top View of Board Connectors and Switches CN7 SW2 BUZ1 SW1 JP1 JP2 4 SW3 Q1 S1 LCD1 CN8 JP3 X1 CN5 CN3 CN4 ...

Page 11

... DemoKit-LG2 User’s Manual Figure 3. Bottom View of Board Connectors and Switches Some of the DemoKit-LG2 components are available for user application hardware and software. Please read the MCU user’s manual carefully to get information about the electrical specification of the available I/O ports before connecting any external signals to the DemoKit-LG2 board. ...

Page 12

... OFF S4 OFF 3.4.1 SW1/S1: Operating Mode Selection SW1 switch S1 controls the DemoKit-LG2 board’s operating mode. Setting SW1/ allows you to reprogram the MCU’s internal flash memory using the FPL3 flash programming software. 6 Mode USB interface-supplied power (CN7) Battery-supplied power (BAT1) ...

Page 13

... DemoKit-LG2 User’s Manual SW1/S1 OFF (default) ON During normal operation, the user program stored in the MCU’s flash memory is executed. 3.4.2 SW1/S2: UART Selection SW1/S2 specifies the MCU’s UART signals that correspond to the FT232 interface lines. SW1, S2 OFF (default) ON 3.4.3 SW1/S3: On-Chip Debugging Selection SW1/S3 controls the MCU’ ...

Page 14

... DemoKit-LG2 User’s Manual 3.6 SW3 Navigation Switch The SW3 navigation switch connects to the MCU’s key interrupt port and operates in five directions, including from the center pushbutton (Figure 4). SW3 Left Down Select Right Up 8 Connection to Microcontroller P73/KR3 P71/KR1 P74/KR4 P72/KR2 P70/KR0 Figure 4 ...

Page 15

... DemoKit-LG2 User’s Manual 3.7 SB1, SB3, SB4, SB5 and SB6 Soldering Bridges The SB1, SB3, SB4, SB5 and SB6 soldering bridges allow the board to be configured in a variety of ways, as described in Table 2. SB1 SB3 SB4 Table 2. Soldering Bridge Settings Soldering Bridge ...

Page 16

... UART6 and UART0 I/O signals are connected to CN7. CN7 USB Connector Figure 6. Pin Configuration of CN7 USB Mini B-Type Host Connector For connection to the host computer, use a mini-B-type USB cable. For confirmation, NEC Electronics used only the USB cable delivered with the DemoKit-LG2 board. 10 Signal Name VBUS connection GNDBUS 1 ...

Page 17

... DemoKit-LG2 User’s Manual 3.9 CN2 Flash Programmer Connector The CN2 connector (not assembled) allows connection of the PG-FP4 flash programmer (available separately) to DemoKit-LG2 to program application software into the MCU’s internal flash memory. CN2 When using the PG-FP4, you must set the programming interface to the MCU in accordance with the clock serial interface (CSI ring oscillator), please configure the DemoKit-LG2 as following: Table 3 ...

Page 18

... For information about how to configure DemoKit-LG2 for on-chip debugging, refer to 4.1. 3.11 LCD1 Standard 112-Segment LCD The DemoKit-LG2 board is equipped with a standard 112-segment LCD, in this case a transflective model operating at a 5-volt supply voltage. The LCD can operate at a four times multiplex rate. The display can be used within a temperature range from – ...

Page 19

... DemoKit-LG2 User’s Manual is equal (maximum 100 Hz) within the complete temperature range. The LCD pin assignments, connections and segment definition is shown in Table 6: Table 6. LCD Pin Assignments and Connections LCD Pin COM1 COM2 COM3 COM3 LCD 78K0/LG2 MCU COM4 Pin COM1 1D S0 ...

Page 20

... DemoKit-LG2 User’s Manual 3.12 Temperature Sensor For temperature measurement and primarily as an application example, a silicon temperature sensor KTY13-5 is connected to the input port of the 16-bit timer/event counter 00, equal to port P00 of the MCU. The temperature sensor has a resistor range of R centigrade, with ...

Page 21

... All of the 78K0/LX2 MCUs have bit-settable I/O ports and Schmitt-trigger inputs such as the TI000 timer input port. The DemoKit-LG2 uses the P0 bit-settable port as a bidirectional port. At first, the complete port P0 is cleared and set to output mode. In this case, the C discharged via P00/TI000 and prepared for the first measurement. The R the current during the discharging of the capacitor ...

Page 22

... DemoKit-LG2 User’s Manual internal interrupt is generated. The capture value is read using this interrupt. In the next step, the C capacity will be discharged again. The same procedure starts once more with port P03. This time the capacitor is charged via the unknown resistor R reached again the second timer value is read out. ...

Page 23

... DemoKit-LG2 User’s Manual - - The C capacitor and V supply voltage do not influence the accuracy of the measurement. Only the 18 DD absolute value of the R reference resistor has an influence, because these parameters will not change REF during one measurement. The REF REF REF REF = = REF ...

Page 24

... DemoKit-LG2 User’s Manual Figure 9 shows a diagram of the dual-slope circuit C18 C18 The charging time of the capacitor can be calculated as follows Figure 9. Dual-Slope Circuit P02 P02 P03 P03 78K0/LG2 78K0/LG2 P00 / TI000 P00 / TI000 REF REF = VAR VAR temperature sensor resistance = temperature sensor resistance ...

Page 25

... DemoKit-LG2 User’s Manual Example threshold = 0,6 × V Typical: V threshold kΩ REF kΩ x 220 kΩ x 220 2,0158 2,0158 ms 3.13 Q1 Phototransistor For light incidence measurement and primarily as an application example, a PT15-21C phototransistor is connected to the ANI0 analog input, which is equal to port P20 of the MCU. ...

Page 26

... CN3, CN4 and CN5 External Connectors CN3, CN4 and CN5 are connectors for external user hardware. The MCU signals are connected to CN3, CN4 and CN5. The DemoKit-LG2 board also provides a wire-wrap field area—connector CN3—for the integration of additional application hardware. ...

Page 27

... DemoKit-LG2 User’s Manual 3.17 Microcontroller Memory Map The MCU’s memory layout is shown in Figure 11. The DemoKit-LG2 does not reserve any resources of the MCU; consequently all available MCU memory is free for application software. Figure 11. Microcontroller Memory Map 21 ...

Page 28

... MCU’s on-chip debugging function. The system configuration for this type of debugging is shown in Figure 12. Figure 12. System Configuration for On-Chip Debugging 4.1 On-Board Debugging To enable the DemoKit-LG2’s on-board debugging mode, you must configure switch SW1 and the JP1–JP3 jumpers as described in Table 8. 22 ...

Page 29

... DemoKit-LG2 User’s Manual Table 8. Switch and Jumper Settings for On-Board Debugging Switch/Jumper SW1/S1 SW1/S2 SW1/S3 SW1/S4 JP1 JP2 JP3 4.2 On-Chip Debugging with the QB-78K0MINI Emulator To use the QB-78K0MINI on-chip debugging emulator to enable the MCU’s on-chip debugging function, you must configure the SW1 switches and jumpers JP1–JP3 as described in Table 9. ...

Page 30

... DemoKit-LG2 User’s Manual 5. Installation and Operation The Windows-based FPL3 flash programming software enables selection and downloading of application programs to the DemoKit-LG2 board. The board communicates with a host computer via a USB interface that must be installed properly before you can download and run a program. DemoKit-LG2 (F:) ...

Page 31

... DemoKit-LG2 User’s Manual 5.2.3 Sample Program To use sample/demonstration program for the DemoKit-LG2 board, copy the directory \fscommand\SampleProgram\ on the CD-ROM to you local hard drive. Remember to remove the "read only" attribute from the files. 5.2.4 USB Driver Installation To use the board for on-chip debugging or flash programming, install the USB driver in accordance with the procedure for your particular operating system ...

Page 32

... DemoKit-LG2 User’s Manual 2. Select the Search for the best driver for your device box and then click Next. 3. Select the Specify a location box, browse to and select C:\ProgramFiles\NECTools32\ FPL3\DRIVER, and then click Next. Figure 16. Search Location Specification (Windows 98SE) Note: If the destination folder changes when the GUI software is installed, type the new- folder\DRIVER name in the Specify a location box ...

Page 33

... DemoKit-LG2 User’s Manual 4. Click Next. Figure 17. Checking Driver to Be Installed (Windows 98SE) Click Finish to complete the installation. 5. Figure 18. Installation Completion (Windows 98SE) 27 ...

Page 34

... DemoKit-LG2 User’s Manual 5.2.4.2 Installation on Windows 2000 1. When you connect the board to the host computer, the Plug and Play function recognizes the board and initializes the wizard for adding new hardware. Click Next. Figure 19. Found New Hardware Wizard 1 (Windows 2000) 2 ...

Page 35

... DemoKit-LG2 User’s Manual 3. Select the Specify a location box and then click Next. 4. Browse to and select C:\Program Files\NECTools32\FPL3\DRIVER and then click OK. Note: If the destination folder changes when the GUI software is installed, type the new- folder\FPL3\DRIVER name in the Copy manufacturer’s files from: box. ...

Page 36

... DemoKit-LG2 User’s Manual 5. Click Next. 6. Click Finish to complete the installation of the USB converter. Figure 24. USB Serial Converter Installation (Windows 2000) 30 Figure 23. Driver File Search 1 (Windows 2000) ...

Page 37

... DemoKit-LG2 User’s Manual 7. To proceed to the USB driver installation, click Next. Figure 25. Found New Hardware Wizard 2 (Windows 2000) 8. Select the Search for a suitable driver for my device box and click Next. Figure 26. Search Method 2 (Windows 2000) 31 ...

Page 38

... DemoKit-LG2 User’s Manual 9. Select the Specify a location box and click Next. Browse to and select C:\Program Files\NECTools32\FPL3\DRIVER and then click OK. 10. Note: If the installation destination folder changes at the time of GUI software installation, enter the new-folder\DRIVER name in the Copy manufacturer’s files from box. ...

Page 39

... DemoKit-LG2 User’s Manual 12. Click Finish to complete the installation of the USB driver. 5.2.4.3 Installation on Windows XP 1. After the board is connected to the host computer, the Plug and Play function recognizes the board and initializes the wizard for finding new hardware. Select the Install from a list or specific location box and then click Next ...

Page 40

... DemoKit-LG2 User’s Manual 2. Select the Search for the best driver in these locations and Include this location in the search: boxes, browse to and select C:\Program Files\NECTools32\FPL3\DRIVER, and then click Next. Figure 32. Search Location Specification 3 (Windows XP) 3. When you receive the has not passed Windows Logo testing to verify its compatibility with Windows XP message, click Continue Anyway ...

Page 41

... DemoKit-LG2 User’s Manual 4. Click Finish to finish the installation of the converter. Figure 34. USB Serial Converter Installation (Windows XP proceed to the installation of the USB serial port driver, click Next. Figure 35. Found New Hardware Wizard 2 (Windows XP) 35 ...

Page 42

... DemoKit-LG2 User’s Manual 6. Select the Search for the best driver in these locations and Include this location in the search: boxes, browse to and select C:\Program Files\NECTools32\FPL3\DRIVER, and then click Next. Figure 36. Search Location Specification 2 (Windows XP) 7. When you receive the has not passed Windows Logo testing to verify its compatibility with Windows XP message, clock Continue Anyway ...

Page 43

... Figure 38. USB Serial Port2 Driver Installation Completion (Windows XP) 5.3 Confirmation of USB Driver Installation After installing the two types of drivers, which are needed for using the DemoKit-LG2 board with FPL3 GUI, you can verify that they were installed successfully by checking the Device Manager directory. ...

Page 44

... DemoKit-LG2 User’s Manual 1. When using Windows XP, log on as the computer administrator. When using Windows 2000, log on as the Administrator. 2. Double-click My Computer → C:\Program Files → NECTools32 → FPL3 → DRIVER → Ftdiunin.exe. 3. Click Continue. 4. Click Finish to complete driver uninstallation. Caution: If the GUI software was uninstalled earlier, then the Ftdiunin.exe file was also deleted. At this time, manually delete " ...

Page 45

... DemoKit-LG2 User’s Manual 6. FPL3 Flash Programming Software The MCU’s parameter file is automatically stored in the <FPL3 install-path>\PRM folder during installation of the FPL3 GUI. Nevertheless, the most up-to-date file can be downloaded from the NEC Electronics America web site at into <FPL3.EXE-install-path>\PRM. Refer to Section 5.2, “Software Installation.” ...

Page 46

... DemoKit-LG2 User’s Manual 6.3 Menu Bar Depending on the actual device status and type, some commands of the commands discussed in this section may be disabled. 6.3.1 File Menu The File menu displays a list of commands related to file operation. 40 Device → Blank Check button Device → Erase button Device → ...

Page 47

... DemoKit-LG2 User’s Manual 6.3.1.1 Load Command The Load command selects the file to be programmed into the MCU’s flash memory. The Open dialog box displays the directory containing the most recently loaded user program. After the program is loaded, the checksum is calculated, and the result displayed in the Programmer Parameter window ...

Page 48

... DemoKit-LG2 User’s Manual 6.3.2 Device Menu The Device menu displays the programming commands. 6.3.2.1 Blank Check Command The Blank Check command executes a blank check on the target device connected to the FPL3 programmer. If the target MCU’s flash memory has been erased, the blank check terminates normally ...

Page 49

... DemoKit-LG2 User’s Manual 6.3.2.4 Verify Command The Verify command sends a specified user program to the target device and verifies the program against the data written to the device’s flash memory. During verification, the Action Log window displays the progress. Upon completion, the GUI software displays the result of the command on the target device ...

Page 50

... Opens a window for specifying a parameter file is displayed. Specify a desired file then click Open Selects a channel from COM1 to COM256 for communication between the DemoKit-LG2 board and host computer Ports also can be selected using the Device Manager, as explained in Section 5.3, “Confirmation of USB Driver Installation.” ...

Page 51

... DemoKit-LG2 User’s Manual Group/Item Option Chip Operation Block Mode (some modes not available in Area all devices) Show Address box Target Reset — Message • Advance Properties: The Advance tab contains command options and security flag settings. Table 12. Device Setup Box: Advance Properties ...

Page 52

... DemoKit-LG2 User’s Manual Group/Item Option Disable Boot block cluster reprogramming Table 13. Relationship Between Erase and Program Commands When MCU Security Functions are Valid Option Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming 6.3.3 View Menu The View menu contains commands for displaying or hiding the toolbar and status bar ...

Page 53

... DemoKit-LG2 User’s Manual The About FPL3 box displays copyright information and the program version number. 6.4 Programmer Parameter Window This Programmer Parameter window displays the settings of the programming parameters. Table 14. Programmer Parameter Window Group Description Device After communication with the target device, displays updated information about the target ...

Page 54

... DemoKit-LG2 User’s Manual 7. How to Use the FPL3 Flash Programming Software This section explains the basic operation of the FPL3 GUI for programming the DemoKit-LG2 board, including how to start the system, execute the Autoprocedure (EPV) command, and program the target device. Table 15 and Table 16 list the specifications for the series of operations described. ...

Page 55

... Jumper JP1 JP2 JP3 2. Connect the DemoKit-LG2 board to the host computer via the USB cable. If the connection was already made, press the SW2 reset button to exit flash programming mode. 3. Start the FPL3 GUI. Click Device → Setup to set the programming environment. ...

Page 56

... Note: Ports can be selected using Device Manager, as explained in Section 5.3, “Confirmation of USB Driver Installation.” 9. Set "Supply oscillator" according to the specifications of the DemoKit-LG2 board, “Frequency = 6.00 MHz” and “Multiply rate = 1.00”. In "Operation Mode", specify the “Chip” mode. The ...

Page 57

... DemoKit-LG2 User’s Manual 10. Click the Advance tab. 11. Select Blank check before Erase and then click OK to set the parameters. 7.5 Selecting a User Program 1. Click File → Load. 2. Select a program file to be written to the target device and then click Open. Figure 60. Device Setup Dialog Box: Advance Tab Figure 61 ...

Page 58

... Click File → Quit to terminate the GUI software. All settings in effect upon termination are preserved in the FPL3.INI file for recall at the next session. 7.8 78K0_LCD_DEMO Application Switch SW1/S1 to OFF to set the DemoKit-LG2 board to normal operation. Press the SW2 reset button to exit normal operation. 52 Figure 63. After EPV Execution " ...

Page 59

... The driver may not be installed correctly. The communications port selected in the Port box on the Standard tab of the Device Setup box may not be set correctly. The DemoKit-LG2 board is operating in normal mode. The PRM file selected on the Standard tab of the Device Setup box may be incorrect. ...

Page 60

... NEC Electronics’ integrated development environment (IDE). The main directory contains the workspace and project files. All source files and associated files are located in the directory. The workspace file is named DemoKit-LG2.prw is provided to demonstrate the 78K0/LG2 MCU’s functionality. ...

Page 61

... DemoKit-LG2 User’s Manual 9.5.1 Setting the Time To adjust the clock, go the SET submenu. Move SW3 left or right to switch between hours and minutes; move SW3 up or down to select the time. To leave the sub-menu, press SW3. 9.5.2 Setting the Clock Format To set the clock format the MODE sub-menu. Move SW3 up or down to select between 24-hour format and AM/PM format ...

Page 62

... For detailed information about the NEC Electronics software tools, refer to the associated documents for each. To perform debugging of the code and board make sure that the DemoKit-LG2 board is configured for on-chip debugging. You must configure the port setting for the serial communication using the Portconfig for ID78K0-TK from the Windows Start menu → ...

Page 63

... DemoKit-LG2 User’s Manual After the port has been set for ID78K0-TK, from PM Plus you can invoke ID78K0-TK by selecting Tools → Debug. To open the debugger separately, without PM Plus, click NEC Tools32 → ID78K0-TK and then enter main.lmf to download the sample code. ...

Page 64

... DemoKit-LG2 User’s Manual 11. Cable 58 Figure 69. USB Interface Cable (Mini-B Type) ...

Page 65

... DemoKit-LG2 User’s Manual 12. Schematics 59 ...

Page 66

... DemoKit-LG2 User’s Manual 60 ...

Page 67

... DemoKit-LG2 User’s Manual 61 ...

Page 68

... DemoKit-LG2 User’s Manual 62 ...

Related keywords