Page 2
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...
Page 3
Adobe and Acrobat are registered trademarks of Adobe Systems Incorporated. Preface Thank you for purchasing M16C/62 StarterKit2 G01/G02. This manual describes how to use the hardware and software products included with M16C/62 StarterKit2 G01/G02. The manual consists of the following parts:...
Page 4
Table of Contets 1. Contents of Product Package ......................1 1.1. M16C/62 StarterKit2 Product List ......................1 1.2. CD-ROM ..............................1 1.2.1. Software Products ..........................1 1.2.2. Moniter Program and other programs ....................3 1.2.3. Electronic Manuals ..........................3 1.3. System Requirements ..........................4 2.
Page 5
6. Usage Precautions ........................18 6.1. Limitations on Pin Usage ......................... 18 6.2. Limitations on Using M16C/62 Peripheral Functions ................18 6.3. Coution when use the memory expansion mode ..................19 6.4. Memory Map ............................19 6.5. Status After Reset ............................ 20 6.6.
1. Contents of Product Package This section shows the contents of the M16C/62 StarterKit2`s product package(MSA0654-G01/ G02). When unpacking your M16C/62 StarterKit2, check to see that all products listed below are included. 1.1. M16C/62 StarterKit2 Product List Table 1-1 lists the products included in the M16C/62 StarterKit2.
1. Contents of Product Package 1.2.1. Software Products Following directory is store in English root directry. (1) MSA0654 directory Include MSA0654G01/G02's manual. (2) KD30 directory This directory contains various commands available for KD30. The contents of this directory are listed in Table 1-2. (3) KNC30WA directory This directory contains various commands available for KNC30WA.
Page 8
1. Contents of Product Package Directory Name Content Outline \FlashWR M16CFlash.exe Flash Writting S/W for Monitor program Manula_e.pdf Flash Writer S/W's manual Table 1-4. Contents of FlashWriter Directory Directory Name Content Outline \Acrobat Ar32e301.exe Setup file for Acrobat Reader3.0 Readme.txt Readme Table 1-5.
1. Contents of Product Package 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.”...
Page 10
(1) MSA0654 G01 or G02 (2) Serial Cable ( 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. There is not a guarantee except this.
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 ( MSA0654G01 / G02 ) (3) Serial cable exclusive to the cable debugger (4) Remote debugger KD30...
Microsoft Windows 98 3.2. M16C/62 Starter Kit 2 ( MSA0654 G01/G02 ) The StarterKit2 incorporates the M16C family of Mitsubishi’s 16-bit single-chip microcomputer. ( MSA0654G01 : M30624FGLFP , MSA0654G02 : M30624FGFP ) A debugging monitor program has been written to the microcomputer M16C mounted on the board.
Page 13
3. System Configuration 3.4. Compiler KNC30WA KNC30WA is the C compiler for the M16C family. KNC30WA generates debug 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 64Kbytes.
4. Setting Up Hardware 4. Setting Up Hardware 4.1. Connecting Each Unit MSA0654 G01/G02 connect to each unit. (Figure 4-1) DC Power 8 - 12V (Option) * Check connector Figure 4-1 Connect to each unit...
5. Setting Up Software 5. Setting Up Software 5.1. Operating Environment The software include StarterKit2 run on the host computer under the OS version that are listed respectively in Table 5-1. Table 5-1. Operating Environment Host Computer IBM PC/AT series and its compatible Microsoft Windows 95 , Microsoft Windows 98 486DX4-100 MHz or Pentium 75 MHz or newer recommended Memory...
Before you can start up KD30, you must first set up hardware. For this setup, refer to Section 4, Setting Up Hardware.” To start up KDB30, click [start] - [program] - [MITSUBISHI-TOOL] - [KD30] for Windows 95. When you call up KD30, an Init dialog box (Figure 5.1) appears. Use this dialog box to set the operating environment required for start-up of KD30.
Page 17
5. Setting Up Software When you have finished setting the above, click on the <OK> button in the Init dialog box. If communication between MSA0654G01/G02 and personal computer is performed normally, KD30 starts up automatically and a window like the one shown in Figure 5-2 appears. Figure 5-2.
Page 18
5. Setting Up Software When you click on the <OK> button in this error dialog box, the Init dialog box pops up again. If this error dialog box is displayed, refer to Section 6.13. “Corrective Action when Communication Error Occurs at Start-up KD30's detail operation read KD30's manual.
Page 19
All program versions are displayed as shown below: M16C/60 KNC30 COMPILER V.1.00 Copyright 1988 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.
Page 20
5. Setting Up Software 5.4. Installing FlashWriter 5.4.1. Installation 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 \KDB30 held in the CD-ROM to the directory created in step 1.
Page 21
5. Setting Up Software Detail operation of ID check Window and FlashWriter check FlashWriter's manual. When Figure 5-8 appears , please check to connection between MF_Ten_Nine cable and MSA0654G01/G02 or power on MSA0654G01/G02. Figure 5-8. Connection error Window 5.4.3. Quitting FlashWriter When FlashWriter quit.
5. Setting Up Software 5.5. Uninstalling KD30 To uninstall KD30. appears [start] - [settting] - [control panel] and click <add and move>. Select a <KD30 Ver2.00> in any list , click <add and move>. Appears uninstalling window , uninstall KD30. 5.6.
6. Usage Precautions 6. Usage Precautions This section describes the precautions to be observed when using tMSA0654G01/G02. Always be sure to read this section before you use MSA0654G01/G02. Table 6-1. List of Usage Precautions Item Sections To See Precautions on 6.4, “Memory Map”...
6. Usage Precautions 6.3. Coution when use the memory expansion mode When use the memory expansion mode in use program , get off the below regitance on bord.So whne can't get off the registance, can't use the memory expansion mode. The registance : R12 6.4.
Usage Precautions 6.5. Status After Reset Table 6-2 lists the registers that are initialized by the monitor program when MSA0654G01/G02 is reset. The status of all other registers depends on the microcomputers internal operation performed after a reset. Table 6-2. Initial Register Values after Reset Register Name Initial Value Processor mode register 0...
Page 26
6. Usage Precautions 6.6. Restrictions on Register Operation Table 6-3 lists the restrictions on register operation. If you modify the content of a register which is inhibited against modification, the operation of the monitor program cannot be guaranteed. Table 6-3. Restrictions on Register Operation(1/2) Register Name Restriction Processor mode register 0...
Page 27
6. Usage Precautions Table 6-3. Restrictions on Register Operation(2/2) Register Name Restriction UART1 transmit/receive mode register Don't make changes. UART1 bitt rate generator UART1 transmit/receive control register 0 UART1 transmit/receive control register 1 UART1 interrupt control register 0 UART transmit/receive control register 2 Don't change bits 0, 2, 4, 5, and 6 UART1 transmit buffer register Don't write any data to this register.
Page 28
6. Usage Precautions (2) Interrupts located in the variable vector table The UART1 transmit/receive interrupts are used by the monitor program and cannot be used by a user program. All other interrupts can be used by a user program. (a) When using INTB to set up the variable vector table, set 0FCB6BH at the addresses (software interrupt numbers 19, 20) that correspond to the UART1 transmit/receive interrupts.
6. Usage Precautions 6.10. User Programs Real-time Capability KD30 has two user program execution modes: Sampling Mode and Free-run Mode. In Sampling Mode, the monitor program periodically monitors the user programs execution status to detect stoppage of the user program caused by a break, etc. For this reason, the monitor program requests an interrupt during user program execution.
Page 30
6. Usage Precautions (2) INT instructions From the INT instruction, you cannot successively step through the internal processing of the INT instruction. Figure 6-3. Example of operation when INT instruction is STEP INT #3 <- STEP Skipped over when STEP is executed. JMP MAIN INT_3: <- Address at which program execution ought to stop.
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. < Exsample> FCLR I ; Disable interrupt #00H , 0055H ; Change Timer Interrupt 1 STEP command go to enable interrupt...
Page 32
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 program is made to go wild by the user 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 close it.
Page 33
7. How to Repair The Moniter Program 7. How to Repair The Monitor Program 7.1. How to repair When change a MSA0654G01/G02's clock , must to repair the monitor program. This chapter is how to repair the monitor program. Follow the procedure described below to correct the monitor program. (1) Short the CNVSS pin (shown below) on the MSA0654.
7. How to Repair The Moniter Program 7.2. Modify files If changed MSA0654G01/G02's clock frequency, need to change baud rate settings of the monitor program and set up the wait cycles for write to the flash memory and the divide-by value. Show modify files at table 7-1.
Page 35
7. How to Repair The Moniter Program FILE : F_ram8.a30 line program 35 ;--------------------------------------------------------------------**** 36 ; Setting up wait cycles for write to flash memory 37 ;--------------------------------------------------------------------**** 38 ; If you changed the resonator, you need to change the 39 ; operation frequency for write to flash memory.
Page 36
7. How to Repair The Moniter Program FILE : f_ram8.a30 line program 153 ;-------------------------------------------------------------------**** 154 ; Setting up wait cycles for write to flash memory 155 ;-------------------------------------------------------------------**** 156 ; If you changed the resonator, you need to change the 157 ; operation frequency for write to flash memory.
8. MSA0654 G01/G02 8.3. Environment Requirements Table 8-4 lists environment requirements for using and storing MSA0654 G01/G02. When storing MSA0654 G01/G02, 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.
Page 40
8. MSA0654 G01/G02 8.5. Memory Map Figure 8-3 shows a memory map of MSA0654 G01/G02. Use of a user area (RAM 19.8KB,FlashROM 239.4KB). 00000h 00400h User RAM area 19.4KB 20KB 05300h 053FFh Monitor program area 256Byte C0000h User program User fixed vector table area 239.4KB 512 Byte...
Page 41
8. MSA0654 G01/G02 8.6. Using MSA0654 MSA0654 G01/G02 has 12jumper(JP1 to JP5 and 2-3 pin of JP8 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 MSA0654 G01/G02.
Page 42
8. MSA0654 G01/G02 8.6.1. Connect Requirements Table 8-5 connector requirements and Table 8-6 CN2 connector Pin assign and Table 8-7 CN4 connector Pin assign of MSA0654 G01/G02. note) Connect nothing with 31,32pin. When it is not KD308 normal connected. Table 8-5 connector requirements Connect No Connect No NETWORK CONNECT...
Page 43
8. MSA0654 G01/G02 Table 8-7 CN4 connector Pin assign SIGNAL SIGNAL CN4A PINNo SIGNAL CN4B PINNo CN4C PINNo ADTRG A B C VREF AVCC P10_2 P10_1 AVSS P10_5 P10_4 P10_3 LED1,2 P10_7 P10_6 LED1,2 LED1,2 LED1,2 LED1,2 LED1,2 LED1,2 P1_1 P1_0 LED1,2 P1_4...
Page 44
8. MSA0654 G01/G02 8.6.2. JUMPER SET Table 8-8 jumper setting MSA0654 G01/G02. Table 8-8 jumper setting JUMPER No Default mode FUNCTION A-D0 input 1-2 Short *) 1-2 Short : connect VARIABLE RESISTANCE (AN0) 2-3 Short : connect Extend connector A-D analogue input terminal 1-2 Short *) 1-2 Short : connect MCU's Vcc...
Page 45
8. MSA0654 G01/G02 *) This pin is short on back side. If modify , cut line on back side. **) Can't changed. If chang , can not connect KD30. ***) 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.
Page 46
8. MSA0654 G01/G02 8.6.4. switch Table 8-10 show switch, INT0,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.
Page 47
M16C/62 StarterKit2 USER'S MANUAL Rev.B Mar. 1999 1st version Jul. 1999 2nd version Editioned by Mitsubishi Electoric Semiconductor Systems Corporation Published by Mitsubishi Electoric Semiconductor Systems Corporation This book, or parts thereof, may not be reproduced in any form without permission of Mitsubishi Electric Corporation.
Need help?
Do you have a question about the M16C/62 StarterKit2 and is the answer not in the manual?
Questions and answers