The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.   United States  United States   


Datasheet Search Engine   
 
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)


  Datasheet Home \ Datasheet Details

Single Chip Microcomputer, Semiconductors, LCD, Register, Display, Memory, Pentium, CPU

Download

PDF Abstract Text:

MF1482-01


CMOS SINGLE CHIP MICROCOMPUTER

MF1482-01
CMOS SINGLE CHIP MICROCOMPUTER
S5U1C88000Q Manual
(S1C63 / S1C88 Family Embedded System Simulator Package)
NOTICE
No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from another government agency.
MS-DOS, Windows, Windows 95, Windows 98 and Windows NT are registered trademarks of Microsoft Corporation, U.S.A. PC-DOS, PC / AT, PS / 2, VGA, EGA and IBM are registered trademarks of International Business Machines Corporation, U.S.A. NEC PC-9800 Series and NEC are registered trademarks of NEC Corporation. All other product names mentioned herein are trademarks and / or registered trademarks of their respective owners.
New configuration of product number
Starting April 1, 2001, the product number has been changed as listed below. Please use the new product number when you place an order. For further information, please contact Epson sales representative.
S1C63 Family Devices C 63158 S1
Packing specification Specification Package (D: die form F: QFP) Model number Model name (C: microcomputer, digital products) Product classification (S1: semiconductor)
S1C63 Family Development tools C 63000 A1 S5U1
Packing specification Version (1: Version 1) Tool type (A1: Assembler Package) Corresponding model number (63000: common to S1C63 Family) Tool classification (C: microcomputer use) Product classification (S5U1: development tool for semiconductor products)
S1C88 Family Devices C 88104 S1
Packing specification Package (D: die form F: QFP) Model number Model name (C: microcomputer, digital products) Product classification (S1: semiconductor)
S1C88 Family Development tools C 88348 D1 S5U1
Packing specification Version (1: Version 1) Tool type (D1: Development Tool) Corresponding model number (88348: for S1C88348) Tool classification (C: microcomputer use) Product classification (S5U1: development tool for semiconductor products)
CONTENTS
1.1 1.2 1.3 2.1 2.2 2.3 3.1 3.2 3.3 3.4 3.5 3.6 Overview ........................................................... 1 Package Contents ..................................................... 1 Overview of Tools .................................................... 2 Operating Environment ................................................ 3 Installation Method ................................................... 4 Directories and Files after Installation .................................... 5 Overview ........................................................... 7 Software Development Flow ............................................ 8 Overview of Simulation Functions and Operations .......................... 9 Input / Output Files .................................................... 11 Starting and Terminating the Simulator ................................... 13 Windows ........................................................... 14
3.6.1 Basic Structure of Window ......................................... 14 3.6.2 Command Window .............................................. 15 3.6.3 LCD Window .................................................. 16 3.6.4 I / O Terminal Window ............................................ 18 3.6.5 Source Window ................................................. 21 3.6.6 Data Window .................................................. 23 3.6.7 Register Window ................................................ 24 3.6.8 Trace Window .................................................. 25
Menu .............................................................. 26 Tool Bar ........................................................... 29 Method for Executing Commands ....................................... 30
3.9.1 Entering Commands from Keyboard .................................. 30 3.9.2 Executing from Menu or Tool Bar ................................... 32 3.9.3 Executing from a Command File .................................... 33 3.9.4 Log File ........................................................ 34
3.10 Debug Functions ..................................................... 35
3.10.1 Loading Files ................................................... 35 3.10.2 Source Display and Symbolic Debugging Function ..................... 36 3.10.3 Displaying and Modifying Program, Data, Option Data and Register ...... 38 3.10.4 Executing Program .............................................. 40 3.10.5 Break Functions ................................................ 44 3.10.6 Trace Functions ................................................. 47
Command List ....................................................... 49 Component Mapping File (.cmp) ........................................ 50 IOT File (.iot) ....................................................... 51 Simulator Project File (.spj) ............................................ 54 Restrictions ......................................................... 55 Simulator Messages .................................................. 56 Overview ........................................................... 57 Software Development Flow ............................................ 57 Overview of Simulation Functions and Operations .......................... 59 Input / Output Files .................................................... 61 Starting and Terminating the Simulator ................................... 63
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
CONTENTS
Windows ........................................................... 64
4.6.1 Basic Structure of Window ......................................... 64 4.6.2 Command Window .............................................. 65 4.6.3 LCD Window .................................................. 67 4.6.4 I / O Terminal Window ............................................ 69 4.6.5 Source Window ................................................. 72 4.6.6 Dump Window ................................................. 77 4.6.7 Register Window ................................................ 78 4.6.8 Symbol Window ................................................ 78 4.6.9 Watch Window ................................................. 78 4.6.10 Trace Window ................................................. 79
Menu .............................................................. 80 Tool Bar ........................................................... 83 Method for Executing Commands ....................................... 84
4.9.1 Entering Commands from Keyboard .................................. 84 4.9.2 Executing from Menu or Tool Bar ................................... 86 4.9.3 Executing from a Command File .................................... 87 4.9.4 Log File ........................................................ 88
4.10 Debug Functions ..................................................... 89
4.10.1 Loading Files ................................................... 89 4.10.2 Source Display and Symbolic Debugging Function ..................... 91 4.10.3 Displaying / Modifying Memory and Register Data ..................... 93 4.10.4 Executing Program .............................................. 95 4.10.5 Break Functions ................................................ 98 4.10.6 Trace Functions ................................................ 102 4.10.7 Coverage ...................................................... 103
Command List ...................................................... 104 Component Mapping File (.cmp) ....................................... 105 IOT File (.iot) ....................................................... 107 Simulator Project File (.spj) ........................................... 110 Restrictions ........................................................ 111 Simulator Messages .................................................. 112 Overview .......................................................... 113 Starting and Exiting the Auto Evaluation System ........................... 114
5.2.1 Starting up ..................................................... 114 5.2.2 Exiting ......................................................... 115
Creating Inspection Procedure Data .................................... 116
5.3.1 Selecting inspection procedure creation mode ......................... 116 5.3.2 Creating an inspection procedure ................................... 118 5.3.3 Entering inspection procedure ...................................... 120 5.3.4 Acquiring reference data .......................................... 122 5.3.5 Modifying memory contents ........................................ 126 5.3.6 Editing the inspection procedure .................................... 128 5.3.7 Finishing creating the inspection procedure ........................... 130 5.3.8 Creating check sheets ............................................. 130
Automatic Evaluation ................................................ 132
5.4.1 Selecting automatic evaluation mode ................................ 132 5.4.2 Executing automatic evaluation ..................................... 134
References ......................................................... 137
5.5.1 Main Window ................................................... 137 5.5.1.1 Window ................................................ 137 5.5.1.2 Menus ................................................. 138 5.5.1.3 Toolbar buttons .......................................... 139 5.5.1.4 Command buttons ........................................ 140
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
CONTENTS
Precautions ........................................................ 182 Overview .......................................................... 183 Input / Output Files ................................................... 183 Starting and Exiting .................................................. 183 Window ........................................................... 184 Menus and Toolbar .................................................. 185
6.5.1 Menus ......................................................... 185 6.5.2 Toolbar Buttons ................................................. 187
Creating LCD Panel Data ............................................. 188
6.6.1 Creating a New Panel and Setting the Panel Size ....................... 188
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
CONTENTS
6.6.2 Creating Icons .................................................. 189 6.6.3 Creating a Dot (pixel) Matrix ...................................... 193
7.1 7.2 7.3 7.4 7.5 Overview .......................................................... 195 Input / Output Files ................................................... 195 Starting and Exiting .................................................. 195 Window ........................................................... 196 Menus and Toolbar .................................................. 198
7.5.1 Menus ......................................................... 198 7.5.2 Standard Toolbar Buttons ......................................... 200 7.5.3 Bitmap Edit Toolbar Buttons ....................................... 201
Creating Bitmap Data ................................................ 202
7.6.1 New Data Wizard ................................................ 202 7.6.2 Creating Bitmap Images ........................................... 207 7.6.3 Editing Functions ................................................ 209
Assembly Source File ................................................. 215 Overview .......................................................... 219 Input / Output Files ................................................... 219 Starting and Terminating PrtUtil ....................................... 219 Window ........................................................... 220 Menu ............................................................. 221 Creating Port Setting Data ............................................ 222
8.6.1 Creating New Data ............................................... 222 8.6.2 Editing the Existing Data .......................................... 222 8.6.3 Setting Key Matrix Data ........................................... 223 8.6.4 Setting Push Key Data ............................................ 227 8.6.5 Setting Target Key Names .......................................... 229 8.6.6 Printing ........................................................ 231
Precautions ........................................................ 232 Port Setting File (.prt) ................................................ 233 Overview .......................................................... 235 Input Files ......................................................... 235 Starting and Terminating LogAna ....................................... 235 Menus and Toolbar .................................................. 236
9.4.1 Menus ......................................................... 236 9.4.2 Toolbar Buttons ................................................. 236
Using LogAna ...................................................... 237 Overview .......................................................... 239 Input / Output Files ................................................... 239 Using Rom88 ....................................................... 239 Precautions ........................................................ 240
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
1 OVERVIEW OF THE S1C63 / S1C88 FAMILY SIMULATOR PACKAGE
1.1 Overview
The S1C63 / S1C88 Family Embedded System Simulator Package is a development tool package for the S1C63 Family amd S1C88 Family microcomputers. The simulator included in this package allows you to debug S1C63 / S1C88 programs created using just a PC, without an in-circuit emulator (ICE) or other dedicated hardware. In addition to providing general debugging functions, the simulator simulates pushbuttons or a key matrix that use I / O ports and LCD displays. The package includes utilities for creating bitmap and LCD panel data. Furthermore, this package contains the auto evaluation system that runs with a simulator on a personal computer to check the operation of a target program in an automated sequence (issue of key events and verification of LCD screen and memory contents).
1.2 Package Contents
The S1C63 / S1C88 Family Embedded System Simulator Package includes the following items. When unpacking, check that all items are present. 1. CD-ROM (Tools and PDF manuals are included) ......... One 2. Warranty card ..................................... One each in English and Japanese 3. Registration card ................................... One each in English and Japanese
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
1 OVERVIEW OF THE S1C63 / S1C88 FAMILY SIMULATOR PACKAGE
1.3 Overview of Tools
The following provides an overview of the software tools included in the package.
Simulator (Sim63.exe, Sim88.exe)
This software simulates device operations and debugging on a PC. Various functions are executed using commands entered from the keyboard or from files. Frequently-used break and single-step commands are registered to the toolbar to minimize repetitive keyboard tasks. Program code, register contents, and command execution results can be displayed in a multi-window screen to facilitate debugging. You can also simulate push-buttons or key matrix that use I / O ports and LCD displays. A different simulator is provided for each of the S1C63 Family (Sim63) and S1C88 Family (Sim88) microcomputers.
Auto evaluation system (AutoEva.exe)
Common to S1C63 / S1C88 Family
The auto evaluation system runs with a simulator (Sim63 / Sim88) on a personal computer to check the operation of a target program in an automated sequence (issue of key events and verification of LCD screen and memory contents). The inspection procedure is saved to a file, allowing users to assess program operation at any time by tracing the procedure. By automatically evaluating program operations using the same inspection procedure used before the revision, this package helps uncover bugs and software errors arising from program modifications.
LCD panel customize utility (LcdUtil.exe)
Common to S1C63 / S1C88 Family
This utility creates a panel layout and COM / SEG port assignment data required by the simulator (Sim63 / Sim88) to simulate a monochrome LCD panel display. Icons and other display objects are loaded from bitmap files (.bmp) and may be created with general-purpose paint software, enabling simulation of the actual product screen.
Bitmap utility (BmpUtil.exe)
Common to S1C63 / S1C88 Family
This utility creates bitmap image data (e.g., character data) for the dot matrix LCD display. The output data is created in the assembly source format with specified labels assigned to it to allow you to assemble data without modifications and link it to the program.
Port setting utility (PrtUtil.exe)
Common to S1C63 / S1C88 Family
This utility creates port setting data for the simulator (Sim63 / Sim88) to simulate target key events using the PC keyboard.
Logic analyzer (LogAna.exe)
Common to S1C63 / S1C88 Family
This utility loads a log file created in the I / O Terminal window of the simulator (Sim63 / Sim88) and displays the I / O port status recorded in the file as a waveform.
ROM data setting utility (Rom88.exe)
Only for S1C88 Family use
This utility loads a ROM image data file in binary format to the simulator (Sim88). It can also save the memory data patched in the Sim88 Dump window to a ROM image data file. These tools run under Windows® 95 / 98 and Windows NT® 4.0.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
2 INSTALLATION
This chapter describes the installation and operating environment for the tools included in the package.
2.1 Operating Environment
The following operating environment is required to use the S1C63 / S1C88 Family Embedded System Simulator Package.
Personal computer
An IBM PC / AT or compatible, having a 400-MHz Pentium or faster CPU and 64 MB or more of RAM. Installation requires a CD-ROM drive. As an index of performance when using the personal computer with the condition above, Sim63 can simulate real-time execution of an application with a 0.5 MHz OSC3 clock, and Sim88 can simulate an application with a 1 MHz OSC3 clock.
Display
Hard disk
Installation of this package requires a minimum of 50 MB of free hard disk space (more space is highly recommended).
System software
The package requires Microsoft® Windows® 95 / Windows® 98 or Windows NT® 4.0 (Service Pack 3 or higher), English or Japanese versions. Other In addition to this package, development of S1C63 Family applications requires the S1C63 Family Assembler Package. For S1C88 Family applications, the S1C88 Family Integrated Tool Package is required.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
2 INSTALLATION
2.2 Installation Method
To install the development tools, use the installer (Setup.exe) on the CD-ROM included with the package.
To install the tools
Note: When installing the tools to a folder other than default, be aware that the folder must satisfy the following requirements: - The folder name must be 8 letters or less. - The folder name cannot contain any spaces. - When selecting a sub-directory, it must be located within two levels from the root directory.
The installer will start installing the tools.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
2 INSTALLATION
InstallShield Wizard Complete (6) Click Finish to terminate the installer. If the COMCTL32.DLL in the Window system is older than ver. 4.72, 401Comupd.exe runs after installation has been completed. Note, however, 401Comupd.exe does not start if Windows NT4.0J is running. In this case, a message prompting execution is displayed. Run 401Comupd.exe (located in the same directory as setup.exe) manually.
To end installation
All dialog boxes that appear during installation have a Cancel button. To prematurely terminate installation, click Cancel in the dialog box when it is displayed.
To uninstall
To uninstall the installed tools, use "Add / Remove Programs" on the Control Panel.
2.3 Directories and Files after Installation
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
..Auto evaluation system ..Key definition file ..Message definition file ..Command file folder ..Reference and result data folder ..Log data folder ..Temporary data folder ..Explanation of sample programs (English) ..Explanation of sample programs (Japanese) ..Sample file ..Sample command files
..Sample reference and result data
..Document folder (English) ..Release note ..Manuals (PDF) ..Document folder (Japanese) ..Release note ..Manuals (PDF)
Online manual in PDF format
The online manuals are provided in PDF format, so Adobe Acrobat Reader Ver. 4.0 or later is needed to read it.
Files for future release models
The files for future release models may be provided in FDs. Refer to the Readme file included in the FD for installation.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.1 Overview
The S1C63 Family Simulator is a development tool for the S1C63 Family of 4-bit single-chip microcomputers. The simulator included in this package allows you to debug software created with the S1C63 assembler using just a PC, without an in-circuit emulator (ICE) or other dedicated hardware. In addition to providing general debugging functions, the simulator simulates push-buttons or a key matrix that use I / O ports , serial and general port input / outout, A / D conversion and LCD displays. The package includes utilities for creating bitmap and LCD panel data. The simulator has the following features and functions: · Operations including LCD panel display can be simulated with a PC alone without any debugging hardware. · Various data can be referenced at the same time using multiple windows. · Frequently used commands can be executed from tool bars and menus using a mouse. · Also available are source display and symbolic debug functions which correspond to assembly source codes. · Consecutive program execution and two types of single-stepping are possible. · Five break functions are supported. · Trace function. · An automatic command execution function using a command file.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.2 Software Development Flow
Figure 3.2.1 shows the typical software development flow for the S1C63 Family. The items in bold indicate tools and related files provided in this package.
Work Bench wb63 file.S file.MS Assembly source file(s) file.par Assembler as63 Assembly list file(s) Linker command file file.LST file.O Object file(s) file.CM Linker lk63 Symbol file file.SYM Link map file file.MAP file.ABS Absolute object file file.ALS Absolute list file file.MS Preprocessed source file(s) file.ini Function Option Generator winfog file.FSA Function option HEX file file.FDC Function option document file
S1C63 Family Assembler Package
file.MAK Make file
Segment Option Generator winsog file.SSA Segment option HEX file Melody data file file.SDC Segment option document file
Cross file.XRF reference file
file.MDT
HEX converter hx63 Intel-HEX format files Motorola-S format files
Melody Assembler winmla file.MSA file.MDC
fileH.HEX file.HSA fileL.HEX or file.LSA fileC.HEX file.CSA
Melody ROM Melody ROM option option HEX file document file
Disassembler ds63 file.MS Disassembled source file Debugger db63
Mask Data Checker winmdc file.PAn Mask data file
SEIKO EPSON
In-Circuit Emulator Bitmap file file.BMP Bitmap utility BmpUtil.exe file.S Assembly source file file.BMU Bitmap definition file Port setting utility PrtUtil.exe Port file.PRT setting file LCD panel customize utility LcdUtil.exe LCD file.LCD definition file
Component mapping file file.CMP Auto evaluation system AutoEva.exe Simulator sim63.exe
file.SPJ
Simulator project file
file.TXT
file.Mxx
file.Axx Result data file
file.CSV Check sheet file
Command Reference file data file
Embedded system simulator
Fig. 3.2.1 Software development flow
Note: In addition to this package, software development for the S1C63 Family requires the S1C63 Family Assembler package as shown above.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.3 Overview of Simulation Functions and Operations
This section explains how the target application is simulated on a PC with the simulator sim63.
Supported MPUs
The current simulator version supports all applications using one of the following MPUs: S1C63158, S1C63358, S1C6P366, S1C63454, S1C63455, S1C63458, S1C63466, S1C63467, S1C6P466, S1C63557, S1C63558, S1C63567, S1C63666
Target applications
This simulator is best suited to simulating applications that require key input and LCD display functions, such as watches, pocket calculators, electronic pocketbooks, and portable games. OSC1 clock operation can be executed in real time. For OSC3 operation, real-time execution is possible in the range of 500 kHz to 1 MHz. (With PCs running on a 400-MHz Pentium or equivalent or faster and 64 MB RAM, real-time execution for approximately 500 kHz is possible.) However, for reasons involving instruction-level simulation accuracy, it is not possible to simulate high-accuracy timing tasks such as those for control systems. Support for external devices is limited to monochrome LCD panels, backlight, keys, and a key matrix.
Note: Simulation on a PC is subject to some other limitations. The formal release version will support a greater number of external devices. See Section 3.15, "Restrictions", and the readme.txt file.
Entering schematic information into the simulator
To set the information required to simulate the operation of external devices, load data from files. Mapping of external devices and the internally-generated clock frequency Create a component mapping file (file.cmp) by writing addresses to which external devices (e.g. backlight control bit) are mapped, then load the file into the simulator. This allows simulated control of these external devices. Use the component mapping file to set simulation conditions such as OSC1 / OSC3 oscillation clock frequencies. For more information on creating this file, see Section 3.12, "Component Mapping File (.cmp)". Entering key and key matrix specifications Create a port setting file (.prt) containing a description of the relationship between key input ports and the I / O ports comprising the key matrix and target and PC keyboards, then load the file into the simulator. This allows simulated key input with the PC keyboard. For more information on creating this file, see Chapter 8, "Port Setting Utility". Entering LCD design Create an LCD panel definition file (file.lcd) containing a record of LCD panel layout and SEG / COM port assignments, then load the file into the simulator. This allows simulated display on LCD panels. For more information on creating the LCD panel definition file, see Chapter 6, "LCD Panel Customize Utility". These files normally are loaded when the simulator starts.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
Loading and executing the target program
SVD evaluation: Manipulate the SVD slide bar on the LCD window to simulate SVD function. Inputs / outputs of the serial interface and general ports, and A / D conversion: Activate the I / O Terminal window and load an IOT file in which an input sequence is described to simulate the input / output functions.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.4 Input / Output Files
Simulator Parameter project file file file.spj file.par IOT file file.iot IEEE-695 object file file.abs Source file(s) file.s Command file file.cmd
Port setting file file.prt LCD panel definition file file.lcd Component mapping file file.cmp file.cmd Record file
Simulator sim63
file.hsa file.lsa file.csa file.trc Trace file Program / data HEX files
file.fsa file.ssa Option HEX files
file.log Log file
Fig. 3.4.1 Input / output files
This file contains memory information on each microcomputer model and is indispensable for starting the simulator. This file is included in the S1C63 Family Assembler Package.
This is an object file generated by the linker. This file is read into the simulator by the lf command. By reading a file in the IEEE-695 format that contains debug information, source display and symbolic debugging can be performed.
This is the source file of the above object file. It is read when the simulator performs source display.
This is a load image file (HEX file in Motorola S2 format) of the code ROM, and is read into the simulator by the lo command. The file ".hsa" corresponds to the 5 high-order bits of the program code and the file ".lsa" corresponds to the 8 low-order bits of the program code. These files are generated for the purpose of creating mask data from an object file in the IEEE-695 format by the Hex convertor. Unlike files in the IEEE-695 format, these files cannot be used for source display or symbolic debugging, but can be used to check the operation of final program data.
This is a load image file (HEX file in Motorola S2 format) of the data ROM, and is read into the simulator by the lo command. This file is generated for the purpose of creating mask data from an object file in the IEEE-695 format by the Hex convertor. When an absolute object file in the IEEE-695 format is loaded, it is not necessary to load this file.
This is the mask option setup file in Motorola S2 format that is generated by the function option generator. This file is read by the lo command.
This is the mask option setup file in Motorola S2 format that is generated by the segment option generator. This file is read by the lo command. Some models have no segment option, but a HEX file is provided for setting up the simulator.
This file is used to specify a parameter file, LCD panel definition file, component mapping file and port setting file at the simulator start up. Enter file names using an editor to create this file. The simulator can be started up if this file does not exist by selecting the files from a dialog box.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
This is the text file in which the input data used to simulate serial / general port inputs / outputs and A / D conversions are described.
This file includes an LCD panel layout bitmap and SEG / COM port allocation information. Create this file using the LCD panel customizing utility (LcdUtil).
This is the text file that sets the addresses where the backlight are mapped.
This is the text file in which push keys, key-matrix configuration and the corresponding between the keys and ports are described. Create this file using the port setting utility (PrtUtil).
This text file contains a description of debug commands to be executed successively. By writing a series of frequently used commands in this file, the time and labor required for entering commands from the keyboard can be saved. The command described in the file are read and executed using the com or cmw command.
This text file contains the executed commands and execution results. Output of this file can be controlled by the log command.
This text file contains the executed commands. Output of this file can be controlled by the rec command. This command can be used as a command file.
This text file contains the specified range of trace information. Output of this file can be controlled by the tf command.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.5 Starting and Terminating the Simulator
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.6 Windows
This section describes the types of windows used by the simulator.
3.6.1 Basic Structure of Window
The diagram below shows the window structure of the simulator. Source window LCD window Register window
Command window
I / O Terminal window
Trace window
Data window
Features common to all windows
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.6.2 Command Window
Note: The Command window cannot be closed.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.6.3 LCD Window
Note: The LCD window cannot be closed.
Back, On, Off drop-down lists Set the LCD panel color. Back Background color On Dot color when it is on Off Dot color when it is off
Backlight button When this button is clicked, the dialog box shown below appears allowing registration of up to 4 backlight colors. The color can be adjusted using the RGB sliders and selecting the lower left check box turns the backlight on.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
(2) Capturing the panel image Camera button Clicking this button captures the LCD panel image at that point and then transfers it to the clipboard as a bitmap image. The captured image can be pasted to paint software to print and / or saved to a file. Since this button is invalid during program execution, program execution must be broken at the desired image before it can be captured. Video button Clicking this button enables the panel image recording function (can be saved as an AVI file). When starting the program execution in this status, two dialog boxes to specify a file name and a video compression format appear sequentially. Enter a file name and choose an available video compression format. The recording continues until the program execution is broken. The generated file can be played back with the Windows standard medium player. This button cannot be cancelled after it has been clicked once. To cancel the recording, click on the Cancel button in the file name input dialog box. The program will be executed, but the recording is cancelled.
Note: The recording operation reduces the program execution speed.
(3) Key entry simulation If the program being executed is waiting a key entry, key entry operation can be simulated using the PC keyboard after activating the LCD window. The correspondence between PC keys and ports should be defined in the port setting file. This definition list can be displayed using the Key List button. Key List button The displayed contents are port name, target key name and PC key name, respectively from the left. The correspondence between PC keys and target keys can be verified here. The symbol on the left indicates the port status H indicates that the port is high level and L indicates low level. The input level is different by the port specification of the model. The key entry status can also be set in break status. The key entry status is maintained during the next program execution until the user operates the key. This allows setting of the key entry status during single-step operation. The input port is fixed at active level if the pressed key is directly connected to the input port. In the case of a key matrix, the input port goes active level only when the corresponding output port goes active level. (4) SVD simulation This slider changes the detection level of the SVD to 17 steps.
(5) Simulating serial / general-purpose port input / output and A / D conversion Use the I / O button to display the I / O Terminal window and to load an IOT file. This allows simulation of serial interface input / output, general-purpose port input / output, and A / D conversion. For more information, refer to the next section. I / O button
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.6.4 I / O Terminal Window
The I / O Terminal window provides an I / O text terminal function to display the input / output status of the generalpurpose ports, serial interface, and A / D converter by simulating their inputs / outputs.
(1) Menu
File menu Open Save Close Loads an IOT file. Saves the logs displayed in the window to a text file. Closes the IOT file (halts I / O simulation).
Edit menu Copy Select All Copies a data range selected within the window to the clipboard. All selects all logs in the window.
The Copy / Select All menu can also be displayed by right-clicking anywhere in the window.
(2) IOT file
The IOT file is a text file that contains a description of the following specifications. It is created in a general-purpose editor. a. Specify the general-purpose ports (Rxx, Pxx) to monitor the input / output status. b. Specify the input timing to and the input level of general-purpose ports (Kxx, Pxx). c. Specify the power supply voltage and the reference voltage of the A / D converter. d. Specify the A / D input voltage. e. Specify the serial interface input data. Example:
The values indicate voltages (V).
Specify the input data using a character string or hexadecimal value.
Load this file to simulate the status of each input pin. For detailed information on this file, refer to Section 3.13, "IOT File (.iot)".
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
(3) Starting and finishing input / output simulation
Follow the procedure given below to start input / output simulation: 1. Display the I / O Terminal window. 2. Load the IOT file by selecting Open from the File menu. 3. Run the target program from a reset state. Although the IOT file can be loaded while running the target program, the simulator must be reset before input / output status can be simulated. To terminate input / output simulation, select Close from the File menu.
(4) Simulation and log display
When the specified input / output ports change state (from 1 to 0 or vice versa), or the serial interface receives input data or sends output data, or the A / D converter receives analog signals as input, the pertinent information is displayed in the window. Example:
Log data
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
(5) Saving logs
The logs displayed in the I / O Terminal window can be saved to text files using Save from the File menu. Furthermore, a range of logs selected by dragging the mouse in the I / O Terminal window can be copied to the clipboard using Copy from the Edit menu. The copied log can be pasted from the clipboard into any document by using an editor. To copy all logs, use Select All from the Edit menu to select all logs before copying to the clipboard.
Precaution
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.6.5 Source Window
The Source window displays the contents of (1) to (3) listed below. This window also allows breakpoints to be set and words or labels to be found. (1) Unassembled codes and source codes You can choose one of the following three display modes: 1. Mix mode (selected by the Mix button or entering the m command) In this mode, the window displays the addresses, codes, unassembled contents, and corresponding source line numbers and source statements. (See the diagram above.) 2. Source mode (selected by the Source button or entering the sc command) In this mode, the window displays the source line numbers and source statements. 3. Unassemble mode (selected by the Unassemble button or entering the u command) In this mode, the window displays the addresses, codes, and unassembled contents. This format is selected when the debugger starts up.
Mix button
Source button
Unassemble button
Note: The m, sc and u commands can update the Source window if the window is already opened. If the Source window is closed, the program code is displayed in the Command window.
All program code in the 64K address space can be referenced by scrolling the window. When a break occurs, the display content is updated so that the address line to be executed next is displayed, with an arrow mark at the beginning of the line for identification. Use the scroll bar or arrow keys to scroll the window. Or enter a command to display the program code beginning with a specified position. Display of source line numbers and source statements The source line numbers and source statements can only be displayed when the IEEE-695 absolute object file including debugging information for the source display is loaded. Furthermore, the source statements that are actually displayed from this file are those which have had the -g option specified by the assembler.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
Updating of display When a program is loaded and executed (g, gr, s, n, or rst command), or the memory contents are changed (a (as), pe, pf, or pm command), the display contents are updated. In this case the Source window updates its display contents so that the current PC address can always be displayed. The display contents are also updated when the display mode is changed. (2) Current PC The current PC (program counter) address line is indicated by an arrow mark at the beginning of the line. (Address 0x0110 in the diagram) (3) PC breakpoint The address line where a breakpoint is set is indicated by a red mark at the beginning of the line. (Address 0x0115 in the diagram) (4) Break setting at the cursor position Place the cursor at an address line where a breakpoint is to be set (not available for a source-only line). Then click on the Break button. A PC breakpoint will be set at that address. If the same is done at the address line where a PC breakpoint has been set, the Break button breakpoint will be cleared. If the Go to Cursor button is clicked, the program will execute beginning with the current PC position, and program execution breaks at the line where the cursor is located.
Go to Cursor button
(5) Finding labels and words Any labels and words can be found using the Search Label pull-down list box or the Find button on the Source window.
Search Label pull-down list box
Find button
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.6.6 Data Window
(1) Displaying data memory contents The Data window displays the memory dump results in hexadecimal numbers. The display area is the entire 64K-word data memory space (RAM, data ROM, I / O). The contents of all addresses from 0x0000 to 0xffff can be displayed by scrolling the window. The contents of unmapped addresses in each microcomputer model are indicated by an "". Updating of display The display contents of the Data window are updated automatically when memory contents are modified with a command (de, df, or dm command), or by direct modification. After executing the program (g, gr, s, n, or rst command), the display contents are also updated. To refresh the Data window manually, execute the dd command or click the vertical scroll bar. (2) Direct modification of data memory contents The Data window allows direct modification of data memory contents. To modify data on the Data window, place the cursor at the front of the data to be modified or double click the data, and then type a hexadecimal character (0-9, a-f). Data in the address will be modified with the entered number and the cursor will move to the next address. This allows successive modification of a series of addresses.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.6.7 Register Window
(1) Displaying register contents The Register window displays the contents of the PC, A register, B register, X register and its memory, Y register and its memory and flags (E, I, C, Z), stack pointers (SP1, SP2), EXT register, and QUEUE register. (2) Execution cycle counter This counter calculates and indicates the number of executed cycles or execution time since the CPU was reset. (3) Monitor data The debugger allows you to specify four addresses in RAM and monitor the memory contents at these addresses. The Register window displays the contents of these four watch data addresses (4 words each beginning from the specified address). When the debugger starts up, addresses 0, 4, 8, and C are initially set as the watch data addresses. The contents are arranged sequentially from left to right in order of their addresses as they are displayed on the screen. Updating of display The display is updated when registers are dumped (rd command), when watch data addresses are set (dw command), when register data is modified (rs command), when the CPU is reset (rst command), or after program execution (g, gr, s, or n command) is completed. (4) Direct modification of register contents The Register window allows direct modification of register contents. To modify data on the Register window, select (highlight) the data to be modified and type a hexadecimal number (0-9, a-f), then press Enter. The register data will be modified with the entered number.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.6.8 Trace Window
After the trace function is turned on by the tm command, the simulator samples trace information while the target program is running. The trace data buffer has a capacity for 8192 instructions (overwritten from the beginning if the capacity is exceeded), and its data can be displayed in the Trace window. The following lists the trace contents: · Traced cycle number · Fetched address · Fetched code and disassembled contents · Register contents (A, B, X, Y, and flags) · Memory access status (address, R / W, data, and SP1 / SP2) This window also displays the trace data search results by the ts command. Updating of display The contents of the Trace window are cleared when the target program is being executed. During this period, the Trace window does not accept scrolling and resizing operations. After an program execution is terminated, this window displays the latest data traced during the execution. To specify a display start cycle, execute the td command.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.7 Menu
This section outlines the menu bar available with the simulator. The menu bar has eight menus, each including frequently-used commands.
File Menu
Load File.. This menu item reads an object file in the IEEE-695 format into the simulator. It performs the same function when the lf command is executed. Load Parameter File.. This menu item reads a parameter file into the simulator. It performs the same function when the par command is executed. Load Option.. This menu item reads a program file, data file for the data ROM or an optional HEX file in Motorola S2 format into the simulator. It performs the same function when the lo command is executed. Exit This menu item quits the simulator. It performs the same function when the q command is executed.
Note:
Flash Memory Operation.. is invalid in Sim63.
Run Menu
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
Command File.. This menu item reads a command file and executes the debug commands written in that file. It performs the same function when the com or cmw command is executed. Reset CPU This menu item resets the CPU. It performs the same function when the rst command is executed.
Break Menu
Breakpoint Set.. This menu item displays, sets or clears PC breakpoints using a dialog box. It performs the same function as executing the bp command. Data Break.. This menu item displays, sets or clears data break conditions using a dialog box. It performs the same function as executing the bd command. Register Break.. This menu item displays, sets or clears register break conditions using a dialog box. It performs the same function as executing the br command. Sequential Break.. This menu item displays, sets or clears sequential break conditions using a dialog box. It performs the same function as executing the bs command. Stack Break.. This menu item displays or sets stack break conditions using a dialog box. It performs the same function as executing the bsp command. Break List This menu item displays the all break conditions that have been set. It performs the same function as executing the bl command. Break All Clear This menu item clears all break conditions. It performs the same function as executing the bac command.
Trace Menu
Trace Mode Set.. This menu item sets a trace mode ON and OFF. It performs the same function as executing the tm command. Trace Search.. This menu item searches trace information from the trace memory under the condition specified using a dialog box. It performs the same function as executing the ts command. Trace File.. This menu item saves the specified range of the trace information displayed in the Trace window to a file. It performs the same function as executing the tf command.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
View Menu
Command This menu item activates the Command window. Program This menu item opens or activates the Source window and displays the program from the current PC address in the display mode selected from the sub menu items. These sub menu items perform the same functions as executing the u, sc, and m command, respectively. Data Dump This menu item opens or activates the Data window and displays the data memory contents from the memory start address. Register This menu item opens or activates the Register window and displays the current values of the registers. Trace This menu item opens or activates the Trace window and displays the trace data sampled in the trace memory. Toolbar This menu item shows or hides the toolbar. Status Bar This menu item shows or hides the status bar.
Option Menu
Log.. This menu item starts or stops logging using a dialog box. It performs the same function as executing the log command. Record.. This menu item starts or stops recording of a command execution using a dialog box. It performs the same function as executing the rec command. Mode Setting.. This menu item sets the simulator operating modes using a dialog box. It performs the same functions as executing the md command.
Window Menu
Cascade This menu item cascades the opened windows. Tile This menu item tiles the opened windows. This menu shows the currently opened window names. Selecting one activates the window.
Help Menu
About Sim63.. This menu item displays an About dialog box for the simulator.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.8 Tool Bar
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.9 Method for Executing Commands
All debug functions can be performed by executing debug commands. This section describes how to execute these commands.
3.9.1 Entering Commands from Keyboard
General command input format
Command input accompanied by guidance
Command to modify data memory. Inputs the start address. Modifies address 0x0000 to 1. Returns to the immediately preceding address. Inputs address 0x0000 back again. Skips address 0x0001 by pressing Enter alone. Terminates the input session.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
Numeric data format of parameter
For numeric values to be accepted as a parameter, they must be input in hexadecimal numbers for almost all commands. However, some parameters accept decimal or binary numbers. The following characters are valid for specifying numeric data: Hexadecimal: 0-9, a-f, A-F, Decimal: 0-9 Binary: 0, 1, ("" is used to mask bits when specifying a data pattern.)
Specification with a symbol
Successive execution using the Enter key
The commands listed below can be executed successively by using only the Enter key after executing once. Successive execution here means repeating the previous operation or continuous display of the previous contents. Execution commands: Display commands: g (go), s (step), n (next), com (execute command file) sc (source), m (mix), u (unassemble), dd (data memory dump), td (trace data display), sy (symbol list), ma (map information)
The successive execution function is terminated when some other command is executed.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.9.2 Executing from Menu or Tool Bar
The menu and tool bar are assigned frequently-used commands as described in Sections 3.7 and 3.8. A command can be executed simply by selecting desired menu command or clicking on the tool bar button. Table 3.9.2.1 lists the commands assigned to the menu and tool bar. Table 3.9.2.1 Commands that can be specified from menu or tool bar
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.9.3 Executing from a Command File
Another method for executing commands is to use a command file that contains descriptions of a series of debug commands. By reading a command file into the simulator the commands written in it can be executed.
Creating a command file
Create a command file as a text file using an editor. Although there are no specific restrictions on the extension of a file name, Seiko Epson recommends using ".cmd". Command files can also be created using the rec command. The rec command creates a command file and saves the executed commands to the file.
Example of a command file
Reading in and executing a command file
The simulator has the com and cmw commands available that can be used to execute a command file. The com command reads in a specified file and executes the commands in that file sequentially in the order they are written. The cmw command performs the same function as the com command except that each command is executed at intervals specified by the md command (1 to 256 seconds). Example: com start.cmd cmw test.cmd The commands written in the command file are displayed in the Command window.
Restrictions
Another command file can be read from within a command file. However, nesting of these command files is limited to a maximum of five levels. An error is assumed and the subsequent execution is halted when the com or cmw command at the sixth level is encountered.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.9.4 Log File
The executed commands and the execution results can be saved to a file in text format that is called a "log file". This file allows verification of the debug procedures and contents. The contents displayed in the Command window are saved to this file.
Command example
Display of Command window in log mode
The contents displayed in the Command window during log mode differ from those appearing in normal mode. (1) When executing a command when each window is open (When the window that displays the command execution result is opened) Normal mode: The contents of the relevant display window are updated. The execution results are not displayed in the Command window. Log mode: The same contents as those displayed in the relevant window are also displayed in the Command window. However, changes made to the relevant window by scrolling or opening it are not reflected in the Command window. (2) When executing a command while each window is closed When the relevant display window is closed, the execution results are always displayed in the Command window regardless of whether operation is in log mode or normal mode.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
3.10 Debug Functions
This section outlines the debug features of the simulator, classified by function.
3.10.1 Loading Files
Table 3.10.1.1 lists the files read by the simulator and the load commands. Table 3.10.1.1 Files and load commands
Files 1 to 4 are required for starting the simulator. Either a parameter file (1) or a simulator project file (5) must be selected in the dialog box shown below at the first time the simulator starts up. Enter the parameter file name or simulator project file name to the text box, or choose it using the Browse.. button. If the Show this window at startup check box is deselected, this dialog box will not appear from the next startup of the simulator and the same file will be selected. Loading a parameter file resets the simulator. The memory mapping information set by the parameter file can be displayed using the ma command. When a parameter file is selected, the dialog box shown below appears to select files from 2 to 4. When a simulator project file is selected, this dialog box does not appear because the file names (2 to 4) are specified in the file. Enter a component mapping file name, LCD panel definition file name and a port setting file name to the respective text boxes, or chose using the Browse.. button. These files are selected once, the file names will appear in the text boxes at the next startup of the simulator allowing choice of the files by clicking the OK button only. The lf command loads an absolute object file (.abs) in the IEEE-695 format. To perform source display and symbolic debugging, load an object file that contains the debugging information in this format. Furthermore, the source files must be located in the original directory. The lo command loads a program / data files (.hsa, .lsa, .csa) or an option HEX file (.fsa, .ssa) in the Motorola S2 format. When files in this format are loaded, the Source window can display the program code only in unassemble mode. For the command file, refer to Section 3.9.3.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.10.2 Source Display and Symbolic Debugging Function
The simulator allows program debugging while displaying the assembly source statements. Address specification using a symbol name is also possible.
Displaying program code
The Source window displays the program in the specified display mode. The display mode can be selected from among the three modes: Unassemble mode, Source mode, Mix mode. Table 3.10.2.1 Commands / menu items / tool bar buttons to switch display mode
(1) Unassemble mode
In this mode, the simulator displays the program codes after unassembling into mnemonics. (2) Source mode
In this mode, the source that contains the code at the current PC address is displayed like an editor screen. This mode is available only when an absolute object file that contains source debugging information has been loaded.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
(3) Mix mode
In this mode, both unassembled codes and sources are displayed like an absolute list. This mode is available only when an absolute object file that contains source debugging information has been loaded. Refer to Section 3.6.5, "Source Window" for details about the display contents.
Symbol reference
Function Displaying symbol list Command sy Menu - Button -
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.10.3 Displaying and Modifying Program, Data, Option Data and Register
The simulator has functions to operate on the program memory, data memory, and registers, as well as option data. Each memory area is set to the simulator according to the map information that is given in a parameter file.
Operating on program memory area
The following operations can be performed on the program memory area: Table 3.10.3.1 Commands to operate on program memory
Function Entering / modifying program code In-line assemble Rewriting specified area Copying specified area Command pe a (as) pf pm Menu - - - - Button - - - -
(1) Entering / modifying program code The program code at a specified address is modified by entering hexadecimal data. (2) In-line assemble The program code at a specified address is modified by entering a mnemonic code. (3) Rewriting specified area An entire specified area is rewritten with specified code. (4) Copying specified area The content of a specified area is copied to another area.
Operating on data memory area
The following operations can be performed on the data memory areas (RAM, data ROM, display memory, I / O memory): Table 3.10.3.2 Commands / menu item to operate on data memory
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
(1) Dumping data memory The contents of the data memory are displayed in hexadecimal dump format. If the Data window is opened, the contents of the Data window are updated if not, the contents of the data memory are displayed in the Command window. (2) Entering / modifying data Data at a specified address is rewritten by entering hexadecimal data. Data can be directly modified on the Data window. (3) Rewriting specified area An entire specified area is rewritten with specified data. (4) Copying specified area The content of a specified area is copied to another area. (5) Monitoring memory Four memory locations, each with area to store 4 consecutive words, can be registered as watch data addresses. The registered watch data can be verified in the Register window. Addresses 0, 4, 8, and C are made the watch data addresses by default.
The memory content displayed at the left indicates data at a specified address, and the one displayed at the right indicates 4word data at the highorder address.
Monitor data
Operating registers
The following operations can be performed on registers: Table 3.10.3.3 Commands / menu items to operate registers
(1) Displaying registers Register contents can be displayed in the Register or Command window. Registers: PC, A, B, X and X, Y and Y, F, SP1, SP2, EXT, and QUEUE (2) Modifying register values The contents of the above registers can be set to any desired value. The register values can be directly modified on the Register window.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.10.4 Executing Program
The simulator can execute the target program successively or execute instructions one step at a time (single-stepping).
Successive execution
(1) Types of successive execution There are two types of successive execution available: · Successive execution from the current PC · Successive execution from the program start address (0x0110) after resetting the CPU Table 3.10.4.1 Commands / menu items / tool bar buttons for successive execution
(2) Stopping successive execution Using the successive execution command (g), can specify up to two temporary break addresses that are only effective during program execution. The temporary break address can also be specified from the Source window (one location only). If the cursor is placed on an address line in the Source window and the Go to Cursor button clicked, the program starts executing from the current PC address and breaks before executing the instruction at the address the cursor is placed. Except being stopped by this temporary break, the program continues execution until it is stopped by one of the following causes: · Break conditions set by a break set up command are met. · The Key Break button is clicked. · A map break, etc. occurs. Key Break button When the program does not stop, use this button to forcibly stop it.
(3) Simulation for LCD panel display and external input / output The LCD window shows the LCD panel images according to the program sequence during the program execution. It also allows simulation of key inputs using the keyboard of the computer. These functions are configured with the component mapping file, LCD panel definition file and port setting file loaded at the startup of the simulator. See Section 3.6.3, "LCD Window", for more information. Furthermore, serial / general port inputs / outputs and A / D conversion can be simulated by reading an IOT file from the I / O Terminal window. See Section 3.6.4, "I / O Terminal Window", for details.
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
Single-stepping
(1) Types of single-stepping There are two types of single-stepping available: · Stepping through all instructions (STEP) All instructions are executed one step at a time according to the PC, regardless of the type of instruction. · Stepping through instructions except subroutines (NEXT) The calr, calz and int instructions are executed under the assumption that one step constitutes the range of statements until control is returned to the next step by a return instruction. Other instructions are executed in the same way as in ordinary single-stepping. In either case, the program starts executing from the current PC. Table 3.10.4.2 Commands / menu items / tool bar buttons for single-stepping
When executing single-stepping by command input, the number of steps to be executed can be specified, up to 65, 535 steps. When using menu commands or tool bar buttons, the program is executed one step at a time. In the following cases, single-stepping is terminated before a specified number of steps is executed: · When the Key Break button is clicked. · When a map break or similar break occurs. Single-stepping is not suspended by breaks set by the user such as a PC break or data break. Key Break button When the program does not stop, use this button to forcibly stop it. (2) Display during single-stepping In the initial simulator settings, the display is updated as follows: The display contents of the Register window are updated every step. If the Register window is closed, its contents are displayed in the Command window. This default display mode can be switched over by the md command so that the display contents are updated at only the last step in a specified number of steps. The display of the Source and Data windows are updated after the specified number of step executions are completed. (3) HALT and SLEEP states and interrupts The CPU is placed in a standby mode when the halt or slp instruction is executed. An interrupt is required to cancel this mode. The simulator has a mode to enable or disable an external interrupt for use in single-step operation. Table 3.10.4.3 External interrupt modes
External interrupt halt and slp instructions Enable mode Interrupt is processed. Executed as the halt instruction. Processing is continued by an external interrupt or clicking on the Key Break button. Disable mode Interrupt is not processed. The halt and slp instructions are replaced with a nop instruction as the instruction is executed.
In the initial settings, the simulator is set to the interrupt disable mode. The interrupt enable mode can also be set by using the md command. (4) Key entry simulation during single-stepping Key entry status can be set on the Key List window displayed by clicking on the Key List button on the LCD window and is maintained during single-stepping.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
Measuring execution cycles
EPSON
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
3 S1C63 FAMILY SIMULATOR
Resetting the CPU
Table 3.10.4.4 Commands / menu items / tool bar buttons for resetting CPU
The CPU is reset when the gr command is executed, or by executing the rst command. When the CPU is reset, the internal circuits are initialized as follows: (1) Internal registers of the CPU PC A, B X, Y, QUEUE F SP1, SP2, EXT .. 0x0110 .. 0xa .. 0xaaaa .. 0b0000 .. 0xaa
(2) The execution cycle counter is reset to 0. (3) The Source and Register windows are redisplayed. Because the PC is set to 0x0110, the Source window is redisplayed beginning with that address. The Register window is redisplayed with the internal circuits initialized as described above. The data memory contents are not modified.
S5U1C88000Q MANUAL (S1C63 / S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
3 S1C63 FAMILY SIMULATOR
3.10.5 Break Functions
The target program is made to stop executing by one of the following causes: · Break command conditions are satisfied. · The Key Break button is activated. · A map break or similar break occurs.
Break by command
The simulator has five types of break functions that allow the break conditions to be set by a command. When the set conditions in one of these break functions are met, the program under execution is made to break. (1) Break by PC This function causes the program to break when the