background image

 

 

 
User’s Manual 

 
 
 
 
 
 

78K0R - Save It! 

 
Demonstration Kit 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Document No. U19663EE1V0UM00

 

Date Published January 2009 
 

©

 NEC Electronics (Europe) GmbH 

Summary of Contents for 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: ...y or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products de...

Page 3: ...ations 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 Consequently this equipment is not marked by the CE symbol EEDT ST 005 10 CAUTION This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of ...

Page 4: ...Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Hong Kong Ltd Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 0 Fax 0211 65 03 1327 NEC Electronics Hong Kong Ltd Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 Sucursal en España Madrid Spain Tel 091 504 27 87 Fa...

Page 5: ...It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 5 Revision History Date Revision Chapter Description 2009 03 16 V1 00 First release ...

Page 6: ...ersal area 15 2 13 1 Minicube2 connector 15 3 78K0R Save It system configuration 17 3 1 78K0R Save It 17 3 2 Host computer 17 3 3 Power supply via USB interface 17 4 78K0R Save It installation and operation 18 4 1 Getting started 18 4 2 CD ROM contents 18 5 Hardware installation 19 6 Software installation 20 6 1 TK 78K0RKE3L demonstration program installation 20 6 2 IAR Systems Embedded Workbench ...

Page 7: ...riteEZ4 34 10 Erasing the flash memory using the WriteEZ4 35 11 IAR Embedded Workbench 78K0R Save It sample project 36 11 1 Hardware setup 36 11 2 Loading the Save It sample project 36 11 3 Running the application 41 11 3 1 Count mode 41 11 3 2 Blink mode 42 11 3 3 Spinning mode 42 12 IAR visualSTATE 78K0R Save It sample project 43 12 1 Hardware setup 43 12 2 Functionality of the sample project 43...

Page 8: ...re Wizard 1 Windows XP 26 Figure 19 Found New Hardware Wizard 2 Windows XP 27 Figure 20 Search Location Specification 1 Windows XP 27 Figure 21 Search Location Specification 2 Windows XP 28 Figure 22 Windows XP Logo Testing Windows XP 28 Figure 23 USB Driver Installation Completion Windows XP 29 Figure 24 Windows Device Manager 29 Figure 25 TK 78K0RKE3L demonstration program 30 Figure 26 Applilet ...

Page 9: ...tch 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 Table 10 IAR EWB 78K0R Save It sample project hardware setup 36 Table 11 IAR VS 78K0R Save It sample project hardware setup 43 ...

Page 10: ... Electronics µPD78F1009 low power consumption general purpose NEC 16 bit 78K0R MCU NEC Electronics µPD78F0730 MCU with on chip USB interface 2 latched 7 segment LEDs Low current consumption modes demo application with GUI for the Host PC Applilet EZ PL graphical based logic expression design tool that directly creates the regarding object code On Board debug function TK 78K0 debugging The 78K0R Sa...

Page 11: ...he Windows system drive A web browser and Adobe Acrobat Reader to be able to access all the product documentation Host interface USB interface that enables communication based on USB Ver1 1 or later 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 Trade...

Page 12: ...vailable on the board The table below shows the 3 different modes and the regarding switch jumper setting for each mode Switch Jumper Demonstration mode Debugging Writing mode PC communication mode SW1 DEMO Debug K0USB SW2 DEMO EXT K0USB SW3 1 SW3 3 OFF ON OFF SW3 4 SW3 8 Unused Any Any JP1 Short Short Short JP2 1 2 and 3 4 shorted 1 3 shorted 1 3 shorted Table 1 78K0R Save It Switch and Jumper se...

Page 13: ... to microcontroller port pin P76 Table 4 SW3 modes Note Make sure to set the regarding pull up resistor option registers PUx of the microcontroller if the Pins P33 P42 P43 P76 and P77 Please refer to the device user s manual of the 78K0R Kx3 L for detailed information about the pull up resistor option register settings 2 5 SW4 Reset switch SW4 is connected to the external reset pin of the µPD78F10...

Page 14: ... a jumper field to establish a current consumption measurement Jumper settings setting 1 2 and 3 4 short Demonstration mode 1 3 short Debugging Writing and PC communication mode any other restricted Table 6 JP2 settings 2 10 Q4 illuminance sensor The illuminance sensor Q4 is connected to the P80 CMP0P INTP3 PGAI pin of the µPD78F1009 microcontroller When lightening up the voltage gains up and when...

Page 15: ...t values 2 12 LED1 power LED LED1 is the power LED lights up when power is supplied via USB CN1 or CN2 to the 78K0R Save It 2 13 Universal area The Universal area of the 78K0R Save It is a free for the customer to use mounting area Furthermore there is the possibility to mount a MiniCube2 connector to the Universal area 2 13 1 Minicube2 connector If a MiniCube2 shall be connected to the 78K0R Save...

