Table of Contents

Advertisement

Quick Links

User's Manual
78K0R/Lx3 - Sense it!
Demonstration Kit
Document No. U20191EE1V0UM00
Date Published November 2009
© NEC Electronics (Europe) GmbH

Advertisement

Table of Contents
loading

Summary of Contents for NEC 78K0R/L 3 Sense it! Series

  • Page 1 User’s Manual 78K0R/Lx3 - Sense it! Demonstration Kit Document No. U20191EE1V0UM00 Date Published November 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/Lx3 – Sense it! Revision History Date Revision Chapter Description 2009-12-12 V1.00 First release _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 6: Table Of Contents

    78K0R/Lx3 – Sense it! Table of Contents Introduction ..........................11 Package contents..........................11 Features ..............................11 System requirements........................... 11 Trademarks ............................12 78K0R/Lx3 – Sense It! Components..................13 Operation mode settings........................13 Switch settings............................. 13 2.2.1 SW1..............................14 2.2.2 SW2..............................14 2.2.3 SW3..............................
  • Page 7 78K0R/Lx3 – Sense it! 78K0R/Lx3 – Sense It! installation and operation............... 23 Getting started............................23 CD-ROM contents ..........................23 Hardware installation......................24 Software installation......................25 IAR Systems Embedded Workbench for 78K installation ............... 25 IAR Sample project ..........................26 Voice Data Conversion Tool installation ................... 26 WriteEZ5 installation..........................
  • Page 8 78K0R/Lx3 – Sense it! Schematics ........................... 48 _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 9 78K0R/Lx3 – Sense it! List of Figures Figure 1: 78K0R/LH3+LCD board top view....................13 Figure 2: LCD Panel Circuit Diagram ......................17 Figure 3: 78K0R/Lx3- Sense It! system configuration.................22 Figure 4: 78K0R/Lx3 – Sense It! CD-ROM contents...................23 Figure 5: 78K0R/Lx3 – Sense It! CRROM autorun.exe ................25 Figure 6: IAR Systems Installation screen ....................26 Figure 7: Found New Hardware Wizard (Windows 2000)................27 Figure 8: Search Method (Windows 2000)....................28...
  • Page 10 78K0R/Lx3 – Sense it! List of Tables Table 1: 78K0R/Lx3 – Sense It! Switch and Jumper settings ..............13 Table 2: SW1 modes ...........................14 Table 3: SW2 modes ...........................14 Table 4: SW3 modes ...........................14 Table 5: SW4 modes ...........................14 Table 6: JP1 settings ...........................15 Table 7: Switch settings Booster Type mode....................18 Table 8: Switch settings External Resistor Split mode 1/2 BIAS ..............18 Table 9: Switch settings External Resistor Split mode 1/3 BIAS ..............19...
  • Page 11: Introduction

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

    Host interface Note: Updates of the IAR Embedded Workbench for 78K, documentation and/or utilities for 78K0RLX3-SENSEIT, if available, may be downloaded from the NEC WEB page(s) at http://www.eu.necel.com/78K0RLX3-SENSEIT 1.4 Trademarks IAR Embedded Workbench and C-SPY are registered trademarks of IAR Systems AB. Microsoft and Windows are registered trademarks of Microsoft Corporation.
  • Page 13: K0R/Lx3 - Sense It! Components

    78K0R/Lx3 – Sense it! 2. 78K0R/Lx3 – Sense It! Components The TK-78K0R/LH3+LCD 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/LH3+LCD board top view 2.1 Operation mode settings The 78K0R/Lx3 –...
  • Page 14: Sw1

    78K0R/Lx3 – Sense it! 2.2.1 SW1 SW1 can set the signal that is connected to "- side" of microcontroller built-in operational amplifier 0 (AMP0 - terminal). Mode Connect D/A converter (ANO0) to "- side" of microcontroller built-in operational amplifier 0 (AMP0 - terminal). Connect "- side"...
  • Page 15: Jumper Settings

    78K0R/Lx3 – Sense it! 2.3 Jumper settings 2.3.1 JP1 JP1 is a switch jumper to select the power supply. Position Function USB power supply connected (USB1) Power supply via J2 (VDD) or J3 (GND) Table 6: JP1 settings 2.3.2 JP2 JP2 is the point to measure consumption current of microcontroller AVREFP terminal.
  • Page 16: Other Functions

    78K0R/Lx3 – Sense it! 2.6 Other Functions 2.6.1 VR1 This is the volume control for J1. 2.6.2 J1 J1 is the stereo mini-jack for audio output. Audio is output on left side only. 2.6.3 J2, J3 External power supply connectors. For further information refer to the “External Power Supply”...
  • Page 17: Figure 2: Lcd Panel Circuit Diagram

    78K0R/Lx3 – Sense it! Figure 2: LCD Panel Circuit Diagram _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 18: Lcd Drive Voltage

    78K0R/Lx3 – Sense it! 2.8 LCD Drive Voltage The allowed LCD drive voltages can be selected by switches mounted to the TK-78K0R/LH3+LCD board. 2.8.1 Booster Type, Capacitor Split Set the switches as shown below. All OFF Table 7: Switch settings Booster Type mode A 0.47µF capacitor is connected to each terminal, following methods can be selected.
  • Page 19: External Resistor Split-1/3 Bias Method (3, 4 Time-Sharing)

    78K0R/Lx3 – Sense it! 2.8.3 External Resistor Split-1/3 Bias Method (3, 4 Time-Sharing) Set the switches as shown below. It is connected with 100KΩ of resistance (diagram below). All ON Other Mode Other Mode Table 9: Switch settings External Resistor Split mode 1/3 BIAS _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 20: External Resistor Split-1/4 Bias Method (8 Time-Sharing)

    78K0R/Lx3 – Sense it! 2.8.4 External Resistor Split-1/4 Bias Method (8 Time-Sharing) Set the switches as shown below. It is connected with 100KΩ of resistance (diagram below). All ON Other Mode 1/4 bias Mode Table 10: Switch settings External Resistor Split mode 1/4 BIAS 2.9 Solder-Short Pads With using the solder-short pad to cut/connect the circuit, users can customize the circuit.
  • Page 21: External Power Supply

    78K0R/Lx3 – Sense it! Open Use port110 for other purpose P111 Short Short Connect port111 to SW1 Open Use port111 for other purpose P150 Short Short Connect port150 to analog circuit Open Use port150 for other purpose P157 Short Short Connect port157 to GND Open Use port157 for other purpose...
  • Page 22: K0R/Lx3 - Sense It! System Configuration

    µPD78F1508 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 23: K0R/Lx3 - Sense It! Installation And Operation

    78K0R/Lx3 – Sense it! 4. 78K0R/Lx3 – Sense It! installation and operation 4.1 Getting started The 78K0R/Lx3 – Sense It! is delivered with a pre-programmed sample application, that makes use of the available peripherals of the TK-78K0R/LH3+LCD board. The CD comes with a 16KB code size limited version of the IAR Embedded Workbench and a software tool to generate a .c file out of a .wav audio file.
  • Page 24: Hardware Installation

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

    78K0R/Lx3 – Sense it! 6. Software installation The 78K0R/Lx3 – Sense It! package comes with the following software packages: • IAR Systems Embedded Workbench for 78K 16KB code size limited, including C compiler, assembler, linker, librarian and IAR C-SPY debugger / simulator •...
  • Page 26: Iar Sample Project

    78K0R/Lx3 – Sense it! Figure 6: IAR Systems Installation screen Note: Before installing the IAR Embedded Workbench for 78K 16KB code size limited version a license number and key has to be requested from IAR Systems. Therefore please follow the IAR online registration.
  • Page 27: Writeez5 Installation

    78K0R/Lx3 – Sense it! 6.4 WriteEZ5 installation To install the WriteEZ5 just press the regarding button from the Autorun of the CD-ROM provided within the 78K0R/Lx3 – Sense It! package. The setup dialogues will guide you through the installation process. The installation can also be started by executing the WriteEZ5_v100_EE.exe in the directory ”\WRITEEZ5”...
  • Page 28: Figure 8: Search Method (Windows 2000)

    78K0R/Lx3 – Sense it! Check that "Search for a suitable driver ..." is selected. Click. Figure 8: Search Method (Windows 2000) Check the "Specify a location" check box only, then click Next>. Check that "Specify location" only is checked. Click. Figure 9: Driver File Location (Windows 2000) Locate to the folder "CDROM:\Driver”.
  • Page 29: Figure 10: Address Specification 1 (Windows 2000)

    78K0R/Lx3 – Sense it! Locate to “CDROM:\Driver” Figure 10: Address Specification 1 (Windows 2000) The setup information file “MQB2ALL.inf” is automatic selected, then click Open to proceed within driver installation. Click. Figure 11: Address Specification 2 (Windows 2000) After the location of the USB driver has been specified click OK to proceed. _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 30: Figure 12: Address Specification 3 (Windows 2000)

    78K0R/Lx3 – Sense it! Click. Figure 12: Address Specification 3 (Windows 2000) Click Next>. Click. Figure 13: Driver File Search (Windows 2000) Click Finish to complete the installation of the USB driver. Click. _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 31: Installation On Windows Xp

    78K0R/Lx3 – Sense it! Figure 14: USB Driver Installation Completion (Windows 2000) 6.5.2 Installation on Windows XP When the TK-78K0R/LH3+LCD board is connected with the host machine, the board is recognized by Plug and Play, and the wizard for finding new hardware is started. At first the hardware wizard will ask if windows should search on the windows update web, check "No, not this time"...
  • Page 32: Figure 17: Search Location Specification 1 (Windows Xp)

    Locate the folder "C CDROM:\Driver” and click OK. Figure 18: 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.
  • Page 33: Confirmation Of Usb Driver Installation

    6.6 Confirmation of USB Driver Installation After installing the USB driver, check that the driver has been installed normally, according to the procedure below. When using the TK-78K0R/LH3+LCD board the “NEC Electronics Starter Kit Virtual UART” should be present like in the figure below.
  • Page 34: Figure 21: Windows Device Manager

    78K0R/Lx3 – Sense it! Check that "NEC Electronics Starter Kit Virtual UART (COM?)" is present. Figure 21: Windows Device Manager _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 35: Flash Programmer Writeez5

    78K0R/Lx3 – Sense it! 7. Flash Programmer WriteEZ5 WriteEZ5 is flash programming software to flash hex files to the related device. For installation information refer to the chapter WriteEZ5 installation. Figure 22: WriteEZ5 Startup 7.1 Device Setup To provide all necessary information about the device to be programmed, only the corresponding flash parameter file must be loaded.
  • Page 36: Using Writeez5

    78K0R/Lx3 – Sense it! Figure 23: WriteEZ5 Device Setup Dialogue Please check that the correct host communication port is selected. The used communication port can be seen in the Windows Device Manager. 7.2 Using WriteEZ5 After a successful device selection the internal flash memory can be blank-checked, erased, programmed or verified.
  • Page 37: Table 12: Writeez4 Action Buttons

    78K0R/Lx3 – Sense it! device setup button load file button blank check button erase button program button verity button Autoprocedure button Table 12: WriteEZ4 action buttons WriteEZ5supports Intel-Hex and Motorola S-record file formats as input file. _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 38: Voice Data Conversion Tool Cvadpcm

    • CCITT Recommendation G.726 (40 kbps, 32 kbps, 24 kbps, 16 kbps) • NEC Electronics’ ADPCM-SP (32 kbps, 24 kbps, 16 kbps) • NEC Electronics’ ADPCM-SP2 (32 kbps, 16 kbps) Note: CvADPCM can be used on a PC on which Windows XPTM or Windows VistaTM correctly runs.
  • Page 39: K0R/Lx3 - Sense It! Sample Project

    78K0R/Lx3 – Sense it! 9. 78K0R/Lx3 – Sense it! Sample Project The 78K0R/Lx3 – Sense it! Demonstration kit sample project which is already programmed into the device is written to make use of the available peripherals of the TK-78K0R/LH3+LCD board. The startup sample makes use of a lot of different on chip peripherals of the 78K0R/Lx3 microcontroller 78F1508, so the real time clock, A/D- and D/A converter, Key interrupt, Timer Array Unit and LCD controller are used.
  • Page 40: Initialization Message

    78K0R/Lx3 – Sense it! For information how to navigate through the program please refer to Sample_project_operation_manual.pdf available on the CDROM in the directory “\Doc\TK78K0R”. 9.2 Initialization message When the board is connect to a power supply the LCD will show up a welcome message “ALL FLASH MICROCONTROLLER 78K0R/LH3 STARTER KIT”...
  • Page 41: Current Consumption Measurement Mode

    78K0R/Lx3 – Sense it! 9.9 Current consumption measurement mode The Current consumption measurement mode gives the user the possibility to measure the actual current consumption. Therefore the microcontroller can be set in different operating modes. • Main Run: The microcontroller runs in normal operation but kitchen timer and other functions are stopped. LCD does not display anything while it is functioning.
  • Page 42: Iar Embedded Workbench Debug Session

    78K0R/Lx3 – Sense it! 10. IAR Embedded Workbench debug session The pre-programmed sample application is also provided as an IAR Embedded Workbench project on the starter kit CDROM. 10.1 Setting up the Hardware for a debug session To be able to perform a C-SPY debug session on the 78K0R/Lx3 Sense it! demonstration kit board please make sure that the hardware is set up correctly.
  • Page 43: Build And Debug

    78K0R/Lx3 – Sense it! Figure 27: IAR Embedded Workbench IDE view 10.3 Build and Debug Before build the project please check that MINICUBE is selected as Debugger Driver. Therefore open the Debugger settings by clicking Project Options and select the Category Debugger. Figure 28: IAR Embedded Workbench Debugger Settings _______________________________________________________________________________________________ U20191EE1V0UM00...
  • Page 44: Figure 29: Iar C-Spy Debugger Window

    78K0R/Lx3 – Sense it! When the TK-78K0R/LH3+LCD evaluation board is connected correctly to the Host PC and MINICUBE is selected as Debugger driver you shall be able to build, download and debug the sample project. Therefore just press the Download and Debug button ( ) or click Project Download and Debug.
  • Page 45: Cables

    78K0R/Lx3 – Sense it! 11. Cables 11.1 USB interface cable (Mini-B type) Figure 30: USB interface cable (Mini-B type) _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 46: Bill Of Materials

    78K0R/Lx3 – Sense it! 12. Bill of materials Reference Reference (not mounted) Manufacturer Part No. Manufacturer BUZ1 PS1240P02BT F930J476MAA nichicon 0.01µF C3,C4,C7,C9,C10,C13,C14, 0.1µF C17,C22,C32,C36,C37,C38, C42,C43,C44,C45,C46,C47 150pF 1µF / 16V 0.0082µF 0.0039µF 330pF F931C106MAA nichicon C16,C19,C24,C30,C34 xxx / Dip C18,C23,C31,C35 10µF / 16V C25,C26,C27,C28,C29,C33, 0.47µF C39,C41...
  • Page 47 78K0R/Lx3 – Sense it! SN74LVC1G125DCK SN74LVC2T45DCU CT6-EP20K(203) COPAL CSTLS20M0X51-B0 Murata SSP-T7-FL 3.7pF CSTCE16M0V53-R0 Murata _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...
  • Page 48 78K0R/Lx3 – Sense it! 13. Schematics Please find the schematics attached to this document. To open the attachments view in the Adobe Reader press the paper clip in the lower left corner of the program window. To open the attachment, double click the 78K0RLH3_LCD.pdf.
  • Page 49 78K0R/Lx3 – Sense it! [MEMO] _______________________________________________________________________________________________ U20191EE1V0UM00 User’s Manual...

Table of Contents