The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


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*)

 

 

CMOS SINGLE CHIP MICROCOMPUTER S5U1C88000Q Manual (S1C63/S1C


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



MF1482-01
CMOS SINGLE CHIP MICROCOMPUTER
S5U1C88000Q Manual
(S1C63/S1C88 Family Embedded System Simulator Package)
NOTICE
part this material reproduced duplicated form means without written permission Seiko Epson. Seiko Epson reserves right make changes this material without notice. Seiko Epson does assume liability kind arising inaccuracies contained this material application product circuit and, further, there representation that this material applicable products requiring high level reliability, such medical products. Moreover, license intellectual property rights granted implication otherwise, there representation warranty that anything made accordance with this material will free from patent copyright infringement third party. This material portions thereof contain technology subject relating strategic products under control Foreign Exchange Foreign Trade Japan require export license from Ministry International Trade Industry other approval from another government agency.
MS-DOS, Windows, Windows Windows Windows registered trademarks Microsoft Corporation, U.S.A. PC-DOS, PC/AT, PS/2, VGA, registered trademarks International Business Machines Corporation, U.S.A. PC-9800 Series registered trademarks Corporation. other product names mentioned herein trademarks and/or registered trademarks their respective owners.
SEIKO EPSON CORPORATION 2001, rights reserved.
configuration product number
Starting April 2001, product number been changed listed below. Please product number when place order. further information, please contact Epson sales representative.
S1C63 Family Devices 63158
0A01
Packing specification Specification Package form; QFP) Model number Model name microcomputer, digital products) Product classification (S1: semiconductor)
S1C63 Family Development tools 63000 S5U1
Packing specification Version Version Tool type (A1: Assembler Package) Corresponding model number (63000: common S1C63 Family) Tool classification microcomputer use) Product classification (S5U1: development tool semiconductor products)
S1C88 Family Devices 88104
0A01
Packing specification Package form; QFP) Model number Model name microcomputer, digital products) Product classification (S1: semiconductor)
S1C88 Family Development tools 88348 S5U1
Packing specification Version Version Tool type (D1: Development Tool) Corresponding model number (88348: S1C88348) Tool classification microcomputer use) Product classification (S5U1: development tool semiconductor products)
CONTENTS
CONTENTS OVERVIEW S1C63/S1C88 FAMILY SIMULATOR PACKAGE
Overview Package Contents Overview Tools Operating Environment Installation Method Directories Files after Installation Overview Software Development Flow Overview Simulation Functions Operations Input/Output Files Starting Terminating Simulator Windows
3.6.1 Basic Structure Window 3.6.2 [Command] Window 3.6.3 [LCD] Window 3.6.4 [I/O Terminal] Window 3.6.5 [Source] Window 3.6.6 [Data] Window 3.6.7 [Register] Window 3.6.8 [Trace] Window
INSTALLATION
S1C63 FAMILY SIMULATOR
Menu Tool Method Executing Commands
3.9.1 Entering Commands from Keyboard 3.9.2 Executing from Menu Tool 3.9.3 Executing from Command File 3.9.4 File
3.10 Debug Functions
3.10.1 Loading Files 3.10.2 Source Display Symbolic Debugging Function 3.10.3 Displaying Modifying Program, Data, Option Data Register 3.10.4 Executing Program 3.10.5 Break Functions 3.10.6 Trace Functions
3.11 3.12 3.13 3.14 3.15 3.16
Command List Component Mapping File (.cmp) File (.iot) Simulator Project File (.spj) Restrictions Simulator Messages Overview Software Development Flow Overview Simulation Functions Operations Input/Output Files Starting Terminating Simulator
EPSON
S1C88 FAMILY SIMULATOR
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
CONTENTS
Windows
4.6.1 Basic Structure Window 4.6.2 [Command] Window 4.6.3 [LCD] Window 4.6.4 [I/O Terminal] Window 4.6.5 [Source] Window 4.6.6 [Dump] Window 4.6.7 [Register] Window 4.6.8 [Symbol] Window 4.6.9 [Watch] Window 4.6.10 [Trace] Window
Menu Tool Method Executing Commands
4.9.1 Entering Commands from Keyboard 4.9.2 Executing from Menu Tool 4.9.3 Executing from Command File 4.9.4 File
4.10 Debug Functions
4.10.1 Loading Files 4.10.2 Source Display Symbolic Debugging Function 4.10.3 Displaying/Modifying Memory Register Data 4.10.4 Executing Program 4.10.5 Break Functions 4.10.6 Trace Functions 4.10.7 Coverage
4.11 4.12 4.13 4.14 4.15 4.16
Command List Component Mapping File (.cmp) File (.iot) Simulator Project File (.spj) Restrictions Simulator Messages Overview Starting Exiting Auto Evaluation System
5.2.1 Starting 5.2.2 Exiting
AUTO EVALUATION SYSTEM
Creating Inspection Procedure Data
5.3.1 Selecting inspection procedure creation mode 5.3.2 Creating inspection procedure 5.3.3 Entering inspection procedure 5.3.4 Acquiring reference data 5.3.5 Modifying memory contents 5.3.6 Editing inspection procedure 5.3.7 Finishing creating inspection procedure 5.3.8 Creating check sheets
Automatic Evaluation
5.4.1 Selecting automatic evaluation mode 5.4.2 Executing automatic evaluation
References
5.5.1 Main Window 5.5.1.1 Window 5.5.1.2 Menus 5.5.1.3 Toolbar buttons 5.5.1.4 Command buttons
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
CONTENTS
5.5.2 Screen Data Viewer 5.5.2.1 Window 5.5.2.2 Menus 5.5.2.3 Toolbar buttons 5.5.2.4 Icon editing buttons 5.5.2.5 Method editing reference data 5.5.3 Memory Data Viewer 5.5.3.1 Window configuration 5.5.3.2 Toolbar buttons 5.5.3.3 Method editing reference data (Memory Range Viewer) 5.5.3.4 Method editing reference data (Memory Point Viewer) 5.5.4 Viewer 5.5.4.1 Window 5.5.4.2 Menus 5.5.4.3 Toolbar buttons 5.5.4.4 Using Viewer 5.5.5 Check Sheet Viewer 5.5.5.1 Window 5.5.5.2 Tool buttons 5.5.5.3 Using Check Sheet Viewer 5.5.6 Keymap Window 5.5.7 Soft Keyboard 5.5.7.1 Toolbar buttons 5.5.7.2 Using soft keyboard 5.5.8 Data Browser 5.5.8.1 Window 5.5.8.2 Toolbar buttons 5.5.8.3 Using Data Browser 5.5.9 Dialog Boxes 5.5.9.1 [Execute Mode Select] dialog 5.5.9.2 [Files] dialog 5.5.9.3 [Parameter Setting] dialog 5.5.10 Files 5.5.10.1 Command file (file.txt) 5.5.10.2 Command pack file (file.cpk) 5.5.10.3 Reference data file (file.m***) 5.5.10.4 Result data file (file.a***) 5.5.10.5 file (file.log) 5.5.10.6 Check sheet file (file.csv)
Precautions Overview Input/Output Files Starting Exiting Window Menus Toolbar
6.5.1 Menus 6.5.2 Toolbar Buttons
PANEL CUSTOMIZE UTILITY
Creating Panel Data
6.6.1 Creating Panel Setting Panel Size
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
CONTENTS
6.6.2 Creating Icons 6.6.3 Creating (pixel) Matrix
BITMAP UTILITY
Overview Input/Output Files Starting Exiting Window Menus Toolbar
7.5.1 Menus 7.5.2 Standard Toolbar Buttons 7.5.3 Bitmap Edit Toolbar Buttons
Creating Bitmap Data
7.6.1 Data Wizard 7.6.2 Creating Bitmap Images 7.6.3 Editing Functions
Assembly Source File Overview Input/Output Files Starting Terminating PrtUtil Window Menu Creating Port Setting Data
8.6.1 Creating Data 8.6.2 Editing Existing Data 8.6.3 Setting Matrix Data 8.6.4 Setting Push Data 8.6.5 Setting Target Names 8.6.6 Printing
PORT SETTING UTILITY
Precautions Port Setting File (.prt) Overview Input Files Starting Terminating LogAna Menus Toolbar
9.4.1 Menus 9.4.2 Toolbar Buttons
LOGIC ANALYZER
10.1 10.2 10.3 10.4
Using LogAna Overview Input/Output Files Using Rom88 Precautions
DATA SETTING UTILITY
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
OVERVIEW S1C63/S1C88 FAMILY SIMULATOR PACKAGE
OVERVIEW S1C63/S1C88 FAMILY SIMULATOR PACKAGE
Overview
S1C63/S1C88 Family Embedded System Simulator Package development tool package S1C63 Family S1C88 Family microcomputers. simulator included this package allows debug S1C63/S1C88 programs created using just without in-circuit emulator (ICE) other dedicated hardware. addition providing general debugging functions, simulator simulates pushbuttons matrix that ports displays. package includes utilities creating bitmap panel data. Furthermore, this package contains auto evaluation system that runs with simulator personal computer check operation target program automated sequence (issue events verification screen memory contents).
Package Contents
S1C63/S1C88 Family Embedded System Simulator Package includes following items. When unpacking, check that items present. CD-ROM (Tools manuals included) Warranty card each English Japanese Registration card each English Japanese
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
OVERVIEW S1C63/S1C88 FAMILY SIMULATOR PACKAGE
Overview Tools
following provides overview software tools included package.
Simulator (Sim63.exe, Sim88.exe)
This software simulates device operations debugging Various functions executed using commands entered from keyboard from files. Frequently-used break single-step commands registered toolbar minimize repetitive keyboard tasks. Program code, register contents, command execution results displayed multi-window screen facilitate debugging. also simulate push-buttons matrix that ports displays. different simulator provided each S1C63 Family (Sim63) S1C88 Family (Sim88) microcomputers.
Auto evaluation system (AutoEva.exe)
Common S1C63/S1C88 Family
auto evaluation system runs with simulator (Sim63/Sim88) personal computer check operation target program automated sequence (issue events verification screen memory contents). inspection procedure saved file, allowing users assess program operation time tracing procedure. automatically evaluating program operations using same inspection procedure used before revision, this package helps uncover bugs software errors arising from program modifications.
panel customize utility (LcdUtil.exe)
Common S1C63/S1C88 Family
This utility creates panel layout COM/SEG port assignment data required simulator (Sim63/Sim88) simulate monochrome panel display. Icons other display objects loaded from bitmap files (.bmp) created with general-purpose paint software, enabling simulation actual product screen.
Bitmap utility (BmpUtil.exe)
Common S1C63/S1C88 Family
This utility creates bitmap image data (e.g., character data) matrix display. output data created assembly source format with specified labels assigned allow assemble data without modifications link program.
Port setting utility (PrtUtil.exe)
Common S1C63/S1C88 Family
This utility creates port setting data simulator (Sim63/Sim88) simulate target events using keyboard.
Logic analyzer (LogAna.exe)
Common S1C63/S1C88 Family
This utility loads file created [I/O Terminal] window simulator (Sim63/Sim88) displays port status recorded file waveform.
data setting utility (Rom88.exe)
Only S1C88 Family
This utility loads image data file binary format simulator (Sim88). also save memory data patched Sim88 [Dump] window image data file. These tools under Windows® 95/98 Windows 4.0.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
INSTALLATION
INSTALLATION
This chapter describes installation operating environment tools included package.
Operating Environment
following operating environment required S1C63/S1C88 Family Embedded System Simulator Package.
Personal computer
PC/AT compatible, having 400-MHz Pentium faster more RAM. Installation requires CD-ROM drive. index performance when using personal computer with condition above, Sim63 simulate real-time execution application with OSC3 clock, Sim88 simulate application with OSC3 clock.
Display
Minimum display resolution (SVGA)
Hard disk
Installation this package requires minimum free hard disk space (more space highly recommended).
System software
package requires Microsoft® Windows® 95/Windows® Windows (Service Pack higher), English Japanese versions. Other addition this package, development S1C63 Family applications requires S1C63 Family Assembler Package. S1C88 Family applications, S1C88 Family Integrated Tool Package required.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
INSTALLATION
Installation Method
install development tools, installer (Setup.exe) CD-ROM included with package.
install tools
Start Windows95/98 Windows 4.0. already active, close active programs. Insert CD-ROM into drive display contents. Double-click Setup.exe. Welcome install wizard starts displays welcome dialog box. Click [Next>] button proceed.
Choose Destination Location dialog specifying folder which install tools appears. wish change default settings, simply click [Next>] button execute installation. install another folder Click [Browse.] bring [Choose Folder] dialog box. From this dialog box, enter path select folder which install tools. Click [OK] button finish folder selection then click [Next>] button.
Note: When installing tools folder other than default, aware that folder must satisfy following requirements: folder name must letters less. folder name cannot contain spaces. When selecting sub-directory, must located within levels from root directory.
installer will start installing tools.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
INSTALLATION
InstallShield Wizard Complete Click [Finish] terminate installer. COMCTL32.DLL Window system older than ver. 4.72, 401Comupd.exe runs after installation been completed. Note, however, 401Comupd.exe does start Windows NT4.0J running. this case, message prompting execution displayed. 401Comupd.exe (located same directory setup.exe) manually.
installation
dialog boxes that appear during installation have [Cancel] button. prematurely terminate installation, click [Cancel] dialog when displayed.
uninstall
uninstall installed tools, "Add/Remove Programs" Control Panel.
Directories Files after Installation
installer copies following files specified directory (default "C:\EPSON\SIM\"):
[EPSON\SIM] READMEE.TXT READMEJ.TXT [S1C63] SIM63.EXE xxxxxxxx.INI xxxxxxxx.PAR xxxxxxxx.BMC [SAMPLE] READMEE.TXT READMEJ.TXT SAMPLEx.xxx [S1C88] SIM88.EXE xxxxxxxx.INI xxxxxxxx.PAR xxxxxxxx.BMC [SAMPLE] READMEE.TXT READMEJ.TXT SAMPLEx.xxx [UTILITY] BMPUTIL.EXE LCDUTIL.EXE LOGANA.EXE PRTUTIL.EXE ROM88.EXE .Readme text file (English) .Readme text file (Japanese) .S1C63 Family simulator folder .Simulator .INI file .Parameter file .Component file .Other related files .Sample folder .Explanation sample programs (English) .Explanation sample programs (Japanese) .Sample files .S1C88 Family simulator folder .Simulator .INI file .Parameter file .Component file .Other related file .Sample folder .Explanation sample programs (English) .Explanation sample programs (Japanese) .Sample files .Utility folder .Bitmap utility .LCD panel customize utility .Logic analyzer .Port setting utility .ROM data setting utility
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
INSTALLATION [AUTOEVA] AUTOEVA.EXE KEY.CFG MESSAGE.DAT [COMMAND] [DATA] [LOG] [TMP] [SAMPLE READMEE.TXT READMEJ.TXT [COMMAND] xxxxxxxx.TXT [DATA] xxxxxxxx_000 [DOC] [ENGLISH] REL_xxx_E.TXT TBD_E.PDF [JAPANESE] REL_xxx_J.TXT TBD_J.PDF
.Auto evaluation system .Key definition file .Message definition file .Command file folder .Reference result data folder .Log data folder .Temporary data folder .Explanation sample programs (English) .Explanation sample programs (Japanese) .Sample file .Sample command files
.Sample reference result data
.Document folder (English) .Release note .Manuals (PDF) .Document folder (Japanese) .Release note .Manuals (PDF)
Online manual format
online manuals provided format, Adobe Acrobat Reader Ver. later needed read
Files future release models
files future release models provided FDs. Refer Readme file included installation.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
S1C63 FAMILY SIMULATOR
Overview
S1C63 Family Simulator development tool S1C63 Family 4-bit single-chip microcomputers. simulator included this package allows debug software created with S1C63 assembler using just without in-circuit emulator (ICE) other dedicated hardware. addition providing general debugging functions, simulator simulates push-buttons matrix that ports serial general port input/outout, conversion displays. package includes utilities creating bitmap panel data. simulator following features functions: Operations including panel display simulated with alone without debugging hardware. Various data referenced same time using multiple windows. Frequently used commands executed from tool bars menus using mouse. Also available source display symbolic debug functions which correspond assembly source codes. Consecutive program execution types single-stepping possible. Five break functions supported. Trace function. automatic command execution function using command file.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Software Development Flow
Figure 3.2.1 shows typical software development flow S1C63 Family. items bold indicate tools related files provided 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 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 file file.FDC Function option document file
S1C63 Family Assembler Package
file.MAK Make file
Segment Option Generator winsog file.SSA Segment option file Melody data file file.SDC Segment option document file
Cross file.XRF reference file
file.MDT
converter hx63 Intel-HEX format files Motorola-S format files
Melody Assembler winmla file.MSA file.MDC
fileH.HEX file.HSA fileL.HEX file.LSA fileC.HEX file.CSA
Melody Melody option option 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 panel customize utility LcdUtil.exe 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: addition this package, software development S1C63 Family requires S1C63 Family Assembler package shown above.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Overview Simulation Functions Operations
This section explains target application simulated with simulator sim63.
Supported MPUs
current simulator version supports applications using following MPUs: S1C63158, S1C63358, S1C6P366, S1C63454, S1C63455, S1C63458, S1C63466, S1C63467, S1C6P466, S1C63557, S1C63558, S1C63567, S1C63666
Target applications
This simulator best suited simulating applications that require input display functions, such watches, pocket calculators, electronic pocketbooks, portable games. OSC1 clock operation executed real time. OSC3 operation, real-time execution possible range MHz. (With running 400-MHz Pentium equivalent faster RAM, real-time execution approximately possible.) However, reasons involving instruction-level simulation accuracy, possible simulate high-accuracy timing tasks such those control systems. Support external devices limited monochrome panels, backlight, keys, matrix.
Note: Simulation subject some other limitations. formal release version will support greater number external devices. Section 3.15, "Restrictions", readme.txt file.
Entering schematic information into simulator
information required simulate operation external devices, load data from files. Mapping external devices internally-generated clock frequency Create component mapping file (file.cmp) writing addresses which external devices (e.g. backlight control bit) mapped, then load file into simulator. This allows simulated control these external devices. component mapping file simulation conditions such OSC1/ OSC3 oscillation clock frequencies. more information creating this file, Section 3.12, "Component Mapping File (.cmp)". Entering matrix specifications Create port setting file (.prt) containing description relationship between input ports ports comprising matrix target keyboards, then load file into simulator. This allows simulated input with keyboard. more information creating this file, Chapter "Port Setting Utility". Entering design Create panel definition file (file.lcd) containing record panel layout SEG/COM port assignments, then load file into simulator. This allows simulated display panels. more information creating panel definition file, Chapter "LCD Panel Customize Utility". These files normally loaded when simulator starts.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Loading executing target program
simulator command load target program command simulate display external inputs/outputs during program execution, simulator's [LCD] [I/O Terminal] windows. display: input: Displayed [LCD] window actual LCD. Activate [LCD] window type appropriate keyboard. also verify input status dedicated window.
evaluation: Manipulate slide [LCD] window simulate function. Inputs/outputs serial interface general ports, conversion: Activate [I/O Terminal] window load file which input sequence described simulate input/output functions.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Input/Output Files
Simulator Parameter project file file file.spj file.par file file.iot IEEE-695 object file file.abs Source file(s) file.s Command file file.cmd
Port setting file file.prt 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 files
file.fsa file.ssa Option files
file.log file
Fig. 3.4.1 Input/output files
Parameter file (file_name.par)
This file contains memory information each microcomputer model indispensable starting simulator. This file included S1C63 Family Assembler Package.
Absolute object file (file_name.abs)
This object file generated linker. This file read into simulator command. reading file IEEE-695 format that contains debug information, source display symbolic debugging performed.
Source file (file_name.s)
This source file above object file. read when simulator performs source display.
Program file (file_name.hsa, file_name.lsa)
This load image file (HEX file Motorola format) code ROM, read into simulator command. file ".hsa" corresponds high-order bits program code file ".lsa" corresponds low-order bits program code. These files generated purpose creating mask data from object file IEEE-695 format convertor. Unlike files IEEE-695 format, these files cannot used source display symbolic debugging, used check operation final program data.
Data file (file_name.csa)
This load image file (HEX file Motorola format) data ROM, read into simulator command. This file generated purpose creating mask data from object file IEEE-695 format convertor. When absolute object file IEEE-695 format loaded, necessary load this file.
Function option file (file_name.fsa)
This mask option setup file Motorola format that generated function option generator. This file read command.
Segment option file (file_name.ssa)
This mask option setup file Motorola format that generated segment option generator. This file read command. Some models have segment option, file provided setting simulator.
Simulator project file (file_name.spj)
This file used specify parameter file, panel definition file, component mapping file port setting file simulator start Enter file names using editor create this file. simulator started this file does exist selecting files from dialog box.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
file (file_name.iot)
This text file which input data used simulate serial/general port inputs/outputs conversions described.
panel definition file (file_name.lcd)
This file includes panel layout bitmap SEG/COM port allocation information. Create this file using panel customizing utility (LcdUtil).
Component mapping file (file_name.cmp)
This text file that sets addresses where backlight mapped.
Port setting file (file_name.prt)
This text file which push keys, key-matrix configuration corresponding between keys ports described. Create this file using port setting utility (PrtUtil).
Command file (file_name.cmd)
This text file contains description debug commands executed successively. writing series frequently used commands this file, time labor required entering commands from keyboard saved. command described file read executed using command.
file (file_name.log)
This text file contains executed commands execution results. Output this file controlled command.
Record file (file_name.cmd)
This text file contains executed commands. Output this file controlled command. This command used command file.
Trace file (file_name.trc)
This text file contains specified range trace information. Output this file controlled command.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Starting Terminating Simulator
Double-clicking this icon start simulator. dialog shown below appears first time simulator starts Enter parameter file name simulator project file name text box, choose using [Browse.] button (see Section 3.14 simulator project file). [Show this window startup] check deselected, this dialog will appear from next startup simulator same file will selected. After this, command ([File Load Parameter File.]) redisplay this dialog changing file. When check left currently selected file name will appear text next startup simulator allowing choose file clicking [OK] button only. When parameter file selected, dialog shown below appears. Enter component mapping file name, panel definition file name port setting file name respective text boxes choose them using [Browse.] button. This dialog will appear next start-up simulator even [Show this window startup] deselected. However, selected file names will appear text boxes next startup simulator allowing choice files clicking [OK] button only. This dialog will appear when simulator project file selected. Select [Exit] from [File] menu terminate simulator.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Windows
This section describes types windows used simulator.
3.6.1 Basic Structure Window
diagram below shows window structure simulator. [Source] window [LCD] window [Register] window
[Command] window
[I/O Terminal] window
[Trace] window
[Data] window
Features common windows
Open/close activating window windows except [Command] [LCD] closed opened. open window, select window name from [View] menu. When command executed, corresponding window opens command uses window displaying executed results. close window, click [Close] window. opened windows listed [Window] menu. Selecting from list activates selected window. also done simply clicking inactive window. Furthermore, pressing [Ctrl]+[Tab] switches active window next open window. Resizing moving window Each window resized needed dragging boundary window with mouse. [Minimize] [Maximize] buttons work same general Windows applications. Each window moved desired display position dragging window's title with mouse. However, windows only resized moved within range application window. Other opened windows cascaded tiled using [Window] menu.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.6.2 [Command] Window
[Command] window used following: Entering debug commands When prompt appears [Command] window, system will accept command entered from keyboard. Displaying debug commands selected from menus tool When command executed selecting menu item tool button, executed command line displayed [Command] window. Displaying command execution results [Command] window displays command execution results. However, some command execution results displayed [Source], [Data], [Register], [Trace] windows. contents these execution results displayed when their corresponding windows open. corresponding window closed, execution result displayed [Command] window. When writing file, content write data displayed window. (Refer description command.)
Note: [Command] window cannot closed.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.6.3 [LCD] Window
Note: [LCD] window cannot closed.
[LCD] window following functions: display simulation Displays panel defined panel definition file. icons matrix change their display status according program being executed. Furthermore, panel size color using following controls. Scaling button drop-down list panel size magnified steps every time button clicked. size reached 200%, next click reduces size 25%. drop-down list allows direct selection magnification rate.
[Back], [On], [Off] drop-down lists panel color. [Back] Background color [On] color when [Off] color when
[Backlight] button When this button clicked, dialog shown below appears allowing registration backlight colors. color adjusted using sliders selecting lower left check turns backlight
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Capturing panel image Camera button Clicking this button captures panel image that point then transfers clipboard bitmap image. captured image pasted paint software print and/or saved file. Since this button invalid during program execution, program execution must broken desired image before captured. Video button Clicking this button enables panel image recording function (can saved file). When starting program execution this status, dialog boxes specify file name video compression format appear sequentially. Enter file name choose available video compression format. recording continues until program execution broken. generated file played back with Windows standard medium player. This button cannot cancelled after been clicked once. cancel recording, click [Cancel] button file name input dialog box. program will executed, recording cancelled.
Note: recording operation reduces program execution speed.
entry simulation program being executed waiting entry, entry operation simulated using keyboard after activating [LCD] window. correspondence between keys ports should defined port setting file. This definition list displayed using [Key List] button. [Key List] button displayed contents port name, target name name, respectively from left. correspondence between keys target keys verified here. symbol left indicates port status; indicates that port high level indicates level. input level different port specification model. entry status also break status. entry status maintained during next program execution until user operates key. This allows setting entry status during single-step operation. input port fixed active level pressed directly connected input port. case matrix, input port goes active level only when corresponding output port goes active level. simulation This slider changes detection level steps.
Simulating serial/general-purpose port input/output conversion [I/O] button display [I/O Terminal] window load file. This allows simulation serial interface input/output, general-purpose port input/output, conversion. more information, refer next section. [I/O] button
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.6.4 [I/O Terminal] Window
[I/O Terminal] window provides text terminal function display input/output status generalpurpose ports, serial interface, converter simulating their inputs/outputs.
Menu
[File] menu Open Save Close Loads file. Saves logs displayed window text file. Closes file (halts simulation).
[Edit] menu Copy Select Copies data range selected within window clipboard. selects logs window.
Copy/Select menu also displayed right-clicking anywhere window.
file
file text file that contains description following specifications. created general-purpose editor. Specify general-purpose ports (Rxx, Pxx) monitor input/output status. Specify input timing input level general-purpose ports (Kxx, Pxx). Specify power supply voltage reference voltage converter. Specify input voltage. Specify serial interface input data. Example:
[General I/O] watch P00, P01, P02, P10, P11, K00=1 K00=0 K00=H K00=L [A/D Converter] AVdd=3.0 AVss=0.2 AVref=2.9 [A/D CH2] 2.40,2.39,2.38,2.37,2.36 2.00, 2.10, 2.20, 2.30 0.65 0.80 [Serial CH1] "aBcDeFg" 0x25,0x20,0x41
first value indicates time seconds from reset. High,
values indicate voltages (V).
values indicate voltages (V).
Specify input data using character string hexadecimal value.
Load this file simulate status each input pin. detailed information this file, refer Section 3.13, "IOT File (.iot)".
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Starting finishing input/output simulation
Follow procedure given below start input/output simulation: Display [I/O Terminal] window. Load file selecting [Open] from [File] menu. target program from reset state. Although file loaded while running target program, simulator must reset before input/output status simulated. terminate input/output simulation, select [Close] from [File] menu.
Simulation display
When specified input/output ports change state (from vice versa), serial interface receives input data sends output data, converter receives analog signals input, pertinent information displayed window. Example:
P00=1 R01=1 AVdd=3.000 AVss=0.200 AVref=2.900 00:00:01.029 00:00:02.033 00:00:03.036 00:00:04.040 00:00:05.000 00:00:06.016 00:00:07.020 00:00:08.023 00:00:09.027 00:00:05.000 31h(1) 32h(2) 33h(3) 34h(4) 2.400 2.390 2.380 2.370 Initial data
data
Immediately after reset, simulator displays initial data. contents displayed here initial values general-purpose input/output ports specified with "Watch" statement file's [General I/O] section "AVdd", "AVss", "AVref" values specified [A/D Converter] section. These values displayed unless they specified. Displayed following above data input output during simulation. numeric value appearing beginning each line indicates elapsed time hours, minutes, seconds) since simulator reset. symbols "<<" ">>" denote input output, respectively. data each port contents processing described below. General-purpose input/output ports: When input output ports specified with Watch statement changes state, simulator displays port names (Kxx, Pxx, Rxx) value after change Changes input occur synchronously with timing written file. interrupts enabled this time, input interrupt generated according interrupt conditions set. converter: Each time target program performs conversion, data written file loaded sequence from (left) simulate conversions performed. this time, simulator displays channel numbers (ADx) input voltages loaded from file. interrupts enabled, conversion interrupt generated after certain period time elapsed (sampling time conversion time) after start input. converted channel specified data, input that channel read level voltage (equivalent AVss). conversion performed more than specified data count, last data specified read repeatedly. value smaller than AVss specified, read level (equivalent AVss); value larger than AVref specified, read maximum level (equivalent AVref). Serial interface: target program performs input/output serial interface, simulator displays channel numbers (S1, input/output values (hexadecimal values ASCII characters) each byte transferred. input, input data written file read sequentially from (left). interrupts enabled, serial interface interrupt generated synchronously with timing which program finishes sampling input.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Saving logs
logs displayed [I/O Terminal] window saved text files using [Save] from [File] menu. Furthermore, range logs selected dragging mouse [I/O Terminal] window copied clipboard using [Copy] from [Edit] menu. copied pasted from clipboard into document using editor. copy logs, [Select All] from [Edit] menu select logs before copying clipboard.
Precaution
development environments where S1C63/88 simulator already installed, components corresponding serial interface must added component file (.cmp). When using model that does support serial interface, NullDev.bmc component file. When using converter, make necessary corrections component file. Example: 63666.cmp Example: 63458.cmp [Internal] [Internal] CPU=CPU.bmc CPU=CPU.bmc LCD=LcdDrv63.bmc LCD=LcdDrv63.bmc K/P/R port=KPRport.bmc K/P/R port=KPRport.bmc SVD=SVD63.bmc SVD=SVD63.bmc Sound=Sound63.bmc Sound=Sound63.bmc Serial=Serial63666.bmc Serial=Serial63.bmc Adc=Adc63.bmc Adc=NullDev.bmc time which simulator simulates input/output operations calculated from instruction execution cycles. This time differs slightly from actual (actual time).
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.6.5 [Source] Window
[Source] window displays contents listed below. This window also allows breakpoints words labels found. Unassembled codes source codes choose following three display modes: mode (selected [Mix] button entering command) this mode, window displays addresses, codes, unassembled contents, corresponding source line numbers source statements. (See diagram above.) Source mode (selected [Source] button entering command) this mode, window displays source line numbers source statements. Unassemble mode (selected [Unassemble] button entering command) this mode, window displays addresses, codes, unassembled contents. This format selected when debugger starts
[Mix] button
[Source] button
[Unassemble] button
Note: commands update [Source] window window already opened. [Source] window closed, program code displayed [Command] window.
program code address space referenced scrolling window. When break occurs, display content updated that address line executed next displayed, with arrow mark beginning line identification. scroll arrow keys scroll window. enter command display program code beginning with specified position. Display source line numbers source statements source line numbers source statements only displayed when IEEE-695 absolute object file including debugging information source display loaded. Furthermore, source statements that actually displayed from this file those which have option specified assembler.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Updating display When program loaded executed command), memory contents changed (as), command), display contents updated. this case [Source] window updates display contents that current address always displayed. display contents also updated when display mode changed. Current current (program counter) address line indicated arrow mark beginning line. (Address 0x0110 diagram) breakpoint address line where breakpoint indicated mark beginning line. (Address 0x0115 diagram) Break setting cursor position Place cursor address line where breakpoint (not available source-only line). Then click [Break] button. breakpoint will that address. same done address line where breakpoint been set, [Break] button breakpoint will cleared. Cursor] button clicked, program will execute beginning with current position, program execution breaks line where cursor located.
Cursor] button
Finding labels words labels words found using [Search Label] pull-down list [Find] button [Source] window.
[Search Label] pull-down list
[Find] button
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.6.6 [Data] Window
Displaying data memory contents [Data] window displays memory dump results hexadecimal numbers. display area entire 64K-word data memory space (RAM, data ROM, I/O). contents addresses from 0x0000 0xffff displayed scrolling window. contents unmapped addresses each microcomputer model indicated Updating display display contents [Data] window updated automatically when memory contents modified with command (de, command), direct modification. After executing program command), display contents also updated. refresh [Data] window manually, execute command click vertical scroll bar. Direct modification data memory contents [Data] window allows direct modification data memory contents. modify data [Data] window, place cursor front data modified double click data, then type hexadecimal character (0-9, a-f). Data address will modified with entered number cursor will move next address. This allows successive modification series addresses.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.6.7 [Register] Window
Displaying register contents [Register] window displays contents register, register, register memory, register memory flags stack pointers (SP1, SP2), register, QUEUE register. Execution cycle counter This counter calculates indicates number executed cycles execution time since reset. Monitor data debugger allows specify four addresses monitor memory contents these addresses. [Register] window displays contents these four watch data addresses words each beginning from specified address). When debugger starts addresses initially watch data addresses. contents arranged sequentially from left right order their addresses they displayed screen. Updating display display updated when registers dumped command), when watch data addresses command), when register data modified command), when reset (rst command), after program execution command) completed. Direct modification register contents [Register] window allows direct modification register contents. modify data [Register] window, select (highlight) data modified type hexadecimal number (0-9, a-f), then press [Enter]. register data will modified with entered number.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.6.8 [Trace] Window
After trace function turned command, simulator samples trace information while target program running. trace data buffer capacity 8192 instructions (overwritten from beginning capacity exceeded), data displayed [Trace] window. following lists trace contents: Traced cycle number Fetched address Fetched code disassembled contents Register contents flags) Memory access status (address, R/W, data, SP1/SP2) This window also displays trace data search results command. Updating display contents [Trace] window cleared when target program being executed. During this period, [Trace] window does accept scrolling resizing operations. After program execution terminated, this window displays latest data traced during execution. specify display start cycle, execute command.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Menu
This section outlines menu available with simulator. menu eight menus, each including frequently-used commands.
[File] Menu
[Load File.] This menu item reads object file IEEE-695 format into simulator. performs same function when command executed. [Load Parameter File.] This menu item reads parameter file into simulator. performs same function when command executed. [Load Option.] This menu item reads program file, data file data optional file Motorola format into simulator. performs same function when command executed. [Exit] This menu item quits simulator. performs same function when command executed.
Note:
[Flash Memory Operation.] invalid Sim63.
[Run] Menu
[Go] This menu item executes target program from address indicated current performs same function when command executed. Cursor] This menu item executes target program from address indicated current cursor position [Source] window (the address that line). performs same function when <address> command executed. Before this menu item selected, [Source] window must open address line where program break must clicked. Selecting break address clicking address line valid only lines that have actual code, invalid source-only lines. from Reset] This menu item resets then executes target program from program start address (0x0110). performs same function when command executed. [Step] This menu item executes instruction step address indicated current performs same function when command executed. [Next] This menu item executes instruction step address indicated current instruction executed calr, calz int, assumed that program section until control returns next address constitutes step steps their subroutines executed. This menu item performs same function when command executed.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
[Command File.] This menu item reads command file executes debug commands written that file. performs same function when command executed. [Reset CPU] This menu item resets CPU. performs same function when command executed.
[Break] Menu
[Breakpoint Set.] This menu item displays, sets clears breakpoints using dialog box. performs same function executing command. [Data Break.] This menu item displays, sets clears data break conditions using dialog box. performs same function executing command. [Register Break.] This menu item displays, sets clears register break conditions using dialog box. performs same function executing command. [Sequential Break.] This menu item displays, sets clears sequential break conditions using dialog box. performs same function executing command. [Stack Break.] This menu item displays sets stack break conditions using dialog box. performs same function executing command. [Break List] This menu item displays break conditions that have been set. performs same function executing command. [Break Clear] This menu item clears break conditions. performs same function executing command.
[Trace] Menu
[Trace Mode Set.] This menu item sets trace mode OFF. performs same function executing command. [Trace Search.] This menu item searches trace information from trace memory under condition specified using dialog box. performs same function executing command. [Trace File.] This menu item saves specified range trace information displayed [Trace] window file. performs same function executing command.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
[View] Menu
[Command] This menu item activates [Command] window. [Program] This menu item opens activates [Source] window displays program from current address display mode selected from menu items. These menu items perform same functions executing command, respectively. [Data Dump] This menu item opens activates [Data] window displays data memory contents from memory start address. [Register] This menu item opens activates [Register] window displays current values registers. [Trace] This menu item opens activates [Trace] window displays trace data sampled trace memory. [Toolbar] This menu item shows hides toolbar. [Status Bar] This menu item shows hides status bar.
[Option] Menu
[Log.] This menu item starts stops logging using dialog box. performs same function executing command. [Record.] This menu item starts stops recording command execution using dialog box. performs same function executing command. [Mode Setting.] This menu item sets simulator operating modes using dialog box. performs same functions executing command.
[Window] Menu
[Cascade] This menu item cascades opened windows. [Tile] This menu item tiles opened windows. This menu shows currently opened window names. Selecting activates window.
[Help] Menu
[About Sim63.] This menu item displays About dialog simulator.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Tool
tool buttons, each assigned frequently used command. [Key Break] button This button forcibly breaks execution target program. This function used cause program break when program fallen into endless loop. [Load File] button This button reads object file IEEE-695 format into simulator. performs same function when command executed. [Load Parameter] button This button reads parameter file into simulator. performs same function when command executed. [Load Option] button This button reads program file, data file data optional file Motorola format into simulator. performs same function when command executed. [Source] button This button switches display [Source] window source mode. [Source] window opens closed. This button performs same function when command executed. [Unassemble] button This button switches display [Source] window unassemble mode. [Source] window opens closed. This button performs same function when command executed. [Mix] button This button switches display [Source] window mode (unassemble source). [Source] window opens closed. This button performs same function when command executed. [Go] button This button executes target program from address indicated current performs same function when command executed. Cursor] button This button executes target program from address indicated current cursor position [Source] window (the address that line). performs same function when <address> command executed. Before this button selected, [Source] window must open address line where program break must clicked. Selecting break address clicking address line valid only lines that have actual code, invalid source-only lines. from Reset] button This button resets then executes target program from program start address (0x110). performs same function when command executed. [Step] button This button executes instruction step address indicated current performs same function when command executed. [Next] button This button executes instruction step address indicated current instruction executed calr, calz int, assumed that program section until control returns next address constitutes step steps their subroutines executed. This button performs same function when command executed. [Reset] button This button resets CPU. performs same function when command executed. [Break] button this button clear breakpoint address where cursor located [Source] window. This function valid only when [Source] window open. Note that selecting break address clicking address line valid only lines that have actual code invalid source-only lines. [Help] button clicking this button, help window appears screen, displaying contents help topics.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Method Executing Commands
debug functions performed executing debug commands. This section describes execute these commands.
3.9.1 Entering Commands from Keyboard
Select [Command] window clicking somewhere [Command] window). When prompt appears last line this window cursor blinking behind system ready accept command from keyboard. Input debug command prompt position. commands case-sensitive; they input either uppercase lowercase.
General command input format
>command parameter parameter parameter space required between command parameter. Space required between parameters. arrow keys, [Back Space] key, [Delete] correct erroneous input. When press [Enter] after entering command, system executes that command. command entered accompanied guidance, command executed when necessary data input according displayed guidance.) Input example: (Only command input.) >com test.cmd command parameter input.)
Command input accompanied guidance
commands that cannot executed unless parameter commands that modify existing data specified, guidance mode entered when only command input. this mode, system brings guidance field, input parameter there. Input example: File name :test.abs Input data according guidance (underlined part). Commands requiring parameter input precondition command shown above example reads program file into simulator. Commands like this that require entered parameter precondition executed until parameter input [Enter] pressed. command multiple parameters input, system brings next guidance, sure input necessary parameters sequentially. [Enter] pressed without entering parameter some guidance session command, system assumes command canceled does execute Commands that replace existing data after confirmation commands that rewrite memory register contents provide option skipping guidance modify contents), returning immediately preceding guidance, terminating during input session. [Enter] Skips input. Returns immediately preceding guidance. Terminates input session. Input example: Data enter address 0000 0001 0000 0001 0002 0001
Command modify data memory. Inputs start address. Modifies address 0x0000 Returns immediately preceding address. Inputs address 0x0000 back again. Skips address 0x0001 pressing [Enter] alone. Terminates input session.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Numeric data format parameter
numeric values accepted parameter, they must input hexadecimal numbers almost commands. However, some parameters accept decimal binary numbers. following characters valid specifying numeric data: Hexadecimal: 0-9, a-f, A-F, Decimal: Binary: used mask bits when specifying data pattern.)
Specification with symbol
address specifications, symbols defined source also used. However, necessary load absolute object file that contains debug information. Symbols should used follows: Global symbol Local symbol @<symbol name> e.g. @RAM_BLK1 @<symbol name>@<source file name> e.g. @LOOP@main.s
Successive execution using [Enter]
commands listed below executed successively using only [Enter] after executing once. Successive execution here means repeating previous operation continuous display previous contents. Execution commands: Display commands: (go), (step), (next), (execute command file) (source), (mix), (unassemble), (data memory dump), (trace data display), (symbol list), (map information)
successive execution function terminated when some other command executed.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.9.2 Executing from Menu Tool
menu tool assigned frequently-used commands described Sections 3.8. command executed simply selecting desired menu command clicking tool button. Table 3.9.2.1 lists commands assigned menu tool bar. Table 3.9.2.1 Commands that specified from menu tool
Command Function Load IEEE-695 absolute object file Load parameter file Load Motorola file Execute program successively Menu [File Load File.] [File Load Parameter File.] [File Load Option.] [Run [Run Cursor] [Run after Reset] [Run Step] [Run Next] [Run Command File.] [Run Command File.] [Run Reset CPU] [Break Breakpoint Set.] [Break Data Break.] [Break Register Break.] [Break Sequential Break.] [Break Stack Break.] [Break Break List] [Break Break Clear] [Trace Trace Mode Set.] [Trace Trace Search.] [Trace Trace File.] [View Program Unassemble] [View Program Source Display] [View Program Mode] [View Data Dump] [View Register] [View Trace] [Option Log.] [Option Record.] [Option Mode Setting.] Button
<address> Execute program <address> successively (bpc) Reset execute program successively Single step execution Step execution with skip subroutine Load execute command file Load execute command file with wait Reset Set/clear breakpoint Set/clear data break Set/clear register break Set/clear sequential break stack break Break list Clear break conditions trace mode Search trace information Save trace information file Unassemble display Source display display Dump data memory Display register values Display trace information Turn output Record commands command file modes
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.9.3 Executing from Command File
Another method executing commands command file that contains descriptions series debug commands. reading command file into simulator commands written executed.
Creating command file
Create command file text file using editor. Although there specific restrictions extension file name, Seiko Epson recommends using ".cmd". Command files also created using command. command creates command file saves executed commands file.
Example command file
example below shows command group that loads program file, sets breakpoint then executes program. Example: File name start.cmd test.fsa test.ssa test.abs 0004d7 command file write commands that come with guidance mode executed. this case, sure break line each guidance input item command written.
Reading executing command file
simulator commands available that used execute command file. command reads specified file executes commands that file sequentially order they written. command performs same function command except that each command executed intervals specified command seconds). Example: start.cmd test.cmd commands written command file displayed [Command] window.
Restrictions
Another command file read from within command file. However, nesting these command files limited maximum five levels. error assumed subsequent execution halted when command sixth level encountered.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.9.4 File
executed commands execution results saved file text format that called "log file". This file allows verification debug procedures contents. contents displayed [Command] window saved this file.
Command example
>log tst.log After simulator mode command (after starts outputting file), command toggles (output turned mode output turned normal mode). Therefore, output only portions needed output file.
Display [Command] window mode
contents displayed [Command] window during mode differ from those appearing normal mode. When executing command when each window open (When window that displays command execution result opened) Normal mode: contents relevant display window updated. execution results displayed [Command] window. mode: same contents those displayed relevant window also displayed [Command] window. However, changes made relevant window scrolling opening reflected [Command] window. When executing command while each window closed When relevant display window closed, execution results always displayed [Command] window regardless whether operation mode normal mode.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.10 Debug Functions
This section outlines debug features simulator, classified function.
3.10.1 Loading Files
Table 3.10.1.1 lists files read simulator load commands. Table 3.10.1.1 Files load commands
File Parameter file panel definition file Component mapping file Port setting file Simulator project file IEEE-695 absolute object file Program file Data file Function option file Segment option file Command file Type .par .lcd .cmp .prt .spj .abs .hsa .lsa .csa .fsa .ssa .cmd Generation tool LcdUtil lk63 hx63 fog63xxx winfog sog63xxx winsog com/cmw [File Load Option.] Command Menu [File Load Parameter File.] [File Load Parameter File.] [File Load File.] Button
[Run Command File.]
Files required starting simulator. Either parameter file simulator project file must selected dialog shown below first time simulator starts Enter parameter file name simulator project file name text box, choose using [Browse.] button. [Show this window startup] check deselected, this dialog will appear from next startup simulator same file will selected. Loading parameter file resets simulator. memory mapping information parameter file displayed using command. When parameter file selected, dialog shown below appears select files from When simulator project file selected, this dialog does appear because file names specified file. Enter component mapping file name, panel definition file name port setting file name respective text boxes, chose using [Browse.] button. These files selected once, file names will appear text boxes next startup simulator allowing choice files clicking [OK] button only. command loads absolute object file (.abs) IEEE-695 format. perform source display symbolic debugging, load object file that contains debugging information this format. Furthermore, source files must located original directory. command loads program/data files (.hsa, .lsa, .csa) option file (.fsa, .ssa) Motorola format. When files this format loaded, [Source] window display program code only unassemble mode. command file, refer Section 3.9.3.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.10.2 Source Display Symbolic Debugging Function
simulator allows program debugging while displaying assembly source statements. Address specification using symbol name also possible.
Displaying program code
[Source] window displays program specified display mode. display mode selected from among three modes: Unassemble mode, Source mode, mode. Table 3.10.2.1 Commands/menu items/tool buttons switch display mode
Function Unassemble display mode Source display mode display mode Command Menu [View Program Unassemble] [View Program Source Display] [View Program Mode] Button
Unassemble mode
this mode, simulator displays program codes after unassembling into mnemonics. Source mode
this mode, source that contains code current address displayed like editor screen. This mode available only when absolute object file that contains source debugging information been loaded.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
mode
this mode, both unassembled codes sources displayed like absolute list. This mode available only when absolute object file that contains source debugging information been loaded. Refer Section 3.6.5, "[Source] Window" details about display contents.
Symbol reference
When debugging program after reading object file IEEE-695 format, symbols defined source file used specify address. This feature used when entering command having <address> parameter from [Command] window dialog box. Referencing global symbols Follow method below specify symbol that declared global symbol/label .global .comm pseudo-instruction. @<symbol> Example specification: @BOOT @RAM_BLK1 Referencing local symbols Follow method below specify local symbol/label that used only defined source file. @<symbol>@<file name> file name here source file name (.s) which symbol defined. Example specification: @SUB1@test.s Displaying symbol list symbols used program defined addresses displayed [Command] window. Table 3.10.2.2 Command display symbol list
Function Displaying symbol list Command Menu Button
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.10.3 Displaying Modifying Program, Data, Option Data Register
simulator functions operate program memory, data memory, registers, well option data. Each memory area simulator according information that given parameter file.
Operating program memory area
following operations performed program memory area: Table 3.10.3.1 Commands operate program memory
Function Entering/modifying program code In-line assemble Rewriting specified area Copying specified area Command (as) Menu Button
Entering/modifying program code program code specified address modified entering hexadecimal data. In-line assemble program code specified address modified entering mnemonic code. Rewriting specified area entire specified area rewritten with specified code. Copying specified area content specified area copied another area.
Operating data memory area
following operations performed data memory areas (RAM, data ROM, display memory, memory): Table 3.10.3.2 Commands/menu item operate data memory
Function Dumping memory data Entering/modifing memory data Rewriting specified area Coping specified area Command Menu [View Data Dump] Button
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Dumping data memory contents data memory displayed hexadecimal dump format. [Data] window opened, contents [Data] window updated; not, contents data memory displayed [Command] window. Entering/modifying data Data specified address rewritten entering hexadecimal data. Data directly modified [Data] window. Rewriting specified area entire specified area rewritten with specified data. Copying specified area content specified area copied another area. Monitoring memory Four memory locations, each with area store consecutive words, registered watch data addresses. registered watch data verified [Register] window. Addresses made watch data addresses default.
memory content displayed left indicates data specified address, displayed right indicates 4word data highorder address.
Monitor data
Operating registers
following operations performed registers: Table 3.10.3.3 Commands/menu items operate registers
Function Displaying register values Modifing register value Command Menu [View Register] Button
Displaying registers Register contents displayed [Register] [Command] window. Registers: [X], [Y], SP1, SP2, EXT, QUEUE Modifying register values contents above registers desired value. register values directly modified [Register] window.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.10.4 Executing Program
simulator execute target program successively execute instructions step time (single-stepping).
Successive execution
Types successive execution There types successive execution available: Successive execution from current Successive execution from program start address (0x0110) after resetting Table 3.10.4.1 Commands/menu items/tool buttons successive execution
Function Successive execution from current Command Menu [Run [Run Cursol] Successive execution after resetting [Run from Reset] Button
Stopping successive execution Using successive execution command (g), specify temporary break addresses that only effective during program execution. temporary break address also specified from [Source] window (one location only). cursor placed address line [Source] window Cursor] button clicked, program starts executing from current address breaks before executing instruction address cursor placed. Except being stopped this temporary break, program continues execution until stopped following causes: Break conditions break command met. [Key Break] button clicked. break, etc. occurs. [Key Break] button When program does stop, this button forcibly stop
Simulation panel display external input/output [LCD] window shows panel images according program sequence during program execution. also allows simulation inputs using keyboard computer. These functions configured with component mapping file, panel definition file port setting file loaded startup simulator. Section 3.6.3, "[LCD] Window", more information. Furthermore, serial/general port inputs/outputs conversion simulated reading file from [I/O Terminal] window. Section 3.6.4, "[I/O Terminal] Window", details.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Single-stepping
Types single-stepping There types single-stepping available: Stepping through instructions (STEP) instructions executed step time according regardless type instruction. Stepping through instructions except subroutines (NEXT) calr, calz instructions executed under assumption that step constitutes range statements until control returned next step return instruction. Other instructions executed same ordinary single-stepping. either case, program starts executing from current Table 3.10.4.2 Commands/menu items/tool buttons single-stepping
Function Single step execution Single step execution except subroutines Command Menu [Run Step] [Run Next] Button
When executing single-stepping command input, number steps executed specified, 65,535 steps. When using menu commands tool buttons, program executed step time. following cases, single-stepping terminated before specified number steps executed: When [Key Break] button clicked. When break similar break occurs. Single-stepping suspended breaks user such break data break. [Key Break] button When program does stop, this button forcibly stop Display during single-stepping initial simulator settings, display updated follows: display contents [Register] window updated every step. [Register] window closed, contents displayed [Command] window. This default display mode switched over command that display contents updated only last step specified number steps. display [Source] [Data] windows updated after specified number step executions completed. HALT SLEEP states interrupts placed standby mode when halt instruction executed. interrupt required cancel this mode. simulator mode enable disable external interrupt single-step operation. Table 3.10.4.3 External interrupt modes
External interrupt halt instructions Enable mode Interrupt processed. Executed halt instruction. Processing continued external interrupt clicking [Key Break] button. Disable mode Interrupt processed. halt instructions replaced with instruction instruction executed.
initial settings, simulator interrupt disable mode. interrupt enable mode also using command. entry simulation during single-stepping entry status [Key List] window displayed clicking [Key List] button [LCD] window maintained during single-stepping.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Measuring execution cycles
Execution cycle counter simulator contains 31-bit execution cycle counter allowing measure number cycles executed. 2,147,483,647 cycles measured execution cycle counter. Displaying measurement results measurement result displayed [Register] window. This display cleared during program execution updated after completion execution. [Register] window closed, measurement result displayed [Command] window using command. execution results single-stepping also displayed here. counter's maximum count exceeded, system indicates "over flow". Hold mode reset mode initial simulator settings, execution cycle counter hold mode. this mode, measured values combined until counter reset. reset mode command. this mode, counter reset each time program executed. successive execution, counter reset when program made start executing entering command measurement taken until execution terminated (beak occurs). (The same applies command except that counter reset simultaneously when reset. Consequently, counter operates same both hold reset modes.) single-stepping, counter reset when program made start executing entering command measurement taken until execution specified number steps completed. counter reset every step execution only step specified execution initiated tool button menu command. Resetting execution cycle counter execution cycle counter reset following cases: When reset with command, [Reset CPU] [Run] menu, [Reset] button When command from Reset] [Run] menu executed When execution cycle counter mode switched over command (between hold reset modes) When program execution started reset mode
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Resetting
Table 3.10.4.4 Commands/menu items/tool buttons resetting
Function Reset Successive execution after resetting Command Menu [Run Reset CPU] [Run from Reset] Button
reset when command executed, executing command. When reset, internal circuits initialized follows: Internal registers QUEUE SP1, SP2, 0x0110 0xaaaa 0b0000 0xaa
execution cycle counter reset [Source] [Register] windows redisplayed. Because 0x0110, [Source] window redisplayed beginning with that address. [Register] window redisplayed with internal circuits initialized described above. data memory contents modified.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.10.5 Break Functions
target program made stop executing following causes: Break command conditions satisfied. [Key Break] button activated. break similar break occurs.
Break command
simulator five types break functions that allow break conditions command. When conditions these break functions met, program under execution made break. Break This function causes program break when matches address. program made break before executing instruction that address. breakpoints multiple addresses. Table 3.10.5.1 Commands/menu items/tool button breakpoints
Function breakpoints Clear break points Command (bpc) Menu [Break Breakpoint Set.] [Break Breakpoint Set.] Button
addresses that breakpoints marked with they displayed [Source] window.
Using [Break] button easily allows setting canceling breakpoints. Click address line [Source] window where program break desired (after moving cursor that position) then click [Break] button. mark will placed beginning line indicating that breakpoint been there, address registered breakpoint list. Clicking line that begins with then [Break] button cancels breakpoint have set, which case address deleted from breakpoint list. temporary break addresses that specified successive execution commands affect addresses breakpoint list.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Data break This break function allows break executed when location specified data memory area accessed. addition specifying memory area which watch accesses, specification whether break caused read write, well specification content data read written. read/write condition masked, that break will generated whichever operation, read write, attempted. Similarly, data condition also masked units. break occurs after completing cycle which operation satisfy above specified condition performed. Table 3.10.5.2 Commands/menu item data break
Function data break condition Clear data break condition Command Menu [Break Data Break.] [Break Data Break.] Button
example, program executed after setting data break condition Address 0x10, Data pattern (mask) program breaks after writing data data memory address 0x10.
Register break This break function causes break when register reach specified value. Each register masked they included break conditions). register masked units. break occurs when above registers modified satisfy conditions. Table 3.10.5.3 Commands/menu item register break
Function register break condition Clear register break condition Command Menu [Break Register Break.] [Break Register Break.] Button
example, program executed after setting data register data register flag masking others, program breaks when register cleared flag
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Sequential break This break function allows settings three break addresses number times instructions last address executed. While passing through addresses sequentially order set, program executes instructions final specified address directed number times, then fetches instruction that address more time before breaks. Table 3.10.5.4 Commands/menu item sequential break
Function sequential break condition Clear sequential break condition Command Menu [Break Sequential Break.] [Break Sequential Break.] Button
example, execute program after first setting break address locations addresses 0x1000 0x2000 specifying execution count using command, program executes address 0x2000 three times after executing address 0x1000 more than time, when reaches 0x2000, breaks before performing execution. execution count 4,095.
Accessing outside stack area This break occurs when location outside stack area accessed stack pointer SP2. Before this function used, areas must command. initial value 0x3ff SP1, 0xff SP2. address must specified units words.
Table 3.10.5.5 Command/menu item stack break
Function stack break condition Command Menu [Break Stack Break.] Button
Forced break [Key Break] button
[Key Break] button [Key Break] button used forcibly terminate program under execution when program fallen into endless loop cannot exit standby (HALT SLEEP) state.
break illegal instruction break
program also breaks when following errors encountered during program execution: Access undefined program area break occurs when undefined area program memory accessed. Access undefined data area break occurs when undefined area data memory accessed. Write data area break occurs when write data area attempted.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.10.6 Trace Functions
simulator function trace program execution. trace function initially disabled enabled using command. Table 3.10.6.1 Trace mode setup command
Function trace mode Command Menu [Trace Trace Mode Set.] Button
Trace data buffer trace information
simulator trace data buffer. When simulator executes program, trace information each executed instruction taken into this buffer. trace data buffer capacity store information 8,192 instructions. When trace information exceeds this capacity, data overwritten, oldest data first. Consequently, trace information stored trace data buffer always within 8,192 instructions. trace data buffer cleared when program executed, starting trace execution data.
following lists trace information that taken into trace data buffer every instruction execution cycle. This list corresponded display [Trace] window. Trace cycle (decimal). last information taken into trace memory becomes 00001. fetch addr: Fetch address (hexadecimal). fetch code disasm:Fetch code (hexadecimal) disassembled content. register: Values registers after cycle execution (hexadecimal). flag: States flags after cycle execution (binary). data: Accessed data memory address (hexadecimal), read/write (denoted beginning data), data (1-digit hexadecimal 4-bit access; 4-digit hexadecimal 16-bit access). Stack access access; access). trace Unused trace cycle:
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Displaying searching trace information
sampled trace information displayed [Trace] window after program execution finished. [Trace] window, entire trace data buffer seen scrolling window. trace information displayed beginning from specified cycle using command. display contents described above. [Trace] window closed, information displayed [Command] window using command. Table 3.10.6.2 Command/menu item display trace information
Function Display trace information Command Menu [View Trace] Button
possible specify search condition display trace information that matches specified condition. Table 3.10.6.3 Command/menu item search trace information
Function Search trace information Command Menu [Trace Trace Search.] Button
search condition selected from following three: Program's execution address Address from which data read Address which data written When above condition address specified, system starts searching. When trace information that matches specified condition found, system displays found data [Trace] window [Command] window [Trace] window closed).
Saving trace information
trace information within specified range saved file. Table 3.10.6.4 Command/menu item save trace information
Function Save trace information Command Menu [Trace Trace File.] Button
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.11 Command List
Table 3.11.1 Command list
Classification Program memory operation Command (as) [<addr> <mnemonic> [<file name>]] [<addr> <code1> [.<code8>]] [<addr1> <addr2> <code>] [<addr1> <addr2> <addr3>] Data memory [<addr1> [<addr2>] [{-B|-W|-L|-F|-D}]] operation [<addr. <data1> [.<data16>]] [<addr1> <addr2> <data>] [<addr1> <addr2> <addr3>] [<addr1> [.<addr4>]] Register operation [<reg> <value> [.<reg> <value>]] Program execution [<addr1> [<addr2>]] [<addr1> [<addr2>]] [<step>] [<step>] Reset Break [<addr1> [.<addr16>]] [<addr1> [.<addr16>]] [<addr1> [.<addr16>]] [<data> {r|w|} <addr1> <addr2>] [<reg> <value> [.<reg> <value>]] Program display Symbol information Load files Trace Others Function In-line assemble Enter program code Fill program memory area Copy program memory area Dump data memory data Enter memory data Fill data memory area Copy data memory area watch data address Display register values Modify register value Execute program successively from current Execute program successively after resetting Single stepping from current Single stepping with skip subroutines Reset breakpoints Clear breakpoints data break condition Clear data break condition register break condition Clear register break condition sequential break condition Clear sequential break condition stack break condition Display break conditions Clear break conditions Unassemble display Source display display Display symbol list Load IEEE-695 format absolute object file Load Motorola format file Load parameter file trace mode Display trace information Search trace information Save trace information Load execute command file Load execute command file with execution interval Record executed commands file Logging Display information modes option={-f|-u|-i|-s|-c|-il|-cm} Quit debugger Display command usage
[<pass> <addr1> [<addr2> [<addr3>]]] [<addr1> <addr2> <addr3> <addr4>]
[<addr>] [<addr>] [<addr>] [{$<keyword>|#<keyword>}][/a] [<file name>] [<file name>] [<file name>] [{on|off}] [<cycle>] [{pc|dr|dw} <addr>] [[<cycle1> [<cycle2>]] <file name>] [<file name> [<interval>]] [<file name>] [<file name>] [<file name>] [<option> <num> [.<option> <num>]]
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.12 Component Mapping File (.cmp)
component mapping file (peripheral setting file) text file record information required simulate CPU, entry display simulator. files that contain internal peripheral circuit data available models provided. these files after adding necessary information using text editor. Since simulator saves panel information simulator, such panel color, this file, file attribute Read Only. Example: [Internal] CPU=CPU.bmc LCD=LcdDrv63.bmc K/P/R port=KPRport.bmc SVD=SVD63.bmc Sound=Sound63.bmc Serial=Serial63666.bmc (note Adc=Adc63.bmc (note [Settings] CpuType=63666 OSC1=32.768KHz OSC3=1.0MHz [External] EXT0=CMulDiv63.bmc,FF80h,FF86h
[Internal] Internal peripheral circuit parameters
file does allow user modify these parameters. However, development environment which S1C63/S1C88 simulator already been installed, components that support serial interface must added here (note same applies when using converter (note When using some type that does incorporate serial interface converter, Serial NullDev.bmc (note NullDev.bmc (note
[Settings] parameters
these parameters must specified follows: [Settings] CpuType=63666 OSC1=32.768KHz OSC3=1.0MHz Start Settings section Family name OSC1 clock frequency OSC3 clock frequency
[External] External device parameters
When parameters have been described file, modify delete them. [External] Start External section EXT0=CMulDiv63.bmc,FF80h,FF86h Definition: Ext<N>=<device>.bmc, <Start_addr>, <End_addr>, <Option> Ext<N>: <device>.bmc: <Start_addr>: <End_addr>: <Option>: sequential device number beginning from Peripheral device definition file name start address address Peripheral specific option
Setting BkLight
When using backlights (BkLight), describe information follows: Ext1=BkLight.bmc,FF31h,FF31h,1L Specify address port connected backlight. start addresses have same value. option allows definition number active level turn backlight example shown above defines that backlight goes when low.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.13 File (.iot)
file text file which settings input data written simulate general-purpose port serial interface input/output operations conversions. These settings data loaded using [I/O Terminal] window menu before performing input/output simulation. more information [I/O Terminal] window using window input/output simulation, refer Section 3.6.4, "[I/O Terminal] Window". perform input/output simulation, first create file using text editor described below. Save created data file using file extension ".iot".
File contents
Write input data, each section, e.g., [General I/O] [A/D Converter]. Although sequence sections does matter, data each section processed order which they written. data need written sections whose functions used. Example: test.iot [General I/O] watch P00, P01, P02, P10, P11, K00=1 Section K00=0 Order which (general-purpose input/output ports) K00=H data processed K00=L [A/D Converter] AVdd=3.0 Section AVss=0.2 (A/D converter voltage settings) AVref=2.9 [A/D CH2] 2.40,2.39,2.38,2.37,2.36 2.00, 2.10, 2.20, 2.30 Section Order which (A/D channel input settings) data processed 0.65 0.80 [Serial CH1] "aBcDeFg" Order which Section (Serial interface channel 0x25,0x20,0x41 data processed
General-purpose input/output ports
Write settings general-purpose input/output ports [General I/O] section. Specifying monitor ports Specify general-purpose input/output ports whose input/outputs monitored with watch statement. Example: watch P00, P01, P02, P10, P11, watch statement, write port names whose input/outputs checked (Kxx, Rxx, Pxx). When input/outputs ports written here change state from high vice versa, displayed [I/O Terminal] window. When monitoring port state, there need write port names. Specifying ports input When using general-purpose input/output ports input, write time seconds) port name which input signal input level applied port line line basis. Input simulations ports performed order they written, beginning with written top. Example: K00=1 K00=0 +0.7 P02=H, P10=L beginning each line indicates time seconds) which signal input port. time with precision using decimal point. values here basically represent elapsed time after reset. values specified indicate elapsed time after previous input prefixing value with positive sign "+".
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
Enter this specification form "port name input level". Write high-level input, low-level input. above example, high signal input port seconds after executing reset instruction. Likewise, signal input port seconds later, high signal respectively input port port same time seconds later. input port port) interrupts have been enabled, interrupt generated synchronously with input timing.
converter
Write settings converter [A/D Converter] [A/D CHn] sections. Setting converter voltages [A/D Converter] section, write converter's voltages. Example: [A/D Converter] AVdd=3.0 AVss=0.2 AVref=2.9 AVdd, AVss, AVref lines represent converter's positive power supply voltage, negative power supply voltage, reference voltage respectively. Write voltage values units volts. voltages with precision using decimal point. When using converter, always write [A/D Converter] section that includes these three lines. Specifying analog input voltages [A/D CHn] section, write input voltages converter. Specify input voltages each channel. Input voltages need specified unused channels. Example: [A/D CH4] 2.40,2.39,2.38,2.37,2.36 2.00, 2.10, 2.20, 2.30 [A/D CH5] 0.65 0.80 Write input voltages units volts. voltages with precision using decimal point. Each time target program executes conversion, written data loaded sequentially from top. When writing input voltages line, separate each entry with comma (,). this case, data loaded sequentially from left. interrupts enabled, interrupt generated certain time (sampling time conversion time) after input began. conversion performed channel which does have data specified, channel processing assumes level-0 voltage (equivalent AVss) input. conversion performed more than specified data count, last data specified used repeatedly. Furthermore, value smaller than AVss specified, read level-0 (equivalent AVss); value larger than AVref specified, read maximum level (equivalent AVref).
Serial interface
Write settings serial interface [Serial CHn] section. Make this setting each channel. some types that contain only single channel, specify "CH1" (channel data needs written unused channels. Example: [Serial CH1] "aBcDeFg" 0x25,0x20,0x41,FER
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
Write input data either hexadecimal notation string notation (enclosed Data different notations cannot coexist line. Each time program receives signal serial interface, written data loaded sequentially from top. When writing multiple hexadecimal data single line, delimit each entry with comma (,). this case, data loaded sequentially from left. interrupts enabled, interrupt generated synchronously with timing which program finishes sampling input. interrupts generated when signal received channel that specified data. Cycle time clock source selected with register number bits parity bit) Clock-synchronous system (master): Cycle time clock source selected with register number bits Clock-synchronous system (slave): User-defined transfer rate (bps) clock-synchronous system (slave), specify transfer rate (bps) manner shown below. Enter this specification before writing data. This setting effective only synchronous system (slave). Example: [Serial CH1] bps=2400 "aBcDeFg" 0x25,0x20,0x41,FER Instead hexadecimal data, following specified: FER: Framing error PER: Parity error OER: Overrun error These data valid only when serial interface supports error interrupts. specify this data types that support error interrupts. interrupts have been enabled when this data loaded, error interrupt generated. serial interface output, particular specification needs written. When output channel occurs, displayed [I/O Terminal] window. time required sampling Asynchronous system:
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.14 Simulator Project File (.spj)
simulator project file text file that contains names parameter file, panel definition file, component mapping file port setting file used. text editor create This file allows simultaneous selection files described above. When simulator starts command ([File Load Parameter File]) executed, dialog appears select parameter file simulator project file. When selecting parameter file, simulator project file necessary. following example file contents. Example: [Setting] PAR=63666.par Parameter file LCD=63666.lcd panel definition file CMP=63666.cmp Component mapping file PRT=63666.prt Port setting file
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C63 FAMILY SIMULATOR
3.15 Restrictions
This simulator supports following models: S1C63158, S1C63358, S1C6P366, S1C63454, S1C63455, S1C63458, S1C63466, S1C63467, S1C6P466, S1C63557, S1C63558, S1C63567, S1C63666 supported external devices monochrome panels, backlight, keys matrix. This simulator performs instruction-level simulation. Therefore, execution cycles shorter than instruction cycle cannot simulated. Since timers simulated based instruction cycle, timings different from those actual hardware. following functions supported: Buzzer output TOUT/FOUT output converter analog comparator Event counter mode programmable timer simulate sound generator, sound card that supports playback sound source must installed more simulators cannot executed simultaneously multiple simulations. When using multiple-key entry reset function ports, simulator cannot reset even four assigned keys pressed simultaneously. reset using four keys, press three keys immediately after pressing other press keys immediately after pressing other keys. will reset immediately without authorization time. debugging functions this simulator compatible with S1C63 Family debugger db63 including menu dialog configuration. However functions shown below disabled because used. On-the-fly function Execution time measurement function (cycle counter available) Flash memory operation function (lfl, sfl, efl) Coverage function (cv, cvc) Option data dump function (od) Single delay trigger trace area trace functions Break trace trigger using external signals Refer readme.txt latest information such restrictions, supported models/functions known bugs.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C63 FAMILY SIMULATOR
3.16 Simulator Messages
Status message list
Status message Break break Break data break Break register break Break sequential break Break Break accessing program area Break accessing data area Break accessing area area area Content message Break caused breakpoint Break caused data break condition Break caused register break condition Break caused sequential break condition Break caused [Key Break] button Break caused accessing undefined program-memory area Break caused accessing undefined data-memory area Break caused writing data area Break caused accessing outside stack area Break caused accessing outside stack area
Error message list
Error message Address range, 0-0xXXXX Address range, 0-0xFFFF Cannot load program/ROM data, check file Cannot open file Data range, 0-0xF Different chip type, cannot load this file address start address error file type (extension should CMD) illegal code illegal mnemonic Incorrect number parameters Incorrect option, -f/-u/-i/-s/-c/-il/-cm Incorrect option, r/w/* Incorrect register name, A/B/X/Y/F Incorrect register name, PC/A/B/X/Y/F/SP1/SP2/EXT/Q Input address does exist invalid command invalid data pattern invalid file name invalid value Maximum nesting level(5) exceeded, cannot open file such symbol symbol information Number passes range, 0-4095 Number steps range, 0-65535 address range, 0-0x3FF address range, 0-0xFF symbol type error Content message (Commands involved) specified program memory address range. (a/as, specified data memory address range. (dd, Failed load program/ROM data; some file other than IEEE-695 executable format specified. (lf) file cannot opened. (lf, com, cmw, log, rec) specified number data range. (de, different parameter used file. (lf) start address larger than address. (pf, specified file extension invalid. (com, cmw) input code available. (pe, input mnemonic invalid S1C63000. (a/as) parameter number incorrect. (All commands) invalid mode setting option specified. (md) illegal option specified. (bd) invalid register name specified. (br) specified register name invalid. (rs) Attempt made clear break address that been set. (bp) This invalid command. (All commands) input data pattern invalid. (bd, file name (extension) invalid. (lo) input data, address symbol invalid. (All commands) Nesting com/cmw command exceeds limit. (com, cmw) There such symbol. (All symbol support commands) symbol information available since ".abs" file been loaded. (sy) specified pass count sequential break range. (bs) specified step count range. specified address range. (bsp) specified address range. (bsp) specified symbol type (program/data) incorrect. (All symbol support commands)
Warning message list
Warning message Break address already exists Identical break address input round down multiple Content message (Commands involved) Attempt made already-set break address. (bp) Input command contains identical address. Watch data address invalid. (dw)
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C88 FAMILY SIMULATOR
S1C88 FAMILY SIMULATOR
Overview
Sim88 simulator development tool S1C88 Family 8-bit single-chip microcomputers. simulator included this package allows debug software created with S1C88 integrated tool compiler, assembler) using just without in-circuit emulator (ICE) other dedicated hardware. addition providing general simulator functions, simulator simulates push-buttons matrix that ports, inputs/outputs serial/general ports, conversion displays. package includes utilities creating bitmap panel data. simulator following features functions: Operations including panel display simulated with alone without debugging hardware. Various data referenced same time using multiple windows. Frequently used commands executed from tool bars menus using mouse. Also available source, disassembled code symbol display functions. Consecutive program execution three types single-stepping possible. Three break functions supported. Trace coverage functions. automatic command execution function using command file.
Software Development Flow
Figure 4.2.1 shows typical software development flow S1C88 Family. items bold indicate tools related files provided this package.
Note: addition this package, software development S1C88 Family requires S1C88 Family Integrated Tool Package.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
Main tool chain tool chain Development tool chain
file.ini Function option generator winfog.exe Preprocessed source files file.FSA Function option file Segment option generator winsog.exe file.SSA Linker link88.exe file.ELK Symbol information generator converter hex88.exe file.PSA Motorola object file Mask data checker winmdc.exe file.PAn Program data file rel88.exe Error file Segment option file file.SDC Segment option document file file.FDC Function option document file file.S Device information drfinition file Assembly source files file.C source files Preprocessor Assembly files file.MS Error file.ERR file sap88.exe compiler c88.exe file.SRC Assembler as88.exe file.LST file.LST file.O Object modules file.E Error list file Object modules Object reader pr88.exe Link command file.LCM parameter file List file Error file.ERS file Assembly list file file.X Cross reference file Assembler asm88.exe file.OBJ Build Linker lk88.exe Absolute file.ABS object file Linker file.OUT object module file.LNL file.CAL Build Locator lc88.exe Symbolic table file generator Error file sym88.exe file.SY Symbolic table file file.ELC Absolute file.ABS load module file.SA Motorola object file file.SA Symbol file.REF information reference file Call graph file Link file Build Program unused area filling utility fil88xxx Mask data file parameter file model.PAR Debugger db88.exe (under development) ice88ur.exe file.SPJ Peripheral circuit board FPGA data model.MOT file ice88ur.ini writer control software Manufactured Seiko Epson Embedded system simulator Bitmap file file.BMP panel customize utility Port setting utility LcdUtil.exe PrtUtil.exe writer file.LCD definition file Port file.PRT setting file Component mapping file file.CMP Simulator sim88.exe Target board Simulator project file Peripheral circuit board
Text editor (prepared customer)
Build
Workbench
Control program
wb88.exe
cc88.exe
Project file.WPJ file
Make file.MAK file
Build
Make program
mk88.exe
S1C88 FAMILY SIMULATOR
Bitmap editor (prepared customer)
Build
Bitmap file.BMP file(s) Bitmap utility BmpUtil.exe (Simulator package)
Library maintainer
ar88.exe
file.BMU
Bitmap definition file
file.TXT Data table file
file.A
Object library
Build Locator description file generator (under debelopment)
Locator file.DSC description file.CPU files file.MEM
EPSON
Locate file.MAP file
Build Symbolic table file generator
Intel file.HEX object file
sy88.exe
file.SY
Symbolic table file
Auto evaluation system AutoEva.exe
file.TXT
file.Mxx
file.Axx
Command Reference file data file
Result data file
Flash
Mask
file.CSV
Check sheet file
invorked from workbench wb88. Build Tools executed automatically during build process wb88. error file generated, wb88 displays contents file message view allows jump function.
Created using text editor. Created using bitmap editor.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
Fig. 4.2.1 Software development flow
S1C88 FAMILY SIMULATOR
Overview Simulation Functions Operations
This section explains target application simulated with simulator sim88.
Supported MPUs
current simulator version supports applications using following MPUs: S1C88112, S1C88308, S1C88317, S1C88348, S1C8P348, S1C88349, S1C8F360, S1C88816, S1C88832, S1C88862
Target applications
This simulator best suited simulating applications that require input display functions, such watches, pocket calculators, electronic pocketbooks, portable games. OSC1 clock operation executed real time. OSC3 operation, real-time execution possible range MHz. (With running 400-MHz Pentium equivalent faster RAM, real-time execution approximately possible.) However, reasons involving instruction-level simulation accuracy, possible simulate high-accuracy timing tasks such those control systems. Support external devices limited ROM, RAM, drivers listed below, monochrome panels, backlight, keys, matrix. Serial inputs/outputs, conversions general port inputs/outputs simulated using text terminal plug-in module. Supported drivers: S1D15210, S1D15600, S1D15601, S1D15602, S1D15605, S1D15606, S1D15607, S1D15608
Note: Simulation subject some other limitations. Section 4.15, "Restrictions", readme.txt file.
Entering schematic information into simulator
information required simulate operation external devices, load data from files. mapping parameter file (file.par) addresses which devices mapped. more information creating this file, S5U1C88000C Manual. Mapping external devices internally-generated clock frequency Create component mapping file (file.cmp) writing addresses which driver (S1D15210), backlight, backlight control mapped, then load file into simulator. This allows simulated control these external devices. component mapping file simulation conditions such OSC1/OSC3 oscillation clock frequencies. more information creating this file, Section 4.12, "Component Mapping File (.cmp)". Entering matrix specifications Create port setting file (.prt) containing description relationship between input ports ports comprising matrix target keyboards, then load file into simulator. This allows simulated input with keyboard. more information creating this file, Chapter "Port Setting Utility". Entering design Create panel definition file (file.lcd) containing record panel layout SEG/COM port assignments, then load file into simulator. This allows simulated display panels. more information creating panel definition file, Chapter "LCD Panel Customize Utility". These files normally loaded when simulator starts.
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C88 FAMILY SIMULATOR
Loading executing target program
simulator command load target program command simulate display input during program execution, simulator's [LCD] [I/O Terminal] windows. display: input: Displayed [LCD] window actual LCD. Activate [LCD] window type appropriate keyboard. also verify input status dedicated window.
evaluation: Manipulate slide [LCD] window simulate function. Inputs/outputs serial interface general ports, conversion: Activate [I/O Terminal] window load file which input sequence described simulate input/output functions.
EPSON
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
S1C88 FAMILY SIMULATOR
Input/Output Files
Simulator Parameter project file file file.spj file.par file file.iot Absolute object file file.abs Source file(s) file.c(asm) Command file file.cmd
Port setting file file.prt panel definition file file.lcd Component mapping file file.cmp file.cmd Record file
Simulator sim88
file.psa Program file file.trc Trace file file.sy Symbol file
file.fsa Function option file
file.log file
Fig. 4.4.1 Input/output files
Parameter file (file_name.par)
This text file contains memory information each microcomputer model used memory mapping information simulator. contents this file, refer S5U1C88000C Manual.
Absolute object file (file_name.abs)
This IEEE-695 object file generated locator. reading file this format that contains debug information, source display symbolic debugging performed.
Source file (file_name.c, file_name.asm)
This source file above object file. read when simulator performs source display.
Internal data file (file_name.psa)
This program file generated fil88xxx unused area filling utility Motorola format file. unused area built-in been filled with system code system reserved area.
Function option file (file_name.fsa)
This mask option setup file Motorola format that generated function option generator.
Symbol information file (file_name.sy)
This symbol information file generated symbol table file generator. preparing file with same name program file same directory program file, will automatically loaded same time program loaded. This file allows simulator display symbols defined source.
Simulator project file (file_name.spj)
This file used specify parameter file, panel definition file, component mapping file port setting file simulator start Enter file names using editor create this file. simulator started this file does exist selecting files from dialog box.
file (file_name.iot)
This text file which input data used simulate serial/general port inputs/outputs conversions described.
panel definition file (file_name.lcd)
This file includes panel layout bitmap SEG/COM port allocation information. Create this file using panel customizing utility (LcdUtil).
S5U1C88000Q MANUAL (S1C63/S1C88 FAMILY EMBEDDED SYSTEM SIMULATOR PACKAGE)
EPSON
S1C88 FAMILY SIMULATOR
Component mapping file (file_name.cmp)
This text file that sets addresses where external driver backlight mapped.
Port setting file (file_name.prt)
This text file which push keys, key-matrix configuration corresponding between keys ports described.
Command file (file_name.cmd)
This text file contains descripti

Other recent searches


ST26C31 - ST26C31   ST26C31 Datasheet
PD638C - PD638C   PD638C Datasheet
OPB706A - OPB706A   OPB706A Datasheet
OPB706B - OPB706B   OPB706B Datasheet
OPB706C - OPB706C   OPB706C Datasheet
OPB707A - OPB707A   OPB707A Datasheet
OPB707B - OPB707B   OPB707B Datasheet
OPB707C - OPB707C   OPB707C Datasheet
GSM900 - GSM900   GSM900 Datasheet
DCS1800 - DCS1800   DCS1800 Datasheet
PCS1900 - PCS1900   PCS1900 Datasheet
FA7616CP - FA7616CP   FA7616CP Datasheet
EN50041 - EN50041   EN50041 Datasheet
EN418 - EN418   EN418 Datasheet
DP3S1MX32PY5 - DP3S1MX32PY5   DP3S1MX32PY5 Datasheet
1851096 - 1851096   1851096 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive