NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
EASE64158 MSM64153 POD64158 MSM64E153 MSM64152 MSM64155 MSM64158 MSM6415X - Datasheet Archive
Program Development Support for the MSM64153 Family User's Manual Rev. 1.01 May. 1994 OKI NOTICE 1. The information contained
EASE64158 EASE64158 Program Development Support for the MSM64153 MSM64153 Family User's Manual Rev. 1.01 May. 1994 OKI NOTICE 1. The information contained herein can change without notice owing to product and/or technical improvements. Please make sure before using the product that the information you are referring to is up to date. 2. The outline of action and examples of application circuits described herein have been chosen as an explanation of the standard action and performance of the product. When you actually plan to use the product, ensure that external conditions are reflected in the actual circuit and assembling designs. 3. NO RESPONSIBILITY IS ASSUMED BY US FOR ANY CONSEQUENCE RESULTING FROM ANY WRONG OR IMPROPER USE OR OPERATION, ETC. OF THE PRODUCT. 4. Neither indemnity against nor license of a third party's industrial and intellectual property right, etc. is granted by us in connection with the use of the product and/or the information and drawings contained herein. No responsibility is assumed by us for any infringement of a third party's right which may result from the use thereof. 5. The product described herein falls within the category of strategic goods, etc. under the Foreign Exchange and Foreign Trade Control Law. Accordingly, before exporting the product or any part thereof, you are required under the law to file an application for an export license by your domestic government. 6. Although we endeavor to ensure that the information contained herein is accurate and reliable, we welcome your comments and suggestions addressed to the following: 1st Sales Engineering Section Product Development Department Logic LSI Division Electronic Devices Group OKI ELECTRIC INDUSTRY CO., LTD. 7-5-25 Nishi-Shinjuku, Shinjuku-ku Tokyo 160 JAPAN Phone: 81-3-5386-8137 (direct line) 7. No part of the contents contained herein may be reprinted or reproduced without our prior permission. 8. MS-DOS is a registered trademark of Microsoft Corporation. Copyright 1994 OKI ELECTRIC INDUSTRY CO., LTD. i PREFACE This manual explains the operation of the EASE64158 EASE64158 in-circuit emulator for Oki Electric's MSM64153 MSM64153 family of CMOS 4-bit microcontrollers. The EASE64158 EASE64158 is configured from the POD64158 POD64158 evaluation module and the EASE-LP2 special-purpose control system. The MSM64153 MSM64153 family is all 4-bit microcontrollers that incorporate and provide all functions included in the MSM64E153 MSM64E153 evaluator chip, which was designed for the emulator. This family currently includes four devices: · · · · MSM64152 MSM64152 MSM64153 MSM64153 MSM64155 MSM64155 MSM64158 MSM64158 The following are related manuals: · MSM6415X MSM6415X User's Manual - MSM6415X MSM6415X hardware description - MSM6415X MSM6415X instruction set description - Addressing description · ASM64K ASM64K Cross-Assembler User's Manual - ASM64K ASM64K assembler operation description - ASM64K ASM64K assembly language description ! ii MSM6415X MSM6415X User's Manual is the user's manual corresponds to one of the MSM64153 MSM64153 family microcontroller that has been specified by customer. TABLE OF CONTENTS Chapter 0. Before Starting .0-1 0.1 Confirm Shipping Contents (1) .0-3 Confirm Shipping Contents (2) .0-4 0.2 Confirm Floppy Disk Contents.0-9 0.2.1 Host Computer .0-9 0.2.2 Operating System.0-9 0.2.3 Floppy Disk Contents .0-10 Chapter 1. Overview .1-1 1.1 EASE64158 EASE64158 Emulator Configuration .1-2 1.1.1 Control System (EASE-LP2) .1-2 1.1.2 POD64158 POD64158 Evaluation Module .1-3 1.1.3 ASM64K ASM64K Cross-Assembler.1-3 1.1.4 SID64K SID64K Symbolic Debugger.1-4 1.1.5 System Configuration .1-4 1.2 EASE64158 EASE64158 Parts and Functions.1-6 1.2.1. Control System (EASE-LP2) .1-6 1.2.2. POD64158 POD64158 Emulation Module.1-7 1.3 Program Development With EASE64158 EASE64158.1-8 1.3.1. General Program Development and EASE64158 EASE64158 .1-8 1.3.2. From Source File To Object File .1-9 1.3.3. Files Usable With the EASE64158 EASE64158 Emulator .1-10 Chapter 2. EASE64158 EASE64158 Emulator .2-1 2.1 EASE64158 EASE64158 Functions .2-3 2.1.1 Overview .2-3 2.1.2 Changing the Target Chip .2-6 2.1.3 Data Memory Space.2-7 2.1.4 Code Memory (Program Memory) Space .2-7 2.1.5 Emulation Functions.2-7 2.1.6 Realtime Trace Functions .2-9 2.1.7 Break Functions .2-12 2.1.8 Performance/Coverage Functions.2-16 2.1.9 Probe Cable Functions.2-17 2.1.10 EPROM Programmer .2-18 2.1.11 Symbolic Debugging Functions.2-19 2.1.12 Assemble Command and Disassemble Command.2-20 2.2 EASE64158 EASE64158 Emulator Initialization.2-21 2.2.1 Setting Operating Frequency .2-21 2.2.2 EASE64158 EASE64158 Switch Settings .2-25 2.2.3 Confirming EASE-LP2 Power Supply Voltage .2-29 2.2.4 Changing the Chip Select EPROM and Dipswitches .2-30 2.2.5 A/D Board.2-33 2.2.6 Starting the EASE64158 EASE64158 Emulator .2-34 2.2.6.1 Starting the EASE64158 EASE64158 in EASE-LP mode .2-34 2.2.6.2 Starting the POD64158 POD64158 in POD mode.2-49 2.3 SID64K SID64K Debugger Commands.2-54 2.3.1 Debugger Command Syntax .2-54 2.3.1.1 Character Set .2-56 2.3.1.2 Command Format .2-57 2.3.1.3 Command Summary .2-59 2.3.2 Symbolic Input (Definition of Expressions).2-76 2.3.3 History Functions.2-80 iii 2.3.4 Special Keys For Raising Command Input Efficiency .2-82 Chapter 3. SID64K SID64K Commands .3-1 3.1 SID64K SID64K Commands .3-2 3.1.1 Command Details .3-2 3.1.1.1 Evaluation Chip Access Commands.3-3 3.1.1.1.1 Displaying/Changing Registers and SFR .3-4 3.1.1.1.2 Display Registration of Registers and SFR .3-17 3.1.1.1.3 Display/Change the PC (Program Ccounter) .3-18 3.1.1.2 Code Memory Commands .3-19 3.1.1.2.1 Displaying/Changing Code Memory Data .3-20 3.1.1.2.2 Expanding the Memory Area.3-25 3.1.1.2.3 Comparing/Moving Code Memory.3-27 3.1.1.2.4 Load/Save/Verify .3-28 3.1.1.2.5 Assemble/Disassemble Commands.3-37 3.1.1.3 Data Memory Commands .3-45 3.1.1.3.1 Displaying/Changing Data Memory.3-46 3.1.1.3.2 Moving Between Data Memory .3.50 3.1.1.4 Emulation Commands.3-53 3.1.1.4.1 Step Command .3-54 3.1.1.4.2 Realtime Emulation Command.3-59 3.1.1.4.3 Commands Usable During Emulation .3-65 3.1.1.5 Break Commands .3-69 3.1.1.5.1 Setting Break Conditions.3-70 3.1.1.5.2 Setting Breaks on Executed Addresses .3-73 3.1.1.5.3 Displaying Break Results .3-77 3.1.1.6 Trace Commands .3-79 3.1.1.6.1 Displaying Trace Memory.3-80 3.1.1.6.2 Displaying/Changing Trace Contents.3-89 3.1.1.6.3 Setting/Displaying Trace Triggers .3-92 3.1.1.6.4 Displaying/Changing Trace Enable Bits .3-97 3.1.1.6.5 Displaying/Clearing the Trace Pointer.3-101 3.1.1.6.6 Searching Trace Memory .3-103 3.1.1.7 Reset Commands .3-105 3.1.1.8 Performance/Coverage Commands .3-109 3.1.1.8.1 Measuring Execution Time.3-110 3.1.1.8.2 Monitoring Executed Code Memory .3-118 3.1.1.8.3 Counting Execution Addresses .3-121 3.1.1.9 EPROM Programming Commands.3-123 3.1.1.9.1 Setting EPROM Type .3-124 3.1.1.9.2 Writing to EPROM .3-126 3.1.1.9.3 Reading from EPROM.3-128 3.1.1.9.4 Comparing EPROM and Program Memory.3-130 3.1.1.10 Commands for Automatic Command Execution .3-133 3.1.1.11 Commands for Displaying/Changing/Removing Symbols .3-137 3.1.1.11.1 Displaying Symbols .3-138 3.1.1.11.2 Changing Symbols .3-140 3.1.1.11.3 Removing Symbols .3-142 3.1.1.12 Other Commands.3-143 3.1.1.12.1 Saving CRT Contents.3-144 3.1.1.12.2 SH (Shell) Command .3-146 3.1.1.12.3 Changing the Radix of Input Data .3-148 3.1.1.12.4 Registering/Executing Commands .3-149 3.1.1.12.5 Terminating the SID64K SID64K Debugger .3-153 iv Chapter 4. Debugging Notes.4-1 4.1 Debugging Notes.4-2 4.1.1 Tracing .4-2 4.1.2 Resets .4-2 4.1.3 User Cables.4-3 4.1.4 Cycle Counter Overflow Breaks .4-3 4.1.5 EPROM Programmer .4-4 4.1.6 DASM Command .4-4 4.1.7 Break .4-4 4.1.8 Probe Cable .4-5 4.1.9 Operating Clock.4-5 4.1.10 LCD Driver.4-5 4.2 EASE64158 EASE64158 Timing .4-6 Chapter 5. Assemble Command.5-1 5.1 Address Space .5-2 5.2 Segments .5-3 5.3 Symbol Table .5-3 5.4 Assembly Language Format .5-4 5.4.1 Character Set .5-4 5.4.2 Statement Format.5-4 (1) Label Field .5-4 (2) Instruction Field.5-4 (3) Operand Field .5-5 (4) Comment Field.5-5 5.4.3 Symbols.5-5 5.4.3.1 Reserved Symbols .5-5 (1) Special Assembler Symbols.5-5 (2) Data Address Symbols.5-5 (3) Code Address Symbols.5-6 5.4.3.2 User-Defined Symbols .5-6 (1) Character Set Usable In Symbols .5-6 5.4.3.3 Location Counter Symbol .5-6 5.4.4 Constants .5-7 5.4.4.1 Integer Constants .5-7 5.4.4.2 Character Constants .5-7 5.4.4.3 String Constants.5-8 5.4.5 Expressions.5-9 5.4.5.1 General Format of Expressions.5-9 5.4.5.2 Operators .5-9 (1) Arithmetic Operators .5-9 (2) Bitwise Logical Operators .5-10 (3) Relational Operators .5-10 5.4.5.3 Operator Precedence .5-10 5.4.5.4 Segment Type Attributes In Expression Evaluation .5-11 5.4.6 Addressing Modes.5-12 5.5 Basic Instructions .5-12 5.6 Directives.5-13 5.6.1 Symbol Definition Directives.5-13 5.6.1.1 EQU.5-13 5.6.1.2 SET .5-14 5.6.1.3 CODE .5-14 5.6.1.4 DATA.5-15 5.6.2 Memory Segment Control Directives.5-16 5.6.2.1 CSEG .5-16 5.6.2.2 DSEG .5-17 v 5.6.3 5.6.4 5.6.5 Appendix A.1 A.2 A.3 A.4 A.5 A.6 A.7 A.8 A.9 A.10 A.11 A.12 vi Location Counter Control Directives.5-18 5.6.3.1 ORG .5-18 5.6.3.2 DS .5-19 5.6.3.3 NSE .5-20 Data Definition Directives .5-21 5.6.4.1 DB .5-21 5.6.4.2 DW .5-22 Assembler Control Directives .5-23 5.6.5.1 END.5-23 User Cable Configuration .A-2 Pin Layout of User Cable Connectors .A-4 RS232C RS232C Cable Configuration .A-8 Emulator RS232C RS232C Interface Circuit .A-10 If EASE64158 EASE64158 Won't Start .A-11 If POD64158 POD64158 Isn't Operating Correctly.A-13 User Cable Peripheral Circuit.A-15 Probe Cable Configuration .A-16 Mounting EASE-LP2 EPROMs .A-18 Mounting POD64158 POD64158 EPROMs.A-20 Mounting the POD64158 POD64158 Evaluation Chip.A-22 Error Messages .A-24 EASE-LP2 External Views (1) 90 mm 333 mm Front View Power Supply Switch EPROM Programmer POWER EPROM PIN 1 POWER RUN ERROR POWER DOWN POD 222 mm Power Indicator Run Indicator Error Indicator Power Down Indicator POD Indicator ON OFF EASE-LP2 OKI Top View vii EASE-LP2 External Views (2) RS232C RS232C Connector RESET SW1 Reset Button OFF XON/XOFF ON DTR/DSR PROBE : CN1 Probe Cable Connector CN2 : : Left View Right View viii SW1 19200 9600 4800 2400 FLOW RS232C RS232C Interface Cable Connectors EASE-LP2 External Views (3) AC Power Supply Connector AC100 AC100240 Rear View ix PIN 1 x SW4 A/D MSM64E153 MSM64E153 Top View EXT INT 3.0 V POD64158 POD64158 32 mm DC5V + EPROM OKI 165 mm SW3 . . . . . . . . . 1.5 V POD64158 POD64158 External Views (1) 190 mm DC Jack DC Power Jack Front View EPROM Socket EVA Socket POWER DOWN POWER PIN 1 POD64158 POD64158 External Views (2) User Cable Connectors . . . . USRCN1 USRCN2 Left View Interface Connectors . . . . CN1 CN2 Right View xi POD64158 POD64158 External Views (3) ICE POD SW2 512 64/128 256 SW1 Rear View xii X'tal Explanation of Symbols ! Indicates a supplemental explanation of particular importance that relates to the topic of the current text. Example Indicates a specific example of the topic of the current text. SEE Indicates a section number or page number to reference for related information on the topic of the current text. ( 1) Indicates the number of a footnote with a supplemental explanation of particular words in the current text. 1 Indicates a footnote with a supplemental explanation of words marked with the above-described symbol. The numbers following each symbol correspond to each other. xiii Chapter 0, Before Starting Chapter 0 Before Starting This chapter describes the first things you should do after taking delivery of an EASE64158 EASE64158 program development support system. Read This First 0-1 Chapter 0, Before Starting Thank you for buying Oki Electric's EASE64158 EASE64158 program development support system. When your system was shipped we made every effort to ensure that it would not be damaged or mispacked, but we recommend that you confirm once more that this did not occur following the explanations in this chapter. The RS232C RS232C cable, floppy disks, or other items may differ depending on the model of host computer that you will use. Use with a different model could cause damage to the hardware, so please take particular care to avoid this. If the system shipped to you was damaged, if any components were missing, or if your host computer model is different, the please contact the dealer from whom you purchased the system or Oki Electric's sales department. 0-2 Read This First Chapter 0, Before Starting 0-1. Confirm Shipping Contents (1) SOFTWARE DOCUMENTATION 2 Floppy Disks: ASM64K ASM64K SID64K SID64K ASM64K ASM64K Customer Registration Postcard SID64K SID64K Test Result Charts 2 Manuals: ASM64K ASM64K Cross-Assembler User's Manual EASE64158 EASE64158 User's Manual EASE64158 EASE64158 Component List ASM64K ASM64K EASE64158 EASE64158 CROSSASSEMBLER USER'S MANUAL USER'S MANUAL HARDWARE EASE64158 EASE64158 EASE-LP2 OKI POD64158 POD64158 OKI EASE-LP2 POD64158 POD64158 Read This First 0-3 Chapter 0, Before Starting 0-1. Confirm Shipping Contents (2) ACCESSORIES Power Supply Cable RS232C RS232C Cable DC Power Supply Cable Probe Cable User Cables 60 pins OKI 10 QTU-11905 QTU-11905 A/D BOARD 1 RS RT CRT CS 18 9 A/D Borad Board 0-4 IN Evaluation Chip Evaluation Chip (MSM64E153-1 MSM64E153-1.5V) (MSM64E153-1 MSM64E153-1.5V) Read This First 64 pins Interface Cables 80 pins 100 pins Chapter 0, Before Starting Your purchase of the EASE64158 EASE64158 will be followed be delivery of the necessary hardware, software, and manuals in the shipping box illustrated in the upper left of page 2. After taking delivery, open the box and confirm that it contains all the contents illustrated on pages 2 and 3. Each component is described below. Note that those marked with will differ depending on the model of host computer. Documents Customer Registration Postcard EASE64158 EASE64158 Components List Oki Electric uses this to record you in our customer list in order to inform you of product maintenance and version upgrades. Please fill out the requested items and send the postcard in as soon as possible. If you do not send in the registration postcard, it will it more difficult to provide you with maintenance and version upgrade service. This is a list of the items shipped. Test Results Charts This chart shows that the EASE64158 EASE64158 passed all tests before shipping. EASE-LP2 This is the EASE-LP2 control system. It contains hardware for host computer communications, EPROM programming, etc. POD64158 POD64158 This is the POD64158 POD64158 evaluation module. It emulates the operation of the MSM64153 MSM64153 family. Hardware Read This First 0-5 Chapter 0, Before Starting ! The EASE-LP2 and POD64158 POD64158 will be called "EASE64158 EASE64158" or "emulation kit" for short. Software 1 Floppy Disk: ASM64K ASM64K 1 Floppy Disk: SID64K SID64K ASM64K ASM64K Cross-Assembler User's Manual EASE64158 EASE64158 User's Manual 1 This disk contains the ASM64K ASM64K executable files. It can be supplied in the formats described below. Floppy disk contents are explained in Section 0-2. This disk contains the SID64K SID64K executable files. It can be supplied in the formats described below. Floppy disk contents are explained in Section 0-2. This is the user's manual for the ASM64K ASM64K crossassembler. This is the user's manual (this manual) for the EASE64158 EASE64158. Available floppy disk formats MS-DOS format (1) 3.5-inch 2HD (1.21 Mbytes) (2) 5.25-inch 2HD (1.21 Mbytes) PC-DOS format (for IBM PC/AT) (1) 3.5-inch 2HD (1.44 Mbytes) (2) 5.25-inch 2HD (1.232 Mbytes) 0-6 Read This First Chapter 0, Before Starting Accessories Power Supply Cable This cable connects the EASE-LP2 with a host computer. There are two types: for NEC-PC9801 NEC-PC9801 and Oki if800 series computers, and for IBMPC/AT computers. If not specified before shipment, then the cable for NEC-PC9801 NEC-PC9801 and Oki if800 series computers will be shipped. This cable connects to the EASE-LP2 probe connector. User's Cables These cables connect the POD64158 POD64158 to the user's application system. Two cables are supplied: a 60-pin flat cable and a 64-pin flat cable. Interface Cables These cables connect the EASE-LP2 and the POD64158 POD64158. Two cables are supplied: a 100-pin flat cable and an 80-pin flat cable. DC Power Supply Cable This cable supplies VDD to the POD64158 POD64158 when used standalone. It connects to the POD64158 POD64158's DC power jack. A/D Board 3 RS232C RS232C Cable Probe Cable 2 This cable connects to the power supply connector. Terminal board for A/D converter. This board can be used only with the MSM64153 MSM64153 family microcontrollers that are equipped with A/D converter. Evaluation Chip An evaluation chip (MSM64E153 MSM64E153) mounted on the POD64158 POD64158. Read This First 0-7 Chapter 0, Before Starting 2 Unless specified before the EASE64158 EASE64158 is shipped, a cable for the NEC-PC9801 NEC-PC9801 series will be shipped. If you will use an Oki if800 series computer, then you can also use this cable. If you will use an IBM-PC, then please tell the responsible salesperson before your system is shipped so that a special-purpose cable will be included. If you forget to specify the personal computer that you will be using, then please contact the responsible salesperson to exchange cables. To identify which type of cable was shipped to you, please refer to the features listed below. (1) NEC-PC9801 NEC-PC9801 series 25-pin D-SUB male connector on one side, and 9-pin male connector on the other side. (2) IBM-PC/AT 9-pin male connector on one side, and 9-pin female connector on the other side. If you will be using a host computer other than an NEC-PC9801 NEC-PC9801 series, Oki if800 series, or IBM PC/AT, then the connectors and their cable connections may have to be changed. Refer to Appendix 3 and 4 to change the connectors or cable connections to match the host computer you will use. 0-8 3 Two types of evaluation chips, a 1.5-V operating MSM64E153-1 MSM64E153-1.5V, and a 3.0-V operating MSM64E153-3 MSM64E153-3.0V, are provided. When the EASE64158 EASE64158 is shipped, the 3.0-V operating MSM64E153-3 MSM64E153-3.0V is mounted on the POD64158 POD64158. Read This First Chapter 0, Before Starting 0-2. Confirm Floppy Disk Contents 0-2-1. Host Computer SID64K SID64K, the symbolic debugger for EASE64158 EASE64158, has been confirmed to operate with the following computer models. OKI Electric if800RX120 if800EX120 PC9801RA PC9801RA PC9801RX PC9801RX PC9801T PC9801T 98noteSX EPSON PC386LS PC386LS PC386LSR PC386LSR IBM PC/AT NEC All of the above models must have at least 640 Kbytes of memory. Oki Electric has not confirmed direct operation with computers other than those listed above. Before purchasing the EASE64158 EASE64158, your sales dealer or the Oki Electric sales department should verify the computer model that you will use. However, if after buying the system you want to consider a model other than those listed above, then please consult with Oki Electric's application engineering section. 0-2-2. Operating System The operating system of computers other than IBM-PCs should be Japanese MS-DOS version 3.1 or later. For IBM-PCs, it should PC-DOS version 3.1 or higher. Read This First 0-9 Chapter 0, Before Starting 0-2-3. Floppy Disk Contents If the conditions described in Sections 0-2-1 and 0-2-2 are satisfied, then there will be no problem with your host computer model. Next, check the contents of the floppy disks. (1) ASM64K ASM64K floppy disk contents As shown below, the label pasted on the floppy disk will differ for the PC9801/if800 series and the IBMPC. OKI ASM64K ASM64K Cross-Assembler for MS-DOS OKI For PC9801/if800 Series ASM64K ASM64K Cross-Assembler for PC-DOS For IBM-PC Series If you use the floppy disk for the wrong type of computer, then it will not be able to read the floppy disk contents, so check whether or not the correct disk is inserted. Each file included on the floppy disk and a brief explanation is given below. Contents of ASM64K ASM64K Floppy Disk ASM64K ASM64K.EXE M6415X M6415X.DCL 0-10 Executable file for ASM64K ASM64K cross-assembler. DCL file for ASM64K ASM64K cross-assembler (3). For details, refer to ASM64K ASM64K Cross-Assembler User's Manual. Read This First Chapter 0, Before Starting (2) SID64K SID64K Floppy Disk Contents As shown below, the label pasted on the floppy disk will differ for the PC9801/if800 series and the IBMPC. OKI SID64K SID64K version x.xx for MS-DOS OKI For PC9801/if800 Series SID64K SID64K version x.xx for PC-DOS For IBM-PC Series If you use the floppy disk for the wrong type of computer, then it will not be able to read the floppy disk contents, so check whether or not the correct disk is inserted. Each file included on the floppy disk and a brief explanation is given below. Contents of SID64K SID64K Floppy Disk SID64K SID64K.EXE Executable file for SID64K SID64K symbolic debugger. E6415X E6415X.DCL DCL file for SID64K SID64K ( 4). INT232C INT232C.COM Program for RS232C RS232C control (included on IBM-PC disk only). Read This First 0-11 Chapter 0, Before Starting 3 The DCL file for ASM64K ASM64K defines the following items to match operation with the appropriate member of the MSM64153 MSM64153 family. (a) SFR (special function register) addresses and access attributes. (b) Code memory (program memory) address range. (c) Data memory address range. Currently, the following DCL files are provided for each device in the MSM64153 MSM64153 family. Note that the floppy disk contains all the DCL files for the device supported by ASM64K ASM64K. MSM64152 MSM64152: MSM64153 MSM64153: MSM64155 MSM64155: MSM64158 MSM64158: 4 M64152 M64152.DCL M64153 M64153.DCL M64155 M64155.DCL M64158 M64158.DCL The DCL file for SID64K SID64K defines the following items to match operation with the appropriate member of the MSM64153 MSM64153 family. The DCL file is read when SID64K SID64K is invoked. (a) SFR (special function register) addresses and access attributes. (b) Code memory (program memory) address range. (c) Data memory address range. Currently, the following DCL files are provided for each device in the MSM64153 MSM64153 family. Note that the floppy disk contains all the DCL files for the device supported by SID64K SID64K. MSM64152 MSM64152: MSM64153 MSM64153: MSM64155 MSM64155: MSM64158 MSM64158: ! E64152 E64152.DCL E64153 E64153.DCL E64155 E64155.DCL E64158 E64158.DCL The DCL file used differs for SID64K SID64K symbolic debugger and ASM64K ASM64K cross-assembler. Please ensure to use the correct DCL file: DCL file for SID64K SID64K: DCL file for ASM64K ASM64K: 0-12 E64152 E64152.DCL (first character of the file name is "E") M64152 M64152.DCL (first character of the file name is "M") Read This First Chapter 1, Overview Chapter 1 Overview This chapter provides an overview of EASE64158 EASE64158 system configuration, describes the program development procedure with the EASE64158 EASE64158 system. 1-1 Chapter 1, Overview 1-1. EASE64158 EASE64158 Emulator Configuration The EASE64158 EASE64158 in-circuit emulator is configured from: (1) (2) (3) (4) Control system (EASE-LP2) POD64158 POD64158 evaluation module ASM64K ASM64K cross-assembler SID64K SID64K symbolic debugger 1-1-1. Control System (EASE-LP2) The EASE-LP2 is a general-purpose control system for in-circuit emulators for Oki Electric's MSM64153 MSM64153 family of CMOS 4-bit microcontrollers. The EASE64158 EASE64158 in-circuit emulator is constructed by connecting the control system to a POD64158 POD64158 evaluation module. The internal configuration of the EASE-LP2 control system is as follows. 1 1 1 1 ! 1-2 2 · System controller · Code memory · Trace memory · Cycle counters · Attribute memory · Instruction executed bit memory · EPROM programmer · RS232C RS232C ports · System power supplies MC68HC000 MC68HC000 64K x 24 bits (2) 8K steps x 64 bits 32-bit binary counter x 1 counter 64K x 8 bits 64K x 1 bit For 2764/128/256/512 1 channel 1 Refer to each microcontroller's User's Manual for the maximum addresses of code memory, attribute memory, and instruction executed memory for the MSM64153 MSM64153 family. Up to 32K x 8 bits among the 64K x 24 bits code memory of the EASE-LP2 will be used by the EASE64158 EASE64158 as a program RAM . The emulator handles the test data area of the MSM64153 MSM64153 family program as an unusable area. Chapter 1, Overview 1-1-2. POD64158 POD64158 Evaluation Module The EASE64158 EASE64158 in-circuit emulator for Oki Electric's MSM64153 MSM64153 family of CMOS 4-bit microcontrollers is constructed by connecting the POD64158 POD64158 evaluation module to an EASE-LP2. The MSM64E153 MSM64E153, a dedicated evaluation chip developed especially for emulation, is used in the POD64158 POD64158. ! ! The POD64158 POD64158 can be operated stand-alone by mounting an EPROM with a user program in the EPROM socket. Refer to Section 2-2-6, "Starting the EASE64158 EASE64158 Emulator." Refer to Appendix 7 regarding user cable connectors and peripheral circuits for the evaluation chip. 1-1-3. ASM64K ASM64K Cross-Assembler ASM64K ASM64K is a cross-assembler developed for the OLMS-64K OLMS-64K series. It is stored on a floppy disk that comes with the purchase of an EASE64158 EASE64158 development support system. Source files constructed from OLMS-64K OLMS-64K instruction mnemonics and directives are converted to object files with ASM64K ASM64K. Object files (machine language files) generated this way are read and executed by SID64K SID64K, explained in the next section. ASM64K ASM64K can be used with host computers that satisfy the following conditions. · The operating system is MS-DOS or PC-DOS version 3.1 or higher. · A transient program area of at least 128 Kbytes is available. For details about ASM64K ASM64K, refer to the ASM64K ASM64K Cross-Assembler User's Manual. 1-3 Chapter 1, Overview 1-1-4. SID64K SID64K Symbolic Debugger The SID64K SID64K symbolic debugger is software that operates on a host computer interfaced to the EASE64158 EASE64158. The EASE64158 EASE64158 operates through this software. SID64K SID64K also supports symbolic debugging. SID64K SID64K is stored on a floppy disk that comes with the purchase of an EASE64158 EASE64158 development support system. SID64K SID64K can be used with host computers that satisfy the following conditions. · The operating system is MS-DOS or PC-DOS version 3.1 or higher. · A transient program area of at least 250 Kbytes is available. · A channel for an RS232C RS232C interface. 1-1-5. System Configuration The system is used in the following two configurations. · EASE-LP2 mode in which the POD64158 POD64158 is connected to the EASE-LP2 and a host computer. · POD mode in which the POD64158 POD64158 is used stand-alone. Figure 1-1 and Figure 1-2 shows each system configuration. ASM64K ASM64K SID64K SID64K Interface cables (80-pin, 100-pin) User cables (60-pin, 64-pin) RS232C RS232C POD64158 POD64158 POD64158 POD64158 EASE-LP2 EASE-LP2 User Application System Host Computer MS-DOS PC-DOS External Power Supply Figure 1-1. System Configuration in EASE-LP2 Mode 1-4 Chapter 1, Overview User Cables (60-pin, 64-pin) POD64158 POD64158 POD64158 POD64158 User Application System External Power Supply External Power Supply Figure 1-2. System Configuration in POD Mode 1-5 Chapter 1, Overview 1-2. EASE64158 EASE64158 Parts and Functions Each part of the EASE64158 EASE64158 and its function is summarized below. 1-2-1. Control System (EASE-LP2) (1) EPROM programmer Used to program the contents of the code memory to EPROM, or transfer the EPROM contents to the code memory. (2) Indicators POWER indicator: Lights when the EASE64158 EASE64158 is turned on using EASE-LP2 power switch. RUN indicator: Lights when realtime emulation is executed (during continuous execution), and when the EPROM programmer is accessed. ERROR indicator: Lights when the EASE64158 EASE64158 is not operating properly, or when an error is occured during operation. For details, refer to Appendix-5. POWER DOWN indicator: POD indicator: Lights when the EASE64158 EASE64158 is in HALT mode during emulation (during continuous execution or during step execution). Lights when the POD64158 POD64158 is properly connected to the EASE-LP2. (3) (4) SW1 Sets the baud rate of RS232C RS232C interface. (5) RESET switch Resets the EASE-LP2. (6) PROBE cable connector Connector for the attached probe cable to enable external break. (7) Interface cable connectors (CN1 and CN2) The POD64158 POD64158 evaluation module is connected through the attached 80-pin and 100-pin interface cables. (8) AC power supply connector (AC100 AC100240) Connect the attached AC power supply cable. Note that EASE-LP2 rated power voltage is AC100 AC100240V. (9) 1-6 RS232C RS232C connector A host computer is connected through the attached RS232C RS232C cable. POWER switch Turns the EASE64158 EASE64158 ON/OFF. Chapter 1, Overview 1-2-2. POD64158 POD64158 Evaluation Module (1) EPROM socket Mount the EPROM contains user program. (2) Indicators POWER indicator: Lights when POWER switch is ON. POWER DOWN indicator: Lights when the EASE64158 EASE64158 is in HALT mode during emulation (during continuous execution or during step execution). (3) SW1 Selects the type of EPROM mounted on EPROM socket. (4) SW2 Selects the EASE-LP2 or POD operation mode. (5) SW3 Switch the operation voltage of the MSM64E153 MSM64E153 evaluation chip. (6) SW4 Switch the operaion clock supplying method. (7) MSM64E153 MSM64E153 evaluation chip socket A socket to mount the MSM64E153 MSM64E153 evaluation chip. (8) A/D board Terminal of A/D converter, to which resistors or capacitors are connected. (9) Crystal board cover (X'tal) A crystal oscillator board is inside. (10) Interface cable connectors (CN1 and CN2) When the POD64158 POD64158 is used in EASE-LP mode, connect the attached 80-pin and 100-pin interface cables to connect it to the EASE-LP2. (11) User connectors (USRCN1and USRCN2) Connect the user application system through attached 60-pin and 64-pin user cables. (12) DC power jack (DC JACK) When the POD64158 POD64158 is used in POD mode, connect the external power supply. DC5V must be supplied through attached DC power supply cable. Do not mix up DC polarity when connecting the DC power cable to the external power supply. 1-7 Chapter 1, Overview 1-3. Program Development With EASE64158 EASE64158 1-3-1. General Program Development and EASE64158 EASE64158 Figure 1-3 shows the general flow of program development (1). Development Start First, one decides on the functions of the product to be developed, and evaluates which hardware and software should be designed to implement them. Specific considerations include which MCU to use, how to allocate MCU interrupts, how much ROM and RAM to add, etc. This is called the functional design process. Functional Design Specification Design Next is the specification design process. Here the functions to be implemented are evaluated in detail, and the methods to use those functions in the final product are decided. Specifically, commands are decided upon and a command input specification is written. The specification generated by this process is usually called the functional specification. Program Design The process of creating a program based on the functional specification is called the program design process. Algorithms, flowcharts, and a program specification are created. This process can also include coding (source program creation) and assembly. In other words, ASM64K ASM64K is used in this process. Testing Next is the debug process. This is the process for which the EASE64158 EASE64158 especially excels (2). An object file created in the program design process is downloaded to the EASE64158 EASE64158, and by using the various functions of the EASE64158 EASE64158 emulator, program bug analysis, fixing, and testing are performed. Debug Are there bugs? YES NO Development The last position of the overall program development process is End occupied by the testing process. The complete program from the debug process is operated in the actual product, and operation according to the functional specification is verified with test programs, etc. If there are bugs in the operation, then the flow from the program design process on is repeated until there are no Figure 1-3. General Flow of Program more bugs. Development 1-8 Chapter 1, Overview 1 The general flow and terminology given here are typical, but other documents and manuals will have different expressions. Refer to Chapter 2, "EASE64158 EASE64158 Emulator," for details about the various function of the EASE64158 EASE64158 emulator. 2 1-3-2. From Source File To Object File In order to perform debugging with the EASE64158 EASE64158 emulator, an object file for downloaded to the EASE64158 EASE64158 must be generated (3,4). Figure 1-4 shows the process of generating an object file from a source program file coded in assembly language (hereafter called a source file). .ASM Source File ASM64K ASM64K .HEX Intel HEX Format Object File and Symbol Information File Figure 1-4. Process of Generating Object Files From Source Files In the above figure, circles indicate operation of the ASM64K ASM64K cross-assembler program, while cylinders indicate files generated by programs. Object files that the EASE64158 EASE64158 emulator can handle are Intel HEX format object files that include symbol information, as shown in Figure 1-4. 1-9 Chapter 1, Overview 3 Downloading means storing the contents of an object file in EASE64158 EASE64158 code memory with the SID64K SID64K LOD command. Refer to Section 3-1-2-4, "Load/Save/Verify Commands," for details on the LOD command. 4 Object files in this document refer to Intel HEX format object files that include symbol information which the EASE64158 EASE64158 emulator can handle. 1-3-3. Files Usable With the EASE64158 EASE64158 Emulator The files usable with the EASE64158 EASE64158 emulator are files generated by ASM64K ASM64K, as explained in the previous section. This section describes these files. (1) Files generated by ASM64K ASM64K These are object files generated by ASM64K ASM64K from source files built from OLMS-64K OLMS-64K mnemonics and various directives. These files include symbol information. Therefore, to perform symbolic debugging, loading must be done with the SID64K SID64K symbolic debugger's LOD command with /S option (5). 5 1-10 Refer to Section 3-1-2-3, "Load/Save/Verify Commands," about the /S option specification of the LOD command. Symbol information is supported by the ASM64K ASM64K assembler version 1.00 and later versions. For details, refer to the ASM64K ASM64K Cross-Assembler User's Manual. Chapter 2, EASE64158 EASE64158 Emulator Chapter 2 EASE64158 EASE64158 Emulator This chapter explains the actual use of the EASE64158 EASE64158 emulation kit and the SID64K SID64K symbolic debugger in detail. 2-1 Chapter 2, EASE64158 EASE64158 Emulator In this chapter. Section 2-1 gives an overview of each group of functions that can be used with the EASE64158 EASE64158 emulation kit and the SID64K SID64K symbolic debugger Section 2-2 explains how to start the EASE64158 EASE64158. EASE64158 EASE64158 dipswitch settings (to set the communications mode with the host computer, etc.) are also explained in this section. Section 2-3 explains in detail the actual use of SID64K SID64K debugger commands with the EASE64158 EASE64158. Section 2-3-1 describes the general input format of debugger commands and lists all debugger commands by function. This list also gives a reference page for each command, so it is convenient for use as a command index. Section 2-3-2 gives a general explanation of symbolic input. Sections 2-3-3 and 2-3-4 explain the history function and specialpurpose keys respectively. These are provided to support efficient input of debugger commands. 2-2 Chapter 2, EASE64158 EASE64158 Emulator 2-1. EASE64158 EASE64158 Functions 2-1-1. Overview Section 1-2 explained the program development process with the microcontrollers of the MSM64153 MSM64153 family. This section gives an overview of the actual emulator functions used to debug prototype programs created by that process. The most basic function of the emulator is to read and execute a program (an Intel HEX format object code plus symbol information file generated by ASM64K ASM64K). Here "execute" means to execute a program under the same electrical characteristics and at the same speed as the same volume-production microcontroller in the MSM64153 MSM64153 family. This is known as emulation, as distinguished from program simulation with large computers. User Cables Interface Cables MSM64E153 MSM64E153 Evaluation Chip Code Memory EASE-LP2 POD64158 POD64158 Application system that uses an MSM64153 MSM64153 family controller Figure 2-1 2-3 Chapter 2, EASE64158 EASE64158 Emulator The volume-production MSM64153 MSM64153 family microcontrollers have mask ROM on-chip, but once mask ROM has been written it cannot be changed. However, program during the development stage is difficult to debug unless it is stored in rewritable memory (RAM). Thus the EASE64158 EASE64158 has in internal 64K x 24-bit program storage RAM. This RAM is called code memory ( 1). Refer to Figure 2-1 on the previous page. EASE64158 EASE64158 executes programs in this code memory instead of mask ROM (2). When the user application system is being produced in volume, it will be mounted with an MSM64153 MSM64153 family microcontroller, but at the debug stage it is replaced with a connector in the user application system. This connector is attached to an EASE64158 EASE64158 user cable (Refer to Figure 2-1). Within the EASE64158 EASE64158 (strictly speaking, within the POD64158 POD64158) is a special device, designated MSM64E153 MSM64E153. The MSM64E153 MSM64E153 has the same CPU circuit and the same external pins as MSM64153 MSM64153 family microcontrollers. It differs from MSM64153 MSM64153 family microcontrollers in that it has no internal mask ROM, but it does have some special control circuitry and control pins. These additional circuits and pins are used to control execution of programs and reading of internal memory, registers, and flags. The MSM64E153 MSM64E153 can read and execute the contents of code memory instead of mask ROM. In other words, with the MSM64E153 MSM64E153 one can realize a system in which mask ROM is replaced by code memory, but its pins and electrical characteristics are identical to the MSM64153 MSM64153 family microcontrollers (3). The MSM64E153 MSM64E153 is often called the evaluation chip in this manual. The MSM64E153 MSM64E153 evaluation chip's external pins include the same pins as volume-production MSM64153 MSM64153 family microcontrollers. These are connected to the connector on the user application system through the user cables. A/D converter pins are located on the A/D board. As a result, the user application system sees the end of the user cable connector as identical to a MSM64153 MSM64153 family microcontroller (see Figure 2-1). 1 Refer to each MSM64153 MSM64153 family microcontroller's User's Manual regarding code memory addresses of the EASE64158 EASE64158. Within code memory, up to 32K x 8 bits can be used as RAM for program storage. 2 The POD64158 POD64158 has an EPROM socket for code memory. If the POD64158 POD64158 is used standalone, then the EPROM in this socket will be allocated to the program area. However, if used as an EASE64158 EASE64158, then do not use the EPROM socket. 2-4 Chapter 2, EASE64158 EASE64158 Emulator 3 ! The user cable connector's pins cannot be said to be completely the same electrically as MSM64153 MSM64153 family microcontroller pins. It is very minor, but the leads on the user cable will add some resistance and floating capacitance. Port pins being traced also have one CMOS comparator load, and the EXT CLK and USER RESET pins have one CMOS load. These loads are tiny enough that they will be no problem to most systems, but note that problems can occur on systems with subtle electrical characteristics. For information about the relation between the evaluation chip and the user cables, refer to Section 2-2-1, "Setting Operating Frequency," and Section 4-1-2, "Resets," and Appendix 7, "User Cable Peripheral Circuit." That the basic function of the emulator is to read and execute programs was already explained, but effective debugging is not possible with just simple execution. For example, one must be able to start and stop program execution at specified addresses. One needs to display and change the states of data memory (internal RAM), registers, and flags after execution. Furthermore, instead of just stopping execution at a specified address, one needs the ability to set complex conditions for stopping after a specified time has elapsed or some address has been passed a specified number of times (pass count). To meet these needs, EASE64158 EASE64158 has many functions beyond its basic one. These features are explained one by one in the following sections. 2-5 Chapter 2, EASE64158 EASE64158 Emulator 2-1-2. Changing the Target Chip The EASE64158 EASE64158 is configured to each device of the MSM64153 MSM64153 family by setting the following items. (a) Set the DCL file read when SID64K SID64K is invoked. The DCL file defines symbol information needed to perform symbolic debugging, the code memory address range, and the data memory address range. (b) Set the POD64158 POD64158's internal chip select dipswitch. The POD64158 POD64158's internal dipswitch 4 specifies which SFRs and data memory in the MSM64E153 MSM64E153 are prohibited and which are permitted. It corresponds to the appropriate device in the MSM64153 MSM64153 family. The dipswitches 2 and 3 specify which of the MSM64E153 MSM64E153's internal interrupt circuits are prohibited and which are permitted. They correspond to the appropriate device in the MSM64153 MSM64153 family. The DCL file and dipswitches must all be set to the same device in the MSM64153 MSM64153 family being used. If the settings are mixed, then the EASE64158 EASE64158 will not operate properly. Refer to Section 2-2-4, "Dipswitch Changes for Chip Select," for setting the chip select dipswitches. t Reading the DCL file for the target chip (1) In order to start SID64K SID64K configured for the appropriate target chip, the chip-specific DCL file must be read. The DCL file read by SID64K SID64K is determined by power-on information (chip mode information) from the EASE64158 EASE64158. When the filename is determined, SID64K SID64K first searches for it in the current directory. If not found, then it searches the directory which contains SID64K SID64K.EXE and then the directory specified by the DCL environment variable. If still not found, then SID64K SID64K will not start. 2-6 1 Refer to Section 2-2-6, "Starting the EASE64158 EASE64158 Emulator," for details about reading DCL files and about chip modes corresponding to DCL files. Chapter 2, EASE64158 EASE64158 Emulator 2-1-3. Data Memory Space The EASE64158 EASE64158 assigns the MSM64E153 MSM64E153 evaluation chip's internal memory and the SFR area to data memory space. Refer to each MSM64153 MSM64153 family microcontroller's User's Manual for detailed description. 2-1-4. Code Memory (Program Memory) Space The EASE-LP2 has 64K x 24 bits as code memory space, but the EASE64158 EASE64158 used code memory in accordance with the devices of the MSM64153 MSM64153 family. Address range of the code memory is described in each MSM64153 MSM64153 family microcontroller's User's Manual. Code memory size, attribute memory size, and instruction executed memory size can be expanded to 32K bytes (0007FFFH) with the EXPAND command. SEE ! EXPAND Note that the EASE64158 EASE64158 emulator handles the test data area in each MSM64153 MSM64153 family microcontroller's code memory (program memory) as unusable area. 2-1-5. Emulation Functions The EASE64158 EASE64158 has two modes for its emulation functions (program execution functions). (1) Single-step mode (STP command) In this mode, program execution stops after each step (one instruction) is executed. After each instruction is executed, the state of the evaluation chip is read and displayed on the CRT. Singlestep mode is realized with the STP command. The information to be displayed can be set with the SSF command. SEE (2) STP, SSF Realtime emulation mode (G command) In this mode, program execution will continue until some specified break condition is satisfied or an ESC command is input. Realtime emulation mode is realized with the G command. Even during realtime emulation, the EASE64158 EASE64158 allows some of the debug commands to be input. For details, refer to Section 3-4-3, "Commands Usable During Emulation." SEE G 2-7 Chapter 2, EASE64158 EASE64158 Emulator 1 The emulation functions here are those of the EASE-LP2 mode. In the POD mode, in which the POD64158 POD64158 operates standalone, only the continuous execution by the user program EPROM on the POD. t Operating Clock The operating clock of the EASE64158 EASE64158 can be selected from either a clock supplied by an internal oscillation circuit or a clock input from the user cable EXT CLK pin. Operating clock selection is performed by switching a dipswitch on the POD64158 POD64158. When the EASE64158 EASE64158 is shipped, it is set to operate using the clock supplied by its internal oscillation circuit. The internal oscillation circuit's frequency is 32.768 kHz (typical). The internal oscillation frequency can be changed by changing the crystal oscillator on the X'tal board. For details, refer to Section 2-2-1, "Setting Operating Clock Frequency." ! · The EASE64158 EASE64158 operating frequency is 32.768 kHz (typical). To use any other frequency, please contact Oki Electric's engineering department. · When changing the crystal oscillator, capacitors or resistors in the oscillation circuit might also be required to change in accordance with the manufacturer of the crystal oscillator or the oscillation frequency being used. · Clock input selection is performed by switching a dipswitch 4 on the POD64158 POD64158. Refer to Section 2-2-2, "EASE64158 EASE64158 Switch Settings." · However the MSM64153 MSM64153 family microcontrollers MSM64155 MSM64155 and MSM64158 MSM64158 can select CR oscillation circuit as the clock generator by using mask option, the EASE64158 EASE64158 cannot select the CR oscillation circuit as a clock generator. If this hinders your program development, please contact Oki Electric's engineering department. 2-8 Chapter 2, EASE64158 EASE64158 Emulator 2-1-6. Realtime Trace Functions One EASE64158 EASE64158's principal functions is realtime tracing. Realtime tracing occurs during program execution under realtime emulation mode. It stores the executed addresses, the data and addresses in data memory used, and the states of evaluation chip port pins, registers, and flags in memory provided for tracing. The memory provided for tracing is called trace memory. The EASE64158 EASE64158 has trace memory for 8K steps. It traces the following items. Trace Contents Program counter (PC) value Data memory addresses Data memory data A register value B register value H (X) register value (1) L (Y) register value (1) Stack pointer (SP) value State of any two ports among ports 0, 1, 2, 3, 4, 6, 7 MI flag value Carry (C) flag INT flag (2) SKIP flag (2) STF, DTM, DTP, RTP, CTO SEE 1 The CTO command selects whether the values of the H and L registers or X and Y registers are traced. 2 The INT flag indicates an interrupt transfer cycle. The SKIP flag indicates skip execution. Refer to Chapter 4, "EASE64158 EASE64158 Timing," for output timing of the INT flag and SKIP flag. 2-9 Chapter 2, EASE64158 EASE64158 Emulator t Controlling trace execution There are six ways to control realtime tracing. (1) Free-running trace Tracing is always performed during program execution. (2) Trace on trace enable bits Tracing is performed on particular portions of program memory specified with trace enable bits. (3) Trace disable Tracing is not performed during program execution. (4) Trigger-based trace start/stop Tracing starts when the trace start address is executed, and stops when the trace stop address is executed. (5) Data match post-trace Tracing starts when a probe or RAM value matches the specified value. (6) Data match pre-trace Tracing ends when a probe or RAM value matches the specified value. Details of each tracing method are explained in Chapter 3, "SID64K SID64K Debugger Commands." The following are related commands. SEE DTR, CTR, STT, DTT The address of trace memory written to is controlled by the trace pointer. The trace pointer is a 13-bit counter. It is incremented for each instruction execution in accordance with the control conditions for each way of realtime tracing (refer to Figure 2-2). 2-10 Chapter 2, EASE64158 EASE64158 Emulator Trace Data Trace Memory Address Port Data Registers RAM Data 0 1 2 3 4 5 6 7 8 9 RAM Address SP Flags Trace pointer (13-bit binary counter) 12 11 10 9 8 7 6 5 4 3 2 1 0 8190 8191 Pulse signal indicating start of instruction Trace Control Circuit Output when tracing is called for based on the previously described six control methods. Figure 2-2. Trace Control Conceptual Diagram The trace pointer's value indicates the address in trace memory to which data will be written. The trace pointer is incremented at the start of each instruction while the conditions of the previously described control methods are satisfied. As a result, the trace memory addresses written are updated one by one as trace data is stored at each. The trace pointer is a 13-bit counter, so its value will be between 0 and 1FFFH (in decimal, 0 and 8191). When the trace pointer exceeds 1FFFH, it overflows and becomes 0. In other words, when traced data exceeds 8192 steps, it will be overwritten in order from the oldest data in trace memory. 2-11 Chapter 2, EASE64158 EASE64158 Emulator 2-1-7. Break Functions The following methods for breaking program execution are available with the EASE64158 EASE64158. (a) Breakpoint bit breaks The EASE64158 EASE64158 has a 1-bit wide memory that corresponds 1-for-1 with the entire program memory address space (0-7FFFH). This memory is called breakpoint bits memory or breakpoint bits. 1-bit wide 0000 0001 0002 0003 0004 0005 0006 0007 PC (program counter) Break Request Signal 7FFC 7FFD 7FFE 7FFF Figure 2-3. Breakpoint Bits Conceptual Diagram Breakpoint bits can be set to 1 or 0 with the CBP (Change BreakPoint bit) command. During emulation execution, the breakpoint bit corresponding to each executed address is referenced, and if "1," a break request signal is output (refer to Figure 2-3). By using breakpoint bits, breakpoints can be set throughout the entire address space without a limit to their number. (In this manual breaks generated by breakpoint bits are called breakpoint bit breaks to clearly distinguish them from address breaks, which are generated by break addresses specified as break parameters of the G command.) SEE 2-12 DBP, CBP, SBC, DBC Chapter 2, EASE64158 EASE64158 Emulator (b) Trace full breaks The EASE64158 EASE64158 can force a break using overflow of the trace pointer. SEE (c) DTR, CTR, SBC, DBC Cycle counter overflow breaks The EASE64158 EASE64158 has a 32-bit counter that increments every machine cycle (called the cycle counter). The overflow of the cycle counter can be used as a break condition. SEE (d) SCT, RCT, TIME, CCC, DCC, SBC, DBC Address pass counter overflow breaks The EASE64158 EASE64158 has four 16-bit address pass counters that are incremented when the program at a specified address is executed. Of these address pass counters, the overflow of counter 0 (C0) can be used as a break condition. SEE (e) CAP, DAP, SBC, DBC Break on execution of power-down instruction This break occurs when an instruction is executed that sets to "1" bit 0 (HLT) of the Halt Mode Register (HALT), an SFR of all microcontrollers in the MSM64153 MSM64153 family. In other words, it occurs when a microcontroller in the MSM64153 MSM64153 family enters power-down mode. SEE SBC, DBC 2-13 Chapter 2, EASE64158 EASE64158 Emulator (f) ESC command breaks Input an ESC command to forcibly stop G command execution (realtime emulation). ESC SEE (g) Breaks specified during G command input · · · · SEE (h) Break at specified address (with pass count) Break at specified address (with pass sequence) Break when specified data matches data at a specified address in data memory Break when specified data matches probe data G N area access break The EASE64158 EASE64158 will forcibly break when it accesses an area that exceeds the maximum address for its respective chip modes. (i) External breaks An external break will occur when the signal on the external break pin of the probe cable transitions from "L" to "H." SEE SBC, DBC t Break request mask function The break conditions explained is (a)-(d) and (i) above can each be masked. As shown in Figure 2-5, masking of break conditions is performed using a register called the break condition register. 2-14 Chapter 2, EASE64158 EASE64158 Emulator (a) Breakpoint Bit Break (b) Trace Full Break (c) Cycle Counter Overflow Break (d) Address Pass Counter Overflow Break (e) Power-Down Break to break control circuit (i) External Break Break Condition Register (f) ESC Command Break (g) G Command Break Parameter (h) N Area Access Break Figure 2-4. Break Masking ! The order of bits in the break condition register of Figure 2-4 does not necessarily match the order of bits in the actual register. 2-15 Chapter 2, EASE64158 EASE64158 Emulator 2-1-8. Performance/Coverage Functions The EASE64158 EASE64158 has the following performance/coverage functions. (a) Check for program areas not yet passed The EASE64158 EASE64158 has a 32K x 1-bit instruction executed bits memory (or IE bit memory) that corresponds 1-for-1 to code memory's 32K addresses (0H-7FFFH). Whenever an instruction is executed, the contents of IE bit memory at the address corresponding to the instruction will be set to "1." By examining the contents of IE bit memory, one can see which program areas have not been passed (or debugged). SEE (b) CIE, DIE Measuring elapsed time Elapsed execution time for a specified block can be measured by using the EASE64158 EASE64158 internal 32-bit cycle counter (CC). SEE (c) CCC, DCC, SCT, RCT, DCT, TIME Measuring execution passes The number of times up to four specified addresses are executed can be measured by using the EASE64158 EASE64158's four 16-bit address pass counters (AP). SEE 2-16 CAP, DAP Chapter 2, EASE64158 EASE64158 Emulator 2-1-9. Probe Cable Functions The EASE64158 EASE64158 utilizes a probe cable with nine probe pins. The probe cable is connected to the EASE-LP2 probe connector. Refer to Appendix 8, "Probe Cable Configuration." The probe cable provides the following functions. (a) Probe input, bits 0-7 (pins P1-P8) t Data match break Break when the probe value matches a specified value. SEE G For details, refer to Section 2-1-7, "Break Functions." t Data match post-trace Tracing starts when the probe value matches a specified value. t Data match pre-trace Tracing ends when the probe value matches a specified value. SEE STT, DTT For details, refer to Section 2-1-6, "Realtime Trace Functions." (b) External break signal input (pin P9) t External break Break when the input signal on this pin transitions from"L" to "H." SEE SBC, DBC For details, refer to Section 2-1-7, "Break Functions." ! The probe cable can be used only when the MSM64E153 MSM64E153 evaluation chip operating voltage is 3.0 V. It cannot be used when the voltage is 1.5 V. 2-17 Chapter 2, EASE64158 EASE64158 Emulator 2-1-10. EPROM Programmer The EASE64158 EASE64158 has an internal EPROM programmer (EPROM writer). By using the EPROM programmer, EPROM contents can be transferred to code memory, and contents of a code memory area can be written to EPROM (1). The types of EPROM that the EPROM programmer can write are as follows: 2764, 27128, 27256, 27512, 27C64 27C64, 27C128 27C128, 27C256 27C256, 27C512 27C512 SEE TPR, VPR, PPR, TYPE ! DO NOT USE THE EPROM PROGRAMMER FOR PURPOSES OTHER THAN DEBUGGING PROGRAMS. IF RELIABILITY IN WRITE CHARACTERISTICS IS NECESSARY, THEN USE AN EPROM PROGRAMMER DESIGNED FOR THAT PURPOSE. 1 Refer to Appendix 9, "Mounting EASE-LP2 EPROMs," for information about how to handle EPROMs. 2-18 Chapter 2, EASE64158 EASE64158 Emulator 2-1-11. Symbolic Debugging Functions The SID64K SID64K debugger supports symbolic debugging functions. These functions allow symbols to be input in addition to numbers as address and data input to all debugger commands, and as instruction operands within the ASM command. Symbols defined by labels or assembler directives within the ASM command can also be used as command line input or assemble command input even after the defining assemble command terminates. Operators are permitted on input lines, so expressions constructed from symbols and operators can also be input. SEE Section 2-3-2, "Symbolic Input." 2-19 Chapter 2, EASE64158 EASE64158 Emulator 2-1-12. Assemble Command and Disassemble Command Most line assemblers (assemble command) that come with emulator systems are designed to perform minimum necessary patches (modifications to programs). Normally they permit only instruction mnemonics and absolute addresses. However, the line assembler of SID64K SID64K alone is more powerful, providing nearly all the functionality of a standalone assembler. Its principal functions are as follows. · Memory space can be coded as two logical segments: code segment, and data segment. · The ORG, EQU, SET, CODE, DATA, CSEG, DSEG, DB, DW, DS, NSE, END and other directives can be used exactly as they are with ASM64K ASM64K. Comment can also be input the same as they are in ASM64K ASM64K. · The full set of C language operators is supported. · Because it is a complete 2-pass assembler, forward referenced labels can be used. Also, all symbols in a loaded program can be referenced. All symbols defined within the assemble command can be referenced on any command line. · Up to 100 assembler lines can be input. When 100 lines have been input, an END will automatically be appended. · By saving the code input with an assemble command to a file with the LIST command, the code can easily become a source file. Furthermore, the disassemble command does just display simple mnemonics. If a symbol with the code segment attribute exists for an address being displayed, then that address will be displayed as a label. If a symbol exists for an address in an operand, then the operand will be displayed as that symbol, and its absolute address will be displayed as a comment. The disassemble command tries to create a display as close to a source file as possible. SEE 2-20 ASM, DASM commands (see details of Chapter 5, "Assemble Command") Chapter 2, EASE64158 EASE64158 Emulator 2-2. EASE64158 EASE64158 Emulator Initialization 2-2-1. Setting Operating Frequency As explained in Section 1-5, the EASE64158 EASE64158 operates with the 32.768-kHz (typical) clock supplied from the POD64158 POD64158's internal oscillation circuit when it is shipped. Oki Electric normally recommends that the EASE64158 EASE64158 be used as it is with this setting. The clock setting can be changed with the following method. To change to an operating frequency other than 32.768-kHz, please contact Oki Electric's engineering department. To change the clock setting · Change the oscillation clock of the crystal board on the POD64158 POD64158. Selection of the clock from the POD64158 POD64158 internal clock or the EXT·CLK pin of the user connector 2 is performed with the dipswitch 4 (SW4) of the POD64158 POD64158. The POD64158 POD64158 crystal board, and the EXT·CLK pin of the user connector 2, are explained next. (1) Crystal Board 23 R2 The board can be pulled out in this direction. 1 2 C1 C2 OKI X'TAL BOARD3 After replacing the crystal, push the connector back in this direction. R1 24 The crystal board is mounted inside the X'tal board cover in the rear side of the POD64158 POD64158. It generates a 32.768-kHz (typical) clock. Remove the X'tal board cover when disassembling/assembling the crystal board. Connector Figure 2-5. Crystal Board ! When the crystal oscillator on the crystal board has been changed, always check that it is oscillating correctly. Depending on the crystal's manufacturer and type, it might not oscilate. 2-21 Chapter 2, EASE64158 EASE64158 Emulator HC4066 HC4066 Crystal Board OSCI 3 HC08 R1 HCU04 HCU04 R2 X'TAL C HC4066 HC4066 HC14 C MSM4069 MSM4069 HC08 C1 HC4066 HC4066 C2 HC04 VSS2 C HC04 INT/EXT.SEL VSS1/2.SEL EXT.CLK 1 2 4 Figure 2-6. Crystal and Oscillation Circuit 1 This signal selects whether the EASE64158 EASE64158 operating clock is supplied from the POD64158 POD64158 crystal board or the user cable's EXT CLK pin. The selection of this signal is performed with POD64158 POD64158 dipswitch 4 (SW4). For details, refer to Section 2-2-2, "EASE64158 EASE64158 Switch Settings." 2 This signal switches the operating voltage of the MSM64E153 MSM64E153 evaluation chip. The selection of this signal is performed with POD64158 POD64158 dipswitch 3 (SW3). For details, refer to Section 22-2, "EASE64158 EASE64158 Switch Settings." 3 The MSM64E153 MSM64E153 evaluation chip operates using this clock. 4 This is connected to the EXT·CLK pin of the user connector 2. 2-22 Chapter 2, EASE64158 EASE64158 Emulator ! However the MSM64153 MSM64153 family microcontrollers MSM64155 MSM64155 and MSM64158 MSM64158 can select CR oscillation circuit as the clock generator by using mask option, the EASE64158 EASE64158 cannot select the CR oscillation circuit as a clock generator. If this hinders your program development, please contact Oki Electric's engineering department. 2-23 Chapter 2, EASE64158 EASE64158 Emulator (2) User cable EXT CLK pin input The emulator can be made to operate with an oscillating clock input on the EXT·CLK pin (pin 46) of the user connector 2. Use a clock like that shown below. (1) When evaluation chip operating voltage is 1.5 V VDD e Duty ratio Frequency VSS 1 a b Voltage a:b = 1:1 c = operating frequency 32.768 kHz (typical) e = 1.5 V (±5%) c (2) When evaluation chip operating voltage is 3.0 V VDD e Duty ratio Frequency VSS 2 a b Voltage a:b = 1:1 c = operating frequency 32.768 kHz (typical) e = 3.0 V (±5%) c The input clock uses the pulse generator's output clock and the user application system oscillation circuit's clock. As shown in Figure 2-6, the EXT·CLK pin clock is input to an HC4066 HC4066, so match its impedance to the HC4066 HC4066. ! The clock input clock to the EXT·CLK pin should be square-wave. Note that the operating stability is not guaranteed when sign-wave clock is used. The input clock is not only supplied to the MSM64E153 MSM64E153 evaluation chip, but also used for timing control inside the MSM64158 MSM64158 emulator. The EASE64158 EASE64158 internal circuits always operate using this input clock during user program execution as well as the EASE64158 EASE64158 is waiting for a command input. So, interrupt of the clock input or an extraordinarilly distorted wave-form of the clock may cause abnormal operation or hung-up of the EASE64158 EASE64158. 2-24 Chapter 2, EASE64158 EASE64158 Emulator 2-2-2. EASE64158 EASE64158 Switch Settings (1) EASE-LP2 There is an 8-bit dipswitch toward the top of the left panel of the EASE-LP2, labeled SW1 (refer to Figure 2-7). Each of the switch is explained below. 19200 9600 4800 2400 FLOW SW1 RESET 19200 9600 4800 2400 FLOW SW1 RS232C RS232C OFF ON OFF DTR/DSR XON/XOFF ON XON/XOFF DTR/DSR Figure 2-7. EASE-LP2 Dipswitches t SW1 This dipswitch sets the EASE-LP2 interface parameters with the host computer. Each switch should be set appropriately. · 19200 - 2400 (switches 1-4) These switches set the baud rate of the RS232C RS232C interface. Use them to match the EASE-LP2 baud rate with that of the host computer. When the EASE-LP2 is shipped, it is set to 9600 bps. The baud rate can be set to 2400-19200 bps using switches 1-4 of DIP1. Table 2-1 shows the baud rate switch settings. Table 2-1. Baud Rate Switch Settings 19200 9600 4800 2400 SW1-1 19200 ON OFF OFF OFF SW1-2 9600 OFF ON OFF OFF SW1-3 4800 OFF OFF ON OFF SW1-4 2400 OFF OFF OFF ON 2-25 Chapter 2, EASE64158 EASE64158 Emulator · Flow control (switch 5) This switch sets the flow control of the RS232C RS232C interface. Use the switch 5 to set the flow control to XON/XOFF control or DTR/DSR control. When the EASE-LP2 is shipped, it is set to XON/XOFF. Match the EASE-LP2 flow control with that of the host computer. Table 2-2 shows the flow control setting. Table 2-2. Flow Control Switch Settings XON/XOFF SW1-5 DTR/DSR OFF ON Other than baud rate and flow control, the EASE-LP2's RS232C RS232C parameters are set as follows. · Other parameters ° Transfer format ° Other 8 bits, 1 stop bit, no parity Asynchronous, baud rate factor x 16 The above parameters on the host computer side must match those of the EASE-LP2, except for the stop bit (3). ! ! 3 ! 2-26 The INT232C INT232C program, described later, does not support 19200 bps with IBM-PC personal computers. If you are using it, set the baud rate to 9600-2400 bps. Refer to Section 2-2-6, "EASE64158 EASE64158 Emulator Initialization." In Table 2-1 and Table 2-2, ON means to flip the switch up, and OFF means to flip it down. Oki if800 series computers are set using the SWITCH command. PC9801 PC9801 series computers are set using the SPEED command. IBM-PC computer uses the INT232C INT232C program (described in Section 2-2-5). With the if800 series after changing parameters with the SWITCH command, if the if800 reset button is pushed once more to boot up the computer again, then be sure to note that the RS232C RS232C parameters will not be set correctly. Chapter 2, EASE64158 EASE64158 Emulator (2) POD64158 POD64158 There are four dipswitches on the rear panel of the POD64158 POD64158, labeled SW1, SW2, SW3, and SW4 (refer to Figure 2-8). SW3 INT EXT 3.0V 1.5V DC5V + DC JACK SW4 POD64158 POD64158 Front View POD SW2 ICE 64/128 256 512 SW1 POD64158 POD64158 Rear View Figure 2-8. POD64158 POD64158 Dipswitch Each of the switches is explained below. t SW1 This switch selects the type of EPROM that will be mounted in the POD64158 POD64158's EPROM socket. The switch should be set appropriately according to the EPROM being used as shown below. Refer to Table 2-3 for the area written in each type of EPROM. · For 2764, 27C64 27C64, 27128, and 27C128 27C128 EPROM Slide the SW1 to 64/128. · For 27256 and 27C256 27C256 EPROM Slide the SW1 to 256. · For 27512 and 27C512 27C512 EPROM Slide the SW1 to 512. 512 256 64/128 SW1 Table 2-3. EPROM Write Area EPROM type Write area SW1 setting 27512, 27C512 27C512 00007FFFH 512 27256, 27C256 27C256 00007FFFH 256 27128, 27C128 27C128 00003FFFH 64/128 2764, 27C64 27C64 00001FFFH 64/128 2-27 Chapter 2, EASE64158 EASE64158 Emulator t SW2 This switch determines whether the POD64158 POD64158 will be used in standalone mode (POD mode) or connected with the EASE-LP2 (EASE-LP2 mode). Set it as shown below. · When used in POD mode Set SW2 to POD. ICE POD When used in EASE-LP2 mode Set SW2 to ICE. · SW2 t SW3 This switch determines the operating voltage of the MSM64E153 MSM64E153 evaluation chip. Set it as shown below. 3.0V When the operating voltage will be 1.5V Set SW3 to 1.5V. · 1.5V · When the operating voltage will be 3.0 V Set SW3 to 3.0V. SW3 The MSM64E153 MSM64E153 evaluation chip comes in two operating voltage versions: a 1.5-V version and a 3.0-V version. The 1.5-V operating voltage evaluation chip is labeled "MSM64E1531 MSM64E1531.5V" on its top surface, while the 3.0-V operating voltage evaluation chip is labeled "MSM64E153-3 MSM64E153-3.0V" on its top surface. ! IF THE WRONG OPERATING VOLTAGE FOR THE EVALUATION CHIP IS SET, THE CHIP COULD BE DAMAGED. t SW4 This switch determines whether the EASE64158 EASE64158 operating clock will be supplied from the POD64158 POD64158's internal oscillation circuit or the EXT·CLK pin of the user connector 2. Set it as shown below. EXT When it will be supplied from the internal oscillation circuit Set SW4 to INT. · INT · When it will be supplied from the EXT·CLK pin Set SW4 to EXT. SW4 Refer to Section 2-2-1. "Operating Frequency Setting" for details on the operating frequency. 2-28 Chapter 2, EASE64158 EASE64158 Emulator 2-2-3. Confirming EASE-LP2 Power Supply Voltage The power supply for POD64158 POD64158 differs in EASE-LP2 mode in which the POD64158 POD64158 will be connected to the EASE-LP2, and in POD mode in which the POD64158 POD64158 will be used standalone. (1) EASE-LP2 mode In EASE-LP2 mode, both of the EASE-LP2 and the POD64158 POD64158 will operate by the EASE-LP2 internal switching power supply circuit that uses normal household power. The switching power supply circuit automatically switches between the AC 100240 V range. EASE-LP2 Switching Power Supply Specifications Input voltage AC 100240 V Frequency and phase 4763 Hz, single-phase AC Power Supply Connector ! (2) ABSOLUTELY DO NOT USE A VOLTAGE OTHER THAN AC 100240 V. DOING SO COULD CAUSE A FIRE. POD mode In the POD mode, the POD64158 POD64158 must be supplied from an external DC power supply using attached DC power supply cable. The DC power supply must conform to at least 5 V, 1 A. Connect the red plug of the DC power supply cable to + side of the DC power supply, black to side. ! ABSOLUTELY DO NOT MIX UP THE POLARITY OF THE INPUT DC POWER SUPPLY. DOING SO WILL DAMAGE THE POD64158 POD64158. 2-29 Chapter 2, EASE64158 EASE64158 Emulator 2-2-4. Changing the Chip Select Dipswitches As explained in Section 2-1-2, the target chip can be changed with the DCL file read when the EASE64158 EASE64158 initialized, and the setting of the POD64158 POD64158 dipswitches. This section explains how to change the chip select dipswitches. The chip select dipswitch have the following respective functions. (a) Chip Select Dipswitch 4 (SW4) The dipswitch 4 specifies which SFRs and data memory in the MSM64E153 MSM64E153 are prohibited and which are permitted. It corresponds to the appropriate device in the MSM64153 MSM64153 family. (b) Chip Select Dipswitches 2 and 3 (SW2 and SW3) The dipswitches 2 and 3 specify which of the MSM64E153 MSM64E153's internal interrupt circuits are prohibited and which are permitted. They correspond to the appropriate device in the MSM64153 MSM64153 family. When the system is shipped, its dipswitches will be set to correspond to the MSM64153 MSM64153. The method for changing the chip select dipswitch is shown below. The chip select dipswitches are mounted on a board inside the POD64158 POD64158. They can be changed by unscrewing the top case of the POD64158 POD64158 and removing it. 1. Remove the top cover or the POD64158 POD64158. Remove the four screws on the sides, and remove the top cover. Remove these screws POD64158 POD64158 OKI Figure 2-9. Changing the Chip Select Dipswitches (1) 2-30 Chapter 2, EASE64158 EASE64158 Emulator 2. Set the dipswitches shown in Figure 2-10. Figure 2-10. Changing the Chip Select Dipswitches (2) CHIP153 CHIP153 Ver.1.01 1 2 3 4 ON OFF OFF SW4 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 OFF OFF SW2 SW3 ON OFF Set the SW4 in accordance with the target chip being used as shown in below. Table 2-4. Setting SW4 Dipswitch Target Chip SW4-1 SW4-2 SW4-3 SW4-4 MSM64152 MSM64152 OFF ON OFF OFF MSM64153 MSM64153 ON ON OFF OFF MSM64155 MSM64155 ON OFF ON OFF MSM64158 MSM64158 OFF OFF OFF ON 2-31 Chapter 2, EASE64158 EASE64158 Emulator Set SW2 and SW3 in accordance with the target chip as shown below. Table 2-5. Setting SW2 and SW3 Dipswitches Target Chip SW2-1 SW2-2 SW2-3 SW2-4 SW2-5 SW2-6 SW2-7 SW2-8 MSM64152 MSM64152 OFF ON OFF OFF ON ON OFF OFF MSM64153 MSM64153 OFF ON ON ON ON ON ON OFF MSM64155 MSM64155 OFF ON ON ON ON ON ON OFF MSM64158 MSM64158 OFF ON OFF ON ON ON OFF OFF Target Chip SW3-1 SW3-2 SW3-3 SW3-4 SW3-5 SW3-6 SW3-7 SW3-8 MSM64152 MSM64152 ON OFF ON ON OFF ON OFF OFF MSM64153 MSM64153 OFF ON ON ON OFF ON OFF OFF MSM64155 MSM64155 OFF ON ON ON OFF ON OFF OFF MSM64158 MSM64158 OFF OFF ON OFF ON ON OFF OFF ! ! ! ! 2-32 IF THE CHIP SELECT DIPSWITCHES ARE SET INCORRECTLY, INTERRUPTS WILL NOT BE EXECUTED PROPERLY! Remove the user cable connector and the DC power supply cable when the top case of the POD64158 POD64158 is removed. When the system is shipped, dipswitches are set to correspond to the MSM64153 MSM64153. Set them to match the device being used. The DCL file and dipswitches must all be set to the same device in the MSM64153 MSM64153 family being used. If the settings are mixed, then the EASE64158 EASE64158 will not operate properly. Chapter 2, EASE64158 EASE64158 Emulator 2-2-5. A/D Board The A/D board is only available for the MSM64153 MSM64153 family microcontrollers that are equipped with the A/D converter. Refer to the each microcontroller's User's Manual when the A/D board is used. OKI QTU-11905 QTU-11905 A/D BOARD 1 10 RS RT CRT CS The board can be pulled out in this direction. 9 18 IN A/D Board Upper View A/D Board After mounting capacitors and resistors, push the connector back in this direction. INT EXT 1.5V 3.0V DC5V SW4 SW3 + DC JACK POD64158 POD64158 Front View A/D Board 10 1 RS RS 12 3 RT RT 14 5 CRT CRT 16 7 CS CS 18 9 IN IN MSM64E153 MSM64E153 Evaluation Chip Figure 2-11. A/D Board As shown above, each pin of the A/D board is directly connected to the MSM64E153 MSM64E153 evaluation chip's pin. So, the A/D conversion will made in accordance with the same electric characteristics of the MSM64153 MSM64153 family microcontrollers being used. 2-33 Chapter 2, EASE64158 EASE64158 Emulator 2-2-6. Starting the EASE64158 EASE64158 Emulator The procedure for starting the EASE64158 EASE64158 emulator differs for each operation mode. Each starting procedure is as follows. 2-2-6-1. Starting the EASE64158 EASE64158 in EASE-LP2 mode (1) (a) Confirm that the necessary cables are connected to the EASE64158 EASE64158 emulator (hereafter called the emulation kit) . Connect the AC power supply cable to the AC connector. · Confirm that the EASE-LP2 power switch is OFF. · Note that the AC power supply rated voltage is AC 100240 V. (b) Connect the host computer to the EASE-LP2. · Connect the RS232C RS232C cable to the EASE-LP2's RS232C RS232C connector and the host computer's RS232C RS232C connector. (c) Connect the EASE-LP2 to the POD64158 POD64158. · Connect the interface cables (80-pin, 100-pin) between the EASE-LP2 and the POD64158 POD64158. (d) Connect the user cable. · Connect the user cable when using the user application system. · Connect the attached 60-pin and 64-pin user cables between the POD64158 POD64158 USER connector and the user application system. (e) Connect the probe cable. · Connect the probe cable to the EASE-LP2's PROBE connector and the probe points of the user application system. (f) Connect the external power supply. · Connect the external power supply to the user application system. · Confirm that the power switch of the external power supply is OFF. · Note that the external power supply voltage should be the same as the operating voltage of the MSM64E153 MSM64E153 evaluation chip being used. (g) Mount the A/D board. · The A/D board can be used only with the MSM64153 MSM64153 family microcontrollers that are equipped with the A/D converter. For details, refer to Section 2-2-5. "A/D Board." ! 2-34 Do not mount the A/D board on the POD64158 POD64158 when the A/D board is not used. Chapter 2, EASE64158 EASE64158 Emulator External Power Supply (1.5V or 3.0V) Host Computer GND RS232C RS232C Power Supply Cable RS232C RS232C Probe Cable EASE-LP2 PROBE CN1 Wall Outlet with GND AC100-240 AC100-240 V VDD CN2 100-pin 80-pin CN1 CN2 Interface Cables MSM64E153 MSM64E153 POD64158 POD64158 User Application System USR1 64-pin USR2 60-pin User Cables Figure 2-12. Cable Connection in EASE-LP2 Mode ! The emulation kit will start even if the user application system is not connected. In this case, do not connect the user cable and the probe cable. ! VDD is not supplied to the user application system from the user cables (however, VSS1 or VSS2 level is connected to the user application system through the user cables). If VDD must be supplied to the user application system, use a separate power supply. ! IN EASE-LP2 MODE, DO NOT CONNECT THE DC POWER CABLE TO THE POD64158 POD64158 DC JACK. IF IT IS CONNECTED, THE EMULATION KIT WILL NOT OPERATE PROPERLY. ! IN EASE-LP2 MODE, DO NOT MOUNT THE USER PROGRAM EPROM ON THE POD64158 POD64158 EPROM SOCKET. DOING SO COULD CAUSE A MALFUNCTION. 2-35 Chapter 2, EASE64158 EASE64158 Emulator EASE-LP2 Power Supply Cable Switching Power Supply VDD (+5V) GND External Power Supply (1.5V or 3.0V) VDD Interface Cables Wall Outlet with GND AC100-240 AC100-240 V GND (1.5 or 3.0V) VDD GND Voltage Generator GND VSS1 or VSS2 VSS VDD User Cables User Application System VDD MSM64E153 MSM64E153 VSS1 or VSS2 GND POD64158 POD64158 59th and 60th pins of user connector 2 Figure 2-13. Power Supply Configuration in EASE-LP2 Mode ! The 59th and 60th pins of the POD64158 POD64158 user cable connector provides VSS1 when the MSM64E153 MSM64E153 evaluation chip's operating voltage is 1.5 V, and VSS2 when it is 3.0 V. ! The external power supply voltage should be same as the MSM64E153 MSM64E153 evaluation chip's operating voltage (i.e. 1.5-V power supply is required for the 1.5-V operating evaluation chip, 3.0-V power supply for the 3.0-V operating evaluation chip). ! In EASE-LP2 mode, do not connect the DC power supply cable to the POD64158 POD64158 DC jack. If it is connected, then the emulation kit will not operate properly. 2-36 Chapter 2, EASE64158 EASE64158 Emulator (2) Verify that the emulation kit switches are set correctly. t EASE-LP2 (a) Baud rate setting · Set SW1-1 to SW1-4 to match the baud rate being used. t POD64158 POD64158 (a) (b) Operating clock supply setting · Set SW4 to select whether the operating clock is supplied from the POD64158 POD64158 crystal board, or from the EXT·CLK pin of the user connector 2. (d) (3) Setting MSM64E153 MSM64E153 evaluation chip's operating voltage · Set SW3 to 1.5V when the evaluation chip's operating voltage is 1.5 V, and set it to 3.0V when the voltage is 3.0 V. (c) ! Operating mode setting · Set SW2 to ICE to select EASE-LP2 mode. Chip select dipswitch setting · Set chip select dipswitches to match the target chip being used. For details on switch settings, refer to Section 2-2-2, "EASE64158 EASE64158 Switch Settings." Confirm that the MSM64E153 MSM64E153 evaluation chip is mounted correctly. · Be sure to match the 1-pin label on the evaluation chip to that of the POD64158 POD64158. · Refer to Appendix-11, "Handling the POD64158 POD64158 Evaluation Chip," regarding the mounting procedure of the evaluation chip. ! The 1.5-V operating evaluation chip has a label "MSM64E153-1 MSM64E153-1.5V" on its top, and the 3.0-V operating chip "MSM64E153-3 MSM64E153-3.0V." 2-37 Chapter 2, EASE64158 EASE64158 Emulator (4) ! (5) Turn on the host computer power supply, and start MS-DOS (PC-DOS). Use MS-DOS or PC-DOS version 3.1 or later. Set the host computer's transfer parameters. When the EASE64158 EASE64158 is shipped, its data transfer parameters are as follows. Except for baud rate, the EASE64158 EASE64158 parameters cannot be changed. Baud rate 9600 bps Transfer format 8 bits, 1 stop bit, no parity Flow control XON/XOFF control Others Asynchronous, baud rate factor x16 Oki if800 series computers are set using the SWITCH command. PC9801 PC9801 series computers are set using the SPEED command. For details, refer to the manual of the host computer. With the if800 series after changing parameters with the SWITCH command, if the if800 reset button is pushed once more to boot up the computer again, then be sure to note that the RS232C RS232C parameters will not be set correctly. ! 2-38 IBM-PC computer uses the INT232C INT232C program (described in step 6 below). Chapter 2, EASE64158 EASE64158 Emulator (6) Invoke INT232C INT232C. This step should be executed only if you are using an IBM-PC computer. For other computers, skip this step and go to step 7. INT232C INT232C is a TSR (Transient but Stay Resident) program. It sets the RS232C RS232C interface operating conditions of the IBM-PC/AT, and simultaneously enables interrupt signals. Invoking this program once will place it in host computer memory, where it will reside until removed. The method for invoking and removing INT232C INT232C is shown below. t Invoking INT232C INT232C First verify the settings of the baud rate switches on the EASE-LP2 unit. Assume that the verified baud rate is called . (1) Next, change to the directory that stores the INT232C INT232C.COM file and enter the following input. A> INT232C INT232C X;,N,8,1 This will load INT232C INT232C into host computer memory, and display the following message. INT232C INT232C has been loaded. This ends the process of invoking INT232C INT232C. If INT232C INT232C had already been loaded, then the following message will be displayed instead. INT232C INT232C has already been loaded. In this case, it will not be newly loaded. Example Input the following to use a baud rate of 4800 bps. After the INT232C INT232C has been loaded, the message will be displayed. A> INT232C INT232C X;4800,N,8,1 INT232C INT232C has been loaded. 1 The valid baud rates for the EASE64158 EASE64158 are listed below. However, INT232C INT232C.COM cannot set 19200 bps. 2400, 4800, 9600, 19200 2-39 Chapter 2, EASE64158 EASE64158 Emulator t Removing INT232C INT232C Because INT232C INT232C is a resident program, it will stay in memory even after you have finished with the symbolic debugger (SID64K SID64K). Input the following to remove it. A> INT232C INT232C R This will remove INT232C INT232C from memory, and display the following message. INT232C INT232C has been removed from memory. If it has already been removed, then the following message will be displayed instead. INT232C INT232C has not been loaded. The above simple explanations show how to use INT232C INT232C. Read the following page if you wish to understand each parameter in detail. If you do not need to know them in detail, go on to step 7. ! If you will use SID64K SID64K with IBM PC/AT, then add the appropriate ANSI escape sequence driver from your DOS system disk to CONFIG.SYS. If you forget to do so, then you will not be able to use the special editing keys. Host computer IBM PC/AT 2-40 ANSI escape sequence driver name ANSI.SYS Chapter 2, EASE64158 EASE64158 Emulator t Explanation of INT232C INT232C input format and parameters A> INT232C INT232C [[;,]] The brackets [ ] can be omitted. When omitted, the default values of the following explanations apply. X * R Perform XON/XOFF control. Do not perform XON/XOFF control. Remove resident INT232C INT232C. Specifies the baud rate. Choose one of the following. 2400, 4800, 9600 (default) Specifies whether and what kind of parity checking to perform. Choose one of the following. N O E Do not perform parity checking (default). Perform odd parity checking. Perform even parity checking. Specifies the number of data bits. Choose one of the following. 7, 8 (default) Specifies the number of stop bits. Choose one of the following. 1 (default), 2 ! If the command is executed with all parameters omitted, then the above explanation of INT232C INT232C usage will be displayed. This is convenient if you forget how to use INT232C INT232C. 2-41 Chapter 2, EASE64158 EASE64158 Emulator Example · INT232C INT232C * This is the same as: INT232C INT232C *;9600,N,8,1 · INT232C INT232C X;1200,E,7,2 This initializes the RS232C RS232C port to XON/XOFF control, 1200 bps baud rate, even parity, 7 data bits, and 1 stop bit. · INT232C INT232C R This removes INT232C INT232C from memory. t List of messages INT232C INT232C outputs the following messages. · INT232C INT232C has been removed from memory. · INT232C INT232C has not been loaded. · INT232C INT232C has already been loaded. · INT232C INT232C has been loaded. 2-42 Chapter 2, EASE64158 EASE64158 Emulator (7) Set the DCL file environment. The DCL file has the symbol information necessary to perform symbolic debugging with SID64K SID64K. SID64K SID64K first searches for it in the current directory. If not found, then it searches the directory which contains SID64K SID64K.EXE and then the directory specified by the DCL environment variable. If still not found, then SID64K SID64K will not start. t Setting the environment There are three ways to set the environment so that SID64K SID64K will read the DCL file when it is started. (1) (2) (3) Store the DCL file in the current directory. Store the DCL file in the directory which contains SID64K SID64K.EXE. Copy the DCL file for the device to be used into the directory that contains SID64K SID64K with the COPY command of MS-DOS/PC-DOS. Set the DCL environment variable to the path name of the directory that contains the DCL file. Set the DCL environment variable with the following input. A> SET DCL = path-name The path-name here is the path name of the directory that contains the DCL file. The DCL environment variable will be lost if the host computer is reset. If this happens, then set the DCL environment variable again. If you feel setting the environment variable every time the host computer is started up, then you c