Home

User`s Manual 78K0/Kx2-L - Save It!

image

Contents

1. esee nennen nennen nnne nnn nn nnn 30 Figure 27 VVmteEz5 Device MENN cud vai O ti 31 Figure 28 TK 8KORKES3L demonstration prograM occcoocnccnccncnncnnccncncnnncncnnncncnnncnonnnnnnnnrnnnnnnnnrnrnrnnnrnnonanons 32 Figure 29 Applilet3 for 78K0 Kx2 L main window occccoccccccccncconcnnconcnccononononnnnnnnnonnnnnnnnnnnonnnnnnnnnnonnnnnnonaness 34 Figure 30 Applilet3 for 78K0 Kx2 L On chip debug window ccooccccoccncccccncccccncnncncnnnnnonncnnnnnnnononnnonononenaninnns 35 Figure 31 Applilet3 for 78KO Kx2 L Timer Function Select oooccccoccccoccncconcnccononoconnnonnnnnnonnnonncnononenoos 35 Figure 32 Applilet3 for 78KO Kx2 L Timer TMOO settings ccccoooccncococcnnccnccnnonononnnonanonnonanonnonnnnnnnnnanennos 36 Figure 33 Applilet3 for 78KO Kx2 L RTC settings 00000 io 36 Figure 34 Applilet3 for 78K0 Kx2 L RTCI settings lessen 37 Figure 35 Applilet3 for 78K0 Kx2 L External Interrupt settings ccoooccccoccnccccnccconnnoconnnonnnncnnononononess 37 Figure 36 IAR Embedded Workbench Startup WiIndOW cccccccceeeeeeeeeeeeeeeeeaeeeeeeeeeseeeeseeeeeeaeeeeeeseeeeeeas 39 Figure 37 IAR Embedded Workbench Main IDE window rrrnnnrnnnnrennnnnvnnnrrnnnnrrnnnnnrnnnnrnnnnrennnrrennnrrnnnnnennnn 40 Figure 38 IAR Embedded Workbench Debugger Options cccccooccnccconcnnccnoconcnnoncnnononcnonnnnonconannnnonancnnnnnos 41 Figure 39 Embedded Workbench Linker Confi
2. 35 10 23 RIC Selg a RE E 36 10 24 he seti iQ ascendentes od dites ida 37 1025 Pose 38 11 IAR Embedded Workbench 78K0 Kx2 L Save It sample project 39 TL Hardware Setup He 39 11 2 Loading the 78K0 Kx2 L Save It sample project 11 eeeeeeeee eere nnne nnn 39 113 RUNDING NE APPICANON La 43 VET A len voe feme etti otto tectus dat ct eR Cee en aa o cecLapa 43 1 32 O a a neces a a eaters 43 T1 9 9 SUMING NOG 44 12 IAR visualSTATE 78K0 Kx2 L Save It sample project 45 12 1 Hardware SetU tica daa aia eda Hex VUA Dive acallar 45 12 2 Functionality of the sample project vaare o 45 12 39 Running the sample project eee be ein 46 12 4 Debug the 78K0 Kx2 L Save It visualSTATE sample project 48 195 GDS 49 13 4 USB interface cable Mini B type rennarnnnnernnnnennnnnnnnnnnnnnnnnnnnnennnnnennnnnennnnennnnnennnnnnnnnnennnnnennnnnennnnnnn 49 14 CAEN M 50 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC List of Figures Figure 1 78K0 Kx2 L Save It components sese nennen nennen nennen nnn nnn nnn 12 Figure 2 78K0 Kx2 L Save It 7 segment LEDS structure ocooooccnccconccnconoccnnononcnnnoncononnnncnnonnnrnnnnnanonoos 15 Figure 3 78K0 Kx2 L Save It 7 segment LED port pin CONNECtION cc
3. CO Yes this time only Nes now and every time connect a device Click Nest to continue 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 gt User s Manual U20194EE1VOUMOO 26 78K0 Kx2 L Save It NEC Found New Hardware Wizard This wizard helps vou install software Far USB Device If pour hardware came with an installation CD SEA or floppy disk insert it now What do uou want the wizard to do CO Install the software automatically Recommended Check that Install from a list or specific is selected Click Next ta continue Figure 19 Found New Hardware Wizard 2 Windows XP 3 Check that Search for the best driver in these locations is selected Select the Include this location in the search check box and then click Browse Found New Hardware Wizard lt 1 gt Check that Search for the Please choose your search and installation options a tae best driver in these locations y is selected 8 Search for he best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Include this location in the search 2 Check Include this location in the search only C2 Dont search I will choose the driver to
4. DEMO KOUSB DEMO KOUSB Table 1 78K0 Kx2 L Save It Switch and Jumper settings Demonstration mode This mode has to be selected if an application is already programmed in the device and shall run standalone Use this to run the pre programmed low power consumption demonstration User s Manual U20194EE1VOUMOO 12 78K0 Kx2 L Save It NIEC Debug Writing mode Use this mode if you want to establish a debug session using the IAR C SPY debugger or if you want to write an application to the 78F0588 micro controller using the WriteEZ5 flash programmer software PC communication mode Set this mode if you want to establish a UART communication between the Host PC and the 78K0 KC2 L microcontroller mounted to the demonstration kit The Host PC has to be connected via USB1 to the 78K0 Kx2 L Save it demonstration kit After connecting the board shows up as an additional COM port on the Host PC 2 2 SW1 SW1 is a 3 position switch to set following modes Table 2 SW1 modes 2 3 SW2 SW2 is a 3 position switch to set following modes Table 3 SW2 modes 2 4 SW3 SW3 is an 8 position DIP switch with following functions Mode selection see Table 1 Mode selection see Table 1 Mode selection see Table 1 Table 4 SW3 modes Note Make sure to set the regarding pull up resistor option registers PU7 of the microcontroller if the Pins P70 P71 P72 P73 and P74 are used Please refer to the device user s manual o
5. User s Manual U20194EE1VOUMOO 17 78K0 Kx2 L Save It NEC 5 8K0 Kx2 L Save It installation and operation 5 1 Getting started The 78K0 Kx2 L Save It is delivered with two PC based user programs The TK 78KOKC2L demonstration program is designed to measure the current consumption the CPU frequency and the actual illuminance measured by an illuminance sensor on the TK 78K0 KC2L board The Applilet3 for 78K0 Kx2 L is an easy to use GUI based program to configure available device peripherals driver which are automatically converted into an IAR Embedded workbench or NEC PM project 5 2 CD ROM contents MEL 78KO0 Kx2 L Save It La Acrobat Acrobat Reader for 32 Bit Windows OS 3 Applilet Applilet3 for 78K0 Kx2 L 3 Doc Documentation L dotnet Microsoft NET package C Driver TK 78K0 KC2L USB driver files CJ JAR Systems IAR Embedded Workbench for 78K IAR visualSTATE Example projects for the 78K0 Kx2 L Save It Starter Kit C sample projects Ld TK 78KO KC2L Demo TK 78KORKE3L current consumption 7 7 demonstration program LU WriteEZ5 Flash Programmer WriteEZ5 incl PRM file for uPD78F0588 Figure 7 78K0 Kx2 L Save It CD ROM contents User s Manual U20194EE1VOUMOO 18 78K0 Kx2 L Save It NEC 6 Hardware installation After unpacking the 78K0 Kx2 L Save It demonstration kit connect the board via connector USB1 to your host computer using the provided USB interface cable When TK 78
6. 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 39 on the 7 segment LEDs This is controlled by the timer TMOO which is initialized as an interval timer Furthermore every time the interrupt occurs and the value is counted up the interval time increases During this stage both external interrupts INTP1 and INTP4 are disabled 11 3 2 Blink mode After the counter reached its final value of 39 the used timer interrupt is masked and the RTC interrupt will be unmasked and is used for the next stage Furthermore INTP1 is unmasked to be able to leave this stage whenever the user wants to The only function of this stage is to let the final counter value blink in a frequency of 2Hz controlled by the RTC interrupt To leave this stage SW5 has to be pressed once User s Manual U20194EE1VOUMOO 43 78K0 Kx2 L Save It NEC 11 3 3 Spinning mode When entering the Spinning mode the RTC interrupt and the INTP1 will be masked again In exchange the RTCI Interrupt which occurs every 31 25ms and the INTP4 are unmasked The function of the Spinning mode is to spin 1 active segment around the 2 x 7 segment LEDs So every time a RTCI interrupt occurs the active segment is stepped clockwise to the next segment on the outer ring of both 7 segment LEDs To leave this mode the SW6 has to be pressed to trigger an external interrupt When leaving the spinning mo
7. 78K0 Kx2 L Save It NEC IAR Embedded Workbench IDE PENE File Edit View Project Debug Emulator Tools Window Help D gc GO E us DI A ob ed A EEE X a x watch S x 67 Returns Location Type 68 None g led s 10 Memory 0xFBOD unsigi 69 start r 0x00 Memory xFBDB unsigi B fj78K SAVEIT sam v EN 2 ee ee ee eee ee eS o RE Y 3 E OG int c BEEN E npn CG int user c 72void main void CG main c 931 E CG_port c 74 Start user code Do not edit comment generated here 7 CG port user c Ld 75 enable Timer counter operation E CG_rtc c 76 RTCE 1U enable RIC counter operation CG rc user c mE g start 0 OG system c 78 while 1 CG system user c i 79 CG_systeminit c 80 enable interrupt CG timer c i 81 g led s 0 CG timer user c 82 A El CG_userdefine c i side y ner aue t 91 25 k L g Output s 1 interrup 25ms mas 86 g count 0 lt gt 87 CROOO Ox0040 set timer frequency to initia PEE x 88 TMIFOOO 0 TIM000 int F clr Goto vi Memory E 89 TMMEOD00 0 IM000 unmask 90 91 while y start 0 slowly amp stop 6DO0C 92 F6BA 93 if g led s gt 40 94 040D A100 MOV 95 TMMKOOO 1 TMO000 mask 040F 717 9D SET1 RTC 96 g start 1 0412 9E06FB MOV g 97 PIFl z 0 INTP1 int F clr 0415 F 41 BR Oxl 98 PMK1 0 INTP unmask E RICIF 20 yo RIC int Fer 0417 SEQUFB NOV 100 RTCMK 0 RIC int unmask 0
8. I Specify a location LI Microsoft Windows Update Back Cancel Figure 12 Driver File Location Windows 2000 4 Locate to the folder CDROM Driver Locate File x Look in E Driver d History ri Desktop My Documents Lal My Computer ced 3 Floppy amp Local Disk E Local Disk D iz Local Disk E Local Disk F Remodsble Disk History Mv Documents May Computer Kc Tel m File name MOB2SALL in My Network P ES Files of type Setup Information inf Cancel Locate to CDROM Driver Figure 13 Address Specification 1 Windows 2000 5 The setup information file MQB2ALL inf is automatic selected then click to proceed within driver installation User s Manual U20194EE1VOUMOO 24 78K0 Kx2 L Save It NEC Look in I Drive P tt Ei Ez History Desktop hy Documents hy Computer gom My Network P File name IM HB25ALL 7 Files af type Setup Information inf EG Figure 14 Address Specification 2 Windows 2000 6 After the location of the USB driver has been specified click to proceed Insert the manufacturer s Installation disk into the drive Dk er selected and then click DE Cancel Copy manufacturer s files from fl ADriver Figure 15 Address Specification 3 Windows 2000 7 Click Next gt Found New Hardware Wizard Driver Files Search Results T The wizard has
9. User s Manual 78K0 Kx2 L Save It Low power consumption 8 bit microcontroller Demonstration Kit Document No U20194EE1VOUMOO Date Published January 2009 NEC Electronics Europe GmbH 78K0 Kx2 L Save It NEC e The information in this document is current as of June 2008 The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC Electronics sales representative for availability and additional information e No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document e 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 e Descriptions of circuits software and other related information in this document are provided for illustrative purpos
10. 8KOR_Saveit vS React vsp loaded E 1 System s 2 Filefs vi i General A Find Source Control 4 Ready 1228 140 75 Figure 43 IAR visualSTATE designer To run the project on the TK 78K0 KC2L board locate the IAR Embedded Workbench workspace file 78K0 SAVEIT sample project eww within the visualSTATE EW folder of the installation of the sample projects User s Manual U20194EE1VOUMOO 47 78K0 Kx2 L Save It NEC gt IAR Embedded Workbench IDE File Edit View Project Tools Window Help P DDD D cc 3 A gt p ne AP AP PS main c 48 This is a good place to set a breakpoint during debugging 49 void HandleError unsigned char cc 50 I Files E778K0 SAVEIT sample project v Ha G EventQueue simpleEventHandler c HI O Software Timer S4void nain void VS SoftwareTimers c initialise c interrupt c SEM ACTION EXPRESSION TYPE actionExpressNo main c Define and initialize D Reactvsp SEM EVENT TYPE eventNo YS ActionFunctions c unsigned char cc Output SEQ Initialize SEQ AddEvent SE RESET Should preferably be done before enabling interrupts that can produce 67 if READABLE 1 68 ReactionVSInit ll New API name for readable code 69 else 70 ReactionSEM_InitAll Remember to enable this function in coder options API Functions 71 endif enable interrupt enable all interrupts 78K SAVEIT sample project Messages Bu
11. 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 AWRITEEZ5 of the CDROM 7 6 Sample projects To copy the sample programs to your Host PC press the regarding button Sample projects The setup dialogues will guide you through the copying process The installation can also be started by executing the 78KO SAVEIT sample projects V100 exe in the directory Asample projects of the CDROM 7 7 USB Driver Installation In order to use the TK 78K0 KC2L board the USB driver needs to be installed on the host machine Install the driver according to the following procedure Installation on Windows 2000 Page 22 Installation on Windows XP Page 26 7 7 1 Installation on Windows 2000 1 When the TK 78K0 KC2L is connected with the host machine the board is recognized by lt Plug and Play gt and the wizard for finding new hardware is started Click Next User s Manual U20194EE1VOUMOO 22 78K0 Kx2 L Save It NEC Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps vau install device driver for hardware device To continue click Next Figure 10 Found New Hardware Wizard Windows 2000 2 Following the window below is displayed So check that Search for a suitable driver is selected then click Next Found New Hardware Wizard E Install Hardware
12. while y start 0 slowly stop 1 if g led s gt 40 FBK SAVEIT sample project Messages Total number of errors 0 Total number of warnings 0 Changed project file will force a full rebuild HVAR projects78K0 SAVEITV SKO SAVEIT sample projecfapplilet3 sro i Build Debug Log x Ready Errors O Warnings 1 Ln 89 Col 38 Figure 37 IAR Embedded Workbench Main IDE window To verify that the right debugging device is chosen please open the project options window by clicking Project gt Options and then open the tab Debugger 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 78K0 KC2L board is connected to the host PC will be detected automatically by the IAR C SPY debugger User s Manual U20194EE1VOUMOO 40 78K0 Kx2 L Save It NEC Options for node 78K0 SAVEIT sample project Category Factory Settings General Options CIC Compiler Assembler Custom Build Setup Extra Options Images Plugins Build Actions Linker Driver MINICUBE HB SEDMIMI OB 79E05xsxMINL GB MINIZ IE 78 v Runta IECLIBE MINICUBE main Simulator TK 78 Setup macros Use macro file Device descriptions Over
13. Internal high speed oscillation clock setting v Operation Frequency High speed system clock setting ju 1 oscillation X Frequency Stable time Subsystem clock SUB setting Iv Operation XT1 oscillation XT Frequency ATT oscillator oscillation mode selection CPU and peripheral clock setting CPU clock fCPU Peripheral hardware clock IPRS Internal low speed oscillation clock AL setting Can be stopped by software Option byte Frequency Confirming reset source C High speed system clock RSH Ro X C External clock input fEXCLK 10 6553 60 2 16 fX Y C External clock input EXCLKS 32 768 Low power consumption 10000 fH 10 fH E Chip name Chip name of selected chip gt Generation Macro Setting F 4 gt MCU NEC78KOKC2L Chip uPD78F0588 48 Figure 29 Applilet3 for 78K0 Kx2 L main window 10 2 Applilet3 for 78K0 Kx2 L sample application After copying the sample project to the Host PC you will find the Applilet3 for 78K0 Kx2 L project file 78K0 SAVEIT sample project cgp in the subfolder AP3 EWB of the location where you have copied the sample projects to To open this project start the Applilet3 for 78K0 Kx2 L and use the File gt Open function After loading the project you will see the Applilet3 for 78K0 Kx2 L main window The peripheral driver configuration created with the Applilet3 for 78K0 Kx2 L is also be used for
14. e Product release schedule e Availability of related technical literature e Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and other legal issues may also vary from country to country NEC Electronics Inc U S Santa Clara California Tel 408 588 6000 800 366 9782 Fax 408 588 6130 800 729 9288 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 030 Fax 0211 65 03 1327 Sucursal en Espafia Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Succursale Fran aise V lizy Villacoublay France Tel 01 30 67 58 00 Fax 01 30 67 58 99 Filiale Italiana Milano Italy Tel 02 66 75 41 Fax 02 66 75 42 99 Branch The Netherlands Eindhoven The Netherlands Tel 040 244 58 45 Fax 040 244 45 80 Branch Sweden Taeby Sweden Tel 08 63 80 820 Fax 08 63 80 388 United Kingdom Branch Milton Keynes UK Tel 01908 691 133 Fax 01908 670 290 NEC Electronics Hong Kong Ltd Hong Kong Tel 2886 9318 Fax 2886 9022 9044 NEC Electronics Hong Kong Ltd Seoul Branch Seoul Korea Tel 02 528 0303 Fax 02 528 4411 NEC Electronics Singapore Pte Ltd Singapore Tel 65 6253 8311 Fax 65 6250 3583 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 59
15. finished searching for driver Files for your hardware device The wizard found a driver for the following device op USB Device Windows found driver for this device To install the driver Windows Found click Next MEL isdrverimgb2sallini User s Manual U20194EE1VOUMOO 25 78K0 Kx2 L Save It NEC 8 Click to complete the installation of the USB driver Found New Hardware Mizard Completing the Found New Hardware Wizard lt gt MEL Electronics Starter Kit Virtual UART Windows has finished installing the software for this device To close this wizard click Finish 4 Back Eancel Figure 17 USB Driver Installation Completion Windows 2000 7 7 2 Installation on Windows XP 1 When the TK 78K0 KC2L 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 and then click Next gt Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with pour permission Read our privacy policy Check that No not this time is selected Can Windows connect to Windows Update to search for software
16. gt Setup to open the following dialogue and the button PRM File Read to select the parameter file E Device Setup Standard Advance Parameter file 738F0588 prm PRM File Head Host connection Supply oscillator Port Com Frequency Speed Multiply rate Operation Made e Chip Start t Block En g B Target Reset Message Figure 26 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 User s Manual U20194EE1VOUMOO 30 78K0 Kx2 L Save It NEC 8 2 Using WriteEZ5 After a successful device selection the internal flash memory can be blank checked erased programmed or verified WriteEZ5 can be controlled either by menu or by buttons E WriteEZ5 File MERE View Help Blank Check Erase Program verify Mame Firmware Device Security Checksum Autaprocedure EPV T EE a file Signature read Version 471 00 Get Security settings Setup a Load file Mame DEMO FIRM ECZ2LHE Date 2009 12 18 06 28 12 Chksum BFbdh Area OO00000h 007FFFH Connection to device Port COM4 Speed 125000 Range Chip Freq Intermal 0SC Multiply 1 00 m Figure 27 WriteEZ5 Device Menu device setup button load file button blank check button erase button program button verity button Autoprocedure button Table 9 WriteEZ5 action but
17. installation serrnnnnnrrnnnnnnrvnnnnnnnnnnnevnnnnnnnnnnnnnennnnnevnnnnnnennnnr IAR Systems Embedded Workbench for 78K installation ees IAR Systems visualSTATE Installation aiii cai APpllets Tor 78 UI car pt ASS VVGITCEZ 5 Install tton m User s Manual U20194EE1VOUMOO 17 78K0 Kx2 L Save It NEC LO Sample projects Ne 22 TT USB Driver Installation a 22 ETA Installation om Windows 2000 dida 22 4 2 Insall tonon WINDOWS AP RE TT 26 7 8 Confirmation of USB Driver Installation ccocnccconnciconnciccncicccncoconnnonnnnncnnnnononaronanronanarenanarenannnnnns 29 8 Flash Programmer VVENCEZ Dni ena siu du Exe ub a Een uo ka yen COD Nu cu EU eUE ev esse Educ ete 30 T DEVICE Se TUD ec DC CE 30 02 USING WI EZ ci nin 31 9 Demo application using the TK 78K0 KC2L demonstration program 32 10 Applilet3 for 78K0 Kx2 L enrrnnnnnevnnnnnnnnennnnnnnnnnnnnennnnnnnnnunnnnnnnnnnnnnnnnunnnnnnnnnnnnnennnnnnnnnnnnnennunne 34 VOM SOV OTIC WW Ne A A 34 10 2 Applilet3 for 78K0 Kx2 L sample application esses eere cree eene 34 10 2 1 Clock and On chip debug SettingsS occccococncccoononccooconnoconnnnoconcnnnnnanonnnnnnnonoconnnnnnannnnnnannnnnnnnns 35 10 22 Timer sel M E
18. view minutes after the request is submitted 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 User s Manual U20194EE1VOUMOO 21 78K0 Kx2 L Save It NEC 7 3 IAR Systems visualSTATE Installation To install the IAR Systems visualSTATE press the Software tools button from the Autorun of the CDROM provided within the 78K0 Kx2 L Save lt package The installation can also be started by executing the Autorun exe program in the directory VIAR Systems of the CDROM The IAR Systems Installation screen will appear and the installation of IAR visual STATE can be started by pressing the Install visualSTATE button The setup dialogues will guide you through the installation process 7 4 Applilet3 for 78K0 Kx2 L To install the Applilet3 for 78K0 Kx2 L press the Software tools button from the Autorun of the CD ROM provided within the 78K0 Kx2 L Save It package and select the regarding entry from list The setup dialogues will guide you through the installation process The installation can also be started by executing the setup exe in the directory VApplilet VAP3 78KOKX2L EE V110 of the CDROM 7 5 WriteEZ5 installation To install the WriteEZ5 press the Software tools button from the Autorun of the CD ROM provided within the 8K0 Kx2 L Save It package and select the regarding entry from list
19. 2 4 Debug the 78K0 Kx2 L 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 the visualSTATE C SPY plug in please refer to the regarding chapter in the C SPYLinkUserGuide pdf which is located in the doc visualSTATE folder User s Manual U20194EE1VOUMOO 48 78K0 Kx2 L Save It 13 Cables 13 1 USB interface cable Mini B type Series A Plug Series A Plug Series Mini B Plug Figure 45 USB interface cable Mini B type User s Manual U20194EE1VOUMOO NEC Series Mini B Plug 49 78K0 Kx2 L Save It NEC 14 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 window To open the attachment double click the TK 78KOKC2L schematic pdf User s Manual U20194EE1VOUMOO 50 78K0 Kx2 L Save It MEMO User s Manual U20194EE1VOUMOO NEC 91
20. 33 SW3 1 SW3 3 SW3 4 SW3 8 1 3 shorted Table 11 IAR VS 78K0 Kx2 L Save It Sample project hardware setup 12 2 Functionality of the sample project The example implements a reaction timing measurement application that measures your reaction time a fixed number of times and then displays the average reaction time in hundredths of a second The application works in the following way e When the application is started it displays two characters on the display and waits for a press on any of the two buttons e Atimer 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 new timer is also started for the measurement of your reaction time e You should now as fast as possible press the left button SW5 if the is shown or the right button SW6 if the is shown The time for you to react is read from the timer and added to a running sum e After a button press the process is repeated until 10 trials has been performed Your average reaction time is now displayed and you can press a button to get back to the initial state and restart the measurement if you want to The state machine is implemented with 3 input events button presses and an expired timer and 10 small C functions for the interface to the hardware There are 5 states to keep track of what is currently going on in User s Manual U20194EE1VOUMOO 45 78K0 Kx2
21. 41C 2D14 BC Oxt 101 102 041E A101 MOV 103 0420 716AE5 SET1 MEL 104 while y start 1 LED brink 0423 SEO6FB HOV g i 105 78KO SAVEIT sample project fol 4 gt E Log Mon Feb 01 11 56 22 2010 C SPY Processor Descriptor V4 62 1 50009 for 78K0 and 76K0S Mon Feb 01 11 55 22 2010 C SPY MINICUBE Emulator Driver 4 62 1 30009 for 8KD Kickstart Mon Feb 01 11 56 44 2010 Download complete Mon Feb 01 11 56 44 2010 Loaded debugee HAIAR projectsy 8KO SAVEITV SKO SAVEIT sample projectapplilet3 srcDebugYExeY SK SAVEIT sample projectd26 Mon Feb 01 11 56 45 2010 Target reset Mon Feb 01 11 56 45 2010 78K0 MINICUBE Executor v2 10 OCD Control Code V3 00 Device chipname uPD78F0588 48 1058848 file version 2 00 Boardinfo 00008804 product id 4100 version A firmware version 04 06 Debug Log Build I Ready NUM Figure 41 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 This sample project makes use of different timer interrupts to control the 7 segment LEDs available on the TK 78K0 KC2L board So this project gives a short overview about timer initialization and timer interrupts usage of one timer as well as the real time clock RTC peripheral
22. 51 NEC do Brasil S A Electron Devices Division Guarulhos Brasil Tel 55 11 6465 6810 Fax 55 11 6465 6829 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It Revision History 02 01 2010 Revision Chapter Description First release NEC User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC Table of Contents 1 c NA 2 3 4 4 1 4 2 4 3 5 1 5 2 NTOAUCNON RETE do cine PACKAGE contents uni ais A A IMMER UII E TRIER SR EDEN EEEE System requirements ae TradematKS occidente te A cdi OW EE WARS VIN eee SWS INP uvenner eta M SVO INP Lisas r Q4 illuminance Senso de a A o US UTE SEMEN LEN Le EA VED Le veces Eii Unversal AE Lura MINICUDEZ CONNECTION av 78K0 Kx2 L Save it Solder short pads rranarnnnrnnennnennnnnnnnnnnnnnnnnnunnnunnnunnnunnnnnnnnnnnennnunnne 78K0 Kx2 L Save It system configuration ranxnnnnennnnnnnnnrnnnnnnnnnnnnnnnnennnnnnnnernnnnnnnennnnnnnnr TOW OUR L Save MN NHOS jS iz meten NIE DP oca POWer SUN cp A A wesc eee 78K0 Kx2 L Save It installation and operation cessere eere Getting Started mE AO e o O OI Hardware Instala iia Software installation arannnvavnvnnnnvnvnnunvnvnrunvnvnvnnnnvnvnrunvevavnrunvnvnrnnvnvnvnrunvavnvnnvavnvnnnnvnvnvununurnnn TK 78KOKC2L demonstration program
23. 8K0 debugging The 78K0 Kx2 L Save It supports an On Board debug function by using the IAR C SPY debugger without a need of additional debug hardware It allows FLASH downloading and standard debug functions like code execution single stepping breakpoints memory manipulation etc e Power supply by USB interface or via external power supply power supply connector not mounted e The IAR Embedded Workbench for 78K is included This package is restricted in such that maximum program code size is limited to 4 Kbyte e AR visualSTATE demo a package of integrated tools for developing testing and implementing embedded applications based on state chart diagrams e Full documentation is included for the NEC 78K078F0588 microcontroller NEC 78K0 78F0730 microcontroller I AR Systems Embedded Workbench and IAR Systems visualSTATE User s Manual U20194EE1VOUMOO 10 78K0 Kx2 L Save It NEC 1 3 System requirements HOST PC A PC supporting Windows 2000 Windows XP or Windows Vista is required for the IAR Systems Embedded Workbench demo version A Pentium processor with at least 1 GHz CPU performance with at least 256 Mbytes of RAM allowing you to fully utilize and take advantage of the product features 500 Mbytes of free disk space and an additional 10 Mbytes of free disk space on the Windows system drive A web browser and Adobe Acrobat Reader to be able to access all the product documentation Host interface USB interface that ena
24. Applilet3 for 78K0 Kx2 L RTCI settings 10 2 4 Interrupt setting To switch between the modes of the sample project the mounted switches SW6 and SW6 of the TK 78K0 KC2L board are used These switches are connected to the external interrupt pins INTP1 and INTP4 Applilet3 for 7BKOKx2 L 78KO SAVEIT sample project cep File Peripheral Options Help APA b oco ULA File Module 8 Peripheral Dy Generate Code Generate Code E IDG BH AAA a System ey repr e Port t Key Interrupt INT INTPO setting amp Serial o INTPO Valid edge Priority amp Operational Amplifier ew A D INTP1 setting Timer V INTP1 Valid edge Falling Priority amp Watchdog Timer e ATC INTP2 setting ew Clock Output INTP2 Valid edge Priority w Lv INTP3 setting INTP3 Valid edge Priority INTP4 setting iv INTP4 Valid edge Falling v Priority E Macro Information INT INTP5 setting INTP5 Valid edge Priority INTPE setting INTP6 Valid edge Priority INTP setting INTP Valid edge E Priority Macro name INTP8 setting Macro name of selected macro INTP8 Valid edge Priority v 3 Generation Macro Setting gt nm MCU NEC78KOKC2L Chip uPD78F0588 48 Figure 35 Applilet3 for 78K0 Kx2 L External Interrupt settings User s Manual U20194EE1VOUMOO 37 78K0 Kx2 L Save It NEC 10 2 5 Port setting Port2 and the PortO pins 0 and 1 are used
25. Device Drivers device driver is software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device Check that Search for a USB Device suitable driver is selected device driver is a software program that makes a hardware device work Windows eeds driver files for your new device To locate driver files and complete the Installation click Next What do vau want the wizard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can choose a specific driver Back Cancel Figure 11 Search Method Windows 2000 3 Check the Specify a location check box only then click Next gt User s Manual U20194EE1VOUMOO 23 78K0 Kx2 L Save It NEC Found New Hardware Wizard Locate Driver Files zu Where do you want Windows to search Far driver files Search for driver files for the following hardware device USB Device Check that Specify a location only is checked The wizard searches for suitable drivers in its driver database on pour computer and in any of the following optional search locations that you specify To start the search click Nest IF you are searching an a floppy disk or CD ROM drive insert the floppy disk or CO before clicking Next Optional search locations Floppy disk drives CD ROM drives
26. K0 KC2L board is connected the USB driver needs to be installed on the host machine Please refer to the following USB Driver Installation User s Manual U20194EE1VOUMOO 19 78K0 Kx2 L Save It NEC 7 Software installation The 78K0 Kx2 L Save It package comes with the following software packages e K 78KO KC2L demonstration program e AR Systems Embedded Workbench for 78K 4Kbyte code size limited including C compiler assembler linker librarian and IAR C SPY debugger simulator e IAR Systems visualSTATE 20 states limited demo program e Applilet3 for 78K0 Kx2 L e WriteEZ5 flash programmer software including PRM file for uPD78F0588 e Adobe Acrobat Reader 9 3 Demonstration Kit 78K0 Kx2 L Save it software tools Sample projects Adobe Reader 9 3 Documentation Empowered by Innovation NI E Figure 8 78K0 Kx2 L Save It CD ROM autorun exe 7 1 TK 78K0KC2L demonstration program installation Before the TK 78KOKC2L 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 78K0 DEMO GUI e pdf available on the CD delivered with the 78K0 Kx2 L Save It package in the Doc folder To install the TK 78K0 KC2L demonstration program press the Software tools button from the Autorun of the CD ROM provided within the 78K0 Kx2 L Save It package and select the
27. L Save It NEC the application This is not the only plausible state machine implementation for this application An alternative could for example be to have separate parallel and communicating state machines for time measurement and display updates Further details on the sample project can be found in the index html file available in the 78K0 Kx2 L Save It CD ROM doc visualSTATE samples folder 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 NvS folder of the CD ROM After loading the workspace the window should look like shown below 4 visualSTATE Navigator Demo StartNoAnimation htm A File Edit View Project Tools Window Help ES el Xx j D c EE m2 Address emslvisualSTATE 6 1 Demo Doc StartNoAnimation htm w 2 l Workspace s xl Fl React 1 Project s o React 1 Systems ai Reaction SQ Validator Workspaces AA React vws CI Test Sequence Files 3 Reports 22 vscoder cre Dig React htm 22 vscoder cre Dig React WorkspaceView FileView x J gt N General Code Generation Is Verification A Documentation H Custom Commands y IKE NUM Figure 42 IAR visualSTATE navigator If the functionality or the settings of the sample shall be changed open the visualSTATE Designer User s Manual U20194EE1VOUMOO 46 78K0 Kx2 L S
28. LeftRight Display symbol on left or right digit to indocate SWIS or SW button to press DisplayResult Show average result of reaction tests StartReactionTimer Start timer for reaction measurement This is not a timer action since it is free running eButton amp 0 SelectRandomButton Randomize which button user should press iButtonChoice l y TimerActionTimeBetweenT ests Start the timer that determines the interval between tests This is a pure timer action that should specify an event to be posted when the timer expires eTimerOverflond StopReactionTimerAndRead Stop the free running timer and read out DisplayClear he count value StopReactionTimerAndRe eButton amp iNrTests cNumberOfT ests i SelectTimeBetweenT ests Return a possibly randomized value for the iButtonChoice 1 cNumberOf ests iButtonChojce 0 interval between tests StopReactionTimerAndReadQ StopR actionTimer amp ndRjead DisplayClear Turn off all segments in the display InitSoftwareTimers AnyButton StopSoftwareTimers Functions to init and stop the software timers and StopSoftwareTimers he corresponding hardware timer eButton5C iButtonChoice Ex PIP Beee eaeod ONnA Lads GS SystemView Loading file C Temp 78KOR_Saveit vS Reaction sr Reading local elements m Reading state information Reading Transition State Reaction information C Temp 8K0R_Saveit wS Reaction vsr loaded Project C Temp
29. and PC communication mode restricted Table 6 JP2 settings 2 10 Q4 illuminance sensor The illuminance sensor Q4 is connected to the P10 SCK10 ANI8 AMP1 pin of the uPD78F0588 microcontroller When lightening up the voltage increases and when making dark it decreases So the gain amplifier function of the microcontroller can be used to read the illuminance For further information to set up the registers of the microcontroller to use the gain amplifier functionality please refer to the device user s manual 2 11 U8 U10 7 segment LED U8 and U10 are two 7 segment LEDs They can be set through the latches U9 and U11 The data channels of the latch are connected to channel P20 to P27 and the clock pins to POO U8 and P01 U10 of the of the uPD78F0588 microcontroller User s Manual U20194EE1VOUMOO 14 78K0 Kx2 L Save It NEC P20 P25 P21 P26 P20 7 P7 7 P24 P22 1 8 PO PO Figure 3 78K0 Kx2 L Save It 7 segment LED port pin Figure 2 78K0 Kx2 L Save It 7 segment LEDs structure 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 Table 7 7 segment LED port values 2 12 LED1 power LED LED1 is the power LED lights up when power is supplied via USB CN3 not mounted or J1 not mounted to the 78K0 Kx2 L Save lt 2 13 Universal area The Universal area of the 78K0 Kx2 L Save lt is a fre
30. ave It NEC 54 React visualSTATE Designer Demo File Edit View Insert Format Tools Window Help asESR ine n Mensja aajaaaf zj msm sssse sll oe ele ele E 14 Reaction Reaction Statechart Diagram a React 1 Systems Po Q Reaction 7 Reaction q il AnyButton escription O IniState PEN he alan can be started by pressing one ofthe buttons O Test Then the application randomly selects SWS or SWG for you to press It C DisplayResult ells you which one to press by showing something at the display After I Measure hat it shows you your reaction time in milliseconds O Initial Pitter randomly selecting a button for you to press 10 times it displays the WrongButton Average reaction time by switching between AV and your reaction time ressing the wrong button before the correct one should be prohibited n some way AnyButton Collection of possible events Derived from high level requirements eTimeBetwpenTestsExpire specification 4 eButton5 Indicates user has pressed button SWS conected to INTPO eButton6 Indicates user has pressed button SWS conected to INTP2 eButton80 eTimeBetweenTestsExpired The time from previous button press until eButton5 iNrTestsscNumberOfT ests next test iButtonChoice 0 i Cres Seubert Collection of possible action functions iButtonChoice 1 topR4a 2 P 2n Displaylnitialtiessage Show something on the display when application is started Display
31. bles communication based on USB Ver1 1 or later Note Updates of the IAR Embedded Workbench for 78K documentation and or utilities for 78K0 SAVEIT if available may be downloaded from the NEC WEB page s at http www eu necel com 78K0 SAVEIT 1 4 Trademarks IAR Embedded Workbench visualSTATE and C SPY are registered trademarks of IAR Systems AB Microsoft and Windows are registered trademarks of Microsoft Corporation Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All other product names are trademarks or registered trademarks of their respective owners User s Manual U20194EE1VOUMOO 11 78K0 Kx2 L Save It NEC 2 8K0 Kx2 L Save It Components The TK 78K0 KC2L 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 SW SW3 SW1 JP1 A 7 rs OOO A 00 ONO ONO OCIO OO On JO Jer oO OQ ol re UC e DOT a po i CENT VIT n Ed e pr zd je c3 Dena PA3 4 NETTES Other a TAPA RIFA BELE T5 TC50003 p U8 U10 JP2 SW5 Q4 SWE Universal area Figure 1 78K0 Kx2 L Save It components 2 1 Operation mode settings To support the different operation modes of the 78K0 Kx2 L Save It switches and jumpers are available on the TK 78K0 KC2L board The table below shows the 3 different modes and the regarding switch jumper setting for each mode
32. ccooccnnccccnncconcnncnnanoncnnanennononcnnonos 15 Figure 4 78K0 Kx2 L Save It MiniCube2 connector ococcccncccncococonoconcnnconanonnononcnnonnnrnnnonancnnonnnrnnnonaninoss 15 Figure 5 78K0 Kx2 L starter kit Solder short pads rrrnrrrrrnnnrrrrrnnnrrrrnnnnrvrnnnrerrnnnrenrnnerennnnnrrennnnenennnnsnsen 16 Figure 6 78K0 Kx2 L Save It system configuration rrrrrrrrrnnrrnrnnnnrrrnnnrrnrnnnrrrnrnnnrrnrnnnnnnnnnrrenrnnenennnnnssen 17 Figure 7 78K0 Kx2 L Save It CD ROM contentS ooccccoccncccnnccnconononnncnncnnconcnnnononcnnnnnnronnonnncnnonanrnnnnnnnnnns 18 Figure 8 78K0 Kx2 L Save It CRROM autorun exe ssessssssssssseeeeen nennen nnn nnn 20 Figure 9 IAR Systems Installation screen lsseeesssesesssseeseeeeee nennen nennen nennen nnn nnn nnne nn nnn 21 Figure 10 Found New Hardware Wizard Windows 2000 ooccccccoccncccocccncococononononnononcnnnonaconnonanennononcnnnnos 23 Figure 11 Search Method Windows 2000 ooccccccoccccoconcoccccoconnnocnocononcnnnnnnnnnnonnnnnnonnnnnnonannnnonannnnenonaneness 23 Figure 12 Driver File Location Windows 2000 coooccncccocccccccoconconononnconconconononnononcnnonnarnnnonnnrnnnnnrnnonnnanonnss 24 Figure 13 Address Specification 1 Windows 2000 oonnccccoccnnccconnccoconcononocononnnnnnnoconcnnnnnannnnonannnononnnnnnss 24 Figure 14 Address Specification 2 Windows 2000 oocoooonnncccncccncococcnnoconcnconaconnononcnno
33. de the Count mode is entered again User s Manual U20194EE1VOUMOO 44 78K0 Kx2 L Save It NEC 12 IAR visualSTATE 78K0 Kx2 L 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 For more information please refer to the UserGuide pdf included to the 78K0 Kx2 L Save It CD ROM in the doc visualSTATE folder or to the visualSTATE homepage Note Before installing IAR visualSTATE please make sure that you have installed the IAR Embedded Workbench for 78K delivered with the 78K0 Kx2 L Save it demonstration kit Note After installing IAR visualSTATE copy the the swtdvs dll to the lt EW gt 78k bin directory and the vs ewplugin file to lt EW gt common plugins directory These files are located in the IAR Systems Plugin folder of the demonstration kit CD ROM The described sample project React vnw is a part of the Sample programs and can be found on after installation in the regarding subfolder visualSTATE vS of the installation 12 1 Hardware setup To run the program it is necessary to set up the TK 78K0 KC2L board in the following way SW EXT SW31 SW
34. e for the customer to use mounting area lt can be found in the lower right corner of the TK 78K0 KC2L board 2 14 Minicube2 connector If a MiniCube2 shall be connected to the 78K0 Kx2 L Save It starter kit a 16 pin connector has to be mounted to the FP1 area shown below TRI g Miras criba o rd game sje cu mn 3 ADV Y Y T r fm 7 dan m cm R R TEET Figure 4 78K0 Kx2 L Save It MiniCube2 connector User s Manual U20194EE1VOUMOO 15 78K0 Kx2 L Save It NEC 3 8K0 Kx2 L Save it Solder short pads On the TK 78K0 KC2L board you will find several solder short pads By opening or connecting these pads the circuit design of the TK 78K0 KC2L board can be customized AMREF 1 DCVDD1 2 AMREF AVREF 0 cu E WE WIEN yere JO oO AD UE a er per AO al a OOO t om ey er apen pe s Tg yere gegen Jue Jag meaa MADE AA apap era nae vant T Es E ce TAN HE Jas Or IN CHa aS ai TES BERA S M ng mp a ml LED VDD1 2 POD PO1 P20 P27 P33 P30 P10 Figure 5 78K0 Kx2 L starter kit Solder short pads The solder short pad looks like the picture below To open use a cutter to cut the dent part To short put solder on the pad Solder short pad Solder short pad Open Short m e sema om fe Table 8 78K0 Kx2 L Save it Solder short pads User s Manual U20194EE1VOUMOO 16 78K0 Kx2 L Save It NEC 4 78K0 Kx2 L Save It system confi
35. es in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information e While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property 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 e 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 developed based on a customer designated quality assurance program for a specific application The recommended applications of an NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipme
36. f the 78K0 Kx2 L for detailed information about the pull up resistor option register settings 2 5 SWA Reset switch SW4 is connected to the external reset pin of the uPD78F0588 microcontroller External microcontroller reset can be triggered by pushing 2 6 SW5 INTP1 SW5 is connected to the P30 INTP1 pin of the uPD78F0588 microcontroller It can be used as external interrupt source User s Manual U20194EE1VOUMOO 13 78K0 Kx2 L Save It NEC 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 78K0 Kx2 L for detailed information about the pull up resistor option registers settings 2 7 SW6 INTP4 SW6 is connected to the P33 TO51 TI51 INTP4A pin of the uPD78F0588 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 78K0 Kx2 L for detailed information about the pull up resistor option registers settings 2 8 JP1 JP1 is a switch jumper to select the power supply USB power supply connected USB1 Power supply via CN1 or CN2 Table 5 JP1 settings 2 9 JP2 JP2 is a jumper field to establish a current consumption measurement 1 2 and 3 4 short Demonstration mode 1 3 short Debugging Writing
37. g Alarm detection function setting Use alarm detection function m Week day E Macro Information Hour Minute Counter correction function setting Use correction function Correction timing Correction value ps INTRTC setting v Used as constant period interrupt function INTRTC Once per 0 5 s r Priority Low Macro name Macro name of selected macro Generation M Macro Setting F gt MCU NEC 78KOKC2L Chip uPD78F0588 48 Figure 33 Applilet3 for 78K0 Kx2 L RTC settings User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC The spinning mode uses the INTRTCI interrupt with and period value of 31 25ms Applilet3 for 78K0Kx2 L 78KO SAVEIT sample project cep File Peripheral Options Help oe usb dy Project tree File Module Peripheral amp Generate Code Ci E dq oi Y a9 En y System 2 Bit Real time counter setting Interval interrupt amp pin output settin INT INTRTCI setting w Serial Iv Interval interrupt function INTRTCI mw Operational Amplifier e AD Period value 31 25 2 10 fSUB ms vr Timer Priority Low w Watchdog Timer i e RTC RTCDIV RTCCL output setting w Clock Output No output w LVI Enable output of RTCDIV pin lo C Enable output of RTCCL pin 32 kHz El Macro Information HII Macro name Macro name of selected macro Generation Macro Setting g MCU NEC78KOKC2L Chip uPD78F0588 48 Figure 34
38. guration ccccooccnncoccnnoccncnnconanoncnnoncnnnonncnconancnnononrnncnnanonnss 41 Figure 40 IAR Embedded Workbench MINICUBE2 settings coooocccccooccncococcncononcnncnnncnconononnonancnnnnnos 42 Figure 41 TAR C SP Y debugger sarte 43 Figure 42 AR visual STATE navigator uvaner 46 Figure 43 IAR VisualS TATE designer A tale 47 Figure 44 IAR Embedded Workbench visualSTATE sample project oooccccoooccnccconcnnconacononnonenononcnnnnnns 48 Figure 45 USB interface cable Mini B type coooccccococnocccnoconononnncoconcnnnnnncnnnonnnonononnnnnnannnnonannnnnennnnaness 49 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC List of Tables Table 1 78K0 Kx2 L Save It Switch and Jumper settings rrrnrnnnnrrnnnnnrrnrnnnrnnnnnnrnnrnnrrenrnnsnennnnnnrrnnnnnne 12 Table 2 oN M Mono it c 13 Tees VZ NONSENS 13 Table SVIN NNN 13 Table STP SENGS NS 14 Table GS SL SNE T I 14 Table 7 7 Segment LED port values 24200 15 Table 8 78K0 Kx2 L Save it Solder short padS oooccccccccccccnnccconoconcnononononanononannnonannnnnnnnonnnnnnnananenanos 16 Table 10 WITeEZ5 acllor DIN Se 31 Table 11 IAR EWB 78K0 Kx2 L Save It sample project hardware Setup 39 Table 12 IAR VS 78K0 Kx2 L Save It Sample project hardware setup eeseseuesss 45 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC 1 Intr
39. guration The 78K0 Kx2 L Save It starter kit system configuration is given in the diagram below side TESSERA E 3 E FA mum Figure 6 78K0 Kx2 L Save It system configuration 4 1 78K0 Kx2 L Save It The 78K0 Kx2 L Save lt is a demonstration kit for the 78F0588 8 bit low power consumption microcontroller of the NEC 78K0 family The demonstration board is connected to the host system via an USB interface cable The host system may be used for On Chip debugging by using the IAR C SPY debugger and to allow execution of application programs on 78K0 Kx2 L Save It starter kit 8K0 Kx2 L Save It runs the microcontroller at 10 MHz operating speed in normal operation mode 4 2 Host computer The USB host interface enables communication to the 78KO Kx2 L Save lt board The uPD78F0730 NEC 78K0 8 Bit microcontroller with on chip USB interface and the NEC virtual UART driver allows application software to access the uPD78F0588 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 4 3 Power supply The TK 78K0 KC2L board can be powered by the USB interface Optional the power supply can be applied via a JACK connector which has to be mounted to CN3 or a connector plug mounted to J1 Note When connecting a power supply to CN3 or J1 make sure to open disconnect JP1
40. his window you are able to choose the Open existing workspace button Embedded Workbench Startup Create new project in current workspace Add existing project to current workspace Open existing workspace Example applications Recent workspaces Do not show this window at startup Cancel Figure 36 IAR Embedded Workbench Startup window User s Manual U20194EE1VOUMOO 39 78K0 Kx2 L Save It NEC Then locate the sample project on the CD and open the SAMPLE TK 78K0KC2L eww workspace file Afterwards the IDE should look similar like below 2 IAR Embedded Workbench IDE E BIK File Edit View Project Tools Window Help D c cS Workspace 0 0 67 Returns 58 64 T0 TL void main void Files El YU 78K SAVEIT sample pro Ha f CG inte Ha e OG int user c Start user code Do not edit comment generated here TMCOO Ox0C enable Timer counter operatio RTCE 11 enable ETC counter operation q start 0 while 11 1 TE pert user c 3 system c 3 system user c 3 systeminitc OG timer c CG timer user c CG userdefine c Output IC JC JC icc uc user c IC IC 1c enable interrupt g leds 0 Yo NN X xk x x vr E FMEA 1 INTE4 mask RTCIME l RTCI interrupt 31 25ms mask D EJEJEJEJEJEJEEJEJEJEJ ES g count CROOO 0x0040 set timer frequency to initi TMIFOOO QO TMODO0 int F clr TMMKOOO 0 IMODO0 unmask
41. ilding configuration 78K0 SAVEIT sample project Debug Updating build tree Configuration is up to date lt o ad Build Debug Log Find in Files Breakpoints x Ready Errors 0 Warnings 0 Ln 64 Col 20 m Figure 44 IAR Embedded Workbench visualSTATE sample project When loading the visualSTATE sample project all necessary settings to run the application on the TK 78K0 KC2L 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 Note When facing the following error messages during the build process of the IAR project please use the Rebuild all function within the IAR Embedded Workbench Project gt Rebuild all Error e46 Undefined external ReactionSEM_InitAll referred in main Project Dir Debug Obj main r26 Error e46 Undefined external ReactionVSAction referred in main Project Dir Debug Obj main r26 Error e46 Undefined external ReactionSEM GetOutput referred in main Project Dir Debug Obj main r26 Error e46 Undefined external ReactionSEM NextState referred in main Project Dir Debug Obj main r26 Error e46 Undefined external ReactionSEM Deduct referred in main Project Dir Debug Obj main r26 For further information regarding this issue please refer to the IAR visualSTATE Release Notes readme en html available in the root directory of the IAR visualSTATE installation 1
42. install Choose this option to select the device driver from lish Windows doe not guarantee that the driver you choose will be the best match for your hardware lt 3 gt Click Figure 20 Search Location Specification 1 Windows XP 4 Locate the folder C CDROM Driver and click OK User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC Browse For Folder Select the Folder that contains drivers Far your hardware MEE 75KO0 SAVEIT Ty Acrobat 3 Applilet Gy Doc ey dotnet Driver Gy IAR Systems Gy sample programs Gy Tk 78KO KC2L Demo El Ey WriteEz5 e STICK TVA H To view any subfolders click a plus sign above Figure 21 Search Location Specification 2 Windows XP o 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 Hardware Installation The software you are installing for this hardware MEC Electronics Starter Kit Virtual UAR T has not passed Windows Logo testing to verify its compatibility with Windows P Tell me why this testing is Important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Window
43. irective 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 static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands EEDT ST 004 10 For customers in the European Union only Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the 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 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It Regional Information NEC 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 e Device availability e Ordering information
44. nctions Setting Serial Operational Amplifier A D Internal clock External clock 11000 o Count clock selection Timer Internal clock selection ee Timer PE IPRS 2 2 le PHS 7 8 Clock Output Lil a lt y ow 4 4 I y Interval value setting ES Interval value 3 3024 me Actual value 3 3024 Interrupt setting Iv Generate an interrupt each interval time INT TRODUO Priority Low Macro name Macro name of selected macro P Macro Setting x File Setting 4 MCUINECFSEOKC2L Chip uPD78F0588 48 Figure 32 Applilet3 for 78K0 Kx2 L Timer TMOO settings 10 2 3 RTC setting The Real time counter has also to be configured as the Blink and the Spinning mode make use of it in the sample project The blink modes uses the INTERTC interrupt with an interrupt time of 0 5 seconds Applilet3 for 7BKOKx2 L 78KO SAVEIT sample project cep File Peripheral Options Help a Di EE Do Project tree File Module Peripheral c Generate Code Si ge PM ou e En a System Port e INT Real time counter operation setting w Serial o Unused Used amp Operational Amplifier ew A D Real time counter setting Timer Hour system selection 24 hour v Watchdog Timer Set real time counter initial value RIC w Clock Output Counter value 00 01 01 00 00 00 Samstag we LVI Enable output of RTC1HZ pin 1 Hz me Y A n ERI Realtime counter settin Interval interrupt amp pin output settin
45. nnnnnnnonancnnonannnnnnaninnnss 25 Figure 15 Address Specification 3 Windows 2000 occcoonnccccncccncococcnnoconcnconancnnononnnnonnaronnonancnnononnnnnnnnnnnnss 25 Figure 16 Driver File Search Windows 2000 ccccccccccssseeeceeseeceeseecceaeeesseueeecseseeessaeeessageeessenseeeeeas 25 Figure 17 USB Driver Installation Completion Windows 2000 ooccccoccncconcccnccocconononcnnconanonconononononcnnnnnns 26 Figure 18 Found New Hardware Wizard 1 Windows XP rrrnnrnnrrrnrnnnrrrrnnnrrrnnnnerenrnnenennnnnrnnrnnenenrnnsnennnnn 26 Figure 19 Found New Hardware Wizard 2 Windows XP r rrrnnnnnrnerrnnnrrnrnnnnrnnrnnrrenrnnnnennnnnrnnrnnrrenrnnsnennnnn 27 Figure 20 Search Location Specification 1 Windows XP ooooccccococccccococncononcnnononcnnnonanononnoncnnnnnarononnaninonns 27 Figure 21 Search Location Specification 2 Windows XP ooooccccccocccccccocnconononnononcononnnnnnnonancnnnnnnrnnonnaninnnns 28 Figure 22 Windows XP Logo Testing Windows XP oooooccccccoccococooconconoconconononnononcnnnonnnnnnononennnnnnrnncnnaninnnns 28 Figure 23 USB Driver Installation Completion Windows XP ccccccceseeeeeeeeeeeeeeaeeeeesaeeseeeaeeeeeeeseeeeeeas 29 Figure 24 Windows Device Manager rrrrvrnnnvrnnnvvnnnnenvnnnennnnnernnnnvrnnnennnnsnnnnnvnnnnnennnnnennnnnennnnennnnnsnnnnnennnnnene 29 Figure 25 WIteEZo ota 30 Figure 26 WriteEZ5 Device Setup Dialogue
46. nt audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electronics willingness to support a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above M8E 02 11 1 User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NIEC CAUTION This is a Test and Measurement equipment with possibility to be significantly altered by user through hardware enhancements modifications and or test or application software Thus with respect to Council D
47. oduction The 78K0 Kx2 L Save It demonstration Kit shows the system development possibilities using a NEC low power consumption microcontroller of the 78K0 Kx2 L microcontroller family A preprogrammed sample project which is written to work with the TK 78K0 KC2L demo PC graphical user interface provided on the CD ROM shows the current consumption in the different operating modes Furthermore an Applilet3 for 78K0 Kx2 L IAR Embedded Workbench for 78K and IAR visualSTATE sample projects for the 78K0 Kx2 L can be found on the CD ROM 1 4 Package contents e TK 78K0 KC2L board e USB cable e CD ROM containing the TK 78K0 KC2L GUI Applilet3 for 78K0 Kx2 L an evaluation copy of the IAR Embedded Workbench for 78K with 4Kbyte code size limitation and IAR visualSTATE as well as device drivers sample programs and Microsoft net Please verify that you have received all parts listed in the package contents list attached to the 78K0 Kx2 L Save It demonstration kit package If any part is missing or seems to be damaged please contact the dealer from whom you received your 78K0 Kx2 L Save lt 1 2 Features e NEC Electronics uPD78F0588 low power consumption general purpose NEC 8 bit 78K0 MCU e NEC Electronics uPD78F0730 MCU with on chip USB interface e 2latched 7 segment LEDs e Low current consumption modes demo application with GUI for the Host PC e Applilet3 for 78K0 Kx2 L peripheral driver configurator e On Board debug function TK 7
48. ommunications Port COM 54 Communications Port COM2 E ECP Printer Part LPT1 Check that NEC Electronics MEC Electronics Starter Kit Virtual LIART COM3 Starter Kit Virtual UART COM Processors is present mua SCSI and RAID controllers m Sound videa and game controllers See Storage volumes y System devices Universal Serial Bus cantrallers Figure 24 Windows Device Manager User s Manual U20194EE1VOUMOO 29 78K0 Kx2 L Save It NEC 8 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 WriteEZ5 File Device View Help PAR gt gt FlashO penning Device Flash Open OF Mame gt gt ParameterFile Reading Firmware Success Read ParameterFile gt gt LoadFile Reading Success read HEX file 8 1 Device Setup Parameter file Mame of 0588 Version 141 00 Load file Mame DEMO FIRM KCaL HE Date 2009 12 18 05 28 12 Chksum BFEdh rea OOO000h 007FFFA Connection to device Port COM4 Speed 125000 Range Chip Freg Internal L5 C Multiply 1 00 c Figure 25 WriteEZ5 Startup To provide all necessary information about the device to be programmed only the corresponding flash parameter file must be loaded The parameter file prm for the uPD78F0588 is located on the CDROM in the WriteEZ5 folder Please use the menu Device
49. ory data f Erase flash memory data Default name Default operation k l Macro Setting File Set 4 P MOL NEC7SKOKCZL Chip uPD78F0588 48 Figure 30 Applilet3 for 78K0 Kx2 L On chip debug window 10 2 2 Timer setting The Count mode of the IAR Embedded Workbench sample project uses an interval timer interrupt to count up Therefore the timer TMOO has to be configured in the Applilet3 for 78K0 Kx2 L as shown below with an Interval value of 3 3024ms Applilet3 for 78KOKx2 L 78KO SAVEIT sample project cgp File Peripheral Options Help Q e E D gt ma Project tree File Module EE Peripheral Generate Code 5 t s D qms SET e ol TMBD TM50 TM51 TMHO ThH1 dp Port se INT la Serial amp Operational Amplifi A D T Unused 7 gt Interval timer EI Macro Information Square wave output External event counter One shot pulse output PPG output Pulse width measurement eae M NE NE I Free running timer Macro name Macro name of selected macro um Macro Setting Fie Set 4 p MOL NEC7SKOKC2L Chip uPD78F0588 48 Figure 31 Applilet3 for 78K0 Kx2 L Timer Function select User s Manual U20194EE1VOUMOO 35 78K0 Kx2 L Save It NEC Applilet3 for 7EKOKx2 L 78KO0 SAVEIT sample project cep File Peripheral Options Help 1 e E 15 gt Project tree File Module EZ Peripheral fl Generate Code 5 S w FP MARE System E TMOO TM50 TM51 TMHO TMH1 INT Fu
50. regarding entry from list The User s Manual U20194EE1VOUMOO 20 78K0 Kx2 L Save It NEC setup dialogues will guide you through the installation process The installation can also be started by executing the TK 78K0 KC2L Demo msi in the directory NVTK 78K0 KC2L Demo of the CDROM 7 2 IAR Systems Embedded Workbench for 78K installation To install the IAR Systems Embedded Workbench for 78K including C SPY debugger simulator press the Software tools button from the Autorun of the CD ROM provided within the 78K0 Kx2 L Save It package and select the regarding entry from list The installation can also be started by executing the Autorun exe program in the directory NK IAR Systems of the CDROM When running the autorun exe the following screen appears HAS Japanese Welcome to IAR Systems LAR Embedded Workbench 4K Kickstart for NEC 78K QuickStart installation information Gi E a oe J Install IAR Embedded Workbench Install visualS TATE o ES ri E Release notes View the product documentation Install Adobe Acrobat Reader Explore the CD 2d YY SIAR SYSTEMS MAMA la Com Figure 9 IAR Systems Installation screen Note Before installing the IAR Embedded Workbench for 78K 4KB code size limited version a license number and key has to be requested from IAR Systems Therefore please follow the IAR online registration The license number and key shall be provided within a
51. ride default B Figure 38 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 Ink78f0588 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 Options for node 78K0 5AVEIT sample project Category Factory Settings General Options CIC Compiler Assembler Custom Build Output Extra Output define Diagnostic List Contig Proce 4 gt Build Actions Linker command file Ii Override default Debugger PROJ DIRT eee IE 75 IECLIBE MINICUBE Simulator Dveride default program entry Tk 78 fe Search paths one per line TOOLKIT DIRS LIBS Haw binary image File Symbol Segment Align o IE P P Cancel Figure 39 Embedded Workbench Linker Configuration User s Manual U20194EE1VOUMOO 41 78K0 Kx2 L Save It NEC 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 78K0 Kx2 L Save It board and debugged To start the IAR C SPY debugger select the option Deb
52. s Logo testing Continue Anyway STOP Installation Figure 22 Windows XP Logo Testing Windows XP 6 After the installation of the USB driver is completed the window below is displayed Click to close the hardware wizard User s Manual U20194EE1VOUMOO 78K0 Kx2 L Save It NEC Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F MEL Electronics Starter Kit Virtual UAA T Click Finish to close the wizard Cancel Figure 23 USB Driver Installation Completion Windows XP 7 8 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 Please check in the Windows Device Manager within the Windows Properties Hardware the driver is installed normally tab that Es Device Manager File Action View Help e Ep Ee Y 4 Computer se Disk drives p Display adapters DVD CD ROM drives 41434 Floppy disk controllers p Floppy disk drives 2 IDE ATAJATAPI controllers iu Keyboards TS Mice and other pointing devices Ed Monitors BB Network adapters iF Ports COM amp LPT ZA C
53. se measurement is required User s Manual U20194EE1VOUMOO 32 78K0 Kx2 L Save It NIEC For further information about usage and functionality of the tool please refer to the TK 78K0 KC2L demonstration program User s manual TK 78K0 DEMO GUI e pdf The manual can be found on the 8K0 Kx2 L Save It CDROM in the Doc folder User s Manual U20194EE1VOUMOO 33 78K0 Kx2 L Save It NEC 10 Applilet3 for 78K0 Kx2 L 10 1 Overview Applilet3 for 78K0 Kx2 L is an easy to use device driver Configurator for all 78K0 Kx2 L devices All available internal device peripherals can be configured by this GUI based software tool For further descriptions about the Applilet3 refer to the regarding User s Manual U19178EJ4V0UM00 pdf available on the 78K0 Kx2 L Save It CD ROM in the Doc folder Applilet3 for 78K0Kx2 L 78KO SAVEIT sample project cgp File Peripheral Options Help Lue E Rb o L3 Project tree sim Peripheral System Y Port INT amp Serial amp Operational Amplifier we A D Timer w Watchdog Timer RTC mw Clock Output ms LVI E Product Infommalor E Chip Information E Generate File Mode Generate file Merge file Dutput folder H IAR projects 78K Report type HTML file Compiler IAR Clock settin On chip debug setting File Module Power voltage YDD setting 27 V z VDD lt 55 V Main system clock selection Internal high speed oscillation flH
54. the IAR Embedded Workbench 78K0 Kx2 L Save it sample project User s Manual U20194EE1VOUMOO 34 78K0 Kx2 L Save It NEC 10 2 1 Clock and On chip debug settings The system clock for this project is set up to use the high speed system clock This makes use of the oscillator Y1 10MHz which is mounted to the target hardware Furthermore the Subsystem clock is enabled to generate a frequency of 32 768 KHz that is needed for the RTC As this Applilet3 for 78K0 Kx2 L sample project shall be used as basic driver initialization for the IAR Embedded Workbench sample the On chip debug function has to be enabled to configure the option bytes correctly Applilet3 for 7BKOKx2 L 76KO SAVEIT sample project cgp File Peripheral Options Help e EB Y Project tree File Module ta Peripheral Chl Generate Code JS t gf FP M G Eva System er Fort Clock setting On chip debug settin Confirming reset source aon E INT Orrchip debug operation setting me Serial t Unused f Used amp m Operational Amplifier m A D Internal high speed oscillation operation setting after execution of the STOP instruction Timer le Stop f Continue amp Watchdog Timer ATC Pin selection i TOOLDO TDDLCO C TODLD1 TOOLCI Security ID setting W Use Security ID E Information Security ID D FFFFFFFFFFFFFFFFFFFF Default nami Ye File name C amp main c Security ID authentication failure setting Do not erase flash mem
55. to control the two 7 segment LEDs of the TK 78K0 KC2L and therefore have to be configured as input pins The pins 0 4 of Port 7 are used as input pins connected to SW3 4 8 And select which segments of the two 7 segment LEDs are blinking in the Blink mode User s Manual U20194EE1VOUMOO 38 78K0 Kx2 L Save It NEC 11 IAR Embedded Workbench 78K0 Kx2 L 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 described sample project 78KO SAVEIT sample project eww is a part of the Sample programs and can be found on after installation in the regarding subfolder AP3 EWB applilet3 src ofthe installation To run debug the project with the IAR C SPY debugger it is necessary to follow the steps described below in this chapter For further information about the IAR Embedded Workbench ant the included functionalities please refer to the regarding User s manuals available on the Save It CR ROM in the IAR Systems doc folder 11 1 Hardware setup To run the program it is necessary to set up the TK 78K0 KC2L board in the following way SW3 1 SW3 3 SW3 4 SW3 8 1 3 shorted Table 10 IAR EWB 78K0 Kx2 L Save It sample project hardware setup 11 2 Loading the 78K0 Kx2 L Save It sample project After starting the IAR Embedded Workbench for 78K the Startup window pops up In t
56. tons WriteEZ5 supports Intel Hex and Motorola S record file formats as input file User s Manual U20194EE1VOUMOO 31 78K0 Kx2 L Save It NEC 9 Demo application using the TK 78K0 KC2L demonstration program The Low Power Consumption Demonstration GUI for the 78K0 Kx2 L Save lt is a Windows software that can be used to check the operation of the 8 bit microcontroller 78K0 KC2 L mounted on the included demonstration kit board TK 78K0 KC2L made by TESSERA Technology Inc by performing a simplified display of the features and power of the microcontroller The Demo GUI allows the user to monitor the on chip oscillator of the KC2 L the power consumption and the optical sensor mounted on the TK Board and to easily switch among the full speed mode to standby mode The current in a user program can also be measured Note TK 7BKO KC2L Ver 1 0 Operation mode selection Trace output Start OPERATING CURRENT Y scale mA 20mA 2ma 200A A 3 20 E mA ILLUMINANCE Digital Value Hex B eri w Lux MED Figure 28 TK 78K0KC2L demonstration program 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 evaluation Use calibrated measuring equipment if preci
57. ug from the Project menu or press the n 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 e ID code FFFFFFFFFFFFFFFFFFFF e Main clock System 8 00 MHz e Target connect TOOLC D MINICUBE2 Hardware Setup for 78KO 78F056848 ID code DE FFFFFFFFFFFFFFFFFFFF Cancel Main clock C 5 Default 4 System Target connect 5 00 TOOLC D Monitor clock Target power off f System f Permit f User f Mat Permit Fin mask Li TARGET RESET Li INTERNAL RESET Memory map mm EA El intemalROM y O 0000 Os FFF Internal ROM 32 Kbytes O FBOO OXFEFF Internal RAM 1024 bytes Figure 40 IAR Embedded Workbench MINICUBE2 settings Now the debugger is started and the demo project is downloaded to the 78K0 Kx2 L 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 After the download was completed all debug features of IAR C SPY debugger are available i e Single otepping 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 User s Manual U20194EE1VOUMOO 42

Download Pdf Manuals

image

Related Search

Related Contents

Samsung BN68-01700M-00 User's Manual  PDFファイル  取扱説明書はコチラから(PDF)    Agilent 2100 Bioanalyzer User`s Guide  

Copyright © All rights reserved.
Failed to retrieve file