Download Print this page

Epson S5U1C63000A User Manual

Cmos 4-bit single chip microcomputer manual
Hide thumbs

Advertisement

Quick Links

MF910-06
CMOS 4 - BIT SINGLE CHIP MICROCOMPUTER
S5U1C63000A
Manual
(S1C63 Family Assembler Package)

Advertisement

loading

  Related Manuals for Epson S5U1C63000A

  Summary of Contents for Epson S5U1C63000A

  • Page 1 MF910-06 CMOS 4 - BIT SINGLE CHIP MICROCOMPUTER S5U1C63000A Manual (S1C63 Family Assembler Package)
  • Page 2 No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any...
  • Page 3 The information of the product number change Starting April 1, 2001, the product number will be changed as listed below. To order from April 1, 2001 please use the new product number. For further information, please contact Epson sales representative.
  • Page 5 For details of each tool Chapters 3 to 8 explain the details of each tool. Refer to it if necessary. Once familiar with this package Refer to the listings of instructions and commands contained in Appendices. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ® ®...
  • Page 6 Items enclosed in { } and separated with | indicate that you should choose an item. For example, {A | B} needs to have either A or B selected. (8) Development tool name ICE: Indicates S5U1C63000H1 (S1C63 Family In-Circuit Emulator). EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) ® 95/98. S5U1C63000A MANUAL...
  • Page 7: Table Of Contents

    3.7.1 Creating a New Source or Header File ... 30 3.7.2 Loading and Saving Files ... 31 3.7.3 Edit Function ... 32 3.7.4 Tag Jump Function ... 35 3.7.5 Printing ... 36 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Contents ... 6 EVELOPMENT ROCEDURE ...
  • Page 8 4.7.12 Global Declaration Pseudo-Instruction (.global) ... 81 4.7.13 List Control Pseudo-Instructions (.list, .nolist) ... 81 4.7.14 Source Debugging Information Pseudo-Instructions (.stabs, .stabn) ... 81 4.7.15 Comment Adding Function ... 82 4.7.16 Priority of Pseudo-Instructions ... 82 EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 9 6.6.2 Warning ... 110 6.7 Precautions ... 110 CHAPTER ISASSEMBLER 7.1 Functions ... 111 7.2 Input/Output Files ... 111 7.2.1 Input Files ... 111 7.2.2 Output Files ... 111 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... 105 ... 111 EPSON CONTENTS...
  • Page 10 8.8.1 Loading Program and Data Files ... 141 8.8.2 Source Display and Symbolic Debugging Function ... 142 8.8.3 Displaying and Modifying Program, Data, Option Data and Register ... 144 8.8.4 Executing Program ... 146 8.8.5 Break Functions ... 149 EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 11 8.9.11 Symbol Information ... 206 8.9.12 Load File ... 207 8.9.13 Flash Memory Operation ... 209 8.9.14 Trace ... 214 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) a / as (assemble mnemonic) ... 159 pe (program memory enter) ... 161 pf (program memory fill) ... 162 pm (program memory move) ...
  • Page 12 (xilinx fpga data write) ... 233 xfcp/xfcps (xilinx fpga data compare) ... 234 xdp/xdps (xilinx fpga data dump) ... 235 q (quit) ... 236 ? (help) ... 237 ... 240 ENERATOR ... 249 ENERATOR ... 262 EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 13 12.3.1 Starting Up ... 282 12.3.2 Menus and Toolbar Buttons ... 283 12.3.3 Operation Procedure ... 284 12.4 Error Messages ... 287 12.5 Example Output File ... 288 APPENDIX UICK EFERENCE S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... 281 HECKER EPSON CONTENTS...
  • Page 15: Chapter 1 General

    ("Dev" tools). The chip dependent information is read from the ICE param- eter file for each chip. Complete compatibility with old syntax sources By supporting old syntax, existing sources written for old 63 tools are available with these new tools. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) EPSON CHAPTER 1: GENERAL...
  • Page 16: Tool Composition

    This software provides an integrated development environment with Windows GUI. Creating/ editing source files, selecting files and major start-up options, and the start-up of each tool can be made with simple Windows operations. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 17: Working Environment

    Mask data checker (winmdc.exe) This tool checks the data in development-completed program ROM/data ROM files and option document files to create the mask data file that will be presented to Seiko Epson. 1.3 Working Environment To use the S1C63 Family Assembler Package, the following conditions are necessary:...
  • Page 18: Installation

    To install the tools, start up the "Setup.exe" and follow the instructions in the dialog boxes that will be appeared. For more information on the installation procedure, please refer to "setup_e.pdf" on the CD- ROM. 1.5 Directories and Files after Installation The installer copies the following files in the specified directory (default is "C:\EPSON\S1C63\"): [EPSON\S1C63] README_E.TXT README_J.TXT [\BIN] WB63.EXE...
  • Page 19 Files for future release models The files for future release models may be provided in FDs. Refer to the Readme file included in the FD for installation. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... Document folder (English) ... Tool release note ...
  • Page 20: Chapter 2 Software Development Procedure

    Segment option HEX file document file Melody data file file.MDT Melody Assembler winmla file.MSA file.MDC Melody ROM Melody ROM option option HEX file document file Mask Data Checker winmdc Mask file.PAn data file SEIKO EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 21: Development Using Work Bench

    This section shows a basic development procedure using the work bench wb63. Refer to Chapter 3, "Work Bench", for operation details. 2.2.1 Starting Up the Work Bench Start up the work bench by choosing "WorkBench63" from the program menu. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 22: Creating A New Project

    To create a new source file: 1. Select [New] from the [File] menu (or click the [New] button). [New] button The [New] dialog box appears. 2. Select [EPSON Assembly Source File] and click [OK]. Created project EPSON (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 23 A new edit window appears. [Edit] window 3. Enter source codes in the [Edit] window. 4. Save the source in a file by selecting [Save] from the [File] menu (or clicking the [Save] button). [Save] button EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 24: Configuration Of Tool Options

    Check box items can be selected by clicking. Items in the list can be toggled or entered by double- clicking. Refer to Chapter 3, "Work Bench", for details of the [Settings] dialog box. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 25: Building An Executable Object

    [Rebuild All] button To invoke the assembler only to correct syntax errors, select [Assemble] in the [Built] menu (or click the [Assemble] button). [Assemble] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 2: SOFTWARE DEVELOPMENT PROCEDURE Linked with the corresponding source line...
  • Page 26: Debugging

    Note: Make sure that the ICE is ready to debug before invoking the debugger. Refer to the ICE hardware manual for settings and startup method of the ICE. For the debugging functions and operations, refer to Chapter 8, "Debugger". EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 27: Chapter 3 Work Bench

    3.2 Starting Up and Terminating the Work Bench To start up the work bench To terminate the work bench Select [Exit] from the [File] menu. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ENCH Choose "WorkBench63" from the [Program] menu to start up the work bench.
  • Page 28: Work Bench Windows

    This window shows the currently opened work space folder and lists all the source files in the project, with a structure similar to Windows Explorer. Double-clicking a source file icon opens the source file in the [Edit] window. Toolbar [Edit] window [Output] window Status bar Black Blue Light brown Green EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 29: Window Manipulation

    S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH Double click EPSON...
  • Page 30 This button can be moved anywhere in the screen by dragging its title bar. Pressing the [ESC] key also returns the window to the normal display. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 31 To tile windows vertically, select [Tile Vertically] from the [Window] menu or click the [Tile Vertically] button. [Tile Vertically] button To tile windows horizontally, select [Tile Horizontally] from the [Window] menu or click the [Tile Horizontally] button. [Tile Horizontally] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH EPSON...
  • Page 32 The arrow keys can also be used. Showing and hiding the status bar The status bar can be shown or hidden by selecting [Status Bar] from the [View] menu. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 33: Toolbar And Buttons

    [Print] button Prints the document in the active [Edit] window. A standard print dialog will appear allowing a specific print condition. [Help] button Displays the help window. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH EPSON Window toolbar...
  • Page 34: Build Toolbar

    This tool bar has the following buttons used in window manipulation: [Cascade] button Cascades the opened [Edit] windows. [Tile Horizontally] button Tiles the opened [Edit] window horizontally. [Tile Vertically] button Tiles the opened [Edit] window vertically. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 35: Toolbar Manipulation

    When a source file (.s or .ms) is opened, the [Insert into project] button appears on the [Edit] window. It can be used to insert the source file into the current opened project. For other file types, the [Edit] window opens without the [Insert into project] button. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH...
  • Page 36: Menus

    Displays a print image of the document in the active [Edit] window. This menu item appears when an [Edit] window becomes active. [Page Setup...] Displays a dialog box for selecting paper and printer. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 37: Edit] Menu

    Opens or closes the [Project] window. [Build Bar] Shows or hides the build toolbar. [Window Bar] Shows or hides the window toolbar. [Full Screen] Maximizes the [Edit] window area to the full screen size. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH EPSON...
  • Page 38: Insert] Menu

    Displays a dialog box for selecting an executable object file format. Three types of formats are available: IEEE-695 absolute object format, Intel HEX format and Motorola S format. The build process will generate an executable object in the format selected here. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 39: Tools] Menu

    [Close All] Closes all the [Edit] windows opened. 3.5.8 [Help] Menu [Help] Displays the [Help] window. [About WB63...] Displays a dialog box showing the version of the work bench. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH EPSON...
  • Page 40: Project And Work Space

    1. Select [New] from the [File] menu or click the [New] button. [New] button The [New] dialog box appears. 2. Select [EPSON Project File] and click [OK]. The [Project] dialog box appears. 3. Enter a project name, select an ICE parameter file and select a directory, then click [OK].
  • Page 41: Inserting Sources Into A Project

    To remove a source file from the project, select the source in the [Project] window and then press the [Delete] key. This removes only the source information, and does not delete the actual source file. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 42: Project] Window

    If [Yes] (save) is selected in this dialog box, all the modification items includ- ing sources, tool settings and window configuration will be saved. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 43: Files In The Work Space Folder

    LINK_FLG = -g HEX_FLG = ALL : test.abs test.abs : test.cm sub.o main.o $(LINK) $(LINK_FLG) test.cm sub.o : C:\EPSON\S1C63\Test\sub.s $(ASM) $(ASM_FLG) C:\EPSON\S1C63\Test\sub.s main.o : C:\EPSON\S1C63\Test\main.s $(ASM) $(ASM_FLG) C:\EPSON\S1C63\Test\main.s This is a generic make file that contains macro setting and dependency list.
  • Page 44: Source Editor

    2. Select [EPSON Assembly Source File] and click [OK]. An [Edit] window appears. Enter source codes in this window. The [New] dialog box allows selection of the [EPSON Header File]. Select it when creating a header file for constant definitions. [Edit] window Enter source codes here.
  • Page 45: Loading And Saving Files

    2. Choose a source file to be opened after selecting the file type, "Assembly Source Files (*.s, *.ms)", and click [OK]. An [Edit] window opens and shows the contents of the source file. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH...
  • Page 46: Edit Function

    Any words can be searched in the active [Edit] window. Find To find a word, select [Find...] from the [Edit] menu or click the [Find] button. [Find] button The [Find] dialog box appears. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 47 If not, only the part of word that matches the specified word will be searched. [Match case] check box If this option is specified, a case-sensitive search is performed. If not, a case-insensitive search is performed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) [Find Previous] button EPSON CHAPTER 3: WORK BENCH...
  • Page 48 To insert a file such as a header file and another source at the cursor position of the current source, select [File...] from the [Insert] menu. A dialog box will appears allowing selection of the file to be inserted. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 49: Tag Jump Function

    In this case, you can go to the source line in which an error has occurred by double-clicking the error message in the [Output] window. However, this function is available only when the error message contains a source line number. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH...
  • Page 50: Printing

    To rebuild all files including the latest relocatable object files, select [Rebuild All] from the [Build] menu or click the [Rebuild All] button. [Rebuild All] button The build task can be suspended by selecting [Stop Build] from the [Build] menu or clicking the [Stop Build] button. [Stop Build] button EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 51: Debugging

    When the building process is performed again after invoking the debugger, the debugger will reload the object file if its window can be activated. Refer to Chapter 8, "Debugger", for operating the debugger. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH...
  • Page 52: Executing Other Tools

    After selecting an absolute object and options, click the [Open] button. The HEX converter starts up and converts the selected object into the specified format. The messages delivered from the HEX converter are displayed in the [Output] window. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 53 Note: These tools do not support some models (no device information definition file is provided). In this case, other tools are provided for each model. However those tools cannot be invoked from the [Tools] menu. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH...
  • Page 54: Tool Option Settings

    [Debug info] Addition of debugging information to the relocatable object (No: Not added, Yes: Added) [List file] Output of the relocatable list file (No: Not output, Yes: Output) [Defines] Name definition for conditional assembly (Enter a define name.) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 55: Linker Options

    The default setting applies to all the sections excluding those of the source specified. To set a specific source independently, select the check box at the front of the source file name. sub.s Check here S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Debug info List file Defines Double-click here.
  • Page 56 [Output cross reference file] check box Select this option to generate the cross reference file. Refer to Chapter 5, "Linker", for details of the linker options. Enter a symbol name and the address. Double-click to modify. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 57: Debugger Options

    3.9.3 Debugger Options 3.9.4 HEX Converter Options S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH [COM Port:] list box Select a COM port of the personal computer used to communicate with the ICE. COM1 is set by default.
  • Page 58: Work Bench Options

    (mnemonics), comments, assembler pseudo-instructions, preprocessor pseudo-instructions, labels and line numbers are displayed with different colors selected here. Note: The contents selected in this dialog box will be effective after restarting the work bench. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 59: Short-Cut Key List

    Cannot find ICE parameter file Cannot open file: <filename> You cannot close workspace while a build is in progress. Select the Stop Build command before closing. Would you like to build it? S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: WORK BENCH Function Description The currently opened file is modified by another editor.
  • Page 60: Precautions

    (:). (3) The work bench can create a make, linker command and debugger command files, note, however, that these files or settings created with another editor cannot be input into the work bench. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 61: Chapter 4 Assembler

    Note: When a ".s" source file is specified, it will be processed in the preprocessing stage and then the assembling stage. When a ".ms" source file is specified, it will be processed only in the assembling stage. Therefore, ".ms" files cannot include prepro- cessor instructions. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Assembly source file file.s...
  • Page 62: Output Files

    -o option.) Output destination: Current directory Description: The file is created if the -e option is specified. It records error messages and other information which the assembler delivers via the Standard Output (stdout). EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 63: Starting Method

    When entering an option in the command line, you need to place one or more spaces before and after the option. The options can be specified in any order. It is also possible to enter options after the source file name. Example: c:\epson\s1c63\bin\as63 -g -e -l -d TEST1 -d TEST2 test.s S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 64: Messages

    Start-up message The assembler outputs only the following message when it starts up. Assembler 63 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998-2001 End message The assembler outputs the following messages to indicate which files have been created when it ends normally.
  • Page 65: Grammar Of Assembly Source

    ; clear memory 0 to 3 %ext,0 The example given above is an ordinary source description method. For increased visibility, the elements composing each statement are aligned with tabs and spaces. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Operand (;comment) Parameter (;comment)
  • Page 66 (a–z) characters, or both. For example, "ld", "LD", and "Ld" are all accepted as "ld" instructions. For purposes of discrimination from symbols, this manual uses lowercase characters for the reserved words. %a,0x0 EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 67: Instructions (Mnemonics And Pseudo-Instructions)

    An instruction containing a parameter needs to be separated into the instruction and the parameter with one or more tabs or spaces. If an instruction requires multiple parameters, they are separated from each other with an appropriate delimiter. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) 0x100...
  • Page 68: Symbols (Labels)

    .org 0x0000 .bss .comm COUNT1 1 .code %ext,IO_M@h %xl,IO_M@l [COUNT1] ... jumps to the LABEL1 location..0xfff0 is loaded to X-register. (@h and @l are symbol masks.) ... Regarded as inc [0x0000]. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 69 .set IO_ADDR 0xff12 %ext,IO_ADDR@l %a,[%y] S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... Global declaration of a symbol which is to be defined in this file..Local symbol (Can be referenced to only in this file) ... Global declaration of a symbol defined in other source file.
  • Page 70: Comments

    ;This is the comment for the instruction on the left..The second line will not be regarded as a comment. An error will result..Both lines will be regarded as comments. EPSON 0xfff0 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 71: Register Names

    8-bit immediate data 4-bit n-ary specified data sign8 Signed 8-bit immediate data add6 6-bit address S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 4.5.6.1 Notations of register names Register Notation %a, %A, a or A %b, %B, b or B...
  • Page 72: Operators

    The logical operator returns the result of logic operation on the specified terms. (retd 0x31) (retd 0x3233) (retd 0x35) Examples +0xff, 1+2 -1+2, 0xff-0b111 0xf*5 0x123/0x56 (%% is also be supported.) 0x123%0x56 1>>2 0x113<<3 0x1234^H 0x1234^L 1+(1+2*5) Examples 0b1101&0b111 0b123|0xff 12^35 ~0x1234 EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 73 #macro ADD_X ADDR %ext,(ADDR*2)^H %x,(ADDR*2)^L #endm %ext,BLK_START^H %xl, BLK_START^L [%x],0b11&0x110 %ext, ~BLK_END^H BLK_END^L ADD_X (0x1200+0x34)*2 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Examples SW==0 SW!=0 ABC<5 ABC<=5 ABC>5 ABC>=5 ABC&&0xf ABC||0b1010 High priority Low priority ... Can be used in macros.
  • Page 74: Location Counter Symbol

    ... Jumps to this address (means endless loop)..Jumps to two words after this address..Jumps to 10 words before this address. Mnemonic after Expansion LABEL LABEL jrnc LABEL LABEL jrnz LABEL calr LABEL EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 75: Section Management

    .org pseudo-instruction in the source is an absolute section, while the section whose absolute address is not specified is an relocatable section. Absolute addresses of relocatable sections will be fixed by the linker. Both types of sections can be included in one source. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 76: Sample Definition Of Sections

    Examples: .code .comm BUF 16 .bss %a,%b ... Warning; A new bss section begins ... Warning; A new code section begins EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 77: Assembler Pseudo-Instructions

    Defines an absolute address symbol. .list Controls assembly list output. .nolist Controls assembly list output. .stabs Debugging information (source name). .stabn Debugging information (line number). 1: Maintained only for compatibility with the older assembler. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER EPSON...
  • Page 78: Include Instruction (#Include)

    • Only files created in text file format can be inserted. • The #include instruction can be used in the including files. However, nesting is limited up to 10 levels. If this limit is surpassed, an error will result. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 79: Define Instruction (#Define)

    If a Define name defined appears in the source, the assembler substitutes a defined character string for that Define name. Sample expansion: #define INT_F1 0xfff0 #define INT_F1_1 [INT_F1], INT_F1_1 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER ... Expanded to "set [0xfff0],0". EPSON...
  • Page 80 ... Expanded to "ldb [%xl],%ba"..Replaced with "ldb %ext,LABEL@h"..Replaced with "ldb %xl,LABEL@l"..Expanded as "ld %a, 1+1*2" (=3)..Expanded as "ld %a, (1+1)*2" (=4). EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 81: Numeric Define Instruction (#Defnum)

    #defnum is required to define a numeric constant, while #define is for defining a string. In the new assembler, there is no need to differentiate between a numeric constant and a string. Therefore the new assembler should use the #define instruction. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 82: Macro Instructions (#Macro

    • The number of internal-branch labels are limited according to the free memory space. • The same symbols as for a macro name are available. Sample definition: #define C_RESET 0b1101 #macro WAIT COUNT %a,COUNT %f,C_RESET LOOP: LOOP #endm [<Dummy parameter>] [,<Dummy parameter>] ... EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 83 • The maximum number of parameters and internal branch labels are limited according to the free memory space. • "__Lnnnn" used for the internal branch labels should not be employed as other label or symbol. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) EPSON...
  • Page 84: Conditional Assembly Instructions (#Ifdef

    When a name is going to be used only in conditional assembly, no substitute character string needs to be specified. (#ifdef ... #else ... #endif, #ifndef... #else ... #endif) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 85 A name specified in the condition is evaluated with discrimination between uppercase and lowercase. When assembling with the "-c" option, all symbols are case insensitive. The condition is deemed to be satisfied only when there is the same Define name defined. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 86: Section Defining Pseudo-Instructions (.Code, .Data, .Bss)

    (describing the .data pseudo-instruction in the respective start positions). • A DATA section is relocatable by default unless its location is specified with the .org pseudo-instruc- tion or more loosely with the .align pseudo-instruction. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 87 (describing the .bss pseudo-instruction in the respective start positions). • A BSS section is relocatable by default unless its location is specified with the .org pseudo-instruction or more loosely with the .align pseudo-instruction. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 88: Location Defining Pseudo-Instructions (.Org, .Align)

    But .org starts a new section with the attribute of the section definer. Example: ... This does not start a new CODE section. .code ... This starts an absolute CODE section. .org 0x100 words alignment level and complete absolute address level. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 89 ... The another kind (BSS) of section which is not affected by the .bss previous ".org" pseudo-instruction in the CODE section..This will be an relocatable CODE section not affected by the .code previous ".org" pseudo-instruction. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER EPSON...
  • Page 90 ... The another kind (BSS) of section which is not affected by the .bss previous ".align" pseudo-instruction in the CODE section..This will be an relocatable CODE section not affected by the .code previous ".align" pseudo-instruction. value. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 91: Absolute Assembling Pseudo-Instruction (.Abs)

    It is not necessary to use this instruction in the new assembler, because the new assembler allows the use of absolute and relocatable sections in one source file. Use the .org or .align pseudo-instruction for defining absolute sections. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 92: Symbol Defining Pseudo-Instruction (.Set)

    When the defined symbol is used as an operand, the defined value is referred as is. Therefore, if the value exceeds the valid range of the operand, a warning will result. Example: .set DATA1 0xff00 %ext,DATA1@h %xl,DATA1@l %a,DATA1 ... OK ... OK ... Warning EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 93: Data Defining Pseudo-Instructions (.Codeword, .Word)

    • A comma (,) is necessary between one data and another. Sample description: .data .word 0xa,0xb,0xc,0xd Function Defines 4-bit data to be written to the data ROM. Precaution The .word pseudo-instruction can be used only in DATA sections. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER EPSON...
  • Page 94: Area Securing Pseudo-Instructions (.Comm, .Lcomm)

    (however, the file to be referred to needs to be specified by the .global pseudo-instruction.) The symbols created by the .lcomm pseudo-instruction are local symbols, which cannot be referred to from other modules. Precaution The .comm and .lcomm pseudo-instructions can only be described in BSS sections. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 95: Global Declaration Pseudo-Instruction (.Global)

    When the -g option is specified as a start option, the preprocess stage of the assembler will insert debugging pseudo-instructions in the preprocessed file. Therefore, you do not have to describe these pseudo-instructions in creating source files. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER...
  • Page 96: Comment Adding Function

    4. Define name definitions are expanded with priority over macro definitions. VALUE Areg, VALUE Areg, [%x] [%y], Areg ; MX + 10h -> MY VALUE Areg, VALUE Areg, [%x] [%y], Areg ; MX + 10h -> MY %a, 0x10 %a, [%x] [%y], %a EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 97: Relocatable List File

    Irrespective of the size of the secured area, 00 is always delivered here. Only the address defined for a symbol (top address of the secured area) is delivered as the address of the BSS section. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) .org...
  • Page 98: Sample Executions

    CHAPTER 4: ASSEMBLER 4.9 Sample Executions Command line C:\EPSON\S1C63\bin\as63 -g -e -l main.s Assembly source file ; main.s ; AS63 test program (main routine) ;***** INITIAL SP1 & SP2 ADDRESS DEFINITION ***** #ifdef SMALL_RAM .set SP1_INIT_ADDR 0xb #else .set SP1_INIT_ADDR 0x4b #endif .set SP2_INIT_ADDR 0x1f...
  • Page 99 Preprocessed file .stabs "C:\EPSON\S1C63\Test\main.s", FileName ; main.s ; AS63 test program (main routine) ;***** INITIAL SP1 & SP2 ADDRESS DEFINITION ***** ;#ifdef SMALL_RAM .set SP1_INIT_ADDR 0xb ;#else .set SP1_INIT_ADDR 0x4b ;#endif .set SP2_INIT_ADDR 0x1f ;***** NMI & BOOT, LOOP ***** .global INIT_RAM_BLK1...
  • Page 100 Error file Assembler 63 Ver x.xx Error log file MAIN.ERR Mon Jan 15 12:40:41 2001 Assembler 63 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998-2001 Created preprocessed source file MAIN.MS Created relocatable list file MAIN.LST Created error log file MAIN.ERR Created relocatable object file MAIN.O...
  • Page 101: Error/Warning Messages

    Unknown label <label> Unknown mnemonic <name> Unknown register <name> Unknown symbol <name> Unknown symbol mask <name> Unsupported directive <directive> S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: ASSEMBLER Description The specified address is out of range. The specified file cannot be opened.
  • Page 102: Warning

    (3) Other limitations such as the number of sections depend on the free memory space. Description The result of the expression is out of the effective range. The symbol mask is not defined correctly. The symbol is already defined. There is no section definition. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 103: Chapter 5 Linker

    Description: File to specify the memory mapping and unsupported instruction information of each S1C63 Family model. This file is provided for each model and commonly used with the debugger and HEX converter. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) from Assembler...
  • Page 104: Output Files

    Description: The file is created if the -e start-up option is specified. It records the information which the linker outputs to the Standard Output (stdout), such as error messages. The file name is "lk63.err" by default, but it can be changed using the -o start-up option. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 105: Starting Method

    This will be needed when at least the existing extension codes should not be removed. Default: If this option is not specified, unnecessary extension codes will be removed when the full branch optimization function is specified. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) EPSON CHAPTER 5: LINKER...
  • Page 106 • The address should be described in hexadecimal format (0xnnnn). Default: If this option is not specified, the DATA section will begin from the data ROM physical start address specified with the ICE parameter file. Sample description: -data 0x8000 EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 107 When inputting an option in the command line, one or more spaces are necessary before and after the option. Examples: c:\epson\s1c63\bin\lk63 -defsym INIT=0x200 test.cm par63xxx.par c:\epson\s1c63\bin\lk63 -g -e -s -m test1.o test2.o -o test.abs par63xxx.par S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) EPSON...
  • Page 108: Messages

    Start-up message The linker outputs only the following message when it starts up. Linker 63 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998-2001 End message The linker outputs the following messages to indicate which files has been created when it ends normally.
  • Page 109: Linker Command File

    Blank line A blank line carrying only blank characters and a line feed will be ignored. It need not be converted to a comment using a semicolon. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ; Generate error file ; Add debug information ;...
  • Page 110: Link Map File

    Type File 0x000e SUB.S 0x00f2 ------------ --- 0x0003 MAIN.S 0x000d ------------ --- 0x0009 MAIN.S 0x1ee7 ------------ --- Size Type File 0x0008 MAIN.S ------ ------------ --- ------ ------------ --- ------ ------------ --- EPSON SecNbr SecNbr S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 111: Symbol File

    Address Indicates the absolute address defined for the symbol. Type Indicates the scope of the symbol: Global or Local. File Indicates the object file in which the symbol has been defined. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Symbol Symbol EPSON...
  • Page 112: Absolute List File

    INIT_RAM_BLK1 LOOP: ext,fe calr INC_RAM_BLK1 LOOP Source statement EPSON ;set RAM_BLK1 address to x ; set SP1 ; set SP2 ; initialize RAM block 1 ; increment RAM block 1 ; infinity loop S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 113: Cross Reference File

    Address Indicates the address where the label is referred. Indicates the object file in which the label is referred. File Indicates the type of section that contains the address where the label is referred. Type S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) SUB.O CODE, Global MAIN.O BSS, Global MAIN.O...
  • Page 114: Linking

    ; Relocatable CODE section start address ; Relocatable DATA section start address ; Relocatable BSS section start address ; Output file name ; Input file 1 ; Input file 2 EPSON (.org is used.) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 115 A section cannot be overlapped to other sections, therefore an error will occur if there is no free area larger than the section size. For example, an error will occur if CODE2 is larger than 0x10 words. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) test.abs...
  • Page 116: Branch Optimization Function

    -d option is processed. Specify the -dr option to generate the same optimized codes as the previous version. LABEL calr LABEL@rl %ext,LABEL@rh LABEL@rl %ext,LABEL2@rh calr LABEL2@rl EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 117: Error/Warning Messages

    No symbols found Second definition of label <label> in <FILE NAME> Second ICE parameter file <FILE NAME> ignored S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Description The branch destination address is out of range. The specified address is out of the range (0x0000–0x00ff).
  • Page 118: Precautions

    -d option is processed. Specify the -dr option to generate the same optimized codes as the previous version. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 119: Chapter 6 Hex Converter

    Description: The file is created if the -e start-up option is specified. It records information that the hex converter outputs to the Standard Output (stdout), such as error messages. The file name is "hx63.err" by default, but it can be changed using the -o start-up option. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ONVERTER...
  • Page 120: Starting Method

    Default: The input file name is used for the output file names. When entering an option in the command line, one or more spaces are necessary before and after the option. Example: c:\epson\s1c63\bin\hx63 -e test.abs par63xxx.par EPSON (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 121: Messages

    The hex converter outputs only the following message when it starts up. Hex converter 63 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998-2001 End message The hex converter outputs the following messages to indicate which files have been created when it ends normally.
  • Page 122: Output Hex Files

    (32 bytes max.): The object codes are placed here. This is not included in the end record. sum (1 byte): This is a checksum (1's complement) from "length" to the last data. The end records are always "S804000000FB". data EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 123: Intel-Hex Format

    When the -b option is specified, the hex converter does not deliver data in unused addresses of the absolute object file. This allows minimization of the output hex files. Note, however that the hex files generated in this format cannot be used for creating the mask data. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) data...
  • Page 124: Error/Warning Messages

    The input file is not an object file in IEEE-695 format. ICE parameter file is not specified. Cannot secure memory space. Description Two or more file names with the same extension have been specified. The last one is used. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 125: Chapter Isassembler

    Standard Output (stdout), such as error messages. The file name is "ds63.err" by default, but it can be changed using the -o start-up option. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) from Linker from Hex converter file.hsa...
  • Page 126: Starting Method

    Default: The input file name is used for the output file name. When entering an option in the command line, one or more spaces are necessary before and after the option. Example: c:\epson\s1c63\bin\ds63 -e -o c:\output.ms EPSON (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 127: Messages

    Start-up message The disassembler outputs the following message when it starts up. Disassembler 63 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998-2001 End message The disassembler outputs the following messages to indicate which files have been created when it ends normally.
  • Page 128: Disassembling Output

    ; increment 16bit value ;SP1 init addr = 0x2c ;SP1 init addr = 0x12c ;SP2 init addr = 0x1f ; subroutine in sub.s ; subroutine in sub.s ; initialize RAM block 1 ; in NMI(watchdog timer) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 129 .org code1: ldb %ext,label1@h ldb %xl,label1@l ld [%x]+,0x0 ld [%x]+,0x0 ld [%x]+,0x0 ld [%x],0x0 code2: ldb %ext,label2@h ldb %xl,label2@l add [%x]+,0x1 adc [%x]+,0x0 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) .org 0x110 BOOT: %ba,SP1_INIT_ADDR %sp1,%ba %ba,SP2_INIT_ADDR %sp2,%ba ext,fe calr INIT_RAM_BLK1 LOOP:...
  • Page 130 ADC [%X]+,0X0 ADC [%X],0X0 .CODE .ORG 0X100 LDB %EXT,CODE1@RH CALR CODE1@RL RETI .CODE .ORG 0X110 LDB %BA,LABEL3@L LDB %SP1,%BA LDB %BA,LABEL4@L LDB %SP2,%BA LDB %EXT,CODE1@RH CALR CODE1@RL CODE3: LDB %EXT,CODE2@RH CALR CODE2@RL JR CODE3@RL EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 131: Error/Warning Messages

    Even if a warning is issued, the disassembler keeps on processing, and completes the processing after displaying a warning message, unless, in addition, an error is produced. Warning message Input file name extension .XXX conflict Cannot open Hex file xxx.csa S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 7: DISASSEMBLER Description The file cannot be created.
  • Page 132: Debugger

    Source file(s) object file Command file file.s file.abs Debugger db63 Program/data file.log file.trc Log file Trace file Fig. 8.2.1 Flow chart EPSON file.cmd file.hsa file.fsa file.lsa file.ssa file.csa file.msa Option HEX files HEX files S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 133: Output Files

    File name: <file name>.trc (An extension other than ".trc" can also be used.) Description: This file contains the specified range of trace information. Output of this file can be con- trolled by the tf command. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER...
  • Page 134: Starting Method

    When entering an option in a command line, make sure that there is at least one space before and after the option. Example: c:\epson\s1c63\bin\db63 par63xxx.par startup.cmd -com2 -b 19200 The default start-up options are set as: -com1 & -b 9600...
  • Page 135: Start-Up Messages

    When the debugger starts up, it outputs the following message in the [Command] window. (Refer to the next section for details about windows.) Debugger63 Ver x.xx Copyright SEIKO EPSON CORP. 1998-2001 Connecting COMx with xxxxx baud rate ... done Parameter file name...
  • Page 136 If the ICE does not have a necessary board, or contains an unnecessary board or a board of different version, a warning message appears on the screen. .. done : xxxxxxxx.par : xx : x.x : x.x : x.x : x.x : x.x : x.x : omitted EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 137: Method Of Termination

    8.3.5 Method of Termination To terminate the debugger, select [Exit] from the [File] menu. You can also input the q command in the [Command] window to terminate the debugger. >q S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 138: Windows

    Depending on the computer used, the windows may differ from the above display depending on the screen resolution, the number of dots in system font, etc. Adjust the size of each window to suit needs. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 139 • If the driver allows selection of extended function such as acceleration, turn the functions off. • If the problem is not fixed using the above, try the standard driver supplied with Windows95/98/NT. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER...
  • Page 140: Command] Window

    [Command] window. When writing to a log file, the content of the write data is displayed in the window. (Refer to the description for log command.) Note: The [Command] window cannot be closed. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 141: Source] Window

    Furthermore, the source statements that are actually displayed from this file are those which have had the -g option specified by the assembler. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER...
  • Page 142 Any labels and words can be found using the [Search Label] pull-down list box or the [Find] button on the [Source] window. [Find] button mark at the beginning of the line. [Search Label] pull-down list box EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 143: Data] Window

    (highlight) the data to be modified and type a hexadecimal number (0–9, a–f), then press [Enter]. The register data will be modified with the entered number. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (1) Displaying data memory contents The [Data] window displays the memory dump results in hexadecimal numbers.
  • Page 144: Trace] Window

    [Trace] window does not accept scrolling and resizing operations. After an program execution is terminated, this window displays the latest data traced during the execution. To specify a display start cycle, execute the td command. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 145: Tool Bar

    Selecting a break address by clicking on the address line is valid for only the lines that have actual code, and is invalid for the source-only lines. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 146: Break] Button

    8.5.7 [Help] Button By clicking on this button, a help window appears on the screen, displaying the contents of help topics. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 147: Menu

    This menu item performs the same function when the n command is executed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER...
  • Page 148: Break] Menu

    [Trace File...] This menu item saves the specified range of the trace information displayed in the [Trace] window to a file. It performs the same function as executing the tf com- mand. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 149: View] Menu

    [Contents...] This menu item displays the contents of help topics. [About Db63...] This menu item displays an About dialog box for the debugger. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER This menu item opens or activates the [Source]...
  • Page 150: Method For Executing Commands

    [Enter] key is pressed without entering a parameter in some guidance session of a command, the system assumes the command is canceled and does not execute it..Input data according to the guidance (underlined part). EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 151 (option data dump), td (trace data display), cv (coverage), sy (symbol list), ma (map information) The successive execution function is terminated when some other command is executed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... Command to modify data memory.
  • Page 152: Executing From Menu Or Tool Bar

    [View | Trace] [Option | Log...] [Option | Record...] [Option | Mode Setting...] EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) Button – – – – – – – – – – – – – – – – – – – S5U1C63000A MANUAL...
  • Page 153: Executing From A Command File

    Creating a command file Create a command file as a text file using an editor. Although there are no specific restrictions on the extension of a file name, Seiko Epson recommends using ".cmd". Command files can also be created using the rec command. The rec command creates a command file and saves the executed commands to the file.
  • Page 154: Log File

    When the relevant display window is closed, the execution results are always displayed in the [Command] window regardless of whether operation is in log mode or normal mode. For the display format in the [Command] window, refer to each command description. output turned off in normal mode). EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 155: Debug Functions

    To debug a program using the source display and symbols, the object file must be in IEEE-695 format read into the debugger. If any other program file is read, only the unassemble display is produced. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 8.8.1.1 Files and load commands...
  • Page 156: Source Display And Symbolic Debugging Function

    This mode is available only when an absolute object file that contains source debugging information has been loaded. Menu [View | Program | Unassemble] [View | Program | Source Display] [View | Program | Mix Mode] EPSON Button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 157 >bp @SUB1@test.s (3) Displaying symbol list All symbols used in the program and the defined addresses can be displayed in the [Command] window. Table 8.8.2.2 Command to display symbol list S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Function Command Displaying symbol list...
  • Page 158: Displaying And Modifying Program, Data, Option Data And Register

    Data at a specified address is rewritten by entering hexadecimal data. Data can be directly modified on the [Data] window. Function Command Function Command [View | Data Dump] EPSON a (as) Menu – – – S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 159 Option data in the ICE option areas (function option data, segment option data, or melody data). Data is displayed in the [Command] window in hexadecimal dump format. Table 8.8.3.4 Command to display option data S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Function...
  • Page 160: Executing Program

    ICE hardware. Command [Run | Go to Cursor] [Run | Go from Reset] When the program does not stop, use this button to forcibly stop it. EPSON Menu Button [Run | Go] S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 161 In the initial settings, the debugger is set to the interrupt disable mode. The interrupt enable mode can also be set by using the md command. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Command Table 8.8.4.3 External interrupt modes Enable mode Interrupt is processed.
  • Page 162 Because the PC is set to 0x0110, the [Source] window is redisplayed beginning with that address. The [Register] window is redisplayed with the internal circuits initialized as described above. The data memory contents are not modified. (error = ±1 µsec) (error = ±0) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 163: Break Functions

    For example, if the program is executed after setting the data break condition as Address = 0x10, Data pattern = (mask) and R/W = W, the program breaks after writing any data to the data memory address 0x10. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Command Menu [Break | Breakpoint Set...]...
  • Page 164 The program is made to break by pulling the ICE BRKIN pin low (by applying a low-level pulse for more than 20 ns). Command Menu [Break | Register Break...] [Break | Register Break...] Command Menu [Break | Sequential Break...] [Break | Sequential Break...] Command Menu [Break | Stack Break...] EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 165 • In user breaks based on command settings also, a PC break and sequential break occur before execution of operation. However, other breaks such as a data break, register break, and stack break occur one or two instructions after execution of operation. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER...
  • Page 166: Trace Functions

    • For reasons of the ICE operation timing, the trace data at the boundary of operations, such as in the fetch cycle at which trace starts or the execution cycle at which trace ends, will not always be stored in memory. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 167 Fig. 8.8.6.3 Trace range when "end" is selected If the program is halted in the middle of single delay trigger trace, bus cycles are traced from the beginning when trace is executed next. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 8.8.6.1 Trace mode setup command...
  • Page 168 Table 8.8.6.4 Command/menu item to save trace information Save trace information Function Command [View | Trace] Function Command [Trace | Trace Search...] Function Command [Trace | Trace File...] EPSON Menu Menu Menu S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 169: Operation Of Flash Memory

    When a map break occurs, the PC LED on the ICE stops and the EMU LED turns off. All other break settings are invalid because they cannot be written into the flash memory. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Command Menu [File | Flash Memory Operation...]...
  • Page 170: Coverage

    (2) Writing data to FPGA Data in the specified file is written to the FPGA. Also, the write command supports erasing the FPGA. Data for the supported models are provided as "c63xxx.mot" files in the "epson\s1c63\ice\fpga" directory (default). (3) FPGA data comparison The contents of the FPGA and specified file are compared.
  • Page 171: Command Reference

    (xlinx fpga data compare) xdp/xdps (xlinx fpga data dump) Quit (quit) Help (help) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 8.9.1.1 Command list Assemble mnemonic Input program code Fill program area Copy program memory Dump data memory Input data...
  • Page 172: Reference For Each Command

    • The input commands are case-insensitive, you can use either upper case or lower case letters or even mixed. • An error results if the number of parameters is not correct when you input a command using direct input mode. Error : Incorrect number of parameters EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 173: Program Memory Operation

    Source file name should be entered when a symbol/label is used as the operand. Specify the source file name in which the symbol was defined. 0200 1972 %a,%b Source file name (enter to ignore) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ... Displayed only when <address> is omitted. last program memory address ...
  • Page 174 [Source] window are updated immediately. • Although the contents of the unassemble display are modified by rewriting code, those of source display remain unchanged. GUI utility None (no such symbol / symbol type error) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 175: Pe (Program Memory Enter)

    • Although the contents of the unassemble display are modified by rewriting code, those of source display remain unchanged. GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ... Displayed only when <address> is omitted.
  • Page 176: Pf (Program Memory Fill)

    ... Fills the area from address 0x200 to address 0x20f with 0x1ffe (nop)..Start address is input..End address is input..Code is input. (no such symbol / symbol type error) EPSON code 0x1fff S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 177: Pm (Program Memory Move)

    [Source] window are updated automatically. • Although the contents of the unassemble display are modified by rewriting code, those of source display remain unchanged. GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) last program memory address ...
  • Page 178: Data Memory Operation

    A A A A A A A A 0 0 1 0 2 0 * * * * * * * * * * * * * * * * * * * * * * * * * * EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 179 [View | Data Dump] menu item When this menu item is selected, the [Data] window opens or becomes active and displays the current data memory contents. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) 8 9 A B C D E F...
  • Page 180: De (Data Memory Enter)

    If the maximum address of data memory is reached and gets a valid input other than "^ ", the command is terminated. (direct input mode) (guidance mode) 0xffff, 0 data ... Address is input..Data is input..Skipped..Command is terminated. (no such symbol / symbol type error) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 181 GUI utility [Data] window S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER The [Data] window allows direct modification of data. Click the [Data] window and select the displayed data to be modified then enter a hexadeci- mal number. EPSON...
  • Page 182: Df (Data Memory Fill)

    ... Fills the data memory area from address 0x200 to address 0x2ff with 0x0..Start address is input..End address is input..Data is input. (no such symbol / symbol type error) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 183: Dm (Data Memory Move)

    • When the contents of the data memory is modified using the dm command, the displayed contents of the [Data] window are updated automatically. GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) 0xffff, 0...
  • Page 184: Dw (Data Memory Watch)

    Address3 = > (direct input mode) (guidance mode) address2 0xffff ... Sets watch addresses to 0x10, 0x14, 0x18, and 0x1c. (no such symbol / symbol type error) ... Illegal address ... Illegal address EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 185 • The value displayed to the left shows the content of the start address, and that displayed to the right is the content of an address that is equal to the start address + 3. GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 186: Command To Display Option Information

    ... Displays function option data within the range of 0 to 0xf. 00 00 00 00 00 00 00 00 ... Function option is selected..Start address is input..End address is input. 00 00 00 00 00 00 00 00 EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 187 • The default value of option data is 0. GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... Specified address for the function option is outside the range..Specified address for the segment option is outside the range.
  • Page 188: Register Operation

    B register Contents of X register and indirectly addressed data memory Contents of Y register and indirectly addressed data memory Flags Stack pointer SP1 Stack pointer SP2 EXT register Watch data at four locations EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 189: Rs (Register Set)

    When a register is modified, the [Register] window is updated to show the contents you have input. If you input "q " to stop entering in the middle, the contents input up to that time are updated. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ...
  • Page 190 … Input is skipped. (keep current value) GUI utility [Register] window The [Register] window allows direct modification of data. Click the [Register] window, select the displayed data to be modified and enter a value then press [Enter]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 191: Program Execution

    [0000] = AAAA [0004] = E280 [0008] = AAAA [000C] = AAAA > When a break occurs, the same display appears as when data is displayed by the rd command. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) last program memory address...
  • Page 192 [Source] window, the g command with a temporary break is executed. The program execution will be suspended after executing the address at the cursor position. [Go to Cursor] button (no such symbol / symbol type error) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 193: Gr (Go After Reset Cpu)

    [Run | Go from Reset] menu item, [Go from Reset] button When this menu item or button is selected, the gr command is executed. [Go from Reset] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) last program memory address...
  • Page 194: S (Step)

    Executed as the halt instruction. The halt and slp instructions are Processing is continued by an replaced with a nop instruction as external interrupt or clicking on the instruction is executed. the [Key Break] button. EPSON Disable mode S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 195 GUI utility [Run | Step] menu item, [Step] button When this menu item or button is selected, the s command without step count is executed. [Step] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 196: N (Next)

    • Unlike in successive executions (g or gr command), the [Register] window is updated every time a step is executed. GUI utility [Run | Next] menu item, [Next] button When this menu item or button is selected, the n command without step count is executed. [Next] button EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 197: Cpu Reset

    • The debug status, such as memory contents, breaks, and trace, is not reset. GUI utility [Run | Reset CPU] menu item, [Reset] button When this menu item or button is selected, the rst command is executed. [Reset] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 198: Break

    ... "2. clear" is selected..Break address 0x0200 is cleared..Terminated by [Enter] key.."3. clear all" is selected..Terminated by [Enter] key. (no such symbol / symbol type error) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 199 If the address has been set as a breakpoint, this button clears the breakpoint. [Break] button The set breakpoints are marked with a S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) To set a breakpoint, select a [Set] button and enter an address in the text box corresponding to the selected button.
  • Page 200: Bc / Bpc (Break Point Clear)

    If the address has not been set as a breakpoint, this button sets a new breakpoint at the address. [Break] button (direct input mode) ... Breakpoints that have been set..Clears breakpoints at address 0x0200..Clears all breakpoints. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 201: Bd (Data Break)

    2. clear ...? > " " in the binary data pattern specifies that the bit will not be compared with the actual read/write data. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) (Command is completed when "2" is selected.)
  • Page 202 To set a data break condition, enter an address and a data pattern in the text box, and select R/W condition from the radio buttons. Then click [OK]. To clear the set data break condition, click [Clear]. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 203: Bdc (Data Break Clear)

    GUI utility [Break | Data Break …] menu item When this menu item is selected, a dialog box appears for clearing the set data break condition. (See the bd command.) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 204: Br (Register Break)

    ... Data 0xa is set for A register condition.."*" masks the register condition.."^ " returns guidance to previous setting.."2. clear" is selected. EICZ: - ...Terminated by [Enter] key. EPSON (direct input mode) (guidance mode) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 205 GUI utility [Break | Register Break …] menu item When this menu item is selected, a dialog box appears for setting register break conditions. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER To set a register condition, select the radio button for the register and enter a value in the [Enter Value:] box, then click [Modify].
  • Page 206: Brc (Register Break Clear)

    >brc (direct input mode) GUI utility [Break | Register Break …] menu item When this menu item is selected, a dialog box appears for clearing the register break conditions. (See the br command.) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 207: Bs (Sequential Break)

    3: - 1. set 2. clear ...? > If you press [Enter] in the middle of a guidance, the command is canceled. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) (Command is completed when "2" is selected.)
  • Page 208 To set a sequential break, enter sequential addresses and a pass count in the text boxes, then click [OK]. At least one address (Address 1) and the pass count must be set. To clear the sequential break condition, click [Clear]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 209: Bsc (Sequential Break Clear)

    (direct input mode) GUI utility [Break | Sequential Break …] menu item When this menu item is selected, a dialog box appears for clearing sequential break conditions. (See the bs command.) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 210: Bsp (Break Stack Pointer)

    • The program stops one to two instructions after the break condition has been met. 0x03ff, 0 address3(4) 0x00ff ... Sets SP1 area to 0x0–0x3FF and SP2 area to 0x0–0xFF..Address is input..Terminated by [Enter] key. EPSON (direct input mode) (guidance mode) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 211 GUI utility [Break | Stack Break …] menu item When this menu item is selected, a dialog box appears for setting stack areas. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) To set stack areas, enter start and end addresses in the text boxes, then click [OK].
  • Page 212: Bl (Break Point List)

    Stack break: SP1 : 0000 - 03FF SP2 : 0000 - 00FF > GUI utility [Break | Break List] menu item When this menu item is selected, the bl command is executed. pass:3 EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 213: Bac (Break All Clear)

    This command clears all break conditions set by the bp, bd, br and/or bs commands. Format >bac (direct input mode) GUI utility [Break | Break All Clear] menu item When this menu item is selected, the bac command is executed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 214: Program Display

    If <address> is specified, the display begins with <address>. >u ADDR CODE UNASSEMBLE 0110 094B %ba,0x4b 0111 1FC4 %sp1,%ba 0112 091F %ba,0x1f 0113 1FC6 %sp2,%ba 011E 1FFF *nop 011F 1FFF *nop > (direct input mode) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 215 [View | Program | Unassemble] menu item, [Unassemble] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Unassemble] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (no such symbol / symbol type error) EPSON...
  • Page 216: Sc (Source Code)

    >sc %ba,SP1_INIT_ADDR %sp1,%ba %ba,SP2_INIT_ADDR %sp2,%ba calr INIT_RAM_BLK1 LOOP: %ext,INC_RAM_BLK1@rh calr INC_RAM_BLK1@rl %ext,LOOP@rh LOOP@rl > ; set SP1 ; set SP2 ; initialize RAM block 1 ; increment RAM block 1 ; infinity loop EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 217 [View | Program | Source Display] menu item, [Source] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Source] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (no such symbol / symbol type error) EPSON...
  • Page 218: M (Mix)

    0112 091f ba,1f 0113 1fc6 sp2,ba 0114 08fe ext,fe 0115 02ea calr ea 0116 08fe ext,fe 0117 02ef calr ef %ba,SP1_INIT_ADDR %sp1,%ba %ba,SP2_INIT_ADDR %sp2,%ba ext,fe calr INIT_RAM_BLK1 LOOP: %ext,INC_RAM_BLK1@rh calr INC_RAM_BLK1@rl %ext,LOOP@rh EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 219 [View | Program | Mix Mode] menu item, [Mix] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Mix] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (no such symbol / symbol type error) EPSON...
  • Page 220: Symbol Information

    • The specification of keyword conforms to which defined for assembler tools. GUI utility None (direct input mode) (direct input mode) (direct input mode) EPSON 0007 0000 0000 0004 0110 0116 0100 0007 0000 0000 0004 0110 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 221: Load File

    [File | Load File …] menu item, [Load File] button When this menu item or button is selected, a dialog box appears allowing selection of an object file to be loaded. [Load File] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode)
  • Page 222: Lo (Load Option)

    When this menu item or button is selected, a dialog box appears allowing selection of a hex file to be loaded. [Load Option] button Not used in some microcomputer models (direct input mode) (guidance mode) ...Loads the program files test.lsa and test.hsa..Loads a function option file. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 223: Flash Memory Operation

    Error : flash ROM is protected • If the flash memory has been erased, an error will result and memory contents will not be loaded into the target memory. Error : format error S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ...Loads program data.
  • Page 224 63A08 2000 8000 1000 7000 1000 1000 1000 To execute the lfl command, select "Load from flash memory" from the [Operation] list box and select contents using the check boxes, then clock [OK]. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 225: Sfl (Save To Flash Memory)

    • If the flash memory is write-protected, an error results and memory contents are not written to the flash memory. Error : flash ROM is protected The write-protect can be removed by erasing the flash memory with the efl command. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) 1.yes...
  • Page 226 To execute the sfl command, select "Save to flash memory" from the [Operation] list box and select contents to be saved using the check boxes, then clock [OK]. The -p option can be specified using the [Protect flash memory] check box. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 227: Efl (Erase Flash Memory)

    GUI utility [File | Flash Memory Operation…] menu item When this menu item is selected, a dialog box appears allowing selection of flash memory operations. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER To execute the efl command, select "Erase flash memory"...
  • Page 228: Trace

    3.address area ...? 1 ... Trigger address is input..[2. single delay] is selected. 3.address area ...? 2 ... Trigger address is input..Trace sampling area is selected. EPSON (direct input mode) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 229 [Trace | Trace Mode Set …] menu item When this menu item is selected, a dialog box appears allowing selection of a trace mode. Normal trace mode S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ... [2. address area] is selected. 3.address area ...? 3 ...
  • Page 230: Td (Trace Data Display)

    <cycle>, the trace data starting from <cycle> is displayed in the [Trace] window. The display contents of the [Trace] window is updated after an execution of the target program. All trace data can be displayed by scrolling the window. (direct input mode) (guidance mode) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 231 (FORWARD). This direction can be reversed (BACKWARD) by entering the [B] key. To return the display direction to FORWARD, input the [F] key. If the [Trace] window is open, the direction in which the window is scrolled is also changed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) register...
  • Page 232 When this menu item is selected, the [Trace] window opens and displays the latest trace data..Started display in FORWARD..Changed to BACKWARD..Continued display in BACKWARD..Changed back to FORWARD. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 233: Ts (Trace Search)

    When command execution results are being output to a log file by the log command, the search results are displayed in the [Command] window as well as output to the log file even when the [Trace] window is opened. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode)
  • Page 234 When this menu item is selected, a dialog appears for setting a search condition. (no such symbol / symbol type error) Select a option using the radio button and enter an address in the text box, then click [OK]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 235: Tf (Trace File)

    • The default value of <cycle1> is the last location, and the default value of <cycle2> is "1". GUI utility [Trace | Trace File …] menu item When this menu item is selected, a dialog box appears allowing specification of the parameters. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) 0) ? : <cycle2>...
  • Page 236: Coverage

    None (direct input mode) last program memory address ... Displays the executed addresses within the range from 0x100 to 0x1ff..Displays all the executed addresses. (no such symbol / symbol type error) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 237: Cvc (Coverage Clear)

    (coverage clear) Function This command clears the coverage information. Format >cvc (direct input mode) GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER EPSON...
  • Page 238: Command File

    ... 2 sec. of interval is inserted after each command execution. Enter an interval and a file name, then click [OK]. The file name can be selected using a standard file selection dialog box that appears by clicking [Browse...]. EPSON ...? 2 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 239: Cmw (Execute Command File With Wait)

    • Use the hot key ([CTRL]+[Q]) to stop executing a command file. GUI utility None However, the same function as the cmw can be executed using [Command File...] in the [Run] menu (see the com command). S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) EPSON...
  • Page 240: Rec (Record Commands To A File)

    A new recording file can also be specified using the [New...] button..See Examples for guidance..Displayed If the file is already exists..? 2 ...Record function toggles when rec is input. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 241: Log

    If the logging function has been activated, a dialog box appears allowing selection of either log-off mode or log-on mode. A new log file can also be specified using the [New...] button. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) ...See Examples for guidance.
  • Page 242: Map Information

    F280 -m-m-m-m -m-m-m-m -------- -------- -------- -------- -------- -------- > When displaying the map information of the I/O and LCD areas, the mapped addresses are marked by the letter "m". GUI utility None EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 243: Mode Setting

    On-the-fly function Counter measurement mode Interrupt at stepping Step display Execution cycle counter reset Illegal instruction check cmw wait time S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Default values of debugger modes Mode Default setting Twice per second Bus cycle Not allowed...
  • Page 244 2. Hold 2. No check ...? 2 times/sec : 5 2.cycle ...? time 2.not allowed ...? not allowed : 1 2.last ...? each 2.hold ...? hold 2.no check ...? check ...? EPSON s : 3 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 245 GUI utility [Option | Mode Setting…] menu item When this menu item is selected, a dialog box appears allowing selection of each mode. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DEBUGGER Select the mode using the check boxes or enter the number interval settings, and then click [OK].
  • Page 246: Fpga Operation

    • Erase time is about 2 minutes 40 seconds (max.) when the transfer rate between the ICE and PC is 38400 bps. • Do not erase the sub FPGA unless otherwise specified, as it normally contains some LCD functions. GUI utility None (direct input mode) (direct input mode) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 247: Xfwr/Xfwrs (Xilinx Fpga Data Write)

    Notes • Use the file provided by Seiko Epson as the data to be written without modifying the contents. Also the file extension cannot be changed as it is .mot (Motorola S) or .mcs (Intel HEX). Specifying an illegal file results in an error and data cannot be written.
  • Page 248: Xfcp/Xfcps (Xilinx Fpga Data Compare)

    • Use the file provided by Seiko Epson as the data to be compared without modifying the contents. Also the file extension cannot be changed as it is .mot (Motorola S) or .mcs (Intel HEX). Specifying an illegal file results in an error and data cannot be written.
  • Page 249: Xdp/Xdps (Xilinx Fpga Data Dump)

    Error : invalid value • An error results if the start address is larger than the end address. Error : end address < start address GUI utility None S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) for main FPGA (direct input mode) for sub FPGA...
  • Page 250: Quit

    CHAPTER 8: DEBUGGER 8.9.21 Quit (quit) Function This command quits the debugger. Format >q (direct input mode) GUI utility [File | Exit] menu item Selecting this menu item terminates the debugger. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 251: Help

    GUI utility [Help | Contents…] menu item, [Help] button When this menu item or button is selected, the [Help] window opens to show help topics. [Help] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) (direct input mode) (direct input mode) (direct input mode) ...
  • Page 252: Status/Error/Warning Messages

    The input mnemonic is invalid for S1C63000. (a/as) The parameter number is incorrect. (All commands) An invalid mode setting option was specified. (md) An illegal R/W option was specified. (bd) An invalid register name was specified. (br) EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 253 Identical break address input round down to multiple of 4 User cancel Verify error S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Content of message (Commands involved) The specified register name is invalid. (rs) Attempt is made to clear a break address that has not been set. (bp) This is an invalid command.
  • Page 254: Generator

    Seiko Epson as the mask data file. From this file, Seiko Epson will create the mask patterns for the IC.
  • Page 255: Using Winfog

    When winfog starts, it displays the [FOG] window. The following diagrams show a [FOG] window when the device information definition file has been loaded and when it has not. [FOG] Window (after reading the device information definition file) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: FUNCTION OPTION GENERATOR...
  • Page 256: Window

    When you create a file by selecting [Generate] from the [Tool] menu or clicking the [Generate] button, this area displays a message showing the result of the selected operation. Function option document area The area can be resized by dragging the frame boundary. Fig. 9.3.2.1 Window Configuration EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 257: Menus And Toolbar Buttons

    Version Displays the version of winfog. The [Help] button has the same function. [Help] button The dialog box shown below appears. Click [OK] to close this dialog box. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: FUNCTION OPTION GENERATOR EPSON...
  • Page 258: Operation Procedure

    When you create a function option HEX file, specify its file name here. The file name displayed by default can be modified. You can use the [Ref] button to look at other folders. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 259 HEX file (if specified) are created. When winfog has finished creating the files normally, it displays the message "Making file(s) is completed" in the message area. If an error occurs, an error message is displayed. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: FUNCTION OPTION GENERATOR...
  • Page 260 Use the [Setup] dialog box to change the file name. Note: The function option document file can be read only when the device information definition file has been loaded. (6) Quitting To terminate winfog, select [End] from the [File] menu. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 261: Error Messages

    Can't write File: xxxx Making file(s) is not completed Message Are you file update? xxxx is already exist S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: FUNCTION OPTION GENERATOR Table 9.4.1 List of winfog Error Messages Description Number of characters in the file name or extension exceeds the limit.
  • Page 262: Example Output Files

    Note: Option and other configurations vary with each type of microcomputer. Example of a function option document file * S1C63xxx FUNCTION OPTION DOCUMENT Vx.xx * FILE NAME zzzzzzzz.FDC * USER'S NAME SEIKO EPSON CORPORATION * INPUT DATE yyyy/mm/dd * COMMENT SAMPLE DATA * *** OPTION NO.1 *** * --- OSC1 SYSTEM CLOCK --- * Crystal(32.768KHz) ---- Selected...
  • Page 263: Generator

    This file contains option lists for various types of microcomputers and other information. Always be sure to use the files presented by Seiko Epson. This file is effective for only the type of microcomputer indicated by the file name. Do not modify the contents of the file or use the file in other types of microcomputers.
  • Page 264: Using Winsog

    When the command is entered, a dialog box will appear to allow file selection. Enter the file name including the path in the text box or choose the file from the dialog box that appears by clicking on the [Ref] button. This specification can be omitted. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 265 When winsog starts, it displays the [SOG] window. The following diagrams show a [SOG] window when the device information definition file has been loaded and when it has not. [SOG] Window (initial screen) [SOG] Window (after reading the device information definition file) EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 266: Window

    When you create a file by selecting [Generate] from the [Tool] menu or clicking the [Generate] button, this area displays a message showing the result of the selected operation. Option setup area The area can be resized by dragging the frame boundary. Fig. 10.3.2.1 Window Configuration EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 267: Menus And Toolbar Buttons

    10.3.3 Menus and Toolbar Buttons This section explains each menu item and toolbar button. [File] menu [Tool] menu [Help] menu S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 10: SEGMENT OPTION GENERATOR Open Opens a segment option document file. Use this menu command when correcting an existing file.
  • Page 268: Option Selection Buttons

    Click [OK], and the file is loaded. If the specified file exists and there is no problem with its contents, the set-up items in winsog are initialized with the loaded device information. To stop loading the file, click [Cancel]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 269 Select [Setup] from the [Tool] menu or click the [Setup] button to bring up the [Setup] dialog box. From this dialog box, select items and enter data. [Setup] button S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 10: SEGMENT OPTION GENERATOR Date Displays the current date.
  • Page 270 "Memory Address/Data bit" title is the base address of display memory, with only the lower byte of address being displayed in each row of the table. The vertical columns of the table correspond to data bits. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 271 When using the shared pins as COM pins, select segment/common shared output ([M] button) as the output specification and do not allocate memory. Note: This setting is required only for microcomputers that have SEG/COM shared pins. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 10: SEGMENT OPTION GENERATOR...
  • Page 272 You can continue segment assignment from the previous set state. To stop loading the file, click [Cancel]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 273 Therefore, the segment option document file in which the settings do not match the function option cannot be read. (10) Quitting To terminate winsog, select [End] from the [File] menu. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 10: SEGMENT OPTION GENERATOR EPSON...
  • Page 274: Error Messages

    Generate. Table 10.4.2 winsog Warning Messages Description Overwrite confirmation message (Specified file already exists.) EPSON Display Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Message Message Message Message Display Dialog S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 275: Example Output Files

    Example of a segment option document file * S1C63xxx SEGMENT OPTION DOCUMENT Vx.xx * FILE NAME zzzzzzzz.SDC * USER'S NAME SEIKO EPSON CORPORATION * INPUT DATE yyyy/mm/dd * COMMENT SAMPLE DATA * OPTION NO.xx * < LCD SEGMENT DECODE TABLE >...
  • Page 276: Chapter 11: Melody Assembler

    This file contains option lists for various types of microcomputers and other information. Always be sure to use the files presented by Seiko Epson. This file is effective for only the type of microcomputer indicated by the file name. Do not modify the contents of the file or use the file in other types of microcomputers.
  • Page 277: Using Winmla

    When winmla starts, it displays the [MLA] window. The following diagrams show a [MLA] window when the device information definition file has been loaded and when it has not. [MLA] Window (after reading the device information definition file) S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 11: MELODY ASSEMBLER...
  • Page 278: Window

    When you create a file by selecting [Generate] from the [Tool] menu or clicking the [Generate] button, this area displays a message showing the result of the selected operation. Melody ROM option document area The area can be resized by dragging the frame boundary. Fig. 11.3.2.1 Window Configuration EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 279: Menus And Toolbar Buttons

    [Help] menu Version Displays the version of winmla. The [Help] button has the same function. [Help] button The dialog box shown below appears. Click [OK] to close this dialog box. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 11: MELODY ASSEMBLER EPSON...
  • Page 280: Operation Procedure

    You can use the [Ref] button to look at other folders. This setting is unnecessary when creating a HEX file from an existing melody ROM option document file. Select reference frequency Select the reference frequency (OSC1 oscillation frequency). EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 281 (folder names), file names, and extensions: / : , ; ? " < > | • The symbols shown below cannot be used in the User's Name and Comment: $ \ | ` S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 11: MELODY ASSEMBLER EPSON...
  • Page 282 Use the [Generate] dialog box to change the file name. Note: The melody ROM option document file can be read only when the device information definition file has been loaded. (5) Quitting To terminate winmla, select [Exit] from the [File] menu. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 283: Melody Data

    (4) Option data The hardware option specifications for melody output are set. 11.4.2 Melody Data Creation Procedure The following flowchart shows the melody data creation procedure. Fig. 11.4.2.1 Melody Data Creation Procedure S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) START START START Write a score.
  • Page 284: Method Of Creating Melody Data

    <1> Tempo 0 of the melody No.0 (m0) = 4 <2> Tempo 1 of the m0 = 10 End mark of tempo data (It cannot be omitted.) Start mark of main data (It cannot be omitted.) pitch data, jump bit and tempo No. from the left. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) <10> <11> S5U1C63000A MANUAL...
  • Page 285: Description Of Melody Data

    Table 11.4.4.1 shows the available tempo data. For example, 60.0 means crotchets per minute. Tempo data S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 11: MELODY ASSEMBLER Start mark of tempo data (It cannot be omitted.) Tempo data (0 to 15) Tempo No.
  • Page 286 A comment should be described for easy reading. Tempo No. Jump bit Pitch data Note data Control bit Main data No. End mark (It cannot be omitted.) Table 11.4.4.2 Control Bit Table 11.4.4.3 Notes EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 287 No. 0 at the beginning of a melody. Furthermore, it is necessary to set the jump bit to 1 when changing tempo in the middle of the melody. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 11.4.4.4 Pitch Data (example) Reference frequenc: 32.768 kHz...
  • Page 288: Precautions

    • The data fields can be described in any order. However, control data must be placed after main data (it is not necessary to continue). • Data parameters must be separated with one or more spaces or tabs (eg., 0 1 7 G5 0 0). Data flow EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 289: Error Messages

    Can't write File: xxxx Making file(s) is not completed Message Are you file update? xxxx is already exist S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Description Number of characters in the file name or extension exceeds the limit. Prohibited characters have been entered.
  • Page 290: Error Symbols

    (D4–D7#/38.4kHz or C4–G6/32.768kHz). The jump bit is not 0 or 1. The tempo No. is not 0 or 1. The melody No. is out of the range (m0–m15), or not described in ascending order. EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 291: Sample Files

    19 1 7 D5# 0 0 20 1 7 E5 21 1 7 D5# 0 0 22 1 7 E5 23 1 7 B4 24 1 7 D5 25 1 7 C5 S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) CHAPTER 11: MELODY ASSEMBLER EPSON D.C.
  • Page 292 63 1 7 E5 64 1 7 D5# 0 0 65 1 7 E5 66 1 7 D5# 1 0 ;D.C. 1 0 ;Data for ending the melody 67 3 7 RR CONTROL EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 293 S214000040E2E0E3F70000000000000000000000000F S2140001F000000000000000000000000000000000FA S804000000FB * S1C63xxx MELODY OPTION DOCUMENT Vx.xx * FILE NAME zzzzzzzz.MDC * USER'S NAME SEIKO EPSON CORPORATION * INPUT DATE yyyy/mm/dd * COMMENT For Elize * *** OPTION NO.1 *** * --- option1 --- * select1 ---- Selected OPT1101 01 * *** OPTION NO.2 ***...
  • Page 294 Example of output file (Melody ROM option HEX file) S21400000000000000000000000000000000000000EB S21400001008000000000000000000000000000000D3 S21400002000000000000000000000000000000000CB S214000030A39D819489710A3F665FA6480000000070 S21400004000000000000000000000000000000000AB S214000050000000000000000000000000000000009B S214000060000000000000000000000000000000008B S214000070000000000000000000000000000000007B S214000080000000000000000000000000000000006B S214000090000000000000000000000000000000005B S2140000A000240043000000000000000000000000E4 S2140000B0000000000000000000000000000000003B S2140000C0000000000000000000000000000000002B S2140000D0000000000000000000000000000000001B S2140000E0000000000000000000000000000000000B S2140000F000000000000000000000000000000000FB S21400010001010101010101010101010101010101DA S21400011001010101010101010101010101010101CA S21400012001010102010101010101010101010101B9 S21400013001010101010101010101010101010101AA S21400014001010103000000000000000000000000A4 S214000150000000000000000000000000000000009A S2140002F000000000000000000000000000000000F9 S214000300E0E2E0E2E0E4E6E8AAECEEEAA4EEF0E4FE S214000310A8EEE0E2E0E2E0E4E6E8AAECEEEAA4EE2C S214000320E8E4CAF1E4E8E6A0F2F4E0A6F6E0E6A81F S214000330EEE6E8E4EEEEEEEEEEEEE0E0E2E0E2E040 S214000340E2E0E3F70000000000000000000000000C S2140004F000000000000000000000000000000000F7 S2140005000101FFFFFFFFFFFFFFFFFFFFFFFFFFFFF2 S804000000FB EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 295: Chapter 12 Mask Data Checker

    This file contains option lists for various types of microcomputers and other information. Always be sure to use the files presented by Seiko Epson. This file is effective for only the type of microcomputer indicated by the file name. Do not modify the contents of the file or use the file in other types of microcomputers.
  • Page 296: Using Winmdc

    This is a text format file which contains the above data files combined into one. We would like to have this file presented to Seiko Epson as the mask data file. Seiko Epson will create the mask patterns for the IC from this mask data file.
  • Page 297: Menus And Toolbar Buttons

    [Tool] menu Pack Packs the ROM data file and option document file to create a mask data file for presentation to Seiko Epson. The [Pack] button has the same function. [Pack] button Unpack Restores files in the original format from a packed file. The [Unpack] button has the same function.
  • Page 298: Operation Procedure

    Click [OK], and the file is loaded. If the specified file exists and there is no problem with its contents, the set-up items in winmdc are initial- ized with the loaded device information. To stop loading the file, click [Cancel]. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 299 The file name displayed by default can be modified. You can use the [Ref] button to look at other folders. Make sure the extension of the output file name is ".pa0". If after presenting data to Seiko Epson, you present new data due to program bugs or any other reason, increase the number in the last digit of the extension in increments of one.
  • Page 300 5. Click the [Cancel] button to close the dialog box. Alternatively, you can click the [Cancel] button to quit winmdc before it executes unpacking. (4) Quitting To terminate winmdc, select [End] from the [File] menu. EPSON (S1C63 FAMILY ASSEMBLER PACKAGE) S5U1C63000A MANUAL...
  • Page 301: Error Messages

    LCD segment data error : Illegal data in this line. LCD segment data error : Data is not enough. LCD segment data error : Illegal start mark. LCD segment data error : Illegal end mark. S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Table 12.4.1 List of I/O Error Messages Description Number of characters in the file name or extension exceeds the limit.
  • Page 302: Example Output File

    Melody control ROM HEX data start mark Master slice model name "zzzzzzzz.mdc" Melody control ROM HEX data end mark Melody main ROM HEX data start mark Master slice model name "zzzzzzzz.mdc" Melody main ROM HEX data end mark EPSON S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE)
  • Page 303 * COMMENT * OPTION NO.mm * < LCD SEGMENT DECODE TABLE > * SEG COM0 COM1 COM2 COM3 SPEC *EOF \END S5U1C63000A MANUAL (S1C63 FAMILY ASSEMBLER PACKAGE) Melody option start mark Model name/version "zzzzzzzz.mdc" Melody option end mark Segment option start mark Model name/version "zzzzzzzz.sdc"...
  • Page 305: Quick Reference

    S1C63 Family Assembler Package Quick Reference...
  • Page 344 EPSON HONG KONG LTD. 20/F., Harbour Centre, 25 Harbour Road Wanchai, Hong Kong Phone: +852-2585-4600 Fax: +852-2827-4346 Telex: 65542 EPSCO HX EPSON TAIWAN TECHNOLOGY & TRADING LTD. 10F, No. 287, Nanking East Road, Sec. 3 Taipei Phone: 02-2717-7360 Fax: 02-2712-9164 Telex: 24444 EPSONTB HSINCHU OFFICE 13F-3, No.
  • Page 345 In pursuit of “Saving” Technology, Epson electronic devices. Our lineup of semiconductors, liquid crystal displays and quartz devices assists in creating the products of our customers’ dreams. Epson IS energy savings.
  • Page 346 S5U1C63000A Manual (S1C63 Family Assembler Package) ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epson.co.jp/device/ First issue August, 1997 Printed August, 2001 in Japan...