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, Memory, Serial Interface, Display, Single-Chip Microcomputer

Download

PDF Abstract Text:

MF882-03


CMOS 4-BIT SINGLE CHIP MICROCOMPUTER

MF882-03
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
S5U1C6S2N7D Manual
(Development Software Tool for S1C6S2N7)
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 S1C6S2N7D. 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 S5U1C6S2N7E Manual (Evaluation Board for S1C6S2N7) S5U1C62000H Manual (S1C60 / 62 Family In-Circuit Emulator) S1C6S2N7 Technical Manual S1C6200 / 6200A Core CPU Manual
Device (S1C6S2N7) Instructions
In this manual, "ICE" and "evaluation board" indicate S5U1C62000H and S5U1C6S2N7E, respectively.
CONTENTS
1.1 1.2 1.3 1.4 Configuration of S5U1C6S2N7D ....................................... 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 ASM6S27 Outline ................................................... 5 S1C6S2N7 Restrictions ............................................... 5 ASM6S27 Quick Reference ............................................ 6
4.1 4.2 4.3 4.4 4.5 FOG6S27 Outline ................................................... 8 S1C6S2N7 Option List ............................................... 8 Option Specifications and Selection Message ............................. 10 FOG6S27 Quick Reference ........................................... 17 Sample File ....................................................... 19
5.1 5.2 5.3 5.4 5.5 SOG6S27 Outline .................................................. 21 Option List ........................................................ 21 Segment Ports Output Specifications ................................... 22 SOG6S27 Quick Reference ........................................... 23 Sample Files ...................................................... 25
6.1 6.2 6.3 ICS6S27 Outline ................................................... 26 ICS6S27 Restrictions ................................................ 26 ICS6S27 Quick Reference ............................................ 28
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
CONTENTS
7.1 7.2 MDC6S27 Outline .................................................. 31 MDC6S27 Quick Reference ........................................... 31
White
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
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 S5U1C6S2N7D
The below software are included in the product of the S1C6S2N7 development support tool S5U1C6S2N7D. 1. 2. 3. 4. 5. 6. Development Tool Management System DMS6200 ... Cross Assembler ASM6S27 ..................... Function Option Generator FOG6S27 .............. Segment Option Generator SOG6S27 ............. ICE Control Software ICS6S27 ................... Mask Data Checker MDC6S27 ................... Menu selection for each software / start-up software Cross assembler for program preparation Function option data preparation program Segment option data preparation program ICE control program Mask data preparation program
1.2 Developmental Environment
The software product of the development support tool S5U1C6S2N7D operates on the following host systems: · IBM PC / AT (at least PC-DOS Ver. 2.0) When developing the S1C6S2N7, 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)
S1C6S2N7 Development Tool
S5U1C62000A Software tools
S5U1C6S2N7D
PC-DOS Editor ICE RS-232C DMS6200 ASM6S27 FOG6S27 SOG6S27 ICS6S27 MDC6S27 Target board Hardware tools Evaluation Board S5U1C6S2N7E
S5U1C62000H
· P-ROM writer · Printer
To be prepared by the user
Fig. 1.2.1 System configuration
The S5U1C6S2N7D 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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
1.3 Development Flow
Figure 1.3.1 shows the development flow through the S5U1C6S2N7D.
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
CS27XXX .DAT
Program source file 4, 5 4, 5 Function Option Generator FOG6S27 execution
CS27XXX .SEG
Segment option source file 4, 5
Cross Assembler ASM6S27 execution
Segment Option Generator SOG6S27 execution
CS27XXX .PRN
Assembly list
CS27XXXL Object file .HEX CS27XXXH .HEX CS27XXXF .DOC CS27XXXS .DOC
Function option document file
Segment option document file
Function
CS27XXXF option .HEX HEX file
Segment
CS27XXXF option .HEX HEX file
Function option ROM (one)
Segment option ROM (one)
4, 5 Debugging with ICE Control Software ICS6S27 Debugging completion
Target board ICE S5U1C62000H 4, 7 Evaluation Board S5U1C6S2N7E 6
4, 5 Mask Data Checker MDC6S27 execution
C6S27XXX File for submission .PAn
Fig. 1.3.1 S5U1C6S2N7D development flow
SEIKO EPSON
Concerning file names
All the input-output file name for the each development support tool commonly use "CS27XXX". In principle each file should be produced in this manner. Seiko Epson will designate the "XXX" for each customer.
Reference Manual
S1C6S2N7 Technical Manual (Hardware) S1C6S2N7 Technical Manual (Software) S1C6200 / 6200A Core CPU Manual S1C62 Family Development Tool Reference Manual
5 S5U1C6S2N7D Manual (this manual) 6 S5U1C6S2N7E Manual 7 S5U1C62000H Manual
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
1.4 Installation
The S5U1C6S2N7D 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 S5U1C6S2N7D 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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
2 DEVELOPMENT TOOL MANAGEMENT SYSTEM DMS6200
2.1 DMS6200 Outline
The DMS6200 (Development Tool Management System) is a software which selects the S5U1C6S2N7D 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
ASM6S27
FOG6S27
SOG6S27
ICS6S27
MDC6S27
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) ASM6S27 .EXE FOG6S27 .EXE ICS6S27B.BAT ICS6S27W.EXE MDC6S27 .EXE SOG6S27 .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 ASM6S27, 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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
DMS6200 Version 1.0 1) 2) 3) : 10) CS27XXX .DAT CS27XXX .PRN CS27XXX .SEG : C6S27XXX.PA0
Copyright(C) SEIKO EPSON CORP. 1990.
EPSON
3 CROSS ASSEMBLER ASM6S27
3.1 ASM6S27 Outline
CS27XXX .DAT
Error message
CS27XXX .PRN
CS27XXXL .HEX
CS27XXXH .HEX
Error message
Assembly listing file
Object file
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.
Fig. 3.1.1 ASM6S27 execution flow
3.2 S1C6S2N7 Restrictions
Note the following when generating a program by the S1C6S2N7:
s ROM area
The capacity of the S1C6S2N7 ROM is 1, 536 steps (0000H to 05FFH). Therefore, the specification range of the memory setting pseudo-instructions and PSET instruction is restricted.
Memory configuration: Bank: Only bank 0, Page: 6 pages (0 to 5H), each 256 steps Significant specification range: ORG pseudo-instruction: PAGE pseudo-instruction: BANK pseudo-instruction: PSET instruction: X, 050H 0000H to 05FFH 00H to 05H Only 0H 00H to 05H 50H 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 S1C6S2N7 RAM is 132 words (000H to 0FFH, 4 bits / word). The following memory access is invalid when the unused area of the index register is specified.
Example: LD
Y, 0C7H
· 050H-08FH, 0B0H-0DFH, 0E1H, 0E5H-0E7H, 0F0H-0F2H, 0F4H, 0F5H, 0F7H, 0F8H, 0FFH
s Undefined codes
The following instructions have not been defined in the S1C6S2N7 instruction sets.
SLP PUSH POP LD LD
PUSH POP LD LD
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
3 CROSS ASSEMBLER ASM6S27
3.3 ASM6S27 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Option: .shp s h p -N Input file: Output file: ASM6S27.EXE
CS27XXXL.HEX (Object file, low-order) CS27XXXH.HEX (Object file, high-order) CS27XXX.PRN (Assembly listing file)
s Display example
E0C6S27 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 1988 SEIKO EPSON CORP. SOURCE FILE NAME IS " CS27XXX.DAT " THIS SOFTWARE MAKES NEXT FILES. CS27XXXH.HEX CS27XXXL.HEX CS27XXX .PRN .. .. .. HIGH BYTE OBJECT FILE. LOW BYTE OBJECT FILE. ASSEMBLY LIST FILE. . . . (1) . . . (2)
When ASM6S27 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, ASM6S27 assembles the source file. To suspend execution, press the "CTRL" and "C" keys together at stage (1) or (2).
s Operators
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
3 CROSS ASSEMBLER ASM6S27
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 capacity (4000).
(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
CROSS REFERENCE TABLE OVERFLOW The label / symbol reference count exceeded the cross-reference table
capacity (only when the cross-reference table is generated).
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
FUNCTION OPTION GENERATOR
FOG6S27
Option list generation
4.1 FOG6S27 Outline
With the 4-bit single-chip S1C6S2N7 microcomputers, the customer may select 11 hardware options. By modifying the mask patterns of the S1C6S2N7 according to the selected options, the system can be customized to meet the specifications of the target system. The Function Option Generator FOG6S27 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 FOG6S27, the S1C6S2N7 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (S5U1C6S2N7E) hardware option ROM is simultaneously generated with the data file.
Start FOG6S27
Set function option
CS27XXXF .HEX
CS27XXXF .DOC
Evaluation board Seiko Epson
The operating method is same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
EPROM
Floppy disk
Fig. 4.1.1 FOG6S27 execution flow
4.2 S1C6S2N7 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, LCD VOLTAGE REGULATOR AND LCD VOLTAGE
2. MULTIPLE KEY ENTRY RESET
· KEY COMBINATION ............. s s s s · INPUT TIME ..................... s s s s 1. Not Use 2. Use K00, K01 3. Use K00, K01, K02 4. Use K00, K01, K02, K03 1. 4 sec 2. 2 sec 3. 62.5 msec 4. 250 msec
3. INTERRUPT NOISE REJECTOR
· K00-K03 ......................... s 1. Use s 2. Not Use
4. INPUT PORT PULL DOWN RESISTOR
1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor
EPSON
2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
4 FUNCTION OPTION GENERATOR FOG6S27
5. R00 SPECIFICATION
· OUTPUT TYPE ................... s s s s · FOUT OUTPUT SPACIFICATION 1. 2. 3. 4. DC Output Buzzer Inverted Output (R00 Control) Buzzer Inverted Output (R01 Control) FOUT Output F3 .... s 1. 1024Hz s 2. 2048Hz s 3. 4096Hz s 4. 8192Hz s 5. 16384Hz F4 .... s 1. 2048Hz s 2. 4096Hz s 3. 8192Hz s 4. 16384Hz s 5. 32768Hz s 2. Pch-Open Drain
F1 ... s 1. 256Hz s 2. 512Hz s 3. 1024Hz s 4. 2048Hz s 5. 4096Hz F2 ... s 1. 512Hz s 2. 1024Hz s 3. 2048Hz s 4. 4096Hz s 5. 8192Hz · OUTPUT SPECIFICATION ........ s 1. Complementary
6. R01 SPECIFICATION
· OUTPUT TYPE ................... s 1. DC Output · OUTPUT SPECIFICATION ........ s 1. Complementary s 2. Buzzer Output s 2. Pch-Open Drain
7. OUTPUT SPECIFICATION (R02, R03)
· R02 ............................. s 1. Complementary · R03 ............................. s 1. Complementary s 2. Pch-Open Drain s 2. Pch-Open Drain
8. I / O PORT SPECIFICATION
· P00 ............................. · P01 ............................. · P02 ............................. · P03 ............................. s s s s 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s 2. Pch-Open Drain 2. Pch-Open Drain 2. Pch-Open Drain 2. Pch-Open Drain
9. LCD COMMON DUTY AND BIAS
10. OSC1 SYSTEM CLOCK
s 1. Crystal s 2. CR
11. STEPPING MOTOR PF PULSE WIDTH
s s s s s s s s s s s s 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 1.46msec 1.71msec 1.95msec 2.20msec 2.44msec 2.69msec 2.93msec 3.17msec 3.42msec 3.66msec 3.91msec 4.15msec s s s s s s s s s s s s 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 4.39msec 4.64msec 4.88msec 5.13msec 5.37msec 5.61msec 5.86msec 6.10msec 6.35msec 6.59msec 6.83msec 7.08msec
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
4.3 Option Specifications and Selection Message
Screen that can be selected as function options set on the S1C6S2N7 are shown below, and their specifications are also described.
1 Device type, LCD voltage regulator and LCD voltage
OPTION NO.1 -- DEVICE TYPE & LCD POWER VREG -1. 2. 3. 4. 5. 6. 7. 8. E0C6S27 E0C6S27 E0C6SA27 E0C6SA27 E0C6SA27 E0C6SB27 E0C6SL27 E0C6SL27 VREG VREG VREG VREG VREG VREG VREG VREG USE NOT USE NOT NOT USE USE NOT LCD USE LCD LCD USE LCD USE LCD LCD LCD USE LCD 3V 3V 3V 3V 4.5V 3V 3V 3V
S1C6S2N7, S1C6S2A7, S1C6S2L7, S1C6S2B7
VDD VS1 VL1 VL2 VL3 CA CB VSS External power supply
Fig. 4.3.1 External elements when LCD system voltage regulator is used
S1C6S2A7
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.
S1C6S2N7, S1C6S2A7
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 3 bias VDD VS1 VL1 VL2 VL3 CA
Select the chip specification. There are four models: "E0C6S27" (S1C6S2N7) (3 V supply voltage), "E0C6SA27" (S1C6S2A7) (3 V supply voltage, high speed specification), "E0C6SL27" (S1C6S2L7) (1.5 V supply voltage, low-power specification) and "E0C6SB27" (S1C6S2B7) (0.9 to 3.6 V supply voltage, wide range specification). The other specifications of the "E0C6SB27" are same as the "E0C6S27". In the "E0C6S27", the "E0C6SA27" and the "E0C6SL27", select either "Use" or "Not use" for the LCD system voltage regulator. The "E0C6SB27" always uses the LCD system voltage regulator. When the LCD system voltage regulator is not used in the "E0C6S27", the "E0C6SA27" or the "E0C6SL27", the external capacitors can be minimized. However, the display quality of the LCD panel when the supply voltage drops is inferior to when the LCD system voltage regulator is used. Moreover, when the LCD system voltage regulator is not used in the "E0C6S27", the "E0C6SA27" or the "E0C6SL27", select the LCD drive voltage (3 V or 4.5 V) according to the LCD panel to be used. When the LCD system voltage regulator is used, the LCD drive voltage is fixed at 3 V. Figure 4.3.1 shows the external elements when the LCD system voltage regulator is used. Figure 4.3.2 shows the external elements when the LCD system voltage regulator is not used.
3V CB VSS Note: VL3 is shorted to VSS inside the IC.
S1C6S2N7, S1C6S2A7
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 2 bias VDD VS1 VL1 VL2 VL3 CA 3V CB VSS Note: VL3 is shorted to VSS inside the IC.
S1C6S2L7
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.2 External elements when LCD system voltage regulator is not used
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
4 FUNCTION OPTION GENERATOR FOG6S27
2 Multiple key entry reset
OPTION NO.2 -- K00-K03 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
INPUT TIME
PLEASE SELECT
KEY COMBINATION INPUT TIME
OSC1 OSC2
Oscillation circuit Mask option
Oscillation detection circuit
The reset function is set when K00 through K03 are entered. When "NOT USE" is selected, the reset function is not activated even if K00 through K03 are entered. When "USE K00, K01" is selected, 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. When items 2, 3 or 4 are selected for KEY COMBINATION, the simultaneous high input time for system reset can be selected from 4 sec, 2 sec, 62.5 msec and 250 msec. The system reset circuit is shown in Figure 4.3.3.
K00 K01 K02 K03
RESET
Fig. 4.3.3 System reset circuit
3 Interrupt noise rejector
OPTION NO.3 -- INTERRUPT NOISE REJECTOR -K00-K03 1. USE 2. NOT USE
Select whether noise rejector will be supplemented to the input interrupter of K00-K03. 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. Select whether input ports (K00-K03) 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 "H" level (VDD) to "L" level (VSS) with pull down resistors, a delay of approximately 1 msec in waveform fall 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.4.
4 Input ports pull down resistor
OPTION NO.4 -- INPUT PORT PULL DOWN RESISTOR -K00 1. WITH RESISTOR 2. GATE DIRECT
Data bus Read signal
Fig. 4.3.4 Configuration of pull down resistor
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
5 R00 specification
OPTION NO.5 -- R00 SPECIFICATION -OUTPUT TYPE 1. 2. 3. 4. D.C. / BZ R00 / BZ R01 FOUT
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
VDD R00 output R00 register 0 1 0 VSS
Fig. 4.3.5 Output waveform at DC output selection
VDD Buzzer inverted output VSS R00 / R01 register 0 1 0
Fig. 4.3.6 Output waveform at buzzer inverted output selection
VDD FOUT output VSS R00 register 0 1 0
Fig. 4.3.7 Output waveform at FOUT output selection
Output register
Complementary
Fig. 4.3.8 Configuration of output circuit
Pch open drain
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
6 R01 specification
VDD R01 output R01 register 0 1 0 VSS
Fig. 4.3.9 Output waveform at DC output selection
VDD Buzzer output R01 register 0 1 0 VSS
Fig. 4.3.10 Output waveform at buzzer output selection
7 Output port output specification (R02, R03)
Select the output specification for the R02 and R03 output ports. 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 circuit configuration is the same as that of output ports (R00 shown in Figure 4.3.8).
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
8 I / O port specification
OPTION NO.8 -- I / O PORT OUTPUT SPECIFICATION -P00 1. COMPLEMENTARY 2. PCH-OPENDRAIN
Select the output specification to be used during I / O ports (P00-P03) 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 shown in Figure 4.3.8). Select complementary output for unused ports. The I / O ports can control the input / output direction according to the IOC bit (FC address, 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 circuit configuration of the I / O port. is shown in Figure 4.3.11.
Data bus
Read signal
Register
I / O control register
Fig. 4.3.11 Configuration of I / O port
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
4 FUNCTION OPTION GENERATOR FOG6S27
9 LCD common duty and bias
Table 4.3.1 Common duty selection standard
Number of segments 1-52 53-78 79-104 Common duty 1 / 2 1 / 3 1 / 4
VDD VL1 VL2 VL3
1 / 4 duty drive waveform
1 / 3 duty drive waveform
1 / 2 duty drive waveform
Fig. 4.3.12 Drive waveform from COM terminals (1 / 3 bias)
VDD VL1, VL2 VL3
1 / 4 duty drive waveform
1 / 3 duty drive waveform
1 / 2 duty drive waveform
Fig. 4.3.13 Drive waveform from COM terminals (1 / 2 bias)
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
10 OSC1 system clock
Select oscillation circuit that uses OSC1 and OSC2. To minimize external components, CR oscillation circuit would be suitable to obtain a stable oscillation frequency, crystal oscillation circuit would be suitable. When CR oscillation circuit is selected, only resistors are needed as external components since capacities are built-in. On the other hand, when crystal oscillation circuit is selected, crystal oscillator and trimmer capacitor are needed as external components. Although when crystal oscillation circuit is selected, it is fixed at 32.768 kHz, when CR oscillation circuit is selected, frequency may be modified to a certain extent depending on the resistance of external components.
11 Stepping motor PF pulse width
Selects a drive pulse width of the sutepping motor for PF pulse. When the FTRG register (0FEH·D1)is set to "1", either the A01 or the A02 terminal outputs a drive pulse and an interrupt occurs after the output sequence has finished. Next by writing "1" to the register outputs a drive pulse from the other terminal. By repeating this sequence using the interrupt, drive pulses are alternately output from the A01 and A02 terminals. At the first writing of "1" to the register after system reset, the A01 terminal outputs a drive pulse.
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
4 FUNCTION OPTION GENERATOR FOG6S27
4.4 FOG6S27 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: Output file: FOG6S27.EXE FOG6S27
indicates the Return key.
CS27XXXF.DOC (Function option document file, when modifying) CS27XXXF.DOC (Function option document file) CS27XXXF.HEX (Function option HEX file)
s Display example
E0C6S27 FUNCTION OPTION GENERATOR. -- Ver 3.14 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 FOG6S27 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 1995
SEIKO EPSON CORP.
THIS SOFTWARE MAKES NEXT FILES. CS27XXXF.HEX CS27XXXF.DOC .. .. FUNCTION OPTION HEX FILE. FUNCTION OPTION DOCUMENT FILE.
STRIKE ANY KEY.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
4 FUNCTION OPTION GENERATOR FOG6S27
(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
-- K00-K03 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
INPUT TIME
PLEASE SELECT
KEY COMBINATION INPUT TIME
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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
4 FUNCTION OPTION GENERATOR FOG6S27
4.5 Sample File
s Example of function option document file
SELECTED
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
SELECTED SELECTED
SELECTED
SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
5 SEGMENT OPTION GENERATOR SOG6S27
SEGMENT OPTION GENERATOR
SOG6S27
5.1 SOG6S27 Outline
With the 4-bit single-chip S1C6S2N7 microcomputers, the customer may select the LCD segment options. By modifying the mask patterns of the S1C6S2N7 according to the selected options, the system can be customized to meet the specifications of the target system. The Segment Option Generator SOG6S27 is a software tool for generating data file used to generate mask patterns. From the data file created with SOG6S27, the S1C6S2N7 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (S5U1C6S2N7E) segment option ROM is simultaneously generated with the data file.
CS27XXX .SEG
Error message Error message
The operating method is same as for the S1C62 Family. Refer to the "S1C62 Family Development Tool Reference Manual" for details.
CS27XXXS .HEX Segment option HEX file for evaluation board use
CS27XXXS .DOC Segment option document file
Fig. 5.1.1 SOG6S27 execution flow
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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S27
5.3 Segment Ports Output Specifications
For the output specification of the segment output ports SEG0-SEG25, 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 (090H-0AFH) can be allocated to the optional segment. With this, up to 104 segments (78 segments when 1 / 3 duty is selected or 52 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 (9-A), 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 900 901 902 903 1 910 911 912 913 · When 1 / 3 duty is selected 0 900 901 902 -1 910 911 912 -· When 1 / 2 duty is selected 0 900 901 -- -1 910 911 -- --
s When DC output is selected
The DC output can be selected in units of two terminals and up to 26 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 SEG22 and SEG23, and Pch open drain output is set to SEG24 and SEG25. 22 A00 -- -- -- C 23 A10 -- -- -- C 24 A21 -- -- -- P 25 A31 -- -- -- P
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
5 SEGMENT OPTION GENERATOR SOG6S27
5.4 SOG6S27 Quick Reference
s Starting command and input / output files
-H: Specifies the segment option document file for input file of SOG6S27. CS27XXX.SEG (Segment option source file) CS27XXXS.DOC (Segment option document file, when -H option use) CS27XXXS.DOC (Segment option document file) CS27XXXS.HEX (Segment option HEX file)
s Display example
E0C6S27 SEGMENT OPTION GENERATOR. -- Ver 3.00 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 SOG6S27 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.
SEGMENT OPTION SOURCE FILE NAME IS " CS27XXX.SEG " THIS SOFTWARE MAKES NEXT FILES. CS27XXXS.HEX CS27XXXS.DOC .. .. SEGMENT OPTION HEX FILE. SEGMENT OPTION DOCUMENT FILE.
STRIKE ANY KEY.
SOURCE FILE(S) CS270A0 PLEASE INPUT PLEASE INPUT PLEASE INPUT (ONE LINE IS CS270B0 CS270C0 . . (1)
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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
5 SEGMENT OPTION GENERATOR SOG6S27
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 SOG6S27 generates files. If no error is committed while setting segment options, "MAKING FILE IS COMPLETED" will be displayed and the SOG6S27 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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
5 SEGMENT OPTION GENERATOR SOG6S27
5.5 Sample Files
s Example of segment option source file
CS270A0.SEG, VER.3.00 LCD SEGMENT DECODE TABLE 0 901 900 932 AE0 S 1 912 911 910 923 S 2 913 920 921 922 S 3 AC0 902 930 931 S 4 941 940 972 AE1 S 5 952 951 950 963 S 6 953 960 961 962 S 7 AC1 942 970 971 S 8 981 980 9B2 AE2 S 9 992 991 990 9A3 S 10 993 9A0 9A1 9A2 S 11 AC2 982 9B0 9B1 S 12 9C1 9C0 9F2 AE3 S 13 9D2 9D1 9D0 9E3 S 14 9D3 9E0 9E1 9E2 S 15 AC3 9C2 9F0 9F1 S 16 A01 A00 A32 AF0 S 17 A12 A11 A10 A23 S 18 A13 A20 A21 A22 S 19 AD0 A02 A30 A31 S 20 A41 A40 A72 AF1 S 21 A52 A51 A50 A63 S 22 A53 A60 A61 A62 S 23 AD1 A42 A70 A71 S 24 AD3 -- -- -- C 25 AF3 -- -- -- C
1st DIGIT
2nd DIGIT
3rd DIGIT
4th DIGIT
5th DIGIT
6th DIGIT
DC OUTPUT
s Example of segment option document file
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
6 ICE CONTROL SOFTWARE ICS6S27
6.1 ICS6S27 Outline
The In-Circuit Emulator (S5U1C62000H) connects the target board produced by the user via the evaluation board (S5U1C6S2N7E) 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 ICS6S27. The ICS6S27 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 S5U1C6S2N7E
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 ICS6S27 Restrictions
Take the following precautions when using the ICS6S27.
s ROM Area
The ROM area is limited to a maximum address of 5FFH. Assigning data above the 5FFH 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: 050H-08FH, 0B0H-0DFH, 0E1H, 0E5H-0E7H, 0F0H-0F2H, 0F4H, 0F5H, 0F7H, 0F8H, 0FFH (Refer to the "S1C6S2N7 Technical Manual" for details.)
s Undefined Code
The instructions below are not specified for the S1C6S2N7 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 ICS6S27, OPTLD command can be used. This command is used to load HEX files (function option 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, CS27XXX #OPTLD, 2, CS27XXX
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
6 ICE CONTROL SOFTWARE ICS6S27
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
#OPTLD, 1, CS27XXX #OPTLD, 2, CS27XXX
... CS27XXXF.HEX file is loaded in the function option data memory. ... CS27XXXS.HEX file is loaded in the segment option data memory.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
6 ICE CONTROL SOFTWARE ICS6S27
6.3 ICS6S27 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: ICS6S27B.BAT (ICS6S27W.EXE) ICS6S27B (ICS6S27W) CS27XXXL.HEX CS27XXXH.HEX CS27XXXD.HEX CS27XXXC.HEX CS27XXXL.HEX CS27XXXH.HEX CS27XXXD.HEX CS27XXXC.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
E0C6S27 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 ICS6S27 is started, the start-up message is displayed, and a self-test is automatically performed. ICS6S27 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 ICS6S27 program is terminated by entering the Q (Quit) command.
Confirm that the cables connected properly, then operate the ICS6S27.
s Error messages
Error message Meaning Recover procedure 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. 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.
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
6 ICE CONTROL SOFTWARE ICS6S27
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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
6 ICE CONTROL SOFTWARE ICS6S27
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.
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
7 MASK DATA CHECKER MDC6S27
7.1 MDC6S27 Outline
The Mask Data Checker MDC6S27 is a software tool which checks the program data (CS27XXXH.HEX and CS27XXXL.HEX) and option data (CS27XXXF.DOC and CS27XXXS.DOC) created by the user and creates the data file (C6S27XXX.PAn) for generating mask patterns. The user must send the file generated through this software tool to Seiko Epson. Moreover, MDC6S27 has the capability to restore the generated data file (C6S27XXX.PA0) to the original file format.
Object files Function option document file CS27XXXF .DOC Segment option document file CS27XXXS .DOC
CS27XXXH .HEX
CS27XXXL .HEX
MDC6S27 Mask Data Checker execution (pack)
File for submission
C6S27XXX .PAn
SEIKO EPSON
MDC6S27 Mask Data Checker execution (unpack)
CS27XXXH .PAn
CS27XXXL .PAn
CS27XXXF .PAn Unpacked files
CS27XXXS .PAn
Fig. 7.1.1 MDC6S27 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 MDC6S27 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: MDC6S27.EXE MDC6S27 CS27XXXL.HEX (Object file, low-order) CS27XXXH.HEX (Object file, high-order) CS27XXXF.DOC (Function option document file) CS27XXXS.DOC (Segment option document file) C6S27XXX.PAn (Packed file) C6S27XXX.PAn CS27XXXL.PAn CS27XXXH.PAn CS27XXXF.PAn CS27XXXS.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:
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
7 MASK DATA CHECKER MDC6S27
s Display examples
E0C6S27 PACK / UNPACK PROGRAM Ver 2.000 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 MDC6S27 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 "C6S27XXX.PA0" has been submitted, the pack file name should be entered as "C6S27XXX.PA1".) With this, the mask file (C6S27XXX.PAn) is generated, and the MDC6S27 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 (C6S27XXX.PAn) is restored to the original file format, and the MDC6S27 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.
CS270A0H.PA0 CS270A0L.PA0 CS270A0F.PA0 CS270A0S.PA0
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
7 MASK DATA CHECKER MDC6S27
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)
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.
TOO MANY DATA IN ONE LINE. There are too many data in 1 line. CHECK SUM. The checksum is not correct. END MARK. The end mark is not : 00000001FF. DUPLICATE. 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 SEGMENT
DATA DATA DATA DATA DATA
ERROR ERROR ERROR ERROR ERROR
START MARK. DATA. SEGMENT NUMBER. SPEC. 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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
APPENDIX A. S1C6S2N7 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
S1C6S2N7 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
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
APPENDIX A. S1C6S2N7 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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
APPENDIX A. S1C6S2N7 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
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
APPENDIX A. S1C6S2N7 INSTRUCTION SET
Abbreviations used in the explanations have the following meanings.
Symbols associated with registers and memory
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 A B X
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
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
NAME MSB
APPENDIX
LSB NAME MSB
APPENDIX B. S1C6S2N7 RAM MAP
LSB NAME MSB
B. S1C6S2N7 RAM MAP
EPSON
TM3 TM2 TM1 TM0 - - - - - - - - - - - - EIK03 EIK02 EIK01 EIK00 - - - EISMD - - EISW1 EISW0 - - - - - - - - P03 P02 P01 P00 - - - - - - - - HLMOD - - TMRST SWRUN SVDDT SWRST SVDON
LSB NAME MSB
K03 K02 K01 K00
SWL3 SWL2 SWL1 SWL0
SWH3 SWH2 SWH1 SWH0
- EIT2 EIT8 EIT32
FRUN / FTRG
- IT2 IT8 IT32
LSB NAME MSB
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
R03 R02 R01 R00
XBZR - XFOUT1 XFOUT0
APPENDIX C. S1C6S2N7 I / O MEMORY MAP
APPENDIX
Address D3 K03 K02
C. S1C6S2N7 I / O MEMORY MAP
D0 K00 K01 R Name K03 K02 K01 K00 SWL3 SWL2 SWL1 SWL0 SWH3 SWH2 SWH1 SWH0 TM3 TM2 TM1 TM0 EIK03 EIK02 EIK01 EIK00 0 0 0 EISMD 0 0 EISW1 EISW0 0 EIT2 EIT8 EIT32 0 0 0 ISMD 0 0 0 IK0 0 0 ISW1 ISW0 0 IT2 IT8 IT32 Init - - - - 0 0 0 0 0 0 0 0 - - - - 0 0 0 0 1 High High High High 0 Low Low Low Low Comment Input port data K03 Input port data K02 Input port data K01 Input port data K00 Stopwatch timer data 3 (1 / 100 sec) MSB Stopwatch timer data 2 (1 / 100 sec) Stopwatch timer data 1 (1 / 100 sec) Stopwatch timer data 0 (1 / 100 sec) LSB Stopwatch timer data 3 (1 / 10 sec) MSB Stopwatch timer data 2 (1 / 10 sec) Stopwatch timer data 1 (1 / 10 sec) Stopwatch timer data 0 (1 / 10 sec) LSB Clock timer data 2 Hz Clock timer data 4 Hz Clock timer data 8 Hz Clock timer data 16 Hz Interrupt mask register (K03) Interrupt mask register (K02) Interrupt mask register (K01) Interrupt mask register (K00)
Register D2 D1
SWL2 R
SWH2 R
EIK03
EIK02
EIK00
High High High High Enable Enable Enable Enable
Low Low Low Low Mask Mask Mask Mask
Enable
Interrupt mask register (motor driver)
EISW1
Enable Enable Enable Enable Enable
Mask Mask Mask Mask Mask
Interrupt mask register (stopwatch timer 1 Hz) Interrupt mask register (stopwatch timer 10 Hz) Interrupt mask register (clock timer 2 Hz) Interrupt mask register (clock timer 8 Hz) Interrupt mask register (clock timer 32 Hz)
EIT32
Interrupt factor flag (motor driver)
Interrupt factor flag (K00-K03)
Yes Yes Yes Yes Yes
Interrupt factor flag (stopwatch timer 1 Hz) Interrupt factor flag (stopwatch timer 10 Hz) Interrupt factor flag (clock timer 2 Hz) Interrupt factor flag (clock timer 8 Hz) Interrupt factor flag (clock timer 32 Hz)
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
APPENDIX C. S1C6S2N7 I / O MEMORY MAP
Address
Name R03 R00 R01 R03 R02 R02 BUZZER FOUT R01 BUZZER R / W R00 FOUT P03 P00 P03 P02 P01 P02 P01 R / W P00 0 0 TMRST SWRUN SWRST TMRST SWRUN W R W R / W SWRST HLMOD HLMOD 0 SVDDT SVDON 0 SVDDT R / W R / W R SVDON CSDC 0 CSDC 0 0 0 0 R / W R 0 0 0 0 0 IOC 0 0 R R / W IOC XBZR XBZR 0 XFOUT1 XFOUT0 0 XFOUT1 R / W R R / W XFOUT0 0 FRUN 0 0 0 0 FTRG FRUN FTRG R R R / W 0
Register D2 D1
1 High High High On High On High High High High Reset Run Reset Heavy Low On Static
0 Low Low Low Off Low Off Low Low Low Low - Stop - Normal Normal Off Dynamic
Comment Output port data R03 Output port data R02 Output port data R01 Buzzer On / Off control register Output port data R00 Frequency output control register I / O port data P03 I / O port data P02 I / O port data P01 I / O port data P00 Clock timer reset Stopwatch timer Run / Stop Stopwatch timer reset Heavy load protection mode register Supply voltage detection data Supply voltage detection circuit On / Off LCD drive switch
Out 2 kHz
I / O port I / O control register Buzzer frequency control FOUT frequency control FOUT frequency control
Run Start
Stop -
Motor driver status (reading) Motor driver trigger (writing)
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
APPENDIX D. TROUBLESHOOTING
APPENDIX
D. TROUBLESHOOTING
Problem Remedy measures
S5U1C62000H
Nothing appears on the screen, or nothing works, after activation.
The ICE fuse cut immediately after activation.
SOG6S27
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.
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
EPSON
APPENDIX D. TROUBLESHOOTING
Problem
Remedy measures
ASM6S27
An R error occurs although the final page is passed.
MDC6S27
Activation is impossible.
Evaluation The evaluation board does not work when it is used independently. board
S5U1C6S2N7E
Target segment does not light.
EPSON
S5U1C6S2N7D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C6S2N7)
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
S5U1C6S2N7D Manual
(Development Software Tool for S1C6S2N7)
ELECTRONIC DEVICES MARKETING DIVISION
EPSON Electronic Devices Website
http://www.epson.co.jp / device /
First issue February, 1996 Printed April, 2001 in Japan M A