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...
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...
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.
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.
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.
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.
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...
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).
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.
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.
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.
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"...
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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”...
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.
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.
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.
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.
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”...
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.
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”...
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.
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.
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.
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.
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...
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...