Home
M16C StarterKit2
Contents
1. Table 8 5 Connect Requirements Connector No Content Connector No Content CN1 Serial interface connector SW3 switch CN2 Power supply connector SW4 switch CN3 Throuh hall contact for VR1 Variable resistance DC power supply CN4 Throuh hall for ezpansion contact LED1 User 1 0 SW1 Switch LED2 User 1 0 SW2 Switch Table 8 6 CN2 Connect PIN assing CN2 Pin No port signal 1 Va 2 3 4 P66 RxD 5 6 7 GND 10 pin connector 8 HIF3BA 10D 2 5 9 10 P6 7 TxD note Straight type HIF3FC 10PA 2 54DSA Receve connector Angle type HIF3FC 10PA 2 54DS 39 8 M16C 62 StarterKit2 Table 8 7 CN4 Connect PIN assing CN4 CN4C PINNo signal CN4B PINNo signal CN4A PINNosignal CBA 1C VCC 1B VCC 1A 100 ADTRG 2C 99 AVCC 2B 98 VREF 2A 97 ANO 3C 96 AVSS 3B 95 P10 1 3A 94 P10 2 AC 93 P10 3 4B 92 P10 4 4A 91 P10 5 5C 90 P10 6 5B 89 P10 7 5A 88 LED1 2 6C 87 LED1 2 6B 86 LED1 2 6A 85 LED1 2 7C 84 LED1 2 7B 83 LED1 2 7A 82 LED1 2 8C 81 LED1 2 8B 80 P10 8A 79 P11 9C 78 P1 2 9B 77 P13 9A 76 P1 4 10C 75 P15 10B 74 P16 10A 73 P17 11C 72 P2 0 11B 71 P2 1 11A 70 P2 2 12C 69 P2 3 12B 68 P2 A 12A _ 67 P25 13C 66 P2 6 13B 65 P27 13A 63 P3 0 14C 61 P3 1 14B 60 P3 2 14A 59 P33 15C 58 P3 4 15B 57 P3 5 15A 56 P3 6 16C 55 P3 7 16B 54 P4 0 16A 53 P41 17C
2. information files from C language and the assembly language source files features of KNC30WA 1 KNC30WA can compile a source file consisting of less than 500 lines 2 Program s ROM size is within 64K bytes KNC30WA is upward compatible with the compiler for the M16C family NC30WA All programs developed using KNC30WA can be compiled by NC30WA in the same Way S W for programming internal Flash memory of M16C Flash MCU FlashStart FlashStart is the software for Windows that the writing treatment of the built in flash memory is done toward the M16C flash memory built in microcomputer And an evaluated User s Program can be written in the built in flash memory by using KD30 too Monitor Program is erased when a User s Program is written in the built in flash memory In that case you must write Monitor Program by using FlashStart 10 4 Setting UP Hardware 4 Setting UP Hardware 4 1 Connecting Each Unit M16C 62 StarterKit2 connect to each unit Figure 4 1 DC Power 8 12V No Package Figure 4 1 Connect to each unit 5 Setting UP Software 5 Setting UP Software 5 1 Operating Environment The software include M16C 62 StarterKit2 run on the host computer under the OS version that are listed respectively in Table 5 1 Table 5 1 Operating Environment Microsoft Windows 95 Microsoft Windows98 486DX4 100MHZor Pentium 75MHZar newer recommended 8Mbytear mae 16 Mbyterecommended Operation
3. the GO command cannot be used thereafter lt Exsample gt NOP NOP INT 3 lt BREAK Go from the interrupt source can t be used NOP NOP 6 9 Restrictions on STOP Modes or WAIT Modes The Monitor Program cant be run in STOP modes and WAIT modes Can t be changed STOP modes or WAIT modes in User s Program 26 6 Usage Precautions 6 10 U ser s Program Real time Capability KD30 has two User s Program execution modes Sampling Mode and Freerun Mode In Sampling Mode the Monitor Program periodically monitors the User s Program execution status to detect stoppage of the User s Program caused by a break etc For this reason the Monitor Program requests an interrupt during User s Program execution Consequently the User s Program real time capability is lost In Freerun Mode the User s Program execution is not monitored so its real time capadty is guaranteed 1 Sampling Mode In this mode the User s Program execution status is periodically monitored when executing Go or Came Therefore this mode allows you to detect stoppage of the User s Program caused by a break etc Choose this mode when you perform regular debug 2 Freerun Mode In this mode the User s Program execution status is not monitored when executing Go or Came Although for this reason the User s Program real time capability is guaranteed you cant detect stoppage of the User s Program caused by a break etc Therefore even when the User s Program has stopped
4. Figure 8 5 segment DIGIT 42 8 M16C 62 StarterKit2 8 6 5 SWITCH Table 8 10 switch INTO INT1 of MCU get crowded and SW1 SW2 are the witches connected with the input terminal ADTRG RESET of MCU profit get crowded and SW3 SW4 are the switches connected with the input terminal It can be used for the function that a user is optional Show the connection of each switch and the input terminal in the following Table 8 10 switch 43 M16C 62 StarterKit2 USER S MANUAL RevE Dec 2001 E version Apl 2001 D version Nov 2000 C version J ul 1999 B version Mar 1999 A version Editioned By Mitsubishi Electoric Semiconductor Application Engineering corporation Published By Mitsubishi Electoric Semiconductor Application Engineering corporation This book or parts there of may not be reproduced in any form without permission of Mitsubishi Electoric corporation 1999 2002 Mitsubishi Electoric Semiconductor Application Engineering corporation
5. of KNC30WA on Windows 95 or Windows 98 KNC30WA operates from the DOS prompt of Microsoft Windows 95 or Windows 98 Operation of KNC30WA and KD30 on Windows 95 or Windows 98 No special character indude space code can be induded in the file name Nor cana network drive name be used for KNC30WA and KD30 When using a network drive name be sure to assign it to the drive 12 5 Setting UP Software 5 2 Installing KD30 5 2 1 Installation Procedure Follow the procedure described below to install KD30 1 Run setup exe in KD30 on CD ROM 2 Display the install s window and install under the window 5 2 2 Starting Up KD30 Before you can start up KD30 you must first set up hardware For this setup refer to Section 4 To start up K D30 click start program MITSUBISHI TOOL KD30 for Windows 95 When you call up KD30 an I nit dialog box Figure 5 1 appears Use this dialog box to set the operating environment required for start up of KD30 E Farallel t Figure 5 1 Init Window The Init dialog box is detailed in KD30 s manual Here set the following item to ensure that KD30 starts up normally 13 5 Setting UP Software When you have finished setting the above click on the lt OK gt button in the I nit dialog box If communication between M16C 62 StarterKit2 and personal computer is performed normally KD30 starts up automatically and a window like the one shown in Figure 5 2 appea
6. the C language It is described about attached KNC30WA here When KNC30WA is installed a STARTUP folder is prepared Y ou must change nat0 a30 in that and sect30 inc The contents to change in the following are spedfied Modify the treatment which is applicable when other compilers are used 1 The change point of nat0 a30 Have comment out by the 1 0 initialization treatment Initialize standard 1 0 not to call 1 0 initialization treatment because there is a setup which UART1 is used for Interrupt permission flag is deared by the reset treatment after reset this program will start right after the LDINB order Because of that it can t talk to Monitor Program Establish intrrupt permission right after the LDINB order Change it to OEF DOO by interrupt vector address treatment INTERRUPT VECTOR ADDRESS definition because piles up with Monitor Program when it is initialized interrupt vector address 2 The cange point of sect30 inc Set it up by variable vector table address because the setup of UART1 to use by KD30 and Monitor Program isn t being doneProgram execution cannot be stopped by a break in the INT instruction Onc a break 6 8 Restrictions on Breakpoints 1 Do not set a breakpoint in an instruction immediatdy after the LDC instruction No break occurs even when you set a breakpoint in an instruction immediately after the LDC instruction 2 Program execution cannot be stopped by a break in the INT instruction Once a break occurs
7. year We troubleshoot your problem with no charge provided that you use this product in an environment stated under section 8 and you use under section 6 One year later or when you use this product besides a method mentioned above we repair it by compensation 1 M16C 62 StarterK it2 M 3A 0654 2 Serial Cable M3A 0654CBL MF_Ten_Nine cable In requesting the repair of this product contacts your distributor or nearest office of Mitsubishi Electric SoftWare In one month We change it no charge when it s medium breaks down Thereis not a guarantee except this 1 Compiler KNC30WA 2 Remote Debugger K D30 3 SW for programing internal Flash memory F lashStart 4 Monitor Program 2 2 Support You can have support of this product and the latest infomation about it referred to from hamepage Please make use of it URL http Awww infomicom maec co jp M16C mctopj htm 3 System Configuration 3 System Configuration The following lists the hardware and software products required for using the product 1 Host computer No package 2 M16C 62 StarterKit2 M3A 0654G01 or G02 3 Serial cable exclusive to the cable debugger M3A 0654CBL 5 Compiler KNC30WA 1 2 3 4 Remote debugger K D30 5 6 Power supply No package 7 7 SM for programing internal Flashmemory FlashStart Host Computer No package M16C 62 StarterKit2 M3A 0654 include monitor program built in flash mem
8. 0654CBL to M16C 62 StarterKit2 It dicks on Flashsta exe in the copie file double for the start when Flah Start the window of the Figure 5 6 opens Select Program is to choose Internal flash memory Setup RS232C to use more than PullDownList Figure 5 6 Sdect Program Window When dick lt OK gt button a windows appears F igure 5 7 Figure 5 7 1D check Window 19 5 Setting UP Software Detail operation of ID check Window and FlashStart check FlashStart s manual When Figure 5 8 appears please check to connection between MF_Ten_Nine cable and M16C 62 StarterKit2 or power on M16C 62 StarterKit2 Figure 5 8 Connection error Window 5 5 3 Quitting FlashStart When FlashStart quit click lt Exit gt on Figure 5 9 wie Flash Start Figure 5 9 Main Window 20 5 6 5 7 5 8 5 9 5 Setting UP Software Uninstalling K D30 To uninstall K D30 appears start settting control panel and click lt add and move gt Select a D30 gt in any list dick lt add and move gt Appears uninstalling window uninstall KD30 Uninstalling KNC30WA To uninstall KNC30WA appears start settting control panel and click lt add and move gt Select a K NC30WA gt in any list click lt add and move gt Appears uninstalling window uninstall KNC30WA Uninstalling FlashStart To uninstall FlashStart delete a FlashStart s directory Referencing Electronic Manuals Electronic Manu
9. 52 P4 2 17B 51 P4 3 17A_ 50 P44 18C 49 P45 18B 48 P4 6 18A 47 P47 19C 46 CE 19B 45 P51 19A 44 P5 2 20C 43 P5 3 20B 42 P54 20A 41 EPM 21C 40 P5 6 21B 39 P5 7 21A 38 P60 22C 37 P61 22B 36 P6 2 22A 35 P6 3 23C 34 P6 4 23B 33 P6 5 23A 32 RXD1 24C 31 TXD1 24B 30 P7 0 24A 29 P71 25C 28 P7 2 25B 27 P7 3 25A 26 P7 4 26C 25 P75 26B 24 P7 6 26A 23 P77 27C 22 P8 0 27B 21 P8 1 27A_ 20 INITO 28C 19 INIT1 28B 18 P8 4 28A 17 P85 29C 12 RESET 29B 11 XCOUT 29A_ 10 XCIN 30C 7 P9 0 30B 6 P9 1 30A 2 P9 2 31C 4 P9 3 31B 3 P9 4 31A 2 P95 32C GND NC 32B GND NC 32A 1 P9 6 40 8 M16C 62 StarterKit2 8 6 3 umper setting Table 8 8 J umper setting M16C 62 StarterKit2 Table 8 8 umper setting JUMPER No Marking name Default mode Function A DO input JP1 ANO 1 2 Short 1 1 2pin short connect variable resistance 2 3pin short connect extend connector A D analogue input terminal JP2 AVCC 1 2 Short 1 1 2pin Short connect MCU Vcc 2 3pin Short connect extend connector A D analogue based terminal JP3 Vref 1 2 Short 1 1 2pin Short connect MCU Vcc 2 3pin Short connect extend connector A D analogue input terminal JP4 Avss 1 2 Short 1 1 2pin Short connect MCU GND 2 3pin Short connect extend connector On baud divce reset JP5 RESET Short 1 Short connect for SW4 Open connect extend connector UART1 inp
10. ET Enable Interrupt 6 12 Performing Debug Using Symbols To debug your program using symbols in KD30 add the debug option g in KNC30WA before compile the programs 6 13 Corrective Action when Communication Error Occurs at Start up If a communication error occurs during start up check the following 1 Whether the M 16C 62 StarterK it2 hardware is correctly set up 2 Whether cable is firmly connected and whether the power is turned on 3 Whether the serial port set in the Init dialog box matches the actual serial port where the M16C 62 StarterK it2 is connected 29 6 Usage Precautions 6 14 Corrective Action when Communication Error Occurs During Debug If a communication error occurs during debug one probable cause is that the Monitor Programis madeto gowild by the User s Program ex user programs runaway or access to monitor area In such a case follow the procedure below to initialize the system 1 Press the OK button in the error dialog box to dose it 2 When an Exit dialog box appears press the Canca button to dose it 3 Reset the hardware by working the reset jumper on the CPU board or turn off the power and turn it back on again to reset the hardware 4 Press KD30 reset button When the aboveis done you can restart debugging However because the data in the User s Program area may have been damaged recommends downloading your program again before you start debugging f many communi
11. Functions The UART1 transmit and receive interrupts are used for communication between the Monitor Program and the host computer UART 1 cannot be used in the User s Program 22 6 Usage Precautions 6 3 Coution when use the memory expansion mode Toenable the memory expansion mode pull up the HOLD pin and RDY pin of the MCU on the M16C 62 StarterKit2 Set the processor mode bits to 01b in your User s Program There is no need to modify the Monitor Program Please note that accessing external memory in the memory expansion mode from either KD30 can only be done with Memory Read Write Program controls such as downloading a program to the external memory assigning a program in the external memory usingF ile Download Load Module or pladng a break in the external memory cannot be performed In addition after switching to memory expansion mode from single chip mode make sure you reference the external memory in the DUMP window to confirm operations 6 4 Memory Map Figure 6 1 shows the M16C 62 StarterK it2 memory map The area the user can use is as much as internal RAM area 19 4K byte internal FlashROM area 239 4K byte For useinternal RAM 20Kbyte internal ROM 256Kbyte TheMonitor Program write 1 to bit of Processor M ode Register 1 internally reserved area extension 00000H 00400H User RAM area About 19Kbyte User fixed vector table 20Kbyte 05000H 053FFH 512byte FFEOOH Monitor progra
12. KD30 does not stop the operation executed by Go or Came If you want to stop KD30 press the STOP button Choose this mode when you want torun User s Program in real time 6 11 E xceptional Step Execution If the following two instructions are STEP they operate differently than they are executed normally 1 REIT instruction J MPS instruction J SRS instruction When above instruction is STEP the program stops after executing one instruction after returning from the interrupt lt Exsample gt Main ee NOP NOP REIT PC after STEP execution NOP NOP Hear STEP execution 27 2 INT instructions 6 Usage Precautions Fromthel NT instruction you cannot successively step through theinternal processing of the NT instruction lt Exsamplel gt INT_3 NOP NOP INT 3 lt STEP Skipped over when STEP is executed NOP JMP MAIN NOP lt Address at which program execution ought to stop NOP NOP REIT When using the NT instruction to debug your program follow the procedure shown below lt E xsample2 gt NIT 3 NOP INT 3 NOP JMP MAIN Execution by GO command NOP d BREAK NOP REIT 28 6 Usage Precautions 3 operation of while disable interrupt When to be disable interrupt can t use STEP command while disable interrupt 1 STEP command go at enable interrupt lt Exsample2 gt FCLR l Disable interrupt AND 00H 0055H Change Timer Interrupt 1 STEP command NOP go to enable NOP interrupt FS
13. To all our customers Regarding the change of names mentioned in the document such as Mitsubishi Electric and Mitsubishi XX to Renesas Technology Corp The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas Technology Corporation on April 1st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMS etc Accordingly although Mitsubishi Electric Mitsubishi Electric Corporation Mitsubishi Semiconductors and other Mitsubishi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Note Mitsubishi Electric will continue the business operations of high frequency amp optical devices and power devices Renesas Technology Corp Customer Support Dept April 1 2003 tENESAS Renesas Technology Corp MITSUBISHI SINGLE CHIP MICROCOMPUTER M16C 62 StarterK it2 USER S MANUAL D 0 ann 6 O N CO keep safety first in your circuit Mitsubishi Electric Corporation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that tro
14. a program Ra UO extension port Figure 8 2 Block diagram of M 16C 62 StarterKit2 36 8 M16C 62 StarterKit2 8 5 Memory Map Figure 8 3 a memory map of M16C 62 StarterKit2 Use of a user area RAM 19KB FlashROM 239 4K B 00000H 00400H 053FFH C0000H FFFFFH User RAM area About 19Kbyte User fixed vector table 20Kbyte 05000H 512byte FFEOOH Monitor program area Special page About 300bvte p pag C0000H area 255 18 User program area 239 4Kbyte FBEOOH FCOOOH User fixed vector area FFFFFH Figure8 3 M 16C 62 StarterKit2 memory map 37 8 M16C 62 StarterKit2 8 6 Using 8 6 1 Part arrangement figure M16C 62 StarterKit2 has 12jumper J P1 to J P5 and 2 3 pin of J P8 dose short as Default If change cut line 2LEDs and 4 switch and 1 variable resistance are prepared Refer to the next page for the pin arrangement of CN4 Figure 8 4 shows the location of each part of M16C 62 StarterKit2 CN3 LED2 LED _ GND DC Ino co lt Jumper Default gt fry pty fy lt OPEN gt lt SHORT gt Figure 8 4 location of each part of M16C 62 StarterKit2 38 8 M16C 62 StarterKit2 8 6 2 Connect Requirements Table 8 5 connector requirements and Table 8 6 CN2 connector Pin assign and Table 8 7 CN4 connector Pin assign of M16C 62 StarterKit2 note Connect nothing with 31 32pin When it is t KD30 normal connected
15. als of the Product arein the form of files in PDF portable document format Toreference them the user needs Adobe Acrobat Reader The user can download Adobe Acrobat Reader from the home page of Adobe Systems Incorporated F or latest information as to Adobe Acrobat Reader go to the following URLs http www adobe co jp http Awww adobe com 21 6 Usage Precautions 6 Usage Precautions This section describes the precautions to be observed when using M 16C 62 StarterKit2 Always besure to read this section before you use M 16C 62 StarterKit2 Table6 1 List of UsagePrecautions Precautionscncesting pogam 64 MemayMap 657 lirritaticn itamabaut register qadin 66 Retridiosonintarupts 67 AlimitainitemehattheClanquag Precautions ddougging progam 68 Restridicnsm Breekpdnis 69 ResridiaismSTOP Maksa WAIT Macks 610 UsarsProgamResHimeCapability 611 Exceptiond Step Exenutian 612 PefarringDetugUsingSymbds 613 CarativeAdiouhe Canmunicetin Eno Ocursat Startup 614 CarettveAdiowhen Carmunietin Error OcursDuringDetud 615 CarettveAdionwhen Era OaursDunngDownlced 616 Theapingwhentheata dA sourcefileimtfound ocurred 6 1 Limitations on Pin Usage 1 TxD1 and RxD1 UART1 pins These pins are used to communicate with the host computer Do not connect these pins to any other pins 2 NMI P85 pin NMI pin needs pull up 6 2 Limitations on Using M16C 62 Peripheral
16. ation ss 24 6 6 lge gle le ll ue EC 25 6 7 A limitation item about the C language ss 26 6 8 Restrictions on Breakpoints ss 26 6 9 Restrictions on STOP Modes or WAIT Modes ue 26 6 10 User s Program Real time Capability sn 27 6 11 Exceptional Step Execution sn 27 6 12 Performing Debug USING SYMONS sn 29 6 13 Corrective Action when Communication Error Occurs at Start Up 29 6 14 Corrective Action when Communication Error Occurs During Deag en 30 6 15 Corrective Action when Error Occurs During Download 30 6 16 The coping when the error of A source file isn t found occurred 30 How torepair Monitor Program 31 7 1 le UI 31 7 2 Limit OF FREQUENCY E 32 7 3 The movement of the draimferenc 1 0 in break 33 M16C 62 StarterKit2 34 8 1 External Spedfications s sine 34 8 2 Power Supply Requirements sens 35 8 3 Environment Requirements sens 36 8 4 Blok Diag EC EE 36 8 5 Memory Matten ni ee 37 8 6 USING EE 38 8 6 1 Part arrangement figure sen 38 8 6 2 Connect Requirements sienne 39 863 Jumper Settings 41 E DEE RE 42 8 60 5 SWIC e E 43 Table of Content 1 Contents of Product Package 1 Contents of Product Package This section shows the contents of the M16C 62 StarterKit2 s product package When unpacking your M16C 62 StarterK it2 check to see that all products listed below are induded 1 1 M16C 62 StarterKit2 Product List Table 1 1 li
17. cation error happen check this gt your program have interrupt program And don t set flag in interrupt program When this interrupt program spend a time over 260us please set flag 1 in the beginning of interrupt program 6 15 Corrective Action when Error Occurs During Download When a wrong occurs during download or reload Ex stop download may be a problem that a part of program will be running When run download or reload will have to push a reset button on K D30 before running download or reload After will be download or reload 6 16 The coping when the error of A source file isn t found occurred Confirm the following contens wen the error of A source file isn t found occurs 1 Does it exist in the directory or folder that an executive file is the same as the source file 2 Give it to me if a source file isn t being opened with editor except for KD30 30 7 1 7 How to repair Monitor Program 7 How to repair Monitor Program How to repair Monitor Program has already been written in the microcomputer since it is purchased first Monitor Program is erased when flash memory writing S W was used for the built in flash memory and User s Program was written When debugging of User s Program is done by using KD30 again you must write Monitor Program in the built in flash memory again Monitor Program The writing process of Program is specified in the following 1 Make the terminal that CNVss and s
18. cessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein Microsoft MS and MS DOS are registered trademarks of Microsoft Corporation of the U S Windows95 and Windows98 are trademarks of Microsoft Corporation of the U S IBM and PC AT are registered trademarks of International Business Machines Corporation of the U S Pentium is a trademark of Intel Corporation of the U S Adobe and Acrobat are registered trademarks of Adobe Systems ncorporated Preface Thank you for purchasing Mitsubishi s M 16C 62 StarterKit2 This manual describes how tousethehardware and software products induded with M16C 62 StarterK it2 To other tools look other tools s manulas Table of Content Contents of Product Package 3 11 M 16C 62 StarterK it2 Product List 3 12 CD ROM EN 4 L21 Sotware Produs EE 4 1 3 System Requirements sise 6 Gurantee and Support 7 2 1 OT 12 M E 7 2 2 10 0 0 6 M 7 Sy
19. cnnrcor M 34 0654CBL CN2 power supply connector CN3 Throuh hall contact for DC power supply M34 0654G01 3V M34 0654G02 5V CN4 Throuh hall for egpansion contact Recommendation anneta PCN 104 96S 2 54DS ar PCN 10B 96S 254DS SW1 push button connect NTO SW2 push button connect INT 1 SW3 push button annet ADTRG SW4 push button connect RESET LED1 user 1 0 anneta PO OPO 7 LED2 user 1 0 anneta PO OPO 7 8 2 Power Supply Requirements Table 8 3 lists and Figure 8 1 connector Pin assign power requirements of M16C 62 StarterKit2 Table 8 3 Power Requirements Tess DC SM DIAMANT Mr mewas _ a ch D 9 OCS note It plug correspond to old EIAJ standard Figure 8 1 connector Pin assign 35 8 M16C 62 StarterKit2 8 3 Environment Requirements Table 8 4 lists environment requirements for using and storing M16C 62 StarterKit2 When storing M16C 62 StarterKit2 place it in a conductive bag and then in a packing box The packing box in which your product was shipped from the factory is desirable Table 8 4 Environment Requirements BEE Whenusing Opceratingambient tarperature0 55 C 30 80 Noarrosiveggs allowed nodewdrops allowed Whenusing Storageambient temperature 30 75 C 30 80 Noarrasivegas allowed nodewdrops allowed 8 4 Block Diagram Figure 8 2 a block diagram of M16C 62 StarterKit2 Xin Reset INIT1 INITO ADtrg Reset AD Monitor UART M
20. ectory LIB 30 SET INC30 Install directory INC30 SET TMP30 Install directory TM P PATH PATH B1I N 30 4 computer restart after install 15 5 Setting UP Software lt Caution gt KNC30WA uses the same environment variables as used by NC30WA Note that if you are using NC30WA in combination with NC30WA the same environment variables are referenced 5 3 2 Checking Operation of KNC30WA Input the following command to check that KNC30WA operates normally 1 Command input gt KNC30 v 2 Result All program versions are displayed as shown below M16C 60 KNC30 COMPILER V 1 00 Copyright 1998 MITSUBISHI ELECTRIC CORPORATION and MITSUBISHI ELECTRIC SEMICONDUCTOR SYSTEMS CORPORATION All Rights Reserved 3 If KNC30WA does not start up a Check to see if the command path PATH is set correctly b If a Windows NT character mode appears when executing a command check thesettings of the DOS window given below 1 Choose the property of the DOS window 2 Choose the button for Advanced Program Settings of program tag 3 Remove the check in the check box of Prevent MS DOS based programs from detecting Windows 4 Close the DOS window then execute the command again 4 If version numbers are not displayed Check to see if each command listed in Section 1 2 Software Product List is expanded correctly in the directory you have specified for BI N30 16 5 Setting UP Software 5 4 Installin
21. g TM 5 4 1 1 nstalling The directory in which NC30WA will be installed 1 Y ou can not specify a name that contains a blank for the directory 2 There is Setup exe of NC30WA of CD ROM M16C62 ENGLISH KNC30WA TM NC30WA W95E 5 4 2 About this product The Entry Version is not to be supported and warranted Accordingly for the directions for use of Entry Version or the like you cannot apply to our company However if you inform us of any idea that may flash upon your mind and your comments if any we are ready to take up your suggestions and hints for future improvements However please take note that we may not give our reply to you as to your idea entry tool maec co jp 5 4 3 About the specification of Entry version Please be careful that Entry version has the following specification Refer to the manual which is stuck in detail and which is stored in less than a M16C62 ENGLISH KNC30WA TM directory a release notebook Readme and so on 1 About fansi option This compiler always compile with fansi option So If you specify this option this compiler disregards this option 2 About describing of a program If you describe the following words append underscore _ before the word please inline _inline near _near far _far asm _asm 3 About NC30 amp AS30 option You can not use the following options 17 5 Setting UP Software C compiler NC30 Debug Optio
22. ic manual The contents of this directory are listed in Table 1 6 1 Contents of Product Package Table 1 2 KD30 directory KD30 Manual KD30ue pdf KD30 s manual KD30 setup setup exe Set up file for KD30 Table 1 3 KNC30WA directory KNC30WA Manual as30ue pdf KAS30 s manual KNC30 manual KNC30WA setup KNC30WA TM TM WO5E Set up file for TM Set up file for NC30WA Table 1 4 F lashtsa directory Directory name File name OutLine Flashsta Flashsta exe Flash writing SAW Manual E pdf Flash start manual Table 1 5 Program directory Program monitor S format for Monitor Program Source file for Monitor Program Program sample Sample program 1 Contents of Product Package Table 1 6 Doaument directory M16C 62 group data sheet M16C 62 group user s manual M16C 60 Series Software manual M16C 60 Series programming manual for Assembl LanguageC Language M16C 60 Series collection of sample program 1 3 System Requirements In addition to the products listed above you must have the following equipment before you can use the M16C 62 StarterKit2 1 Personal computer For details about a personal computer refer to section 5 1 Operating Environment 2 Power supply For details about power supply requirements refer to section 8 2 Power Supply Requirements 2 Gurantee and Support 2 Gurantee and Support 2 1 Gurantee HardWare In one
23. ilk are being printed on the circuit board of M16C 62 StarterKit2 a H level Like a Figure 7 1 Short 2 Start attached flash memory writing S W FlashStart At this time a communication error occurs if the setup of 1 isn t being done 3 It is thrown and a Reset button is pushed to M16C 62 StarterKit2 the power supply 4 Monitor Program is written by using FlashStart 1 Monitor Program Input all the ID codes of with OOH 5 Push an E P R button Erase Program Read are done 6 Push a button and finish flash memory writing S W FlashStart because OK button is indicated if writing is completed 7 Make the CNVss terminal being made a H level in 1 a L level It is made OPEN 8 Writing of Monitor Program is completion in the above 1 Refer to an attached manual for the way of operating FlashStart 31 7 How to repair Monitor Program Oc M16C 62 StarterKit2 Figure 7 1 Setting M 16C 62 StarterKit2 7 2 Limit of Frequency The monitor program is running in the following frequency range of M16C 62 StarterKit2 dock With the dock frequencies outside of this range device operation cannot be guaranteed so use the clock frequencies of this range Communicable Baud Rate at Each Frequency in the Table 7 1 1MHz MIN to 10 MHz MAX M16C 62 StarterKit2 M3A 0654G01 1MHz MIN to 16 MHZ MAX M16C 62 StarterKit2 M 3A 0654G02 However the device can t operate with the following clocks 1 When the
24. m area Special page About 300bvte C0000H area 255 18 User program area 239 4Kbyte C0000H FBEOOH FCO00H User fixed vector area Figure6 1 M 16C 62 StarterK it2 memory map FFFFFH FFFFFH 23 6 Usage Precautions 6 5 A limitation item about register operation The limitation item related to register operation in the Table 6 2 And the movement of Monitor Program can t be assured when register that a change is prohibited is changed Table6 2 A limitation item about register operation Register Name Initial value Restridion Crengpthis regder by theuser progam whan yu usethemanoy een If the Monitor Progam darts intraday after Pr at Rajter Hit 2 Pat P9 Diredion Regs andS 034Catrd Regs witeenedenijisseto eden witetosoreacttes by the Maritor Progam aus sothet the P9 Diration emncthewittntointhedioningeses O DWhanabrektoettheinsrudiothatsasthewriteenddebittol aurs 2WhenGoSep Ove a Re umictheinstrucionthetsasthewwiteaededittollis eent PRE O O change Ok X change NG change OK Thereis a limitation 24 6 Usage Precautions 6 6 Restrictions on Interrupts 1 Interrupt vector tables that reside in the fixed vector table Interrupt vector tables that residein thefixed vector tablearenot usethe User s Program except reset When used Interrupt vector tables that reside in the fixed vector table will be changethat they not run TheM oni
25. main clock 6 MHz divide by 8 and divide by 16 clocks 2 When the main dock 10 MHz divide by 16 clock 3 The subclock Xcin used as BCLK 32 7 How to repair Monitor Program Table 7 1 Communicable Baud Rate at Each Frequency Baud Rate BPS oes 1200 2400 4800 9600 19200 38400 16M VIVI viv SS SE EE EK 12M ViVi viv IS e lee Ee Ee n el wiv mo or Se a el el AE SET 4M Yi vil vil vil wi 2M Vi vil vlv Il 1M vil wl wi i Not communicable J communicable 7 3 The movement of the circumference I O in break A circumference I O keeps working though interrupt isn t accepted in break For example timer interrupt isn t accepted timer and so on though it keeps counting timer when User s Program is made to stop at break and so on after it is made to work 33 8 M16C 62 StarterKit2 H M16C 62 StarterKit2 8 1 External Specifications Table 8 1 and Table 8 2 list external specifications of M16C 62 StarterKit2 Table 8 1 External Specifications of M 16C 62 StarterKit2 M34 0654G01 MCU M30624F GMFP Operation made singechip mode Clock frequency main dak 10MHz M 3A 0654G02 MCU M30624F GAFP Operation made singechip mode Clock frequency main dak 16MHz Internal memory RAM 20K B 19KB qoen touse Flash ROM 256K B 239 4KB touse 34 8 M16C 62 StarterKit2 Table 8 2 External Spedfications of M 16C 62 StarterKit2 CN 1 Serial interfa
26. n genter gno reg Optimization O 1 5 OR OS Oconst OC Ono_bit ONB Ono_break_source_debu Option g ONBSD Ono _float_const_fold ONF CF Ono_stdlib ONS Osp_adj ust OSA Ostack_frame_align OSFA Oloop_unroll OLU Ono_asmo pt ONA Ono_logical_or_combine ONLOC Ocompare byte to word OCBTW Code finfo fuse_DI V fU D fansi fnear_ROM fNROM fsmall_array fSA generated Option fno_align fNA Assemble amp Link a530 In30 Option Assembler AS30 Option finfo P M 4 About software tools and an utility You can not use the following software tools and an utility Software Tools StkViewer M apViewer assemble optimizer aopt30 Librarian Ib30 Structured description assembler pre30 Standard Library source file Utility Utl30 The SBDATA dedaration amp SPECIAL page Function declaration Utility 5 About TM Tool Manager a Y ou can not use the inspector function of TM Tool Manager b Y ou can not create a library project 18 5 Setting UP Software 5 5 Installing FlashStart 5 5 1 nstallation Procedure 1 Create a directory on the personal computer s hard disk where you want the software to be installed 2 Copy all the contents of the directory Flashsta held in the CD ROM to the directory created in step 1 5 5 2 Stating Up FlashStart Before you can start up FlashStart You must first connect the serial cable M3A
27. ory Power supply No package Serial cable MF_Ten Nine cable Figure 3 1 System configuration of the product 3 System Configuration 3 1 Host Computer 3 2 3 3 K D30 and KNC30WA run on the host computer listed in Table 3 1 Table 3 1 Host Computer EE IBM PC AT seriesar its compatible Micrasot Windows 95 Microsoft Windows 98 M 16C 62 StarterKit2 The M16C 62 StarterKit2 incorporates the M16C family of Mitsubishi s 16 bit single chip microcomputer M 3A 0654G01 M 30624F GMF P M 3A 0654G02 M 30624F GAF P A debugging Monitor Program has been written to the microcomputer M16C mounted on the board Remote Debugger KD 30 KD30 is a remote debugger that runs on the host computer While communicating with the debug monitor program this debugger provides a highly efficient evaluation environment This debugger is compatible with PD30 at operation level PD30 is the debug software used to control Mitsubishi s M16C emulators features of KD30 1 Source line debug for assembly language structured assembly language C language 2 KD30 have go command with 2 point S W breakpoint 3 KD30 have RAM monitor function RAM monitor function is that dump command practice with any cycle 4 KD30 have window for variable of C language 5 Line assembler can t operate it 3 4 35 3 System Configuration Compiler KNC30WA KNC30WA is theC compiler for the M16C family KNC30WA generates debug
28. rs EC E ARSALRBSLAUTE EK EE GEET ET HAZSIGRATHE z VASE FLAIR GEET EE KEE ET GEET TEE eee BS Figure 5 2 KD30 window If M16C 62 StarterKit2 fails to communicate with the personal computer an error dialog box like the one shown in Figure 5 3 or Figure 5 4 appears Figure 5 3 Example of error dialog box at start up Figure 5 4 Example of error dialog box2 at start up 14 5 Setting UP Software When you click on the lt OK gt button in this error dialog box the I nit dialog box pops up again If this error dialog box is displayed refer to 6 13 Corrective Action when Communication Error Occurs at Start up KD30 s detail operation read KD30 s manual 5 2 3 Quitting KD30 To quit KD30 select the menus File gt Exit When you select the Exit menu the Exit window shown in Figure 5 5 appears so click on the lt OK gt button If you dick on the lt Cancel gt button KD30 is not terminated K Do you really want to exit f Cancel Figure 5 5 Warning dialog box 5 3 Installing KNC30WA 5 3 1 Installation Procedure 1 Run setup exe in KNC30WA on CD ROM 2 Display the install s window and install under the window 3 When install display message of change Autoexec bat file When not change Autoexec bat file change Autoexec bat file yourself under part Add the following lines to AUTOE XE BAT SET BIN30 Install directory BIN 30 SET LIB30 Install dir
29. stem Configuration 8 3 1 FOSE Computer En a nt a a in 9 3 2 M16C 62 Starter K it2 EEN 9 3 3 Remote Debugger K RE O 9 3 4 Compile ae 10 3 5 SM for programming internal Flash memory of M 16C Flash MCU FlashStart 10 Setting UP Hardware 11 4 1 ConnedingE adn AI E 11 Setting UP Software 12 5 1 Operating E Ce UA UE 12 52 Installing K RE VE 13 5 2 1 Installation Proc dure seen 13 522 Starting U pKD3Q irrar arvaaraa Aaa NASAAN E NEEN 13 523 QUITTING K D30 EE 15 5 3 Installing Tode KEEN 15 5 3 1 Installation Pro dure sen 15 5 3 2 Checking Operation of KNC3OWA inner 16 5 4 stalling TM ss rene benne nn te en eat rules 17 541 Installing seieren raa vanesa da K Naaraan EEEE 17 5 4 2 About this product EE 17 5 4 3 About the specification of Entry version ss 17 5 5 Installing FlashStart EE 19 5 5 1 Installation Procdure sen 19 5 5 2 Stating Up FlashStart ss 19 5 5 3 Quitting SE E e 20 5 6 Uninstalling KD E VE 21 Table of Content 5 7 Uninstalling KN C3QWA EE 21 5 8 Uninstalling F lashStart ENEE 21 5 9 Referencing Electronic Manuals ns 21 Usage Precautions 22 6 1 Limitations ON Pin Usage nee 22 62 Limitations on Using M16C 62 Peripheral Fundiomg ENEE 22 6 3 Coution when use the memory expansion Mode 23 6 4 Memory Map ersan a patienter 23 6 5 A limitation item about register oper
30. sts the products induded in the M16C 62 StarterKit2 Table1 1M16C 62 StarterKit2 Product List M3A 0654 G01 G02 wo ooo Serial cable exdusive to M 16C 62 StarterKit2 1pc used to connect M 3A 0654 and the host computer CD ROM 1pc compilor K NC30WA remote debugger K D30 FlashStart S W Monitor Program Sample program Manual A power supply isn t attached to this product Make preparations with the user 1 Contents of Product Package 1 2 CD ROM TheCD ROM contains software products necessary for developing programs and electronic manuals as well Here follow the contents of the CD ROM M16C62 E Engliah J apanese 1 2 1 Software Products CD ROM Following directory is storein English root directry 1 M3A 0654 directory Indude M 3A 0654 manual 2 KD30 directory This directory contains various commands available for KD30 The contents of this directory are listed inTable 1 2 3 KNC30WA directory This directory contains various commands available for KNC30WA The contents of this directory are listed in Table 1 3 4 Flashsta directory This directory contains various commands available for FlashStart The contents of this directory are listed in Table 1 4 5 Program directory This directory contains various commands available for sample program monitor program The contents of this directory are listed in Table 1 5 6 Document directory This directory contains various commands available for Electron
31. test product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Mitsubishi Electric Corporation assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Mitsubishi Electric Corporation by various means including the Mitsubishi Semiconductor home page htto Awww mitsubishichips com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Mitsubishi Electric Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Mitsubishi Electric Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Mitsubishi Electric Corporation is ne
32. tor Program sets dummy function REIT function on Interrupt vector tables that reside in the fixed vector table Table6 3 fixed vector table address E FFFEOSFFFE 35 Interrupt of Undefined Overflow run at UND INTO instruction UND INTO instruction not use in the User s Program 2 Interrupts located in the variable vector table Monitor Program uses interrupt of UART 1 Therefore don t useit with User s Program Interrupt of variablevector table except for UART1 can be used with User s Program 1 When using INTB to set up the variable vector table set OF F900i6 at the addresses software interrupt numbers 19 20 that correspond tothe UART 1 transmit receive interrupts 2 Dong disable interrupts by dearing the flag A Monitor Program use interrupt of UART1 If in interrupt program have disable interrupt time over 260us will occur communication error When this time set flag 1 at top of a interrupt program 3 When using interrupts in your program do not set the Interrupt Priority Level IPL to7 4 Setup interrupt permission in the case of multiplex interrupt treatment in that case step interrupt stops that it may be made in the beginning of each interrupt When changea interrupt control register need to be disable interrupt When be disable interrupt 1 flag 0 can t be STEP command function while disable interrupt check to Capter 6 11 25 6 Usage Precautions 6 7 A limitation item about
33. uble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of non flammable material or iii prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Mitsubishi semiconductor product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Mitsubishi Electric Corporation or a third party Mitsubishi Electric Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Mitsubishi Electric Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for the la
34. ut 2 JP6 RxD Open Short connect extend connector Open connect CN1 UART1 input 2 JP7 TxD Open Short connect extend connector Open connect CN1 Power supply control 1 2pin Short for use CN3 2 3pin Short for use CN1 Open for use target board s power 3 BYTE pin input Short 8bit access external BUS JP9 BYTE Open External memory mode only Open 16bit access external BUS External memory mode only MCU mode input J P10 CNVss Open Short use for change monitor program 4 Open single chip mode Xdn input J P11 P87 Open Short connect extend connector Open used on board sub clock hall only Xcout input J P12 P8 6 Open Short connect extend connector Open used on board sub clock hall only JP8 POWER 2 3 Short 1 1 This pin is short on back side If modify cut line on back side 2 Can t changed If chang can t connect KD30 3 OPEN is to do jumper from to prevent reverse electric currento the connector CN2 due to what is done so and supply a power supply on the board It can be used for the function that a user is optional 41 8 M16C 62 StarterKit2 4 When modify a monitor program it is short When modify a monitor program show it section 7 8 6 4 LED Table 8 9 show LED and port connection about the connection with each LED and port in following Table 8 9 LED and port connection SEGMENT a f b g e C H h
Download Pdf Manuals
Related Search
Related Contents
Siemens SX763 User's Manual Pelco DVR5300 User's Manual Click here to User Manual (pdf.) Argus Camera DC3200 Digital Camera User Manual パル`二一卜@吸入享夜を使 一される患者さんへ ストローチョッパー MEC/MEC-RV 系統・西川線 Zotac ZBOX-CA320NANO-P PC Copyright © All rights reserved.
Failed to retrieve file