Page 16: ...__________________________________________________________________________________ User s Manual U19663EE1V0UM00 16 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 ...

Page 17: ... 20 MHz operating speed in normal operation mode 3 2 Host computer The USB host interface enables communication to the 78K0R Save It board The μPD78F0730 78K0 8 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...

Page 18: ... EZ PL therefore it is necessary that the chosen Workbench Suite is correctly installed on the Host PC 4 2 CD ROM contents 78K0R Save It CD ROM ROOT Acrobat Acrobat Reader for 32Bit Windows OS Applilet Applilet EZ PL Device file package µPD78F8024 Device file package Doc Documentation dotnet Microsoft NET package Driver TK 78K0RKE3L driver files IAR Systems IAR Embedded Workbench for 78K IAR visua...

Page 19: ...E1V0UM00 19 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: ...teEZ4 flash programmer software including the PRM file for μPD78F1009 Figure 8 78K0R Save It CRROM autorun exe 6 1 TK 78K0RKE3L demonstration program installation Before the TK 78K0RKE3L demonstration program can be installed on the host PC it is mandatory that the NET Framework is installed on the host PC For further information about installing NET Framework please refer to the TK 78K0R_DEMO_GUI...

Page 21: ...started by executing the Autorun exe program in the directory IAR Systems of the CDROM When running the autorun exe the following screen appears Figure 9 IAR Systems Installation screen To install the IAR Embedded Workbench for 78K just press the regarding button Install IAR Embedded Workbench The setup dialogues will guide you through the installation process For further information about the IAR...

Page 22: ...8K0R Kx3 L for the IAR Embedded Workbench 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 dev_install exe in the directory Device file package of the CDROM 6 5 WriteEZ4 installation To install the WriteEZ4 just press the ...

Page 23: ...or a suitable driver is selected then click Next Check that Search for a suitable driver is selected Click Figure 11 Search Method Windows 2000 3 Check the Specify a location check box only then click Next _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 23 ...

Page 24: ...er CDROM Driver Locate to CDROM Driver Figure 13 Address Specification 1 Windows 2000 5 The setup information file MQB2ALL inf is automatic selected then click Open to proceed within driver installation _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 24 ...

Page 25: ...e USB driver has been specified click OK to proceed Click Figure 15 Address Specification 3 Windows 2000 7 Click Next Figure 16 Driver File Search Windows 2000 Click _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 25 ...

Page 26: ...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 and then click Next Check that No not this time is selected Click Figure 18 Found New Hardware Wizard 1 Windows XP 2 Check that Install from a list or specific location Advanced is selected then click Next _______________________________________...

Page 27: ...his location in the search check box and then click Browse 1 Check that Search for the best driver in these locations is selected 2 Check Include this location in the search only 3 Click Figure 20 Search Location Specification 1 Windows XP 4 Locate the folder C CDROM Driver and click OK _______________________________________________________________________________________________ User s Manual U1...

Page 28: ...s compatibility with Windows XP is displayed Click Continue Anyway Click Figure 22 Windows XP Logo Testing Windows XP 6 After the installation of the USB driver is completed the window below is displayed Click Finish to close the hardware wizard _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 28 ...

Page 29: ...ave It board the NEC Electronics Starter Kit Virtual UART should be present like in the figure below Please check in the Windows Device Manager within the Windows Properties Hardware tab that the driver is installed normally Check that NEC Electronics Starter Kit Virtual UART COM is present Figure 24 Windows Device Manager ___________________________________________________________________________...

Page 30: ...current in a user program can also be measured Figure 25 TK 78K0RKE3L demonstration program Note Values displayed on the GUI Reference values are displayed on the GUI Results that do not satisfy the device specifications might be displayed depending on the resistor for detecting current and the resonator or measuring the frequency used on the board Use the values only as a reference for design and...

Page 31: ... Figure 26 Applilet EZ PL main window 8 2 Features Automatic generation of object code for the 78K0 Kx2 78K0S Kx1 78K0R KE3 L and 78K0 KC2 L Applilet EZ PL can be used to automatically generate object code hex and a source file which can be written to the flash memory in the 78K0 Kx2 78K0S Kx1 78K0R KE3 L and 78K0 KC2 L by assigning GUI panels which represent the various functions of a microcontro...

Page 32: ... Note Only a source file supported by the integrated development environment PM made by NEC is generated for a low pin count microcontroller 78K0S Kx1 Evaluation board By using Applilet EZ PL with an evaluation board created software can be easily checked For further information please refer to the Applilet EZ PL User s manual U17656EJ6V0UM00 pdf available on the 78K0R Save It CD ROM in the Doc di...

