free stats
NEC 78K0R - Save It! User Manual
Hide thumbs Also See for 78K0R - Save It!:
Table of Contents

Advertisement

Quick Links

User's Manual
78K0R - Save It!
Demonstration Kit
Document No. U19663EE1V0UM00
Date Published January 2009
© NEC Electronics (Europe) GmbH

Advertisement

Table of Contents
loading

Summary of Contents for NEC 78K0R - Save It!

  • Page 1 User’s Manual 78K0R - Save It! Demonstration Kit Document No. U19663EE1V0UM00 Date Published January 2009 © NEC Electronics (Europe) GmbH...
  • Page 2 NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
  • Page 3 European Union only: This equipment (including all accessories) is not intended for household use. After use the equipment cannot be disposed of as household waste. NEC Electronics (Europe) GmbH offers to take back the equipment. All you need to do is register at http://www.eu.necel.com/weee...
  • Page 4 Some information contained in this document may vary from country to country. Before using any NEC product in your application, please contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
  • Page 5 78K0R – Save It! Revision History Date Revision Chapter Description 2009-03-16 V1.00 First release _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 6: Table Of Contents

    78K0R – Save It! Table of Contents Introduction ..........................10 Package contents..........................10 Features ..............................10 System requirements........................... 11 Trademarks ............................11 78K0R – Save It! Components ....................12 Operation mode settings........................12 SW1................................ 12 SW2................................ 13 SW3................................ 13 SW4 (Reset switch) ..........................13 SW5 (INTP0) ............................
  • Page 7 78K0R – Save It! Demo application using the TK-78K0R/KE3L demonstration program ......30 Applilet EZ PL......................... 31 Overview ............................... 31 Features ..............................31 Applilet EZ PL demo application ......................32 Flash Programmer WriteEZ4....................33 Device Setup............................33 Using WriteEZ4............................. 34 Erasing the flash memory (using the WriteEZ4) ...............
  • Page 8 78K0R – Save It! List of Figures Figure 1: 78K0R – Save It! components .....................12 Figure 2: 78K0R – Save It! 7 segment LEDs structure ................15 Figure 3: 78K0R – Save It! 7 segment LED port pin connection ..............15 Figure 4: 78K0R – Save It! MiniCube2 connector..................16 Figure 5: 78K0R –...
  • Page 9 78K0R – Save It! List of Tables Table 1: 78K0R – Save It! Switch and Jumper settings ................12 Table 2: SW1 modes ...........................13 Table 3: SW2 modes ...........................13 Table 4: SW3 modes ...........................13 Table 5: JP1 settings ...........................14 Table 6: JP2 settings ...........................14 Table 7: 7 segment LED port values ......................15 Table 8: Applilet EZ PL demo Switch settings ....................32 Table 9: WriteEZ4 action buttons ........................34...
  • Page 10: Introduction

    IAR Systems Embedded Workbench and IAR Systems C-SPY debugger / simulator. The 78K0R – Save It! is not intended for code development. NEC does not allow and does not support in any way any attempt to use 78K0R – Save It! in a commercial or technical product.
  • Page 11: System Requirements

    Host interface Note: Updates of the IAR Embedded Workbench for 78K, documentation and/or utilities for 78K0R SAVE IT!, if available, may be downloaded from the NEC WEB page(s) at http://www.eu.necel.com/78K0RSAVEIT 1.4 Trademarks IAR Embedded Workbench, visualSTATE and C-SPY are registered trademarks of IAR Systems AB.
  • Page 12: K0R - Save It! Components

    78K0R – Save It! 2. 78K0R – Save It! Components The TK-78K0R/KE3L board is equipped with USB-connector and with several connectors in order to be connected to host computers, FLASH programmer, MiniCube2 or any external target hardware. Figure 1: 78K0R – Save It! components 2.1 Operation mode settings Caused by the different operating modes the 78K0R –Save It! supports different switches and jumpers are available on the board.
  • Page 13: Sw4 (Reset Switch)

    78K0R – Save It! Position Mode Left Demo middle K0USB Right Debug Table 2: SW1 modes 2.3 SW2 SW2 is a 3 position switch to set following modes. Position Mode Left Demo middle K0USB Right Table 3: SW2 modes 2.4 SW3 SW3 is an 8 position DIP switch with following functions Mode Mode selection (see Table 1)
  • Page 14: Q4 (Illuminance Sensor)

    78K0R – Save It! SW6 is connected to the "P32/SCK10/SCL10/INTP2" pin of the µPD78F1009 microcontroller. It can be used as external interrupt source. Note: Make sure to set up the microcontroller internal pull-up resistor option register (PU12) correctly when using this external switch. Please refer to the device user’s manual of the 78K0R/Kx3-L for detailed information about the pull-up resistor option register settings.
  • Page 15: Led1 (Power Led)

    78K0R – Save It! Figure 2: 78K0R – Save It! 7 segment LEDs structure Figure 3: 78K0R – Save It! 7 segment LED port pin connection In respect to the pin connection the following table shows the port values to be written to show the numbers from 0 to 9 on the 7 segment LEDs.
  • Page 16: Figure 4: 78K0R - Save It! Minicube2 Connector

    78K0R – Save It! Figure 4: 78K0R – Save It! MiniCube2 connector Furthermore some solder bridges have to be shorted to connect the connector to the target device. Figure 5: 78K0R – Save It! Minicube2 connection solder bridges _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 17: K0R - Save It! System Configuration

    Bit microcontroller with on-chip USB interface and the NEC virtual UART driver allows application software to access the µPD78F1009 device in the same way as it would access a standard RS232 interface. The NEC virtual UART driver appears to the windows system as an extra Com Port, in addition to any existing hardware Com Ports.
  • Page 18: K0R - Save It! Installation And Operation

    (measured by an illuminance sensor). The Applilet EZ PL is an easy to use GUI based program to build up small logical circuits which are automatically converted into an IAR Embedded workbench or NEC PM+ project. They can be compiled and downloaded to the target hardware directly from within the Applilet EZ PL;...
  • Page 19: Hardware Installation

    78K0R – Save It! 5. Hardware installation After unpacking the 78K0R – Save It! demonstration kit, connect the board via connector CN1 to your host computer using the provided USB interface cable. When TK-78K0R/KE3L board is connected, the USB driver needs to be installed on the host machine. Please refer to the following USB Driver Installation.
  • Page 20: Software Installation

    78K0R – Save It! 6. Software installation The 78K0R – Save It! package comes with the following software packages: • TK-78K0R/KE3L demonstration program • IAR Systems Embedded Workbench for 78K 4Kbyte code size limited, including C compiler, assembler, linker, librarian and IAR C-SPY debugger / simulator •...
  • Page 21: Iar Systems Embedded Workbench For 78K Installation

    78K0R – Save It! To install the TK-78K0RKE3L demonstration program just press the regarding button from the Autorun of the CD-ROM provided within the 78K0R – Save it! package. The setup dialogues will guide you through the installation process. The installation can also be started by executing the TK-78K0R_KE3L_Demo.msi in the directory “\TK-78K0R_KE3L Demo”...
  • Page 22: Iar Systems Visualstate Installation

    78K0R – Save It! 6.3 IAR Systems visualSTATE Installation To install the IAR Systems visualSTATE press the regarding button from the Autorun of the CDROM provided within the 78K0R – Save It! package. The installation can also be started by executing the Autorun.exe program in the directory ”\IAR Systems\”...
  • Page 23: Figure 10: Found New Hardware Wizard (Windows 2000)

    78K0R – Save It! Click. Figure 10: Found New Hardware Wizard (Windows 2000) Following the window below is displayed. So, check that "Search for a suitable driver ..." is selected, then click Next>. Check that "Search for a suitable driver ..." is selected. Click.
  • Page 24: Figure 12: Driver File Location (Windows 2000)

    78K0R – Save It! Check that "Specify location" only is checked. Click. Figure 12: Driver File Location (Windows 2000) Locate to the folder "CDROM:\Driver”. Locate to “CDROM:\Driver” Figure 13: Address Specification 1 (Windows 2000) The setup information file “MQB2ALL.inf” is automatic selected, then click Open to proceed within driver installation.
  • Page 25: Figure 14: Address Specification 2 (Windows 2000)

    78K0R – Save It! Click. Figure 14: Address Specification 2 (Windows 2000) After the location of the USB driver has been specified click OK to proceed. Click. Figure 15: Address Specification 3 (Windows 2000) Click Next>. Click. Figure 16: Driver File Search (Windows 2000) _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 26: Installation On Windows Xp

    78K0R – Save It! Click Finish to complete the installation of the USB driver. Click. Figure 17: USB Driver Installation Completion (Windows 2000) 6.6.2 Installation on Windows XP When the TK-78K0R/KE3L board is connected with the host machine, the board is recognized by Plug and Play, and the wizard for finding new hardware is started.
  • Page 27: Figure 19: Found New Hardware Wizard 2 (Windows Xp)

    78K0R – Save It! Check that "Install from a list or Click. specific ..." is selected. Figure 19: Found New Hardware Wizard 2 (Windows XP) Check that "Search for the best driver in these locations." is selected. Select the "Include this location in the search:"...
  • Page 28: Figure 21: Search Location Specification 2 (Windows Xp)

    78K0R – Save It! Figure 21: Search Location Specification 2 (Windows XP) As shown below, "NEC Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows XP." is displayed. Click Continue Anyway. Click.
  • Page 29: Confirmation Of Usb Driver Installation

    6.7 Confirmation of USB Driver Installation After installing the USB driver, check that the driver has been installed normally, according to the procedure below. When using the Save It! board the “NEC Electronics Starter Kit Virtual UART” should be present like in the figure below.
  • Page 30: Demo Application Using The Tk-78K0R/Ke3L Demonstration Program

    78K0R – Save It! 7. Demo application using the TK-78K0R/KE3L demonstration program The Low-Power-Consumption Demonstration GUI for the 78K0R – Save It! is Windows software that can be used to check the operation of the 16-bit microcontroller 78K0R/KE3-L mounted on the included demonstration kit board TK-78K0R/KE3L made by TESSERA Technology Inc.
  • Page 31: Applilet Ez Pl

    78K0R – Save It! 8. Applilet EZ PL 8.1 Overview Applilet EZ PL is a software tool that can be used to automatically generate microcontroller software by using only its GUI (graphical user interface) when installed on a host. By using Applilet EZ PL, the basic operations of systems using a microcontroller can be learned and evaluated without knowledge of complex programming languages.
  • Page 32: Applilet Ez Pl Demo Application

    Automatic generation of a project file for the integrated development environment A *.prj project file for the integrated development environment PM+, made by NEC, or a *.eww project file for the integrated development environment IAR Embedded Workbench, made by IAR Systems, is automatically generated at the same time as the object code (*.hex).
  • Page 33: Flash Programmer Writeez4

    78K0R – Save It! 9. Flash Programmer WriteEZ4 WriteEZ4 is flash programming software to flash hex files to the related device. For installation information refer to the chapter WriteEZ4 installation. Figure 27: WriteEZ4 Startup 9.1 Device Setup To provide all necessary information about the device to be programmed, only the corresponding flash parameter file must be loaded.
  • Page 34: Using Writeez4

    78K0R – Save It! Please check that the correct host communication port is selected. The used communication port can be seen in the Windows Device Manager. 9.2 Using WriteEZ4 After a successful device selection the internal flash memory can be blank-checked, erased, programmed or verified.
  • Page 35: Erasing The Flash Memory (Using The Writeez4)

    78K0R – Save It! 10. Erasing the flash memory (using the WriteEZ4) If the preprogrammed software is written to the flash it is mandatory to erase the flash of the device before it is possible to use the Applilet EZ or the IAR Embedded Workbench with the TK-78K0RKE3L board. To erase the flash please perform following steps.
  • Page 36: Iar Embedded Workbench 78K0R - Save It! Sample Project

    78K0R – Save It! 11. IAR Embedded Workbench 78K0R – Save It! sample project The IAR Embedded Workbench IDE is a very powerful Integrated Development Environment that allows you to develop and manage a complete embedded application project. The now described project can be found on the 78K0R – Save It! CR-ROM in the “\samples\TK- 78K0RKE3L startup sample”...
  • Page 37: Figure 33: Iar Embedded Workbench Main Ide Window

    78K0R – Save It! Then locate the sample project on the CD and open the SAMPLE-TK-78K0RKE3L.eww workspace file. Afterwards the IDE should look similar like below. Figure 33: IAR Embedded Workbench Main IDE window To verify that the right debugging device is chosen please open the project options window by clicking Options and then open the tab Debugger.
  • Page 38: Figure 34: Iar Embedded Workbench Debugger Options

    78K0R – Save It! Figure 34: IAR Embedded Workbench Debugger Options The next step is to check that the correct linker settings are set. This can be done in the “Linker” category as shown below. Select the “Config” tab and check that the linker command file “lnk78f1009.xcl” is selected. This file is used by the linker and contains information on where to place the different sections of code, data and constants that may be used within the demo project: _______________________________________________________________________________________________...
  • Page 39: Figure 35: Embedded Workbench Linker Configuration

    78K0R – Save It! Figure 35: Embedded Workbench Linker Configuration 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 78K0R Save It! board and debugged.
  • Page 40: Figure 36: Iar Embedded Workbench Minicube2 Settings

    78K0R – Save It! Figure 36: IAR Embedded Workbench MINICUBE2 settings Now the debugger is started and the demo project is downloaded to the 78K0R Save It! board. The progress of downloading is indicated by blue dots in the MINICUBE Emulator window. Please note that downloading of larger executables may take some time.
  • Page 41: Running The Application

    78K0R – Save It! Figure 37: IAR C-SPY debugger 11.3 Running the application After downloading the project to the device the debugger window opens and, if not changed by the user, the program runs to the first instruction of the main() function. When reaching this point the necessary clock initialization is already executed.
  • Page 42: Blink Mode

    78K0R – Save It! 11.3.2 Blink mode After the counter reached its final value of 49 the used timer interrupt is masked and the RTC interrupt will be unmasked and is used for the next stage. Furthermore the INTP0 is unmasked to be able to leave this stage whenever the user wants to.
  • Page 43: Iar Visualstate 78K0R - Save It! Sample Project

    78K0R – Save It! 12. IAR visualSTATE 78K0R – Save It! sample project IAR visualSTATE is a Windows-based software package of integrated tools for developing, testing, and implementing embedded applications based on state-chart diagrams. It includes a graphical design environment, test tools, a code generator, and a documentation facility. IAR visualSTATE has been developed in accordance with the Unified Modeling Language notation (UML).
  • Page 44: Running The Sample Project

    78K0R – Save It! 12.3 Running the sample project To perform changes on the visualSTATE parts open the visualSTATE workspace file within the “\samples\IAR visualSTATE sample project\vS” folder of the CD-ROM. After loading the workspace the window should look like shown below. Figure 38: IAR visualSTATE navigator If the functionality or the settings of the sample shall be changed open the visualSTATE Designer.
  • Page 45: Figure 39: Iar Visualstate Designer

    78K0R – Save It! Figure 39: IAR visualSTATE designer To run the project on the TK-78K0RKE3L board locate the IAR Embedded Workbench workspace file within the “\samples\IAR visualSTATE sample project\EW” folder of the CD-ROM. _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 46: Debug The 78K0R - Save It! Visualstate Sample Project

    78K0R – Save It! Figure 40: IAR Embedded Workbench visualSTATE sample project When loading the visualSTATE sample project all necessary settings to run the application on the TK- 78K0RKE3L board are already set. So the user just has to download the application to the target device. The application can be downloaded by click Project Debug.
  • Page 47: Cables

    78K0R – Save It! 13. Cables 13.1 USB interface cable (Mini-B type) Figure 41: USB interface cable (Mini-B type) _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 48: Schematics

    78K0R – Save It! 14. Schematics _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 49: Figure 42: Tk-78K0Rke3L Schematics 1/3

    78K0R – Save It! Figure 42: TK-78K0RKE3L schematics 1/3 _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 50: Figure 43: Tk-78K0Rke3L Schematics 2/3

    78K0R – Save It! Figure 43: TK-78K0RKE3L schematics 2/3 _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 51: Figure 44: Tk-78K0Rke3L Schematics 3/3

    78K0R – Save It! Figure 44: TK-78K0RKE3L schematics 3/3 _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...
  • Page 52 78K0R – Save It! [MEMO] _______________________________________________________________________________________________ U19663EE1V0UM00 User’s Manual...

Table of Contents