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


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


  Datasheet Home \ Datasheet Details

Single Chip Microcomputer, Semiconductors, Evaluation Board, CPU, Serial Interface, Display, Single-Chip Microcomputer, Memory

Download

PDF Abstract Text:

MF863-04


CMOS 4-BIT SINGLE CHIP MICROCOMPUTER

MF863-04
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
S5U1C6S3N2D Manual
(Development Software Tool for S1C6S3N2)
NOTICE
No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from another government agency.
MS-DOS, Windows, Windows 95, Windows 98 and Windows NT are registered trademarks of Microsoft Corporation, U.S.A. PC-DOS, PC / AT, PS / 2, VGA, EGA and IBM are registered trademarks of International Business Machines Corporation, U.S.A. NEC PC-9800 Series and NEC are registered trademarks of NEC Corporation. All other product names mentioned herein are trademarks and / or registered trademarks of their respective owners.
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.
Configuration of product number
Devices S1 C 60N01 F 0A01 00
Packing specification Specification Package (D: die form F: QFP) Model number Model name (C: microcomputer, digital products) Product classification (S1: semiconductor)
Development tools C 60R08 S5U1
Packing specification Version (1: Version 1 2) Tool type (D1: Development Tool 1) Corresponding model number (60R08: for S1C60R08) Tool classification (C: microcomputer use) Product classification (S5U1: development tool for semiconductor products)
1: For details about tool types, see the tables below. (In some manuals, tool types are represented by one digit.) 2: Actual versions are not written in the manuals.
Comparison table between new and previous number
S1C60 Family processors
Previous No. E0C6001 E0C6002 E0C6003 E0C6004 E0C6005 E0C6006 E0C6007 E0C6008 E0C6009 E0C6011 E0C6013 E0C6014 E0C60R08 New No. S1C60N01 S1C60N02 S1C60N03 S1C60N04 S1C60N05 S1C60N06 S1C60N07 S1C60N08 S1C60N09 S1C60N11 S1C60N13 S1C60140 S1C60R08
S1C62 Family processors
Previous No. E0C621A E0C6215 E0C621C E0C6S27 E0C6S37 E0C623A E0C623E E0C6S32 E0C6233 E0C6235 E0C623B E0C6244 E0C624A E0C6S46 New No. S1C621A0 S1C62150 S1C621C0 S1C6S2N7 S1C6S3N7 S1C6N3A0 S1C6N3E0 S1C6S3N2 S1C62N33 S1C62N35 S1C6N3B0 S1C62440 S1C624A0 S1C6S460 Previous No. E0C6247 E0C6248 E0C6S48 E0C624C E0C6251 E0C6256 E0C6292 E0C6262 E0C6266 E0C6274 E0C6281 E0C6282 E0C62M2 E0C62T3 New No. S1C62470 S1C62480 S1C6S480 S1C624C0 S1C62N51 S1C62560 S1C62920 S1C62N62 S1C62660 S1C62740 S1C62N81 S1C62N82 S1C62M20 S1C62T30
Comparison table between new and previous number of development tools
Development tools for the S1C60 / 62 Family
Previous No. ASM62 DEV6001 DEV6002 DEV6003 DEV6004 DEV6005 DEV6006 DEV6007 DEV6008 DEV6009 DEV6011 DEV60R08 DEV621A DEV621C DEV623B DEV6244 DEV624A DEV624C DEV6248 DEV6247 New No. S5U1C62000A S5U1C60N01D S5U1C60N02D S5U1C60N03D S5U1C60N04D S5U1C60N05D S5U1C60N06D S5U1C60N07D S5U1C60N08D S5U1C60N09D S5U1C60N11D S5U1C60R08D S5U1C621A0D S5U1C621C0D S5U1C623B0D S5U1C62440D S5U1C624A0D S5U1C624C0D S5U1C62480D S5U1C62470D Previous No. DEV6262 DEV6266 DEV6274 DEV6292 DEV62M2 DEV6233 DEV6235 DEV6251 DEV6256 DEV6281 DEV6282 DEV6S27 DEV6S32 DEV6S37 EVA6008 EVA6011 EVA621AR EVA621C EVA6237 EVA623A New No. S5U1C62620D S5U1C62660D S5U1C62740D S5U1C62920D S5U1C62M20D S5U1C62N33D S5U1C62N35D S5U1C62N51D S5U1C62560D S5U1C62N81D S5U1C62N82D S5U1C6S2N7D S5U1C6S3N2D S5U1C6S3N7D S5U1C60N08E S5U1C60N11E S5U1C621A0E2 S5U1C621C0E S5U1C62N37E S5U1C623A0E Previous No. EVA623B EVA623E EVA6247 EVA6248 EVA6251R EVA6256 EVA6262 EVA6266 EVA6274 EVA6281 EVA6282 EVA62M1 EVA62T3 EVA6S27 EVA6S32R ICE62R KIT6003 KIT6004 KIT6007 New No. S5U1C623B0E S5U1C623E0E S5U1C62470E S5U1C62480E S5U1C62N51E1 S5U1C62N56E S5U1C62620E S5U1C62660E S5U1C62740E S5U1C62N81E S5U1C62N82E S5U1C62M10E S5U1C62T30E S5U1C6S2N7E S5U1C6S3N2E2 S5U1C62000H S5U1C60N03K S5U1C60N04K S5U1C60N07K
CONTENTS
PREFACE
This manual mainly explains the outline of the development support tool for the 4-bit Single Chip Microcomputer S1C6S3N2. Refer to the "S1C62 Family Development Tool Reference Manual" for the details (common to all models) of each development support tool. Manuals for hardware development tools are separate, so you should also refer to the below manuals. Development tools
S1C62 Family Development Tool Reference Manual S5U1C6S3N2E2 Manual (Evaluation Board for S1C60N09 / 6S3N2 / 62N33) S5U1C62000H Manual (S1C60 / 62 Family In-Circuit Emulator) S1C6S3N2 Technical Manual S1C6200 / 6200A Core CPU Manual
Device (S1C6S3N2) Instructions
In this manual, "ICE" and "evaluation board" indicate S5U1C62000H and S5U1C6S3N2E2, respectively.
CONTENTS
1.1 1.2 1.3 1.4 Configuration of S5U1C6S3N2D ....................................... 1 Developmental Environment .......................................... 1 Development Flow .................................................. 2 Installation ........................................................ 3
2.1 2.2 DMS6200 Outline ................................................... 4 DMS6200 Quick Reference ........................................... 4
3.1 3.2 3.3 ASM6S32 Outline ................................................... 5 S1C6S3N2 Restrictions ............................................... 5 ASM6S32 Quick Reference ............................................ 6
4.1 4.2 4.3 4.4 4.5 FOG6S32 Outline ................................................... 8 S1C6S3N2 Option List ............................................... 8 Option Specifications and Selection Message ............................. 10 FOG6S32 Quick Reference ........................................... 17 Sample File ....................................................... 19
5.1 5.2 5.3 5.4 5.5 SOG6S32 Outline .................................................. 22 Option List ........................................................ 23 Segment Ports Output Specifications ................................... 24 SOG6S32 Quick Reference ........................................... 25 Sample Files ...................................................... 27
6.1 6.2 6.3 ICS6S32 Outline ................................................... 29 ICS6S32 Restrictions ................................................ 29 ICS6S32 Quick Reference ............................................ 31
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
CONTENTS
7.1 7.2 MDC6S32 Outline .................................................. 34 MDC6S32 Quick Reference ........................................... 34
White
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
Here we will explain the composition of the software for the development support tools, developmental envilonment and how to generate the execution disk.
1.1 Configuration of S5U1C6S3N2D
The below software are included in the product of the S1C6S3N2 development support tool S5U1C6S3N2D. 1. 2. 3. 4. 5. 6. Development Tool Management System DMS6200 ... Menu selection for each software / start-up software Cross Assembler ASM6S32 ..................... Cross assembler for program preparation Function Option Generator FOG6S32 .............. Function option data preparation program Segment Option Generator SOG6S32 ............. Segment option data preparation program ICE Control Software ICS6S32 ................... ICE control program Mask Data Checker MDC6S32 ................... Mask data preparation program
1.2 Developmental Environment
The software product of the development support tool S5U1C6S3N2D operates on the following host systems: · IBM PC / AT (at least PC-DOS Ver. 2.0) When developing the S1C6S3N2, the above-mentioned host computer, editor, P-ROM writer, printer, etc. must be prepared by the user in addition to the development tool which is normally supported by Seiko Epson.
Host computer (IBM PC / AT)
S1C6S3N2 Development Tool
S5U1C62000A Software tools
S5U1C6S3N2D
PC-DOS Editor ICE RS-232C DMS6200 ASM6S32 FOG6S32 SOG6S32 ICS6S32 MDC6S32 Target board Hardware tools Evaluation Board S5U1C6S3N2E2
S5U1C62000H
· P-ROM writer · Printer
To be prepared by the user
Fig. 1.2.1 System configuration
The S5U1C6S3N2D system requires a host computer with a RAM capacity of about 140K bytes. Since the ICE (S5U1C62000H) is connected to the host computer with a RS-232C serial interface, adapter board for asynchronous communication will be required depending on the host computer used.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
1.3 Development Flow
Figure 1.3.1 shows the development flow through the S5U1C6S3N2D.
1, 2 Determination of software specifications 2, 3, 4 Flow chart generation and coding 4, 5 Development support tool selection on menu of Development Tool Management System DMS6200 1 Determination of hardware specifications 4, 5 Function option list generation 4, 5 Segment option list generation Creation of target board 1, 6
Coding sheet
Function option list
Segment option list
Source file generation by using editor
CS32XXX .DAT
Program source file 4, 5 4, 5 Function Option Generator FOG6S32 execution
CS32XXX .SEG
Segment option source file 4, 5
Cross Assembler ASM6S32 execution
Segment Option Generator SOG6S32 execution
CS32XXX .PRN
Assembly list
CS32XXXL Object file .HEX CS32XXXH .HEX CS32XXXF .DOC CS32XXXS .DOC
Function option document file
Segment option document file
Function
CS32XXXF option .HEX HEX file
Segment
CS32XXXF option .HEX HEX file
Function option ROM (one)
Segment option ROM (one)
4, 5 Debugging with ICE Control Software ICS6S32 Debugging completion
Target board ICE S5U1C62000H 4, 7 Evaluation Board S5U1C6S3N2E2 6
4, 5 Mask Data Checker MDC6S32 execution
C6S32XXX File for submission .PAn
Fig. 1.3.1 S5U1C6S3N2D development flow
SEIKO EPSON
Concerning file names
All the input-output file name for the each development support tool commonly use "CS32XXX". In principle each file should be produced in this manner. Seiko Epson will designate the "XXX" for each customer.
Reference Manual
S1C6S3N2 Technical Manual (Hardware) S1C6S3N2 Technical Manual (Software) S1C6200 / 6200A Core CPU Manual S1C62 Family Development Tool Reference Manual
5 S5U1C6S3N2D Manual (this manual) 6 S5U1C6S3N2E2 Manual 7 S5U1C62000H Manual
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
1.4 Installation
The S5U1C6S3N2D tools are included on the CD-ROM of the S5U1C62000A (S1C60 / 62 Family Assembler Package), and they can be installed in your hard disk using the installer (Setup.exe) on the CD-ROM. Refer to the "S5U1C62000A Manual" for how to install the S5U1C6S3N2D tools.
The DMS6200 configures a menu from files that are located in the current directory. Therefore, do not move the development tools from the directory in which the DMS6200 exists. To invoke an editor (DOS version) or other programs from the DMS6200, copy those executable files to the directory in which the DMS6200 exists.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
2 DEVELOPMENT TOOL MANAGEMENT SYSTEM DMS6200
2.1 DMS6200 Outline
The DMS6200 (Development Tool Management System) is a software which selects the S5U1C6S3N2D software development support tool and the program such as an editor in menu form and starts it. In this way the various software frequently executed during debugging can be effectively activated.
DMS6200 Menu selections
Fig. 2.1.1 DMS6200 execution flow
ASM6S32
FOG6S32
SOG6S32
ICS6S32
MDC6S32
Editor etc.
To DOS
Refer to the "S1C62 Family Development Tool Reference Manual" for detailes of the operation.
2.2 DMS6200 Quick Reference
s Starting command
Execution file: DMS6200.EXE Starting command: DMS6200 indicates the Return key.
s Display examples
E0C6200 Development tool Management System. -- Ver 1.0 EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN
(C) Copyright 1990 SEIKO EPSON CORP. STRIKE ANY KEY.
Start message When DMS6200 is started, the following message is displayed. For "STRIKE ANY KEY.", press any key to advance the program execution. To suspend execution, press the "CTRL" and "C" keys together: the sequence returns to the DOS command level.
DMS6200 Version 1.0 1) 2) 3) 4) 5) 6) ASM6S32 .EXE FOG6S32 .EXE ICS6S32B.BAT ICS6S32W.EXE MDC6S32 .EXE SOG6S32 .EXE
Copyright(C) SEIKO EPSON CORP. 1990.
Menu screen A list of all executable files will appear on this menu screen. Input the number of the development support tool you wish to start and then press the "RETURN" key. To return to DOS at this point, press the "ESC" key. Source file selection screen To starting ASM6S32, select the source file on this screen. When the source file is selected by number, the edit line enclosed in will appear enter the option parameter if necessary. Press the "RETURN" key when input is completed. When starting, press the "RETURN" key twice particularly for the support tools which do not require source files. To return to DOS at this point, press the "ESC" key.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
DMS6200 Version 1.0 1) 2) 3) : 10) CS32XXX .DAT CS32XXX .PRN CS32XXX .SEG : C6S32XXX.PA0
Copyright(C) SEIKO EPSON CORP. 1990.
EPSON
3 CROSS ASSEMBLER ASM6S32
3.1 ASM6S32 Outline
CS32XXX .DAT
Error message
CS32XXX .PRN
CS32XXXL .HEX
CS32XXXH .HEX
Error message
Assembly listing file
Object file
Fig. 3.1.1 ASM6S32 execution flow
The format of the source file and its operating method are same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
3.2 S1C6S3N2 Restrictions
Note the following when generating a program by the S1C6S3N2:
s ROM area
The capacity of the S1C6S3N2 ROM is 2K steps (0000H to 07FFH). Therefore, the specification range of the memory setting pseudo-instructions and PSET instruction is restricted.
Memory configuration: Bank: Only bank 0, Page: 8 pages (0 to 7H), each 256 steps Significant specification range: ORG pseudo-instruction: PAGE pseudo-instruction: BANK pseudo-instruction: PSET instruction: X, 0A0H 0000H to 07FFH 00H to 07H Only 0H 00H to 07H A0H is loaded into the IX register, but an unused area has been specified so that the memory accessible with the IX register (MX) is invalid. C7H is loaded into the IY register, but an unused area has been specified so that the memory accessible with the IY register (MY) is invalid.
s RAM area
The capacity of the S1C6S3N2 RAM is 144 words (000H to 06FH, 080H to 09FH and 4 bits / word). Memory access is invalid when the unused area of the index register is specified.
Example: LD
Y, 0C7H
s Undefined codes
The following instructions have not been defined in the S1C6S3N2 instruction sets.
SLP PUSH POP LD LD
PUSH POP LD LD
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
3 CROSS ASSEMBLER ASM6S32
3.3 ASM6S32 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Option: .shp s h p -N Input file: Output file: ASM6S32.EXE
CS32XXXL.HEX (Object file, low-order) CS32XXXH.HEX (Object file, high-order) CS32XXX.PRN (Assembly listing file)
s Display example
E0C6S32 CROSS ASSEMBLER. -- Ver 2.00 EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN
(C) COPYRIGHT 1989 SEIKO EPSON CORP. SOURCE FILE NAME IS " CS32XXX.DAT " THIS SOFTWARE MAKES NEXT FILES. CS32XXXH.HEX CS32XXXL.HEX CS32XXX .PRN .. .. .. HIGH BYTE OBJECT FILE. LOW BYTE OBJECT FILE. ASSEMBLY LIST FILE. . . . (1) . . . (2)
When ASM6S32 is started, the start-up message is displayed. At (1), select whether or not the auto-pageset function will be used. Use ............ Y Not use ......... N If the assembly listing file output is specified, message (2) is displayed. At this stage, cross-reference table generation may be selected. Generating ...... Y Not generating ... N When the above operation is completed, ASM6S32 assembles the source file. To suspend execution, press the "CTRL" and "C" keys together at stage (1) or (2).
s Operators
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
3 CROSS ASSEMBLER ASM6S32
s Pseudo-instructions
Pseudo-instruction Meaning Example of Use
EQU SET DW ORG PAGE SECTION END MACRO LOCAL ENDM
(Equation) (Set) (Define Word) (Origin) (Page) (Section) (End) (Macro) (Local) (End Macro)
To allocate data to label To allocate data to label (data can be changed) To define ROM data To define location counter To define boundary of page To define boundary of section To terminate assembly To define macro To make local specification of label during macro definition To end macro definition
ABC BCD ABC ABC ABC BCD
EQU EQU SET SET DW DW ORG ORG PAGE PAGE SECTION END
CHECK LOCAL LOOP
MACRO LOOP CP JP ENDM CHECK
DATA MX, DATA NZ, LOOP
s Error messages
Error message Explanation An unrecoverable syntax error was encountered. The label or symbol of the operand has not been defined. The label field has been omitted. A syntax error was encountered in the operand, or the operand could not be evaluated. The same label or symbol was defined more than once. · The location counter value exceeded the upper limit of the program memory, or a location exceeding the upper limit was specified. · A value greater than that which the number of significant digits of the operand will accommodate was specified. · Memory areas overlapped because of a "PAGE" or "ORG" pseudoinstruction or both. The source file name was longer than 8 characters. The specified source file was not found. No space was left in the directory of the specified disk. The file could not be written to the disk. The number of defined labels and symbols exceeded the label table
(Syntax Error) (Undefined Error) (Missing Label) (Operand Error) (Phase Error) (Range Error)
(Warning)
FILE NAME ERROR FILE NOT PRESENT DIRECTORY FULL FATAL DISK WRITE ERROR LABEL TABLE OVERFLOW
capacity (4000). CROSS REFERENCE TABLE OVERFLOW The label / symbol reference count exceeded the cross-reference table capacity (only when the cross-reference table is generated).
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
FUNCTION OPTION GENERATOR
FOG6S32
Option list generation
4.1 FOG6S32 Outline
With the 4-bit single-chip S1C6S3N2 microcomputers, the customer may select 10 hardware options. By modifying the mask patterns of the S1C6S3N2 according to the selected options, the system can be customized to meet the specifications of the target system. The Function Option Generator FOG6S32 is a software tool for generating data files used to generate mask patterns. It enables the customer to interactively select and specify pertinent items for each hardware option. From the data file created with FOG6S32, the S1C6S3N2 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (S5U1C6S3N2E2) hardware option ROM is simultaneously generated with the data file.
Start FOG6S32
Set function option
CS32XXXF .HEX
CS32XXXF .DOC
Evaluation board Seiko Epson
EPROM
The operating method is same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
Floppy disk
Fig. 4.1.1 FOG6S32 execution flow
4.2 S1C6S3N2 Option List
Multiple specifications are available in each option item as indicated in the Option List. Using "4.3 Option Specifications and Selection Message" as reference, select the specifications that meet the target system. Be sure to record the specifications for unused ports too, according to the instructions provided.
1. DEVICE TYPE
s s s s 1. E0C6S32 (S1C6S3N2) 2. E0C6SA32 (S1C6S3A2) 3. E0C6SL32 (S1C6S3L2) 4. E0C6SB32 (S1C6S3B2) s 2. Ceramic
2. OSC3 OSCILLATION CIRCUIT (only for S1C6S3A2)
3. MULTIPLE KEY ENTRY RESET
· KEY COMBINATION ............. s s s s · TIME DETECTION ............... s 1. Not Use 2. Use K00, K01 3. Use K00, K01, K02 4. Use K00, K01, K02, K03 1. Not Use s 2. Use s 2. Use s 2. Not Use s 2. Not Use s s s s s 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct
4. WATCH DOG TIMER
s 1. Not Use
5. INTERRUPT NOISE REJECT
· K00-K03 ......................... s 1. Use · K10 ............................. s 1. Use
6. INPUT K PORT WITH PULL DOWN RESISTOR
1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
7. R00-R03 SPECIFICATION
· R00 ............................. · R01 ............................. · R02 ............................. · R03 ............................. s s s s 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain
8. R10 SPECIFICATION
· OUTPUT SPECIFICATION ........ s 1. Complementary · OUTPUT TYPE ................... s 1. DC Output s 2. Pch-OpenDrain s 2. Buzzer Output s 2. Pch-OpenDrain s 2. Pch-OpenDrain
9. R11 SPECIFICATION
· OUTPUT SPECIFICATION ........ s 1. Complementary
10.R12 SPECIFICATION
· OUTPUT SPECIFICATION ........ s 1. Complementary · OUTPUT TYPE ................... s 1. DC Output s 2. FOUT 32768 (HZ) s 3. FOUT 16384 (HZ) s 4. FOUT 8192 (HZ) s 5. FOUT 4096 (HZ) s 6. FOUT 2048 (HZ) s 7. FOUT 1024 (HZ) s 8. FOUT 512 (HZ) s 9. FOUT 256 (HZ)
11.R13 SPECIFICATION
· OUTPUT SPECIFICATION ........ s 1. Complementary s 2. Pch-OpenDrain · OUTPUT TYPE ................... s 1. DC Output s 2. Buzzer Inverted Output (R13 control) s 3. Buzzer Inverted Output (R10 control)
12. I / O PORT OUTPUT SPECIFICATION
· P00 ............................. · P01 ............................. · P02 ............................. · P03 ............................. · P10 ............................. · P11 ............................. · P12 ............................. · P13 ............................. s s s s s s s s 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s s s s s 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain s 3. 256 (HZ)
13.EVENT COUNTER SPECIFICATION
· NOISE REJECT ................... s 1. Not Use · INPUT TERMINAL ............... s 1. K10 s 2. 2048 (HZ) s 2. K03
14.LCD SPECIFICATION
15.SEGMENT MEMORY ADDRESS
s 1. 40-6F (R / W) s 2. C0-EF (W)
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
4.3 Option Specifications and Selection Message
Screen that can be selected as function options set on the S1C6S3N2 are shown below, and their specifications are also described.
1 Device type
OPTION NO.1 -- DEVICE TYPE -1. 2. 3. 4. E0C6S32 E0C6SA32 E0C6SL32 E0C6SB32
Select the chip specification. There are four models: "E0C6S32" (S1C6S3N2) (3 V supply voltage), "E0C6SL32" (S1C6S3L2), "E0C6SB32" (S1C6S3B2) (1.5 V supply voltage, lowpower specification) and "E0C6SA32" (S1C6S3A2) (Twin Clock specification). When "E0C6S32", "E0C6SL32" or "E0C6SB32" is selected, oscillation circuit OSC3 is fixed at CR oscillation. However, it can not be used.
2 OSC3 oscillation circuit
The above selection is only possible with 6S3A2.
Select oscillation circuit that uses OSC3 and OSC4. To minimize external components, CR oscillation circuit would be suitable to obtain a stable oscillation frequency, ceramic oscillation circuit would be suitable. When CR oscillation circuit is selected, only resistor is needed as external component since capacitie is built-in. On the other hand, when ceramic oscillation circuit is selected, ceramic oscillator, gate capacity and drain capacity are needed as external components. Although when ceramic oscillation circuit is selected, it is fixed at 1 MHz, when CR oscillation circuit is selected, frequency may be modified to a certain extent depending on the resistance of external component. The reset function and time detection circuit are set when K00 through K03 are entered.
3 Multiple key entry reset
OPTION NO.3 -- MULTIPLE KEY ENTRY RESET -KEY COMBINATION 1. 2. 3. 4. NOT USE USE USE USE K00, K01 K00, K01, K02 K00, K01, K02, K03
· Key combination When "Not Use" is set for the combination, the reset function is not activated even if K00 through K03 are entered. When "Use K00, K01" is set, the system is reset immediately the K00 and K01 inputs go high at the same time. Similarly, the system is reset as soon as the K00 through K02 inputs or the K00 through K03 inputs go high. · Time detection circuit When "Use" is set for the time detection circuit, a simultaneous high input time is authorized. The system is reset when a signal is input for more than 1 to 3 sec. If the time detection circuit is not used, the system is reset when a high signal is input for more than 6 msec. Even if "Not Use" is set for the combination, the time detection selection is required. The system reset circuit is shown in Figure 4.3.1.
OSC1 OSC2
Oscillation circuit Mask option
Oscillation detection circuit
K00 K01 K02 K03
RESET
Fig. 4.3.1 System reset circuit
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
4 Watchdog timer
Select whether the watchdog timer built-in to detect CPU runaways will be used or not. When the watchdog timer is not reset by the program within 3 to 4 second cycles, the CPU is initially reset.
5 Interrupt noise reject
OPTION NO.5 -- INTERRUPT NOISE REJECT -K00-K03 1. USE 2. NOT USE
Select whether noise rejector will be supplemented to the input interruptor of K00-K03 and K10. When "Use" is selected, the entry signal will pass the noise rejector, and occurrence of interrupt errors due to noise or chattering can be avoided. Note, however, that because the noise rejector performs entry signal sampling at 4 kHz, "Not Use" should be selected when high speed response is required.
6 Input ports pull down resistor
OPTION NO.6 -- INPUT K PORT WITH PULL DOWN RESISTOR -K00 1. WITH RESISTOR 2. GATE DIRECT
Select whether input ports (K00-K03 and K10) will each be supplemented with pull down resistors or not. When "Gate Direct" is selected, see to it that entry floating state does not occur. Select "With Resistor" pull down resistor for unused ports. Moreover, the input port status is changed from high level (VDD) to low (VSS) with pull down resistors, a delay of approximately 1 msec in waveform rise time will occur depending on the pull down resistor and entry load time constant. Because of this, when input reading is to be conducted, ensure the appropriate wait time with the program. The configuration of the pull down resistor circuit is shown in Figure 4.3.2.
SELECTED SELECTED SELECTED SELECTED SELECTED
Data bus Read signal
Fig. 4.3.2 Configuration of pull down resistor
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
7 R00-R03 specification
OPTION NO.7 -- R00-R03 SPEC. -R00 OUTPUT SPEC. 1. COMPLEMENTARY 2. PCH-OPENDRAIN
Select the output specification for the output ports (R00-R03). Either complementary output or Pch open drain output may be selected. When output port is to be used on key matrix configuration, select Pch open drain output. For unused output ports, select complementary output. The output circuit configuration is shown in Figure 4.3.3.
Output register Complementary R
Pch open drain
R00 R01 R02 R03
OUTPUT OUTPUT OUTPUT OUTPUT
SPEC. SPEC. SPEC. SPEC.
COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY
SELECTED SELECTED SELECTED SELECTED
Fig. 4.3.3 Configuration of output circuit
8 R10 specification
OPTION NO.8
Select the output specification and the output type for the R10 terminal.
1. COMPLEMENTARY 2. PCH-OPENDRAIN
-- R10 SPEC. -R10 OUTPUT SPEC.
· Output specification Either complementary output or Pch open drain output may be selected. · Output type When DC output is selected, R10 becomes a regular output port. When buzzer output is selected, by writing "1" to the R10 register, buzzer drive (oscillation output) signal is output from the R10 terminal. When DC output is selected, the R13 terminal output type (see Option 11, "R13 specification") selection is limited to DC output only. The circuit configuration is the same as that of output ports (R00-R03 shown in Figure 4.3.3). Refer to Figure 4.3.6 for buzzer output waveform.
9 R11 specification
OPTION NO.9 -- R11 SPEC. -R11 OUTPUT SPEC. 1. COMPLEMENTARY 2. PCH-OPENDRAIN
Select the output specification for the R11 terminal. Either complementary output or Pch open drain output may be selected. The circuit configuration is the same as that of output ports (R00-R03 shown in Figure 4.3.3).
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
10 R12 specification
OPTION NO.10
Select the output specification and the output type for the R12 terminal.
1. COMPLEMENTARY 2. PCH-OPENDRAIN
-- R12 SPEC. -R12 OUTPUT SPEC.
VDD R12 output R12 register 0 1 0 VSS
Fig. 4.3.4 Output waveform at R12 DC output selection
Specified frequency
VDD R12 output R12 register 0 1 0 VSS
Fig. 4.3.5 Output waveform at R12 FOUT output selection
11 R13 specification
OPTION NO.11
Select the output specification and the output type for the R13 terminal.
1. COMPLEMENTARY 2. PCH-OPENDRAIN
-- R13 SPEC. -R13 OUTPUT SPEC.
· Output specification Either complementary output or Pch open drain output may be selected. · Output type Either DC output or NBZ output (buzzer inverted output) may be selected. When DC output is selected, R13 becomes a regular output port. When "NBZ " is selected, inverted waveform of R10 buzzer output is generated from the R13 terminal. R13 and R10 control bits become buzzer inverted output when "1" is written to R13 and R10 registers, respectively. The buzzer inverted output may not be selected when the output type R10 terminal (see Option 8, "R10 specification") is not set to buzzer. Moreover, at this point, when the output type of R10 terminal is reselected after selecting buzzer inverted output, the output type of R10 is fixed at buzzer output. Buzzer output waveform is shown in Figure 4.3.6.
R10 / R13 register
R10 buzzer output
R13 buzzer inverted output
Fig. 4.3.6 Buzzer output waveform
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
12 I / O port specification
OPTION NO.12 -- I / O PORT OUTPUT SPEC. -P00 1. COMPLEMENTARY 2. PCH-OPENDRAIN
Select the output specification to be used during I / O ports (P00-P03 and P10-P13) output mode selection. Either complementary output or Pch open drain output may be selected. The circuit configuration of the output driver is the same as that of output ports (R00-R03 shown in Figure 4.3.3). Select complementary output for unused ports. The I / O ports can control the input / output direction according to the IOC bit (7E address, D0 bit, and FE, D0 bit) at "1" and "0" settings, it is set to output port and input port, respectively. The pull down resistor of this port is turned on by the read signal and is normally turned off to minimize leak current. Because of this, when the port is set for input, take care that a floating state does not occur in the terminal. The I / O port circuit configuration is shown in Figure 4.3.7.
Data bus
Read signal
Register
I / O control register VSS
Fig. 4.3.7 Circuit configuration of I / O port
13 Event counter specification
OPTION NO.13
Select the noise rejector and the input terminal for the event counter.
1. NOT USE 2. 2048 (HZ) 3. 256 (HZ)
-- EVENT COUNTER SPEC. -NOISE REJECT
· Noise reject The event counter is equipment with built-in noise rejector to prevent operational errors caused by noise and chattering in the K10 (K03) terminal. The noise rejector is bypassed when "Not Use" is selected. When using the noise rejector, either 2048 Hz or 256 Hz can be selected as the sampling frequency. Select a frequency suitable for the signal to be input. · Input terminal Either K10 or K03 may be selected. The phase of the K10 input signal is different from K03.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
14 LCD specification
OPTION NO.14 -- LCD SPEC. -DUTY 1. 1 / 4 DUTY 2. 1 / 3 DUTY 3. 1 / 2 DUTY
SELECTED
Select the specification (duty, LCD power source, LCD bias, LCD register function) for LCD drive circuit. · Duty Table 4.3.1 Common duty selection standard Select the drive duty. Number of segments Common duty When 1 / 2 duty is selected, up to 76 segments of LCD panel can be 1-76 1 / 2 driven with 2 COM terminals and 38 SEG terminals. When 1 / 3 duty is 77-114 1 / 3 selected, up to 114 segments can be driven with 3 COM terminals, and 115-152 1 / 4 when 1 / 4 duty is selected, up to 152 segments with 4 COM terminals. When 1 / 2 duty is selected, the COM0 and COM1 terminals are effective for COM output and the COM2 and COM3 terminals always output an off signal. When 1 / 3 duty is selected, the COM0 to COM2 terminals are effective and the COM3 terminal always outputs an off signal. Refer to Table 4.3.1 for common duty selection. Figures 4.3.8 and 4.3.9 show the drive waveforms of 1 / 3 bias driving and 1 / 2 bias driving, respectively.
COM0 VDD VL1 VL2 VL3 COM0 VDD VL1 VL2 VL3 COM0 VDD VL1 VL2 VL3
1 / 4 duty drive waveform
1 / 3 duty drive waveform
1 / 2 duty drive waveform
Fig. 4.3.8 Drive waveform from COM terminals (1 / 3 bias)
COM0 VDD VL1, VL2 VL3 COM0 VDD VL1, VL2 VL3 COM0 VDD VL1, VL2 VL3
1 / 4 duty drive waveform
1 / 3 duty drive waveform
1 / 2 duty drive waveform
Fig. 4.3.9 Drive waveform from COM terminals (1 / 2 bias)
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
· LCD power source For the LCD power source, either "internal" (to generate internally) or "external" (to supply from outside of the IC) can be selected. The tables on the left show the voltage of the LCD panel which can be used according to the selection of LCD voltage and model. Figure 4.3.10 shows the external elements when the LCD system voltage regulator is not used.
S1C6S3N2 / 6S3A2
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 3 bias VDD VS1 VL1 VL2 VL3 CA 3V CB VSS Note: VL3 is shorted to VSS inside the IC. CB VSS Note: VL3 is shorted to VSS inside the IC.
S1C6S3N2 / 6S3A2
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 2 bias VDD VS1 VL1 VL2 VL3 CA 3V
S1C6S3A2
4.5 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 3 bias VDD VS1 VL1 VL2 VL3 CA 3V CB VSS Note: VL2 is shorted to VSS inside the IC.
S1C6S3L2
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 2 bias VDD VS1 VL1 VL2 VL3 CA 1.5 V CB VSS Note: VL1 is shorted to VSS inside the IC.
Fig. 4.3.10 External elements when LCD system voltage regulator is not used
15 Segment memory address
Select the segment memory area. When "40-6F" is selected for the segment memory area, it is possible to read and write from / to this area because a RAM is assigned to this area. When "C0-EF" is selected, this segment memory area becomes a write-only area.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
4.4 FOG6S32 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: Output file: FOG6S32.EXE FOG6S32
indicates the Return key.
CS32XXXF.DOC (Function option document file, when modifying) CS32XXXF.DOC (Function option document file) CS32XXXF.HEX (Function option HEX file)
s Display example
E0C6S32 FUNCTION OPTION GENERATOR. -- Ver 3.13 PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN
Start-up message When FOG6S32 is started, the start-up message is displayed. For "STRIKE ANY KEY.", press any key to advance the program execution. To suspend execution, press the "CTRL" and "C" keys together: the sequence returns to the DOS command level.
(C) COPYRIGHT 1994
SEIKO EPSON CORP.
THIS SOFTWARE MAKES NEXT FILES. CS32XXXF.HEX CS32XXXF.DOC .. .. FUNCTION OPTION HEX FILE. FUNCTION OPTION DOCUMENT FILE.
STRIKE ANY KEY.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
(Modifying function option settings)
In step (1), if no modifiable source exists, the following message is displayed and the sequence returns to the operation selection menu.
SOURCE FILE(S) FUNCTION OPTION DOCUMENT FILE IS NOT FOUND.
In step (2), if the function option document file is not in the current drive, the following message is displayed, prompting entry of other file name.
OPTION
-- MULTIPLE KEY ENTRY RESET -KEY COMBINATION 1. 2. 3. 4. Not Use Use K00, K01 Use K00, K01, K02 Use K00, K01, K02, K03
PLEASE SELECT
KEY COMBINATION
Option selection The selections for each option correspond one to one to the option list. Enter the selection number. The value in parentheses ( ) indicates the default value, and is set when only the RETURN key " " is pressed. In return, the confirmation is displayed. When you wish to modify previously set function options in the new setting process, enter "B " to return 1 step back to the previous function option setting operation. EPROM selection When setting function options setting is completed, the following message is output to ask the operator whether to generate the HEX file. (1) When debugging the program with the evaluation board, HEX file is needed, so enter "Y ". If "N " is entered, no HEX file is generated and only document file is generated. (2) For the option ROM selection menu displayed when "Y " is entered in Step (1), select the EPROM to be used for setting evaluation board options. When a series of operations are complete, the sequence returns to the operation selection menu.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
4.5 Sample File
s Example of function option document file
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
SELECTED
SELECTED SELECTED
SELECTED
SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED
EPSON
4 FUNCTION OPTION GENERATOR FOG6S32
COMPLEMENTARY -------BZ OUTPUT ----------
SELECTED SELECTED
COMPLEMENTARY
SELECTED
COMPLEMENTARY FOUT 512 (HZ)
SELECTED SELECTED
COMPLEMENTARY -------NBZ CONTROLLED BY R13 ----
SELECTED SELECTED
COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY
SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED
NOT USE ----------K03 -------------
SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
4 FUNCTION OPTION GENERATOR FOG6S32
SELECTED
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S32
SEGMENT OPTION GENERATOR
SOG6S32
5.1 SOG6S32 Outline
With the 4-bit single-chip S1C6S3N2 microcomputers, the customer may select the LCD segment options. By modifying the mask patterns of the S1C6S3N2 according to the selected options, the system can be customized to meet the specifications of the target system. The Segment Option Generator SOG6S32 is a software tool for generating data file used to generate mask patterns. From the data file created with SOG6S32, the S1C6S3N2 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (S5U1C6S3N2E2) segment option ROM is simultaneously generated with the data file.
CS32XXX .SEG
Error message Error message
CS32XXXS .HEX Segment option HEX file for evaluation board use
CS32XXXS .DOC Segment option document file
Fig. 5.1.1 SOG6S32 execution flow
The operating method is same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
5 SEGMENT OPTION GENERATOR SOG6S32
5.2 Option List
Note: 1. Even if there are unused areas, set "--" (hyphens) such that there are no blank columns. 2. When DC output is selected, the display memory of the COM0 column becomes effective.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S32
5.3 Segment Ports Output Specifications
For the output specification of the segment output ports SEG0-SEG37, segment output and DC output can be selected in units of two terminals. When used for liquid crystal panel drives, select segment output when used as regular output port, select DC output. When DC output is selected, either complementary output or Pch open drain output may further be selected. However, for segment output ports that will not be used, select segment output. Refer to the "S1C62 Family Development Tool Reference Manual" for the segment option source file creation.
s When segment output is selected
The segment output port has a segment decoder built-in, and the data bit of the optional address in the segment memory area (040H-06FH or 0C0H-0EFH) can be allocated to the optional segment. With this, up to 152 segments (114 segments when 1 / 3 duty is selected or 76 segments when 1 / 2 duty is selected) of liquid crystal panel could be driven. The segment memory may be allocated only one segment and multiple setting is not possible. The allocated segment displays when the bit for this segment memory is set to "1", and goes out when bit is set to "0". Segment allocation is set to H for high address (4-6 or C-E), to L for low address (0-F), and to D for data bit (0-3) and are recorded in their respective column in the option list. For segment ports that will not be used, write "--" (hyphen) in the H, L, and D columns of COM0-COM3. Examples · When 1 / 4 duty is selected 0 C00 C01 C02 C03 1 C10 C11 C12 C13 · When 1 / 3 duty is selected 0 C00 C01 C02 -1 C10 C11 C12 -· When 1 / 2 duty is selected 0 C00 C01 -- -1 C10 C11 -- --
s When DC output is selected
The DC output can be selected in units of two terminals and up to 38 terminals may be allocated for DC output. Also, either complementary output or Pch open drain output is likewise selected in units of two terminals. When the bit for the selected segment memory is set to "1", the segment output port goes high (VDD), and goes low (VSS) when set to "0". Segment allocation is the same as when segment output is selected but for the while the segment memory allocated to COM1-COM3 becomes ineffective. Write three hyphens ("--") in the COM1-COM3 columns in the option list. Example · When complementary output is set to SEG34 and SEG35, and Pch open drain output is set to SEG36 and SEG37. 34 E00 -- -- -- C 35 E10 -- -- -- C 36 E20 -- -- -- P 37 E30 -- -- -- P
Only complementary output is enabled as the DC output of the SEG ports of the evaluation board. Therefore, complementary output is enabled even if Pch open drain output is selected. Respond to it by adding external circuits as required.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
5 SEGMENT OPTION GENERATOR SOG6S32
5.4 SOG6S32 Quick Reference
s Starting command and input / output files
-H: Specifies the segment option document file for input file of SOG6S32. CS32XXX.SEG (Segment option source file) CS32XXXS.DOC (Segment option document file, when -H option use) CS32XXXS.DOC (Segment option document file) CS32XXXS.HEX (Segment option HEX file)
s Display example
E0C6S32 SEGMENT OPTION GENERATOR. -- Ver 3.20 PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE
Start-up message When SOG6S32 is started, the start-up message is displayed. For "STRIKE ANY KEY.", press any key to advance the program execution. To suspend execution, press the "CTRL" and "C" keys together: the sequence returns to the DOS command level.
(C) COPYRIGHT 1990
SEIKO EPSON CORP.
SEGMENT OPTION SOURCE FILE NAME IS " CS32XXX.SEG " THIS SOFTWARE MAKES NEXT FILES. CS32XXXS.HEX CS32XXXS.DOC .. .. SEGMENT OPTION HEX FILE. SEGMENT OPTION DOCUMENT FILE.
STRIKE ANY KEY.
SOURCE FILE(S) CS320A0 PLEASE INPUT PLEASE INPUT PLEASE INPUT (ONE LINE IS CS320B0 CS320C0 . . (1) . . (2) . . (3) . . (4) JAPAN
SOURCE FILE(S) SEGMENT OPTION SOURCE FILE IS NOT FOUND. SOURCE FILE(S) SEGMENT OPTION DOCUMENT FILE IS NOT FOUND. . . (6) -H option use . . (5) -H option not use
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S32
MAKING FILE IS COMPLETED.
EPROM selection When selecting file is completed, the following message is output to ask the operator whether to generate the HEX file. (1) When debugging the program with the evaluation board, HEX file is needed, so enter "Y ". If "N " is entered, no HEX file is generated and only document file is generated. (2) For the option ROM selection menu displayed when "Y " is entered in Step (1), select the EPROM to be used for setting evaluation board options. When a series of operations are complete, the SOG6S32 generates files. If no error is committed while setting segment options, "MAKING FILE IS COMPLETED" will be displayed and the SOG6S32 program will be terminated.
s Error messages
Error message Explanation The data was written in an invalid format. The segment number outside the specificable range was specified. The segment memory address or data bit outside the specificable range was specified. The same data (SEG port No., segment memory address, or data bit) was specified more then once. The output specifications were not set in units of two ports.
(Syntax Error) (Segment No. Select Error) (RAM Address Select Error) (Duprication Error)
Out Port Set Error
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
5 SEGMENT OPTION GENERATOR SOG6S32
5.5 Sample Files
s Example of segment option source file
CS320A2.SEG, VER.3.20 LCD SEGMENT DECODE TABLE 0 C01 C00 C32 E20 S 1 C12 C11 C10 C23 S 2 C13 C20 C21 C22 S 3 E00 C02 C30 C31 S 4 C41 C40 C72 E21 S 5 C52 C51 C50 C63 S 6 C53 C60 C61 C62 S 7 E01 C42 C70 C71 S 8 C81 C80 CB2 E22 S 9 C92 C91 C90 CA3 S 10 C93 CA0 CA1 CA2 S 11 E02 C82 CB0 CB1 S 12 CC1 CC0 CF2 E23 S 13 CD2 CD1 CD0 CE3 S 14 CD3 CE0 CE1 CE2 S 15 E03 CC2 CF0 CF1 S 16 D01 D00 D32 E30 S 17 D12 D11 D10 D23 S 18 D13 D20 D21 D22 S 19 E10 D02 D30 D31 S 20 D41 D40 D72 E31 S 21 D52 D51 D50 D63 S 22 D53 D60 D61 D62 S 23 E11 D42 D70 D71 S 24 D81 D80 DB2 E32 S 25 D92 D91 D90 DA3 S 26 D93 DA0 DA1 DA2 S 27 E12 D82 DB0 DB1 S 28 DC1 DC0 DF2 E33 S 29 DD2 DD1 DD0 DE3 S 30 DD3 DE0 DE1 DE2 S 31 E13 DC2 DF0 DF1 S 32 C03 C43 C83 CC3 S 33 D03 D43 D83 DC3 S 34 C33 C73 CB3 CF3 S 35 D33 D73 DB3 DF3 S 36 EE0 -- -- -- C 37 EF0 -- -- -- C
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S32
s Example of segment option document file
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
6 ICE CONTROL SOFTWARE ICS6S32
6.1 ICS6S32 Outline
The In-Circuit Emulator (S5U1C62000H) connects the target board produced by the user via the evaluation board (S5U1C6S3N2E2 and performs real time target system evaluation and debugging by passing through the RS-232C from the host computer and controlling it. The operation on the host computer side and ICE (S5U1C62000H) control is done through the ICE Control Software ICS6S32. The ICS6S32 has a set of numerous and highly functional emulation commands which provide sophisticated break function, on-the-fly data display, history display, etc., and so perform a higher level of debugging.
Host computer (IBM PC / AT)
Target board ICE RS-232C S5U1C62000H Evaluation Board S5U1C6S3N2E2
Fig. 6.1.1 Debugging system using ICE
The functions of the ICE and commands are same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
6.2 ICS6S32 Restrictions
Take the following precautions when using the ICS6S32.
s ROM Area
The ROM area is limited to a maximum address of 7FFH. Assigning data above the 7FFH address causes an error.
s RAM Area
The RAM area is limited to a maximum address of 0FFH. However, as the following addresses are in the unused area, designation of this area with the ICE commands produces an error. Unused area: 0A0H to 0EFH (When segment memory is assigned from 040H to 06FH) 0A0H to 0BFH (When segment memory is assigned from 0C0H to 0EFH) 0F0H to 0F5H, 0FFH (Area from 0F6H to 0FEH is I / O memory) Refer to the "S1C6S3N2 Technical Manual" for details.
s Undefined Code
The instructions below are not specified for the S1C6S3N2 and so cannot be used. SLP PUSH PUSH XP YP POP POP XP YP LD LD XP, r YP, r LD LD r, XP r, YP
s OPTLD Command
In the ICS6S32, OPTLD command can be used. This command is used to load HEX files (function option data and segment option data for LCD) in the evaluation board memory with the ICE. Load of function option data: Load of segment option data: #OPTLD, 1, CS32XXX #OPTLD, 2, CS32XXX
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
6 ICE CONTROL SOFTWARE ICS6S32
OPTLD
Format
Function
(1) Load function option HEX file in the evaluation board function option data memory. It is HEX file output by the function option generator and has intel HEX format. (2) Load segment option HEX file in the evaluation board segment option data memory. It is HEX file output by the segment option generator and has intel HEX format.
Examples
... CS32XXXF.HEX file is loaded in the function option data memory. ... CS32XXXS.HEX file is loaded in the segment option data memory. ... The OSC3 oscillation is turned ON.
... Switching from OSC1 to OSC3. ... The CPU is reset. (Switches CPU clock to OSC1 when OSC3 oscillation is set.)
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
6 ICE CONTROL SOFTWARE ICS6S32
6.3 ICS6S32 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: ICS6S32B.BAT (ICS6S32W.EXE) ICS6S32B (ICS6S32W) CS32XXXL.HEX CS32XXXH.HEX CS32XXXD.HEX CS32XXXC.HEX CS32XXXL.HEX CS32XXXH.HEX CS32XXXD.HEX CS32XXXC.HEX (Object file, low-order) (Object file, high-order) (Data RAM file) (Control file) (Object file, low-order) (Object file, high-order) (Data RAM file) (Control file)
indicates the Return key.
Output file:
s Display example
E0C6S32 ICE CONTROL SOFTWARE. -- Ver 3.01 EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN
(C) COPYRIGHT 1991 SEIKO EPSON CORP. ICE POWER ON RESET DIAGNOSTIC TEST OK #
Start-up message When ICS6S32 is started, the start-up message is displayed, and a self-test is automatically performed. ICS6S32 commands are awaited when the program is properly loaded and the # mark is displayed. Debugging can be done by entering command after the # mark. The ICS6S32 program is terminated by entering the Q (Quit) command.
Confirm that the cables connected properly, then operate the ICS6S32.
Recover procedure
s Error messages
Error message Meaning COMMUNICATION ERROR ICE is disconnected or power OR ICE NOT READY is OFF. TARGET DOWN (1) Evaluation board is disconnected. (Check at power ON) TARGET DOWN (2) Evaluation board is disconnected. (Check at command execution) UNDEFINED PROGRAM Undefined code is detected in the CODE EXIST program loaded from ROM or FD. COMMAND ERROR A miss occurs by command input. (No response after power on) The ICE-to-HOST cable is disconnected on the host side. Switch OFF the host power supply, connect cable, and reapply power. Or switch ON power to ICE. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE. Convert ROM and FD data with the cross assembler, then restart the ICE. Reenter the proper command. Switch OFF the host power supply, connect cable, and reapply power.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
6 ICE CONTROL SOFTWARE ICS6S32
s ICE commands
Item No. Function Command Format Outline of Operation
Assemble Disassemble Dump Fill Set Run Mode Trace
#A, a #L, a1, a2 #DP, a1, a2 #DD, a1, a2 #FP, a1, a2, d #FD, a1, a2, d #G, a #TIM #OTF #T, a, n #U, a, n #BA, a #BAR, a #BD #BDR #BR #BRR #BM #BMR #BRES #BC #BE #BSYN #BT #BRKSEL, REM #MP, a1, a2, a3 #MD, a1, a2, a3
Break
Data Set Change CPU Internal Registers
#SP, a #SD, a #DR #SR #I #DXY #SXY
Assemble command mnemonic code and store at address "a" Contents of addresses a1 to a2 are disassembled and displayed Contents of program area a1 to a2 are displayed Content of data area a1 to a2 are displayed Data d is set in addresses a1 to a2 (program area) Data d is set in addresses a1 to a2 (data area) Program is executed from the "a" address Execution time and step counter selection On-the-fly display selection Executes program while displaying results of step instruction from "a" address Displays only the final step of #T, a, n Sets Break at program address "a" Breakpoint is canceled Break condition is set for data RAM Breakpoint is canceled Break condition is set for evaluation board CPU internal registers Breakpoint is canceled Combined break conditions set for program data RAM address and registers Cancel combined break conditions for program data ROM address and registers All break conditions canceled Break condition displayed Enter break enable mode Enter break disable mode Set break stop / trace modes Set BA condition clear / remain modes Contents of program area addresses a1 to a2 are moved to addresses a3 and after Contents of data area addresses a1 to a2 are moved to addresses a3 and after Data from program area address "a" are written to memory Data from data area address "a" are written to memory Display evaluation board CPU internal registers Set evaluation board CPU internal registers Reset evaluation board CPU Display X, Y, MX and MY Set data for X and Y display and MX, MY
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
6 ICE CONTROL SOFTWARE ICS6S32
Item No.
Function
Command Format
Outline of Operation
History
#H, p1, p2 #HB #HG #HP #HPS, a #HC, S / C / E #HA, a1, a2 #HAR, a1, a2 #HAD #HS, a #HSW, a #HSR, a #RF, file #RFD, file #VF, file #VFD, file #WF, file #WFD, file #CL, file #CS, file #OPTLD, 1, file #OPTLD, 2, file #CVD #CVR #RP #VP #ROM #Q #HELP #CHK
Coverage ROM Access
Terminate ICE Command Display Self Diagnosis
Display history data for pointer 1 and pointer 2 Display upstream history data Display 21 line history data Display history pointer Set history pointer Sets up the history information acquisition before (S), before / after (C) and after (E) Sets up the history information acquisition from program area a1 to a2 Sets up the prohibition of the history information acquisition from program area a1 to a2 Indicates history acquisition program area Retrieves and indicates the history information which executed a program address "a" Retrieves and indicates the history information which wrote or read the data area address "a" Move program file to memory Move data file to memory Compare program file and contents of memory Compare data file and contents of memory Save contents of memory to program file Save contents of memory to data file Load ICE set condition from file Save ICE set condition to file Load function option data from file Load segment option data from file Indicates coverage information Clears coverage information Move contents of ROM to program memory Compare contents of ROM with contents of program memory Set ROM type Terminate ICE and return to operating system control Display ICE instruction Report results of ICE self diagnostic test means press the RETURN key.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
7 MASK DATA CHECKER MDC6S32
7.1 MDC6S32 Outline
The Mask Data Checker MDC6S32 is a software tool which checks the program data (CS32XXXH.HEX and CS32XXXL.HEX) and option data (CS32XXXF.DOC and CS32XXXS.DOC) created by the user and creates the data file (C6S32XXX.PAn) for generating mask patterns. The user must send the file generated through this software tool to Seiko Epson. Moreover, MDC6S32 has the capability to restore the generated data file (C6S32XXX.PA0) to the original file format.
Object files Function option document file CS32XXXF .DOC Segment option document file CS32XXXS .DOC
CS32XXXH .HEX
CS32XXXL .HEX
MDC6S32 Mask Data Checker execution (pack)
File for submission
C6S32XXX .PAn
SEIKO EPSON
MDC6S32 Mask Data Checker execution (unpack)
CS32XXXH .PAn
CS32XXXL .PAn
CS32XXXF .PAn Unpacked files
CS32XXXS .PAn
Fig. 7.1.1 MDC6S32 execution flow
The operating method is same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
7.2 MDC6S32 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: MDC6S32.EXE MDC6S32 CS32XXXL.HEX (Object file, low-order) CS32XXXH.HEX (Object file, high-order) CS32XXXF.DOC (Function option document file) CS32XXXS.DOC (Segment option document file) C6S32XXX.PAn (Packed file) C6S32XXX.PAn CS32XXXL.PAn CS32XXXH.PAn CS32XXXF.PAn CS32XXXS.PAn (Packed file) (Object file, low-order) (Object file, high-order) (Function option document file) (Segment option document file)
indicates the Return key.
When packing When unpacking When packing When unpacking
Output file:
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
7 MASK DATA CHECKER MDC6S32
s Display examples
E0C6S32 PACK / UNPACK PROGRAM Ver 1.00 EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE PPPPPPPP PPPPPPPPPP PPP PPP PPP PPP PPPPPPPPPP PPPPPPPP PPP PPP PPP PPP SSSSSSS SSS SSSS SSS SSS SSS SSSSSS SSSS SSS SSS SSS SSSS SSS SSSSSSS OOOOOOOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOO OOOOOOOO NNN NNN NNNN NNN NNNNN NNN NNNNNN NNN NNN NNN NNN NNN NNNNNN NNN NNNNN NNN NNNN NNN NNN NNN NN
Start-up message When MDC6S32 is started, the start-up message and operation menu are displayed. Here, the user is prompted to select operation options.
Packing of data (1) Select "1" in the operation menu. (2) Enter the file name. After submitting the data to Seiko Epson and there is a need to re-submit the data, increase the numeric value of "n" by one when the input is made. (Example: When re-submitting data after "C6S32XXX.PA0" has been submitted, the pack file name should be entered as "C6S32XXX.PA1".) With this, the mask file (C6S32XXX.PAn) is generated, and the MDC6S32 program will be terminated. Submit this file to Seiko Epson.
Unpacking of data (1) Select "2" in the operation menu. (2) Enter the packed file name. With this, the mask data file (C6S32XXX.PAn) is restored to the original file format, and the MDC6S32 program will be terminated. Since the extension of the file name remains as "PAn", it must be renamed back to its original form ("HEX" and "DOC") in order to re-debug or modify the restored file.
CS320A0H.PA0 CS320A0L.PA0 CS320A0F.PA0 CS320A0S.PA0
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
7 MASK DATA CHECKER MDC6S32
s Error messages Program data error
Error Message Explanation
HEX HEX HEX HEX HEX HEX HEX HEX HEX
DATA DATA DATA DATA DATA DATA DATA DATA DATA
ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
NOT COLON. DATA LENGTH. (NOT 00-20h) ADDRESS. RECORD TYPE. (NOT 00) DATA. (NOT 00-FFh) TOO MANY DATA IN ONE LINE. CHECK SUM. END MARK. DUPLICATE.
There is no colon. The data length of 1 line is not in the 00-20H range. The address is beyond the valid range of the program ROM. The record type of 1 line is not 00. The data is not in the range between 00H and 0FFH. There are too many data in 1 line. The checksum is not correct. The end mark is not : 00000001FF. There is duplicate definition of data in the same address.
Function option data error
Error Message Explanation
OPTION OPTION OPTION OPTION
DATA DATA DATA DATA
ERROR ERROR ERROR ERROR
START MARK. OPTION NUMBER. SELECT NUMBER. END MARK.
Segment option data error
Error Message Explanation
SEGMENT SEGMENT SEGMENT SEGMENT
DATA DATA DATA DATA
ERROR ERROR ERROR ERROR
START MARK. DATA. SEGMENT NUMBER. SPEC.
5. SEGMENT DATA ERROR : END MARK.
File error
Error Message Explanation
The file is not found or the file number set in CONFIG.SYS is less than 10. The packed input format for the file name is wrong. The unpacked input format for the file name is wrong.
System error
Error Message Explanation
1. DIRECTORY FULL. 2. DISK WRITE ERROR.
The directory is full. Writing on the disk is failed.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
APPENDIX A. S1C6S3N2 INSTRUCTION SET
APPENDIX A.
Branch PSET p s C, s Z, s JPBA CALL s CALZ s RET RETS RETD l System control Index operation instructions LD NOP5 NOP7 INC X Y X, x Y, y
S1C6S3N2 INSTRUCTION SET
Operation
Operation Code Flag MneClassification monic Operand Clock B A 9 8 7 6 5 4 3 2 1 0 I D Z C
instructions JP
instructions HALT
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
APPENDIX A. S1C6S3N2 INSTRUCTION SET
Operation Code Flag MneClassification monic Operand Clock B A 9 8 7 6 5 4 3 2 1 0 I D Z C
Operation
Index operation instructions Data transfer instructions
XH-i3~i0 XL-i3~i0 YH-i3~i0 YL-i3~i0 r i3~i0 r q A M(n3~n0) B M(n3~n0) M(n3~n0) A M(n3~n0) B M(X) i3~i0, X X+1 r q, X X+1 M(Y) i3~i0, Y Y+1 r q, Y Y+1 M(X) l 3~ l 0, M(X+1) l 7~ l 4, X X+2 F F i3~i0 F F i3~i0 C 1 C 0 Z 1 Z 0 D 1 (Decimal Adjuster ON) D 0 (Decimal Adjuster OFF) I 1 (Enables Interrupt) I 0 (Disables Interrupt) SP SP+1 SP SP-1 SP SP-1, M(SP) r SP SP-1, M(SP) XH SP SP-1, M(SP) XL SP SP-1, M(SP) YH SP SP-1, M(SP) YL SP SP-1, M(SP) F r M(SP), SP SP+1 XH M(SP), SP SP+1 XL M(SP), SP SP+1
Flag operation
SET RST RCF SZF RZF SDF RDF EI DI
instructions SCF
Stack operation
INC DEC
instructions PUSH r
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
APPENDIX A. S1C6S3N2 INSTRUCTION SET
Operation Code Flag MneClassification monic Operand Clock B A 9 8 7 6 5 4 3 2 1 0 I D Z C
Operation
Stack operation instructions
YH M(SP), SP SP+1 YL M(SP), SP SP+1 F M(SP), SP SP+1 SPH r SPL r r SPH r SPL r r+i3~i0 r r+q r r+i3~i0+C r r+q+C r r-q r r-i3~i0-C r r-q-C r r i3~i0 r r q r r i3~i0 r r q r r i3~i0 r r q r-i3~i0 r-q r i3~i0 r q d3 d2, d2 d1, d1 d0, d0 C, C d3 d3 C, d2 d3, d1 d2, d0 d1, C d0 M(n3~n0) M(n3~n0)+1 M(n3~n0) M(n3~n0)-1 M(X) M(X)+r+C, X X+1 M(Y) M(Y)+r+C, Y Y+1 M(X) M(X)-r-C, X X+1 M(Y) M(Y)-r-C, Y Y+1 r r
Arithmetic instructions
ADD ADC SUB SBC AND OR XOR CP FAN RLC RRC INC DEC
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
APPENDIX A. S1C6S3N2 INSTRUCTION SET
Abbreviations used in the explanations have the following meanings.
Symbols associated with registers and memory
A B X A register B register XHL register (low order eight bits of index register IX) Y YHL register (low order eight bits of index register IY) XH XH register (high order four bits of XHL register) XL XL register (low order four bits of XHL register) YH YH register (high order four bits of YHL register) YL YL register (low order four bits of YHL register) SP Stack pointer SP SPH High-order four bits of stack pointer SP SPL Low-order four bits of stack pointer SP MX, M(X) Data memory whose address is specified with index register IX MY, M(Y) Data memory whose address is specified with index register IY Mn, M(n) Data memory address 000H-00FH (address specified with immediate data n of 00H-0FH) M(SP) Data memory whose address is specified with stack pointer SP r, q Two-bit register code r, q is two-bit immediate data according to the contents of these bits, they indicate registers A, B, and MX and MY (data memory whose addresses are specified with index registers IX and IY) r q Register r1 r0 q1 q0 specified 0 0 0 0 A 0 1 0 1 B 1 0 1 0 MX 1 1 1 1 MY
Symbols associated with program counter
NBP NPP PCB PCP PCS PCSH PCSL New bank pointer New page pointer Program counter bank Program counter page Program counter step Four high order bits of PCS Four low order bits of PCS
Symbols associated with flags
F C Z D I Flag register (I, D, Z, C) Carry flag Zero flag Decimal flag Interrupt flag Flag reset Flag set Flag set or reset
Associated with immediate data
p s l i Five-bit immediate data or label 00H-1FH Eight-bit immediate data or label 00H-0FFH Eight-bit immediate data 00H-0FFH Four-bit immediate data 00H-0FH
Associated with arithmetic and other operations
+ 5 Add Subtract Logical AND Logical OR Exclusive-OR Add-subtract instruction for decimal operation when the D flag is set
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
APPENDIX B. TROUBLESHOOTING
APPENDIX
B. TROUBLESHOOTING
Problem Remedy measures
S5U1C62000H
Nothing appears on the screen, or nothing works, after activation.
The ICE fuse cut immediately after activation.
SOG6S32
You can not do a real-time run in break-trace mode. Output from the evaluation board is impossible when data is written to the I / O memory for Buzzer and Fout output with the ICE command. An R error occurs although the address is correctly set in the segment source file.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
APPENDIX B. TROUBLESHOOTING
Problem
Remedy measures
ASM6S32
An R error occurs although the final page is passed.
MDC6S32
Activation is impossible.
Evaluation The evaluation board does not work when it is used independently. board
S5U1C6S3N2E2
Target segment does not light.
EPSON
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
APPENDIX C. DEBUGGING FOR 1 / 2 DUTY DRIVE ON EVA6S3N2
APPENDIX
C. DEBUGGING FOR 1 / 2 DUTY
DRIVE ON EVALUATION BOARD
The evaluation board (S5U1C6S3N2E2) is used to debug S1C6S3N2 systems. However, the evaluation board cannot output 1 / 2 duty signal to drive LCD. When debugging a S1C6S3N2 system that uses a 1 / 2 duty drive, it should be done with the following procedure. 1. Set 1 / 3 duty function option using the FOG6S32. 2. Assign the segments using the SOG6S32. Since only the COM0 and COM1 signals are used for 1 / 2 duty drive, assign the RAM addresses to be used to COM0 and COM1.
3. Debug with the evaluation board and check whether the segment assignment is correct or not. Be aware that the LCD drive waveform is different and the LCD corresponding to COM2 goes on.
Creating Mask Data
1. Edit the function option data (option No. 14) using the FOG6S32 to change the 1 / 3 duty setting to the 1 / 2 duty setting. 2. It is unnecessary to change the segment assignment by the SOG6S32.
Note: The evaluation board does not support the 1 / 2 bias LCD drive method. The LCD drive waveform is a 1 / 3 bias waveform.
S5U1C6S3N2D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S3N2)
EPSON
International Sales Operations
AMERICA
EPSON ELECTRONICS AMERICA, INC. - HEADQUARTERS 150 River Oaks Parkway San Jose, CA 95134, U.S.A. Phone: +1-408-922-0200 Fax: +1-408-922-0238
EPSON (CHINA) CO., LTD.
28F, Beijing Silver Tower 2# North RD DongSanHuan ChaoYang District, Beijing, CHINA Phone: 64106655 Fax: 64107319
SHANGHAI BRANCH
4F, Bldg., 27, No. 69, Gui Jing Road Caohejing, Shanghai, CHINA Phone: 21-6485-5552 Fax: 21-6485-0775
- SALES OFFICES West
1960 E. Grand Avenue EI Segundo, CA 90245, U.S.A. Phone: +1-310-955-5300 Fax: +1-310-955-5400
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
Central
101 Virginia Street, Suite 290 Crystal Lake, IL 60014, U.S.A. Phone: +1-815-455-7630 Fax: +1-815-455-7633
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
Northeast
301 Edgewater Place, Suite 120 Wakefield, MA 01880, U.S.A. Phone: +1-781-246-3600 Fax: +1-781-246-5443
HSINCHU OFFICE Southeast
3010 Royal Blvd. South, Suite 170 Alpharetta, GA 30005, U.S.A. Phone: +1-877-EEA-0020 Fax: +1-770-777-2637 13F-3, No. 295, Kuang-Fu Road, Sec. 2 HsinChu 300 Phone: 03-573-9900 Fax: 03-573-9169
EPSON SINGAPORE PTE., LTD.
EUROPE
EPSON EUROPE ELECTRONICS GmbH - HEADQUARTERS Riesstrasse 15 80992 Munich, GERMANY Phone: +49-(0)89-14005-0 Fax: +49-(0)89-14005-110
No. 1 Temasek Avenue, #36-00 Millenia Tower, SINGAPORE 039192 Phone: +65-337-7911 Fax: +65-334-2716
SEIKO EPSON CORPORATION KOREA OFFICE
50F, KLI 63 Bldg., 60 Yoido-dong Youngdeungpo-Ku, Seoul, 150-763, KOREA Phone: 02-784-6027 Fax: 02-767-3677
SALES OFFICE
Altstadtstrasse 176 51379 Leverkusen, GERMANY Phone: +49-(0)2171-5045-0 Fax: +49-(0)2171-5045-10
SEIKO EPSON CORPORATION ELECTRONIC DEVICES MARKETING DIVISION Electronic Device Marketing Department IC Marketing & Engineering Group
421-8, Hino, Hino-shi, Tokyo 191-8501, JAPAN Phone: +81-(0)42-587-5816 Fax: +81-(0)42-587-5624
UK BRANCH OFFICE
Unit 2.4, Doncastle House, Doncastle Road Bracknell, Berkshire RG12 8PE, ENGLAND Phone: +44-(0)1344-381700 Fax: +44-(0)1344-381701
ED International Marketing Department Europe & U.S.A. FRENCH BRANCH OFFICE
ED International Marketing Department Asia
421-8, Hino, Hino-shi, Tokyo 191-8501, JAPAN Phone: +81-(0)42-587-5814 Fax: +81-(0)42-587-5110
BARCELONA BRANCH OFFICE Barcelona Design Center
S5U1C6S3N2D Manual
(Development Software Tool for S1C6S3N2)
ELECTRONIC DEVICES MARKETING DIVISION
EPSON Electronic Devices Website
http://www.epson.co.jp / device /
First issue November, 1995 Printed April, 2001 in Japan M A