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 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) ...
("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...
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...
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:...
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 ...
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)
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)
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...
[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...
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)
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.
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)
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...
[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...
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...
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...
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)
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...
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)
[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...
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].
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)
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...
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.
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...
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...
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...
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...
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...
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...
[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...
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)
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.
(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...
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.
(:). (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...
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...
-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...
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)
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.
; 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...
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...
.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.
;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)
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...
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.
... 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)
.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...
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...
• 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...
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...
#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...
• 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...
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...
(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...
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...
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...
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)
• 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...
(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...
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...
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)
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...
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.
(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...
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...
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...
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...
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.
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 ;...
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...
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...
; 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...
-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...
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).
-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...
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...
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)
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.
(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...
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...
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...
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...
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)
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.
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.
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...
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...
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)
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...
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...
[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...
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...
(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.
[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...
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)
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...
[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...
[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]...
[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.
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.
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...
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...
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...
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...
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...
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...
• 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)
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...]...
(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.
(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...
• 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...
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...
• 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.
... 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)
[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 ...
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...
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...
... 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)
• 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...
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...
... 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.
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...
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...
[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...
[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...
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...
• 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...
• 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...
... "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.
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...
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)
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...
... 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].
>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...
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...
(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...
• 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].
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...
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...
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 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 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...
[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)
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...
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)
• 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)
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"...
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 ...
<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)
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...
• 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>...
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)
... 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)
• 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...
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...
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.
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...
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].
• 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)
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.
• 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.
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...
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...
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) ...
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.
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...
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)
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...
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...
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.
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...
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.
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)
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)
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.
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...
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.
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...
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)
[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...
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...
(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.
<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...
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...
• 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)
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.
(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)
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.
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.
[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.
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...
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.
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 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...