free stats
NEC 78K0 User Manual
Hide thumbs Also See for 78K0:
Table of Contents

Advertisement

Quick Links

User's Manual
78K0 - Shine It!
Demonstration Board for NEC
Electronics µPD78f8024 High-Current-
Drive/LED Microcontroller
Document No. U19610EE3V0UM00
Date Published May 2009
© NEC Electronics (Europe) GmbH

Advertisement

Table of Contents
loading

Summary of Contents for NEC 78K0

  • Page 1 User’s Manual 78K0 - Shine It! Demonstration Board for NEC Electronics µPD78f8024 High-Current- Drive/LED Microcontroller Document No. U19610EE3V0UM00 Date Published May 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 78K0 - Shine It! Revision History Date Revision Chapter Description 28-01-2009 V1.00 First release 17-04-2009 V2.00 Chap 1, 2 Description of external LED board corrected 11-05-2009 V3.00 Chap 7 Updated to Applilet EZ for HCD V3.50 User’s Manual U19610EE3V0UM00...
  • Page 6: Table Of Contents

    78K0 - Shine It! Table of Contents Introduction ........................11 Package contents..........................11 Features ............................11 System requirements........................12 Trademarks ............................12 Hardware..........................13 Power Supply ..........................13 LED Drivers............................13 On-board LUXEON Rebel LEDs..................... 14 External LED Board ........................16 LED Light Engine Connector ......................16 RS-485/DMX-512 Interface......................
  • Page 7 78K0 - Shine It! Exercise 2 – Fix dimmer program ....................32 Exercise 3 – Variable dimmer program..................34 Exercise 4 – Analog input program....................37 Exercise 5 – UART0 serial command program ................39 Flash Programmer WriteEZ3.....................45 Device Setup............................ 45 Using WriteEZ3..........................
  • Page 8 78K0 - Shine It! List of Figures Figure 1: EV-K0-HCD Board (Top View).....................13 Figure 2: EV-K0-HCD Board (Bottom View) ....................13 Figure 3: Driving the On-board LEDs ......................15 Figure 4: Driving External LED Boards .......................16 Figure 5: Driving the Dialight Light Engines ....................16 Figure 6: Shine It! CDROM autorun.exe .....................20...
  • Page 9 78K0 - Shine It! Figure 59: USB interface cable (Mini-B type)....................51 Figure 60: EV-K0-HCD schematics 1 / 2.....................52 Figure 61: Ev-K0-HCD schematics 2 / 2 .....................53 Figure 62: EV-K0-HCD Top Assembly ......................56 Figure 63: EV-K0-HCD Bottom Assembly....................56 Figure 64: EV-K0-HCD Top Layer.......................57 Figure 65: EV-K0-HCD Layer 1........................57...
  • Page 10 78K0 - Shine It! List of Tables Table 1: LED Light Engine Connectors .......................16 Table 2: RS-485/DMX-512 Connectors ......................17 Table 3: RS-232 Connector.........................17 Table 4: Expansion IO Connector .......................17 Table 5: Board Configuration Options ......................18 Table 6: Shine I t! CD-ROM directory structure ..................19...
  • Page 11: Introduction

    78K0 - Shine It! 1. Introduction The Shine it! evaluation kit for NEC Electronics’ highly integrated, general-purpose µPD78F8024 microcontroller (MCU) with high-current drive allows you to demonstrate the MCU’s capabilities and easily develop intelligent code for emerging high-power LED lighting applications. Compact yet flexible...
  • Page 12: System Requirements

    Note: Updates of the IAR Embedded Workbench for 78K, documentation and/or utilities for the Shine it! Starter Kit, if available, may be downloaded from the NEC WEB page(s) at http://www.eu.necel.com/SHINEIT 1.4 Trademarks IAR Embedded Workbench, visualSTATE, IAR MakeApp and C-SPY are registered trademarks of IAR Systems AB.
  • Page 13: Hardware

    78K0 - Shine It! 2. Hardware The EV-K0-HCD board measures 3.15 × 3.15 inches or 80 × 80 millimeters (mm). This small form factor is enabled by the use of components such as inductors that are small in size thanks to the µPD78F8024 MCU’s constant-current drives with high switching frequency.
  • Page 14: On-Board Luxeon Rebel Leds

    78K0 - Shine It! resistor values using the following formula (refer to R1, R2, R3 and R4 in the schematics). Please note that you need to change the inductors (refer to L1, L2, L3 and L4 in the schematics) current rating accordingly if you wish to drive at more than 350mA.
  • Page 15: Figure 3: Driving The On-Board Leds

    78K0 - Shine It! Figure 3: Driving the On-board LEDs User’s Manual U19610EE3V0UM00...
  • Page 16: External Led Board

    78K0 - Shine It! 2.4 External LED Board The EV-K0-HCD board can connect and drive commercially available external LED boards. To do so, you must first remove the jumper wires inserted into the four Tyco receptacle connectors (J1, J2, J3 and J4) before installing the LED boards.
  • Page 17: Rs-485/Dmx-512 Interface

    I²C data signal Ground Analog voltage reference Table 4: Expansion IO Connector The expansion IO connector pin outs are compatible with the NEC Electronics ZigBee sticks interface; users can add ZigBee / 802.15.4 wireless capability to LED lighting applications. User’s Manual U19610EE3V0UM00...
  • Page 18: Usb Programming And Debugging Interface

    The EV-K0-HCD evaluation board implements an on-board USB programming and debugging interface using the NEC Electronics µPD78F0730 USB MCU. You can download code to the µPD78F8024 HCD/LED MCU from a host computer via a mini-USB cable, and then proceed to debug that code (for information about debugging refer to the regarding chapter).
  • Page 19: Shine It! Installation And Operation

    78K0 - Shine It! 3. Shine it! installation and operation 3.1 Getting started The Applilet EZ for HCD Controller allows a GUI based program building and downloading application programs to the EV-K0-HCD board. Therefore it is necessary to have a valid IAR Embedded Workbench for 78K installation on the PC host system.
  • Page 20: Hardware Installation

    78K0 - Shine It! 4. Hardware installation After unpacking the 78K0 Shine it! Starter kit, connect the board via connector CN1 to your host computer using the provided USB interface cable. When EV-K0-HCD board is connected, the USB driver needs to be installed on the host machine.
  • Page 21: Iar Systems Embedded Workbench For 78K Installation

    78K0 - Shine It! 5.2 IAR Systems Embedded Workbench for 78K installation To install the IAR Systems Embedded Workbench for 78K including C-SPY debugger / simulator press the regarding button from the Autorun of the CDROM provided within the Shine it! package. The setup dialogues will guide you through the installation process.
  • Page 22: Figure 8: Search Method (Windows 2000)

    78K0 - Shine It! 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. Figure 8: Search Method (Windows 2000) Check the "Specify a location"...
  • Page 23: Figure 10: Address Specification 1 (Windows 2000)

    78K0 - Shine It! Locate to “CDROM:\Driver\EV-K0-HCD” Figure 10: Address Specification 1 (Windows 2000) The setup information file “MQB2ALL.inf” is automatic selected, then click Open to proceed within driver installation. Figure 11: Address Specification 2 (Windows 2000) Click. After the location of the USB driver has been specified click OK to proceed.
  • Page 24: Figure 12: Address Specification 3 (Windows 2000)

    78K0 - Shine It! Click. Figure 12: Address Specification 3 (Windows 2000) Click Next>. Figure 13: Driver File Search (Windows 2000) Click. Click Finish to complete the installation of the USB driver. Click. Figure 14: USB Driver Installation Completion (Windows 2000)
  • Page 25: Installation On Windows Xp

    78K0 - Shine It! 5.5.2 Installation on Windows XP When the EV-K0HCD 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...
  • Page 26: Figure 17: Search Location Specification 1 (Windows Xp)

    Locate the folder "C CDROM:\Driver\EV-K0-HCD” 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 27: Confirmation Of Usb Driver Installation

    5.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 EV-K0-HCD board the “NEC Electronics Starter Kit Virtual UART” should be present like in the figure below.
  • Page 28: Figure 21: Windows Device Manager

    78K0 - Shine It! Check that "NEC Electronics Starter Kit Virtual UART (COM?)" is present. Figure 21: Windows Device Manager User’s Manual U19610EE3V0UM00...
  • Page 29: Applilet Ez For Hcd Controller

    78K0 - Shine It! 6. Applilet EZ for HCD Controller Applilet EZ for HCD Controller is a tool used to automatically generate software for microcontroller µPD78F8024, which is used to control the high current driver, and write programs. Software can be easily generated by specifying the setting and operation of the µPD78F8024 on the GUI.
  • Page 30: Using The Applilet Ez For Hcd Controller

    78K0 - Shine It! 7. Using the Applilet EZ for HCD Controller In the following chapter the different functionalities will be explained in short exercises. Exercise 1 and 2 can be used as short quick start example to light up the LEDs mounted to the EV-K0-HCD board. The exercise 3 to 5 will give a further description of the possibilities in usage of the Applilet EZ for HCD Controller.
  • Page 31: Figure 24: Applilet Ez For Hcd Controller Cpu Settings

    Click OK to leave the setting at 9600bps and odd parity. The Applilet EZ is able to use the NEC Compiler for 78K0 as well as the IAR Embedded Workbench for 78K. To select click Setting → Compiler and choose the IAR compiler when using the Applilet EZ for HCD Controller with the Shine It! starter kit.
  • Page 32: Exercise 2 - Fix Dimmer Program

    78K0 - Shine It! Figure 26: Applilet EZ for HCD Controller Compiler selection Note: Make sure that you have installed the selected compiler correctly to your PC host system before building the project. Now let’s take a look at the output folder option, select Setting → Folders... These locations will specify the output paths of the generated files.
  • Page 33: Figure 29: Applilet Ez For Hcd Controller Save File As (Fix.xml)

    78K0 - Shine It! Figure 29: Applilet EZ for HCD Controller Save File as (fix.xml) Make sure to remove the power cable. Click the All P. Button. Make sure that SW1.1 of the Switch Dip is in the OFF position which is the programming mode and then insert the USB connector.
  • Page 34: Exercise 3 - Variable Dimmer Program

    78K0 - Shine It! Figure 32: Applilet EZ for HCD Controller Start Flash programming During the flash procedure you will be informed about the actual status of the download Figure 33: Applilet EZ for HCD Controller Flash programming status Click CLOSE to exit the “Build” window. Remove the USB and change SW1.1 to the on position for run mode.
  • Page 35: Figure 34: Applilet Ez For Hcd Controller Save File As (Variable.xml)

    78K0 - Shine It! Figure 34: Applilet EZ for HCD Controller Save File as (variable.xml) Now we have a new Applilet EZ project file and we will change the dimmer program to “Variable”. Figure 35: Applilet EZ for HCD Controller Dimmer Program selection (Variable) Click on the “Edit”...
  • Page 36: Figure 37: Applilet Ez For Hcd Controller Wave Editor (Set)

    78K0 - Shine It! Using your mouse pointer you can draw the PWM duty cycle versus time in the Black window. Draw something close to the sinusoidal wave below. Figure 37: Applilet EZ for HCD Controller Wave Editor (set) Repeat the same process for the red channel to the rest of the 3 channels. When done, click on the close button to exit the variable dimmer control window.
  • Page 37: Exercise 4 - Analog Input Program

    78K0 - Shine It! Figure 38: Applilet EZ for HCD Controller Variable Dimmer Control settings (set) Make sure that the EV-K0-HCD board is in programming mode (SW1.1 set to OFF) and the USB cable is connected correctly. Click the save button and afterwards the All P. button.
  • Page 38: Figure 39: Adc Potentiometer Connection

    78K0 - Shine It! Figure 39: ADC potentiometer connection Make sure that you have set all the settings as explained in Exercise We will resave the new Applilet EZ project name to adc.xml. Select File → Save as.. and input “ADC.xml” and then click Save.
  • Page 39: Exercise 5 - Uart0 Serial Command Program

    78K0 - Shine It! Change the Dimmer Program to “Analog Input” Figure 41: Applilet EZ for HCD Controller Dimmer Program settings (Analog Input) Use the “each channel” selection and choose a moving average of 6. Make sure that the EV-K0-HCD board is in programming mode (SW1.1 set to OFF) and the USB cable is connected correctly.
  • Page 40: Figure 42: Applilet Ez For Hcd Controller Save File As (Uart0.Xml)

    78K0 - Shine It! Figure 42: Applilet Ez for HCD Controller Save File as (uart0.xml) Change the dimmer program to “Serial Command”. Select UART0 as the interface and ASCII type. Figure 43: Applilet EZ for HCD Controller Dimmer Program settings (Serial Command) Make sure to deselect the “All Channel Synchronize”...
  • Page 41: Figure 44: Microsoft Hyperterminal Connection Description

    78K0 - Shine It! Figure 44: Microsoft HyperTerminal Connection Description Specify the appropriate COM port for your connection and click OK. Figure 45: Microsoft HyperTerminal Connect to Input 9600 for baud rate, 8 bit, odd parity, and no flow control. Click OK.
  • Page 42: Figure 46: Microsoft Hyperterminal Com1 Properties

    78K0 - Shine It! Figure 46: Microsoft HyperTerminal COM1 Properties Click File → Properties → Settings tab. Click on the ASCII Setup button. Figure 47: Microsoft HyperTerminal ASCII settings (1/2) User’s Manual U19610EE3V0UM00...
  • Page 43: Figure 48: Microsoft Hyperterminal Ascii Settings (2/2)

    78K0 - Shine It! Enable the check box for “Send line ends with line feeds” and “Echo typed characters locally”. Next click OK to close the ASCII Setup window. Figure 48: Microsoft HyperTerminal ASCII settings (2/2) Click OK to exit the communication port properties.
  • Page 44 78K0 - Shine It! Here’s the command list for the ASCII input. “1,wd,000” Duty: 000-255 Status: 128 – shutdown 000 – enable driver ”wd” Set Duty - Write duty cycle from channel number ”rd” Read Duty - Read duty cycle from channel number “ws”...
  • Page 45: Flash Programmer Writeez3

    78K0 - Shine It! 8. Flash Programmer WriteEZ3 The WriteEZ3 is flash programming software to flash hex files to the related device. For installation information refer to the chapter WriteEZ3 installation. Figure 50: WriteEZ3 Startup 8.1 Device Setup To provide all necessary information about the device to be programmed, only the corresponding flash parameter file must be loaded.
  • Page 46: Using Writeez3

    78K0 - Shine It! Please check that the correct host communication port is selected. The used communication port can be seen in the Windows Device Manager. 8.2 Using WriteEZ3 After a successful device selection the internal flash memory can be blank-checked, erased, programmed or verified.
  • Page 47: Set Up A Iar C-Spy Debug Session

    78K0 - Shine It! 9. Set up a IAR C-SPY debug session The following chapter describes the necessary steps to set up an IAR C-SPY debug session using the EV- K0-HCD board. 9.1 Flashing the Debug monitor Unlike to other 78K OCD-Debug-Interfaces the debug monitor program is not automatically downloaded by the C-SPY Driver to the target device.
  • Page 48: Debugging The Project Within The Iar Embedded Workbench

    9.3 Debugging the project within the IAR Embedded Workbench Start the IAR Embedded Workbench for 78K. Start → All Programs → IAR Systems → IAR Embedded Workbench Kickstart for NEC 78K Click the “Open existing workspace” button Figure 54: IAR Embedded Workbench Startup Open your with Applilet EZ for HCD Controller created IAR workspace file .eww.
  • Page 49: Figure 55: Iar Embedded Workbench Open Workspace

    78K0 - Shine It! Figure 55: IAR Embedded Workbench Open Workspace Select the MINICUBE as debugger driver. Project → Options → Debugger → Driver Figure 56: IAR Embedded Workbench Debugger Options Exchange the linker command file. Project → Options → Linker → Config → Override default and then push the “…”...
  • Page 50: Figure 57: Iar Embedded Workbench Linker Options

    78K0 - Shine It! Figure 57: IAR Embedded Workbench Linker Options Select the lnk78f8024_EV-K0-HCD.xcl linker command file. This file can be found in the IAR Embedded Workbench folder C:\Program Files\IAR Systems\Embedded Workbench Kickstart 5.0\78k\config Figure 58: IAR Embedded Workbench .xcl file selection Note: If you have changed the install location of the IAR Embedded Workbench during installation please refer to the selected location “IAR installation folder”\78K\config...
  • Page 51: Cables

    78K0 - Shine It! 10. Cables 10.1 USB interface cable (Mini-B type) Figure 59: USB interface cable (Mini-B type) User’s Manual U19610EE3V0UM00...
  • Page 52: Schematics

    78K0 - Shine It! 11. Schematics Figure 60: EV-K0-HCD schematics 1 / 2 User’s Manual U19610EE3V0UM00...
  • Page 53: Figure 61: Ev-K0-Hcd Schematics 2 / 2

    78K0 - Shine It! Figure 61: EV-K0-HCD schematics 2 / 2 User’s Manual U19610EE3V0UM00...
  • Page 54: Bill Of Materials

    78K0 - Shine It! 12. Bill of materials Name Manufacturer / Part # Qty. Description NEC Electronics / HCD/LED MCU μPD78F8024GK 64-pin LQFP NEC Electronics / U2, U3 MOSFETs μPA2756GR 8-pin SOP, dual-N FET Voltage regulator TI / UA78M05CDCYR SOT-223, 5V, 500 mA...
  • Page 55: Table 8: Bill Of Materials Ev-K0-Hcd Board

    78K0 - Shine It! Name Manufacturer / Part # Qty. Description C4, C5, C6, Kemet / Capacitor C0603C221K5RACTU 220 pF, 50V, 0603 Kemet / Capacitor C0603C101J5GACTU 100 pF, 0603 C9, C11, C12, C13, C14, C15, C17, C19, Kemet / C20, C23...
  • Page 56: Ev-K0-Hcd Board Assembly

    78K0 - Shine It! 13. EV-K0-HCD Board Assembly Figure 62: EV-K0-HCD Top Assembly Figure 63: EV-K0-HCD Bottom Assembly User’s Manual U19610EE3V0UM00...
  • Page 57: Board Layout

    78K0 - Shine It! 14. Board Layout Figure 64: EV-K0-HCD Top Layer Figure 65: EV-K0-HCD Layer 1 User’s Manual U19610EE3V0UM00...
  • Page 58: Figure 66: Ev-K0-Hcd Board Layer 2

    78K0 - Shine It! Figure 66: EV-K0-HCD Board Layer 2 Figure 67: EV-K0-HCD Bottom Layer User’s Manual U19610EE3V0UM00...
  • Page 59 78K0 - Shine It! [MEMO] User’s Manual U19610EE3V0UM00...

Table of Contents