Page 33: ...device to be programmed only the corresponding flash parameter file must be loaded The parameter file prm for the µPD78F1009 is located on the CDROM in the same folder as the WriteEZ3 setup file Please use the menu Device Setup to open the following dialogue and the button PRM File Read to select the parameter file Figure 28 WriteEZ4 Device Setup Dialogue __________________________________________...

Page 34: ...grammed or verified WriteEZ4 can be controlled either by menu or by buttons Figure 29 WriteEZ4 Device Menu device setup button load file button blank check button erase button program button verity button Autoprocedure button Table 9 WriteEZ4 action buttons WriteEZ4 supports Intel Hex and Motorola S record file formats as input file _________________________________________________________________...

Page 35: ...t already connected connect the TK 78K0RKE3L board via USB1 connector to the target device 3 Run the WriteEZ4 flash programming software 4 Select the right prm file as explained in chapter 9 1 Device Setup The regarding 78F1009 prm file can be found on the CDROM in the folder CDROM WRITEEZ4 PRM files Figure 30 WriteEZ4 open prm file 5 Click the erase button 6 After finishing the flash erase follow...

Page 36: ...the IAR Systems doc folder Note Make sure that the Flash memory is erased properly before first download the project to the target device Refer to the chapter Erasing the flash memory using the WriteEZ4 11 1 Hardware setup To run the program it is necessary to set up the TK 78K0RKE3L board in the following way Switch Jumper Mode position SW1 Debug SW2 EXT SW3 1 SW3 3 ON SW3 4 SW3 8 Any JP1 Short J...

Page 37: ...er Note Although the On board debug interface is used the MINICUBE C Spy driver must be selected instead of the standard driver TK 78K used for other starter kits If the debug session via MINICUBE2 and the OCD1 connectors shall be started also the MINICUBE C Spy driver must be selected The corresponding COM port where the TK 78K0R KE3L board is connected to the host PC will be detected automatical...

Page 38: ...ow 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 _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 38 ...

Page 39: ...rd and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the Debugger button When first starting the debugger connection after building the project it is necessary to set up the right connection settings Please take care that the following settings are chosen ID code FFFFFFFFFFFFFFFFFFFF Main clock External 20 00 MHz Sub clock External 32 768KHz Target...

Page 40: ...ecutables may take some time After the download was completed all debug features of IAR C SPY debugger are available i e Single Stepping Step Over In Out Go Execution Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the 78K IAR Embedded Workbench IDE User Guide of the IAR installation ___________________________________________...

Page 41: ... timer initialization and timer interrupts usage of one timer array unit TAU channel as well as the real time clock RTC peripheral 11 3 1 Count mode When resuming execution of the program after the break when entering the main function the controller starts to count up from 0 to 49 on the 7 segment LEDs This is controlled by the TAU channel 0 which is initialized as an interval timer Furthermore e...

Page 42: ...alue blink in a frequency of 2Hz controlled by the RTC interrupt To leave this stage only SW5 has to be pressed once 11 3 3 Spinning mode When entering the Spinning mode the RTC interrupt and the INTP0 will be masked In exchange the RTCI Interrupt which occurs every 31 25ms and the INTP2 are unmask The function of the Spinning mode is to spin 1 active segment around the 2 7segment LEDs So every ti...

Page 43: ...mber of times and then displays the average reaction time in hundredths of a second The application works in the following way When the application is started it displays two characters on the display and waits for a press on any of the two buttons A timer with a fairly random interval is now started and when the timer times out a or symbol is displayed on the left or right digit respectively A ne...

Page 44: ...ple 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 _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 44 ...

Page 45: ...he TK 78K0RKE3L board locate the IAR Embedded Workbench workspace file within the samples IAR visualSTATE sample project EW folder of the CD ROM _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 45 ...

Page 46: ... WriteEZ4 as described in chapter 10 12 4 Debug the 78K0R Save It visualSTATE sample project After downloading the application to the target device all from the C SPY debugger already known debug features are available Furthermore more visualSTATE specific Debug features can be used like an actual State view or a graphical animation of the states and state switches For further information about th...

Page 47: ...3 Cables 13 1 USB interface cable Mini B type Figure 41 USB interface cable Mini B type _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 47 ...

Page 48: ...78K0R Save It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 48 14 Schematics ...

Page 49: ...78K0R Save It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 49 Figure 42 TK 78K0RKE3L schematics 1 3 ...

Page 50: ...78K0R Save It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 50 Figure 43 TK 78K0RKE3L schematics 2 3 ...

Page 51: ...78K0R Save It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 51 Figure 44 TK 78K0RKE3L schematics 3 3 ...

Page 52: ...78K0R Save It _______________________________________________________________________________________________ User s Manual U19663EE1V0UM00 52 MEMO ...

Reviews: