REJ10J0822-0100Z M37544 StarterKit User’s Manual RENESAS SINGLE-CHIP MICROCOMPUTER 740 Family 740 Series Rev.1.00 Revision Date : Nov 26, 2004 Renesas Soluctions Corp. www.renesas.
Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage.
Microsoft, MS, and MS-DOS are registered trademarks of Microsoft Corporation of the U.S. Windows is a trademark 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 Incorporated. Preface Thank you for purchasing Renesas’s M37544 StarterKit.
Table of Contents Table of Contents 1. Product Concept 4 1.1. Product contents.................................................................................................................4 1.2. Operating environment.......................................................................................................5 1.3. CPU board ..........................................................................................................................5 1.4. CD-ROM ...........................
Table of Contents 4.3.4. Exiting KD38 ..............................................................................................................44 4.3.5. Other ways of use......................................................................................................45 5. Limitations 5.1. 5.2. 46 Assembler limitations........................................................................................................46 5.1.1. Limitations between linker (LINK74M) and assembler (SRA74M).
Table of Contents 7.3. Refer to Electoric Manual .................................................................................................
1. Product Concept 1. Product Concept This chapter describes the product contents of the M37544 StarterKit. When unpacking the M37544 StarterKit, check to see that all products listed below are included. 1.1. Product contents Table 1-1 lists the products included in the M37544 StarterKit.
1. Product Concept 1.2. Operating environment Each software supplied with the M37544 StarterKit operates on the host computer and under the OS version that are listed respectively in Table 1-2. Table 1-2 Operating Environment Host Computer IBM PC/AT series or its compatible machine with USB1.1 OS Microsoft Windows 98SE / ME / 2000 / XP CPU PentiumIII 600MHz or newer Memory 128 Mbytes or above 1.3.
1. Product Concept 1.4. CD-ROM The CD-ROM contains necessary software products for developing program and electronic manuals as well. The contents of the CD-ROM are shown as below.
1. Product Concept | |- RNOTE Manual on KD38 | |-APPLICATION NOTE File on application note 1.5. System requirements In addition to the products listed below, prepare the following equipments before you use.
2.Product Specification 2. Product Specification 2.1. Assembler The assembler included with this product is the M3T-SRA74M. The M3T-SRA74M generates debug information files from the assembly language source program. Compared to the M3T-SRA74 regular version of assembler, the M3T-SRA74M is functionally limited to some extent. Refer to 5.Limitations for functional limitations. 2.2.
3.Installing Software 3. Installing Software 3.1. How to install KD38, assembler and TM 3.1.1. How to install assembler 1)Before installing software, note the following points. • When installing the assembler (M3T-SRA74M) and installing this product to a computer in which M3T-SRA74 have been already installed, do not install this product.
3.Installing Software 3)The following describes the installation procedure of the M3T-SRA74M. When executing Setup.exe, the following screen will be displayed. Click “Next”. 4)Only when you agree with license agreement, click “Yes”.
3.Installing Software 5)Enter in items and click “Next”. 6)Enter in items and click “Next”.
3.Installing Software 7)Enter in items and click “Next”. 8)Enter in items and click “Next”.
3.Installing Software 9)Verify the contents completely and click “Next”. 10)Select a folder to be installed and click “Next”.
3.Installing Software 11)Select an option and click “Next”. 12)Click “Yes”. 13)Click “OK”. 14)Installation has been completed.
3.Installing Software 3.1.2. How to uninstall assembler To uninstall the software, select “Start” - “Setting” - “Control Panel” and click “Add/Remove Application”. When uninstalling the M3T-SRA74M, select “SRA74M V.x.xx” from the program list and click “Add/Remove Application”. The uninstall window will appear and the M3T-SRA74M will be uninstalled.
3.Installing Software 3.1.3. How to install TM 1)Note the following points before installing When installing the TM 3.20A Release1 and installing this product to the computer in which the TM has been already installed, install this product after checking the version. 2)Installing • Double-click \English\TM\W95E\setup.exe on the CD-ROM. • No file names including space characters can be specified as “Destination Directory”. • Only 1 (.) for file names can be used. • No network path names can be used.
3.Installing Software 6)Only when you agree with license agreement, click “Yes”. 7)Enter in items and click “Next”.
3.Installing Software 8)Enter in items and click “Next”. 9)Enter in items and click “Next”.
3.Installing Software 10)Enter in items and click “Next”. 11)Verify the contents completely and click “Next”.
3.Installing Software 10)Select a folder to be installed and click “Next”. 13)Click “Yes”. 14)Click “OK”.
3.Installing Software 15)Click “OK”. 16)Click “Finish”. 17)Installation has been completed.
3.Installing Software 3.1.4. How to uninstall TM To uninstall the software, select “Start” - “Setting” - “Control Panel” and click “Add/Remove Application”. When uninstalling the TM, select “TM V.x.xx” from the program list and click “Add/Remove Application”. The uninstall window will appear and the TM will be uninstalled.
3.Installing Software 3.1.5. How to install KD38 1)Installing Double-click \English\KD38\W95E\setup.exe on the CD-ROM 2)The following describes the installation procedure. Click “Next”. 3)Only when you agree with license agreement, click “Yes”.
3.Installing Software 4)Select a folder to be installed and click “Next”. 5)Click “Yes”. 6)Installation has been completed. 3.1.6. How to uninstall KD38 To uninstall the software, select “Start” - “Setting” - “Control Panel” and click “Add/Remove Application”. When uninstalling the KD38, select “KD38 V.x.xx” from the program list and click “Add/Remove Application”. The uninstall window will appear and the KD38 will be uninstalled.
3.Installing Software 3.2. Recognizing FoUSB and installing USB driver Recognize the FoUSB and install the USB driver by connecting the FoUSB to the host computer. 1)Copy the USB Drivers folder in \ENGLISH\KD38 on the CD-ROM to the hard disc in the host computer. This manual describes the situation when the USB Drivers folder on the C drive is copied. 2)Remove the FoUSB cover and ensure the FoUSB is set as follows before connecting the FoUSB. When the FoUSB is not set as follows, modify the setting.
3.Installing Software NOTES: The USB driver (USB Drives folder) copied into the C drive is designated to recognize the FoUSB. This manual describes recognition of the FoUSB and how to install the USB driver in Windows XP and Windows 98SE. Note that designation mean of the USB driver varies depending on the operation system to be used. 4)When connecting the FoUSB to the host computer, Windows detects new hardware. Select “Install from a list or specific location (Advanced)” and click “Next”.
3.Installing Software 5)Select “Search for the best driver in these locations”. Check “Include this location in the serach” and designate the driver in which the USB folder is included. “C:\USB Drivers” is selected here. Once the folder can be designated, click “Next”.
3.Installing Software 6)Although a warning screen shown below is displayed from Windows, click “Continue”. NOTES: Microsoft has advocated authentication of the USB drivers to the USB vendors in the Microsoft® Windows® XP and Windows®-based operating systems released after Microsoft® Windows® XP. This is aimed at elimination of illegal drivers and improvement of host computer (PC). Renesas USB Drivers are not authenticated by Microsoft, but we provide them baased on the sufficient examination.
3.Installing Software 4)When connecting the FoUSB to the host computer, Windows detects new hardware. and click “Next”. 5)Select “Search for the best driver for your device (Recommended)” and click “Next”.
3.Installing Software 6)Select “Specify a location” and designate the driver in which the USB folder is included. “C:\USB Drivers” is selected here. Once the folder can be designated, click “Next”. 7)Click “Next”.
3.Installing Software 8)Finally, click “Finish”. Recognition of the FoUSB and installing the USB driver in Windows 98SE have been completed.
4.Using 4. Using 4.1. Using 4.1.1. Before starting TM Ensure the host computer and CPU board are firmly connected. (Refer to Figure 4-1 Connection Diagram of CPU board.) Turn the power mode switch of RTA-FoUSB-MON to USB side.
4.Using 4.1.2. Assembling with TM 1)This sub-section describes how to use the TM easily with a sample program attached to the CD-ROM as an example. Refer to the TM user’s manual for how to use the TM. It is possible to browse the TM user’s manual in order of “Start” - “Program” “RENESAS-TOOLS” - “TM V.x.xx” - “TM user’s manual”. 2)Copy the sample program (\English\M3A7535\PROGRAM) included CD-ROM to the rewritable drive such as a hard-disc.
4.Using 4)Create a new project When clicking (1) of Figure 4-2, a new project screen of Figure 4-3 will be displayed. Figure 4-3 Screen of New Project Step 1 5)Select “740 Family” for a target chip on Figure 4-3. Enter a project name to anywhere. Designate a directory which copied a sample program for a working directory and click “Next”.
4.Using 6)Select a project kind on Figure 4-4. The sample program is created by the assembler. Select “ASM Project“ and click “Next”. Figure 4-4 Screen of New Project Step 2 7)Designate a compiler package on Figure 4-5.
4.Using 8)A screen of Figure 4-6 is displayed and the project will be finished. Figure 4-6 Screen of New Project Step-Finish 9)Open a project editor. Add a source program and set an assembler option. Click (2) of Figure 4-2, the project editor will be displayed.
4.Using 10)When double-clicking “all” marked with a red circle in Figure 4-7, “Sample hex” will be displayed. Add a source program. Select “Project” - “Edit Item” - “Add File” while selecting “Sample.hex” 11)A source program will be open. (Example : Open “C: \sample\sample.a74”) 12)Perform assembling finally. Click (3) of Figure 4-2 (Build button).
4.Using 4.2. How to use KD38 4.2.1. Before starting KD38 1)Ensure the KD38 is installed. 2)Ensure a computer and the CPU board are connected (Refer to Figure 4-8 Connection Diagram of CPU board). 3)Ensure the power is supplied to the CPU board.
4.Using 4.2.2. Starting KD38 1)Click “Start” - “Program” - “RENESAS-TOOLS” - “KD38 V.x.xx" - “KD38" from the start menu to start the KD38. When the KD38 starts, the INIT screen of the KD38 which is shown in Figure 4-9 will be open. When a window is open, click “Refer” and select the target MCU. Click! Figure 4-9 INIT Screen 1 of KD38 2)Next, Figure 4-10 will be open. Select “M37544STK.MCU” on the target MCU.
4.Using 3)When selecting the target MCU, the INIT screen of KD38 in Figure 4-11. Click “OK”. Do not check here!! Figure 4-11 INIT Screen 2 of KD38 4)When a normal communication is performed, KD38 on Figure 4-12 will be open.
4.Using 4.2.3. When communication error occurs When a communication error occurs, an error window of Figure 4-13 will be displayed. Click “OK” and check the following points. Check 1 : Ensure the power is supplied to the CPU board. Check 2 : Ensure the power supply of the FoUSB is not specified as TARGET. Check 3 : Ensure the USB_cable, FoUSB, User_Cable and CPU board are connected. Figure 4-13 Example of Communication Error Window Supply the power again and restart the KD38 after checking all. 4.3.
4.Using 2)When the download completes, the program downloaded to ”Program window” will be displayed.
4.Using 4.3.2. Executing program When the download completes, the KD38 screen will be displayed as Figure 4-16. Press the “GO” button on the KD38 screen to execute the sample program.
4.Using 4.3.3. Stopping program Next, press the “STOP” button on the KD38 screen to stop the executed sample program. And the sample program will stop. STOP Button Figure 4-17 During Executing a Program 4.3.4. Exiting KD38 1)Stop the sample program before exiting the KD38 2)Select “File” - “Exit” of the KD38. Since Figure 4-18 is open when selecting the “Exit” menu, click “OK”. When clicking “Cancel”, the KD38 will not be exited.
4.Using 4.3.5. Other ways of use The KD38 contains abundant functions. Browse “Start” - “Program” - “RENESAS-TOOLS” - “KD38 V.x.xx” - “KD38 Help” from the start menu for details of how to use the KD38.
5.Limitations 5. Limitations 5.1. Assembler limitations 5.1.1. Limitations between linker ( LINK74M ) and assembler ( SRA74M ) The attached user’s manual is described about an assembler (SRA74). The following SRA74M spec is different from SRA74. 1)The structured language cannot be used. 2)Macro commands cannot be used. 3)An object file can link to three. 4)An assembler command option can use only -C, -L, -LS and -S. 5)The assembler (SRA74M) and linker (LINK74M) are provided. 5.1.2.
5.Limitations 2)When a line with 255 or more characters exists in 1 source file, the assembly of the line is not sometimes performed right. In this case, an error occurs in the SRA74M or LINK74M. Except for the line only of the comment, make the maximum number of characters with 1 line 255 digits or below.
5.Limitations 5.2. Limitations on KD38 5.2.1. Monitor program The MCU on the CPU board incorporates a monitor program. There are some following precautions when operating the KD38 with this monitor program. Refer to “5.4 Limitations on user's program”. 1) Do not perform the step operation and break to the process of the user stack setting. Set the the stack setting process to interrupt disable status. (I flag =1) 2) Reset a stack pointer to $00FF for a monitor program.
5.Limitations 5.2.3. Limitations on watchdog timer A monitor program does not reset a watchdog timer. When using a watchdog timer, close the RAM monitor window and watch window in advance before executing. Do not generate a memory access by the debugger during executing the user's program. 5.2.4. Oscillation stop detection function When starting a reset by the oscillation stop detection, the monitor program operates and may rewrite the user memory. Do not use the oscillation stop detection function. 5.3.
5.Limitations 5.4. Limitations on user's program 5.4.1. Allocate user's program A MCU address map for the StarterKit is shown in Table 5-2. Allocate the user's program to the RAM2 area. Special page addressing mode cannot be used. Allocate the interrupt vector to the address in Table 5-1. Table 5-2 MCU Address Map for StaterKit Name Address Memory Enabled/Disabled Limitation SFR Area (Zero Page) 000016 to 003F16 RAM Enabled NOTE) Refer to Table 5-3.
5.Limitations 5.4.3. Limitations when creating user's program 1)When setting a stack pointer in the user's program, set to interrupt disable status (I flag=1). 2)A monitor program uses the 5-byte user stack. Leave 5-byte memory of the user stack for the monitor program. 3)Do not perform read or write to the reserved area of SFR in the 7544 group. 4)Do not modify the bit 6 in the interrupt control register 2. Also, set the bit 6 to “1” when modifying this register. 5.5.
6.Frequently Asked Questions 6. Frequently Asked Questions 6.1. A communication error occurs at startup. When a communication error occurs at startup, check the following contents. 1)Ensure the USB_cable and user cable connected. 2)Ensure the power is supplied to the CPU board when using the external power. 6.2. A communication error occurs during debugging. When a communication error occurs during debugging, check the following contents.
7.Appendix 7. Appendix 7.1. CPU board 7.1.1. Component of CPU board Figure 7-1 shows the component of the CPU board.
7.Appendix 7.1.2.CPU board Specification Table 7-1 lists the specification of the CPU board.
7.Appendix 7.1.4. Connector Specification Figure 7-2 shows the pin assignment of CN2. Pin No.1 Connector Type HIF3FC-10PA-2.
7.Appendix 7.1.5. Parts Assignments The CPU board contains 3 LEDs, 3 switches and 1 buzzer. Also, it contains the through hole for external output. Figure 7-3 shows the parts assignment.
7.Appendix 7.1.6. Block Diagram Figure 7-4 shows the block diagram of the CPU board.
7.Appendix 7.1.7.Memory Map Figure 7-5 shows a memory map of the Renesas 8-bit single-chip MCU M37594G2 which the CPU board incorporates. The user enabled area is (SFR RAM1 256 B, RAM2 8KB).
7.Appendix 7.1.8. MCU for StarterKit The CPU board incorporates the MCU M37594G2 of Renesas 8-bit single-chip MCU 7544 Group emulator. The electrical characteristics of the M37594G2 is equivalent to the ones of the M37544G2 Figure 7-6 shows the pin assignment of the M37594G2. Sine a monitor uses No. 25 to 28 pin, the user cannot use them.
7.Appendix 7.1.9. I/O Port Setting (1)LED The LED2 to 4 are connected to the programmable I/O port. They can be lighted by a program. Table 7-3 LED Pin LED PORT Pin No LED2 P30 19 LED3 P31 20 LED4 P32 21 (2)Switch The [SW2] and [SW3] are switches connected to the P34/INT1 and P37/INT0 pins in the MCU. The [SW1] is a switch connected to the RESET input pin in the MCU. The user can use each switch for any function. The connection with each switch and the input pin are as follows.
7.Appendix 7.2. The Updated Information of M37544 StarterKit Regarding supports for this product, no supports are provided at all. If there is any concern or suggestion about this product or anything that you noticed in use, please send your opinions to the mail address shown below. Your opinions will be reflected in the examination of future improvements. Please note that all mails may not be able to be replied. csc@renesas.com 7.3.
REVISION HISTORY Rev. Description Date Page 1.00 2004.11.
M37544 StarterKit User’s Manual Publication Date Rev.1.00 November 26, 2004 Published by: Renesas Soluctions Corp. 4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan ©2004 Renesas Technology Corp. and Renesas Solutions Corp., All Rights Reserved. Printed in Japan.
M37544 StarterKit User’s Manual Renesas Soluctions Corp.