| |
Datasheet Home \ Datasheet Details
Download
PDF Abstract Text:
MF882-02
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
MF882-02
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
E0C6S27 DEVELOPMENT TOOL MANUAL
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 Control Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from another government agency. Please note that "E0C" is the new name for the old product "SMC". If "SMC" appears in other manuals understand that it now reads "E0C".
E0C6S27 Development Tool Manual
PREFACE
This manual mainly explains the outline of the development support tool for the 4-bit Single Chip Microcomputer E0C6S27. Refer to the "E0C62 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
E0C62 Family Development Tool Reference Manual EVA6S27 Manual ICE6200 Hardware Manual E0C62 Family Technical Guide E0C6S27 Technical Manual E0C6200 / 6200A Core CPU Manual
Development procedure Device (E0C6S27) Instructions
CONTENTS
1.1 1.2 1.3 1.4 Configuration of DEV6S27 ........................................... 1 Developmental Environment .......................................... 1 Development Flow .................................................. 2 Production of Execution Disk .......................................... 3
2.1 2.2 DMS6200 Outline ................................................... 4 DMS6200 Quick Reference ........................................... 4
3.1 3.2 3.3 ASM6S27 Outline ................................................... 5 E0C6S27 Restrictions ................................................ 5 ASM6S27 Quick Reference ............................................ 6
4.1 4.2 4.3 4.4 4.5 FOG6S27 Outline ................................................... 8 E0C6S27 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
7.1 7.2 MDC6S27 Outline .................................................. 31 MDC6S27 Quick Reference ........................................... 31
White
E0C6S27 Development Tool Manual (Introduction)
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 DEV6S27
The below software are included in the product of the E0C6S27 development support tool DEV6S27. 1. 2. 3. 4. 5. 6. Development Tool Management System DMS6200 ... Menu selection for each software / start-up software Cross Assembler ASM6S27 ..................... Cross assembler for program preparation Function Option Generator FOG6S27 .............. Function option data preparation program Segment Option Generator SOG6S27 ............. Segment option data preparation program ICE Control Software ICS6S27 ................... ICE control program Mask Data Checker MDC6S27 ................... Mask data preparation program
1.2 Developmental Environment
The software product of the development support tool DEV6S27 operates on the following host systems: · IBM PC / AT (at least PC-DOS Ver. 2.0) · NEC PC-9801 Series (at least MS-DOS Ver. 3.1) When developing the E0C6S27, 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
DEV6S27
EPSON
PC-9801 Series IBM PC / AT
5" 2HD
DEV6S27
DMS6200 ASM6S27 FOG6S27
SOG6S27 ICS6S27 MDC6S27
SMC6S27 Series Development Tool
ICE6200 RS-232C
ICE6200
EVA6S27
EPSON 5" 2HD
EDLIN
MS-DOS / PC-DOS Editor · P-ROM writer · Printer
Target board
To be prepared by the user
Fig. 1.2.1 System configuration
The DEV6S27 system requires a host computer with a RAM capacity of about 140K bytes. Since the ICE6200 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.
E0C6S27 Development Tool Manual (Introduction)
1.3 Development Flow
Figure 1.3.1 shows the development flow through the DEV6S27.
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
ICE6200
EVA6S27
Target board
4, 5 Mask Data Checker MDC6S27 execution
C6S27XXX File for submission .PAn
SEIKO EPSON
Fig. 1.3.1 DEV6S27 development flow
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
1 2 3 4 E0C6S27 Technical Hardware Manual E0C6S27 Technical Software Manual E0C6200 / 6200A Core CPU Manual E0C62 Family Development Tool Reference Manual 5 E0C6S27 Development Tool Manual (this manual) 6 EVA6S27 Manual 7 ICE6200 Hardware Manual
E0C6S27 Development Tool Manual (Introduction)
1.4 Production of Execution Disk
s First copy the entire content of this disk using commands such as DISKCOPY then make the execution disk. Carefully conserve the original floppy disk for storage purposes. When copying into a hard disk, make a subdirectory with an appropriate name (DEV6S27, etc.) then copy the content of the floppy disk into that subdirectory using the COPY command. s Next make a CONFIG.SYS file using Editor or the like. When a CONFIG.SYS has previously been made using a hard disk system, check the setting of the FILES within it. (If there is none add it.) Set the number of files to be described in CONFIG.SYS at 10 or more, so that the Mask Data Checker MDC6S27 will handle many files.
The driver for the RS-232C must be included in CONFIG.SYS by the host computer.
s It is a good idea to copy the editor into the disk to be copied and the subdirectory so you can also select the editor from the DMS6200 menu.
s In "ICS6S27(B).BAT" the batch process is indicated such RS-232C Setting (PC-DOS version) that the ICS6S27J(W).EXE is executed after the execution MODE COM1: 4800, n, 8, 1, p of the command for the setting of the RS-232C communiRS-232C Setting (MS-DOS version) cation parameters. When first executing the ICE Control SPEED R0 9600 B8 PN S1 Software after resetting the host computer, select then activate this batch file from the DMS6200 menu. The SPEED (MS-DOS) or MODE (PC-DOS) command is used for setting the RS-232C, so you should copy these commands into the disk to be executed or specify a disk or directory with the command using the PATH command.
The DMS6200 prepares a menu from files that are in the current directory. Consequently, be sure to arrange the above mentioned files in the same disk or the same directory.
E0C6S27 Development Tool Manual (DMS6200)
2 DEVELOPMENT TOOL MANAGEMENT SYSTEM DMS6200
2.1 DMS6200 Outline
The DMS6200 (Development Tool Management System) is a software which selects the DEV6S27 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 "E0C62 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 (PC-DOS Version) 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.
DMS6200 Version 1.0 1) 2) 3) : 10) CS27XXX .DAT CS27XXX .PRN CS27XXX .SEG : C6S27XXX.PA0
Copyright(C) SEIKO EPSON CORP. 1990.
E0C6S27 Development Tool Manual (ASM6S27)
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 E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
Fig. 3.1.1 ASM6S27 execution flow
3.2 E0C6S27 Restrictions
Note the following when generating a program by the E0C6S27:
s ROM area
The capacity of the E0C6S27 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 E0C6S27 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 E0C6S27 instruction sets.
SLP PUSH POP LD LD
PUSH POP LD LD
E0C6S27 Development Tool Manual (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
E0C6S27 Development Tool Manual (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). capacity (only when the cross-reference table is generated).
(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
E0C6S27 Development Tool Manual (FOG6S27)
FUNCTION OPTION GENERATOR
FOG6S27
Option list generation
4.1 FOG6S27 Outline
With the 4-bit single-chip E0C6S27 microcomputers, the customer may select 11 hardware options. By modifying the mask patterns of the E0C6S27 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 E0C6S27 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (EVA6S27) hardware option ROM is simultaneously generated with the data file.
Start FOG6S27
Set function option
CS27XXXF .HEX
CS27XXXF .DOC
The operating method is same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
EVA6S27 Seiko Epson
EPROM
Floppy disk
Fig. 4.1.1 FOG6S27 execution flow
4.2 E0C6S27 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
s s s s s s s s 1. E0C6S27 2. E0C6S27 3. E0C6SA27 4. E0C6SA27 5. E0C6SA27 6. E0C6SB27 7. E0C6SL27 8. E0C6SL27 (Normal Type) (Normal Type) (High Speed Type) (High Speed Type) (High Speed Type) (Wide Range Type) (Low Power Type) (Low Power Type) LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator LCD Voltage Regurator Use Not Use Use Not Use Not Use Use Use Not Use LCD LCD LCD LCD LCD LCD LCD LCD 3V 3V 3V 3V 4.5 V 3V 3V 3V
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
· K00 · K01 · K02 · K03 ............................. ............................. ............................. ............................. s s s s 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor s s s s 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct
E0C6S27 Development Tool Manual (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. 1, 024Hz s 2. 2, 048Hz s 3. 4, 096Hz s 4. 8, 192Hz s 5. 16, 384Hz F4 .... s 1. 2, 048Hz s 2. 4, 096Hz s 3. 8, 192Hz s 4. 16, 384Hz s 5. 32, 768Hz s 2. Pch-Open Drain
F1 ... s 1. 256Hz s 2. 512Hz s 3. 1, 024Hz s 4. 2, 048Hz s 5. 4, 096Hz F2 ... s 1. 512Hz s 2. 1, 024Hz s 3. 2, 048Hz s 4. 4, 096Hz s 5. 8, 192Hz · 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
E0C6S27 Development Tool Manual (FOG6S27)
4.3 Option Specifications and Selection Message
Screen that can be selected as function options set on the E0C6S27 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
SMC6S27, SMC6SA27, SMC6SL27, SMC6SB27
VDD VS1 VL1 VL2 VL3 CA CB VSS External power supply
Fig. 4.3.1 External elements when LCD system voltage regulator is used
Select the chip specification. There are four models: E0C6S27 (3 V supply voltage), E0C6SA27 (3 V supply voltage, high speed specification), E0C6SL27 (1.5 V supply voltage, lowpower specification) and E0C6SB27 (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.
SMC6SA27
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.
SMC6S27, SMC6SA27
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.
SMC6S27, SMC6SA27
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.
SMC6SL27
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
E0C6S27 Development Tool Manual (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
E0C6S27 Development Tool Manual (FOG6S27)
5 R00 specification
OPTION NO.5 -- R00 SPECIFICATION -OUTPUT TYPE 1. 2. 3. 4. D.C. / BZ R00 / BZ R01 FOUT
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
E0C6S27 Development Tool Manual (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).
E0C6S27 Development Tool Manual (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
E0C6S27 Development Tool Manual (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)
E0C6S27 Development Tool Manual (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.
E0C6S27 Development Tool Manual (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
EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE 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 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.
E0C6S27 Development Tool Manual (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 EVA6S27, 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 EVA6S27 options. When a series of operations are complete, the sequence returns to the operation selection menu.
E0C6S27 Development Tool Manual (FOG6S27)
4.5 Sample File
s Example of function option document file
SELECTED
SELECTED SELECTED
SELECTED
SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED
E0C6S27 Development Tool Manual (FOG6S27)
E0C6S27 Development Tool Manual (SOG6S27)
SEGMENT OPTION GENERATOR
SOG6S27
5.1 SOG6S27 Outline
With the 4-bit single-chip E0C6S27 microcomputers, the customer may select the LCD segment options. By modifying the mask patterns of the E0C6S27 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 E0C6S27 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (EVA6S27) segment option ROM is simultaneously generated with the data file. The operating method is same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
CS27XXX .SEG
Error message Error message
CS27XXXS .HEX Segment option HEX file for EVA6S27 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.
E0C6S27 Development Tool Manual (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 "E0C62 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
E0C6S27 Development Tool Manual (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
EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE 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 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
E0C6S27 Development Tool Manual (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 EVA6S27, 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 EVA6S27 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
E0C6S27 Development Tool Manual (SOG6S27)
5.5 Sample Files
s Example of segment option source file
CS270A0.SEG, VER.3.00 EVA6S27 LCD SEGMENT DECODE TABLE 0 901 900 932 AE0 S 1st DIGIT 1 912 911 910 923 S 2 913 920 921 922 S 3 AC0 902 930 931 S 4 941 940 972 AE1 S 2nd DIGIT 5 952 951 950 963 S 6 953 960 961 962 S 7 AC1 942 970 971 S 8 981 980 9B2 AE2 S 3rd DIGIT 9 992 991 990 9A3 S 10 993 9A0 9A1 9A2 S 11 AC2 982 9B0 9B1 S 12 9C1 9C0 9F2 AE3 S 4th DIGIT 13 9D2 9D1 9D0 9E3 S 14 9D3 9E0 9E1 9E2 S 15 AC3 9C2 9F0 9F1 S 16 A01 A00 A32 AF0 S 5th DIGIT 17 A12 A11 A10 A23 S 18 A13 A20 A21 A22 S 19 AD0 A02 A30 A31 S 20 A41 A40 A72 AF1 S 6th DIGIT 21 A52 A51 A50 A63 S 22 A53 A60 A61 A62 S 23 AD1 A42 A70 A71 S 24 AD3 -- -- -- C DC OUTPUT 25 AF3 -- -- -- C
s Example of segment option source file
E0C6S27 Development Tool Manual (ICS6S27)
6 ICE CONTROL SOFTWARE ICS6S27
6.1 ICS6S27 Outline
The In-circuit Emulator ICE6200 connects the target board produced by the user via the EVA6S27 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 ICE6200 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
PC-9801 Series IBM PC / AT
ICE6200
RS-232C
EVA6S27
Target board
Fig. 6.1.1 Debugging system using ICE6200
The functions of the ICE6200 and commands are same as for the E0C62 Family. Refer to the "E0C62 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 "E0C6S27 Technical Manual" for details.)
s Undefined Code
The instructions below are not specified for the E0C6S27 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 EVA6S27 memory with the ICE6200.
Load of function option data: Load of segment option data:
#OPTLD, 1, CS27XXX #OPTLD, 2, CS27XXX
E0C6S27 Development Tool Manual (ICS6S27)
OPTLD
Format
Function
(1) Load function option HEX file in the EVA6S27 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 EVA6S27 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.
E0C6S27 Development Tool Manual (ICS6S27)
6.3 ICS6S27 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: ICS6S27.BAT (ICS6S27J.EXE) ICS6S27B.BAT (ICS6S27W.EXE) ICS6S27 (ICS6S27J) ICS6S27B (ICS6S27W) CS27XXXL.HEX CS27XXXH.HEX CS27XXXD.HEX CS27XXXC.HEX CS27XXXL.HEX CS27XXXH.HEX CS27XXXD.HEX CS27XXXC.HEX
indicates the Return key.
. . . for MS-DOS . . . for PC-DOS . . . for MS-DOS . . . for PC-DOS
(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)
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 COMMUNICATION ERROR OR ICE NOT READY TARGET DOWN (1) TARGET DOWN (2) UNDEFINED PROGRAM CODE EXIST COMMAND ERROR (No response after power on) Meaning ICE6200 is disconnected or power is OFF. Evaluation board is disconnected. (Check at power ON) Evaluation board is disconnected. (Check at command execution) Undefined code is detected in the program loaded from ROM or FD. A miss occurs by command input. The ICE-to-HOST cable is disconnected on the host side. Recover procedure Switch OFF the host power supply, connect cable, and reapply power. Or switch ON power to ICE6200. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200. Convert ROM and FD data with the cross assembler, then restart the ICE6200. Reenter the proper command. Switch OFF the host power supply, connect cable, and reapply power.
E0C6S27 Development Tool Manual (ICS6S27)
s ICE6200 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 EVA6S27 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 EVA6S27 CPU internal registers Set EVA6S27 CPU internal registers Reset EVA6S27 CPU Display X, Y, MX and MY Set data for X and Y display and MX, MY
E0C6S27 Development Tool Manual (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 ICE6200 set condition from file Save ICE6200 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 ICE6200 instruction Report results of ICE6200 self diagnostic test means press the RETURN key.
E0C6S27 Development Tool Manual (MDC6S27)
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 E0C62 Family. Refer to the "E0C62 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:
E0C6S27 Development Tool Manual (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
E0C6S27 Development Tool Manual (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
1. SEGMENT DATA ERROR : START MARK. 2. SEGMENT DATA ERROR : DATA. 3. SEGMENT DATA ERROR : SEGMENT NUMBER. 4. SEGMENT DATA ERROR : 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.
E0C6S27 Development Tool Manual (Appendix)
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
E0C6S27 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
E0C6S27 Development Tool Manual (Appendix)
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
E0C6S27 Development Tool Manual (Appendix)
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
E0C6S27 Development Tool Manual (Appendix) 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
PROGRAM NAME:
APPENDIX
NAME MSB
LSB NAME MSB
E0C6S27 Development Tool Manual (Appendix)
LSB NAME MSB
B. E0C6S27 RAM MAP
LSB NAME MSB
K03 K02 K01 K00
SWL3 SWL2 SWL1 SWL0
SWH3 SWH2 SWH1 SWH0
EIK03 EIK02 EIK01 EIK00
- - EISW1 EISW0
- EIT2 EIT8 EIT32
FRUN / FTRG
- IT2 IT8 IT32
LSB NAME MSB
R03 R02 R01 R00
P03 P02 P01 P00
HLMOD - - TMRST SWRUN SVDDT SWRST SVDON
XBZR - XFOUT1 XFOUT0
E0C6S27 Development Tool Manual (Appendix)
APPENDIX
Address D3 K03 K02
C. E0C6S27 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)
E0C6S27 Development Tool Manual (Appendix)
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)
E0C6S27 Development Tool Manual (Appendix)
APPENDIX
D. TROUBLESHOOTING
Problem Remedy measures
ICE6200
Nothing appears on the screen, or nothing works, after activation.
The ICE6200 breaker tripped immediately after activation.
SOG6S27
You can not do a real-time run in break-trace mode. Output from the EVA 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.
E0C6S27 Development Tool Manual (Appendix)
Problem
Remedy measures
ASM6S27
An R error occurs although the final page is passed.
MDC6S27
Activation is impossible.
EVA6S27
The EVA6S27 does not work when it is used independently.
Target segment does not light.
International Sales Operations
AMERICA
S-MOS SYSTEMS, INC.
150 River Oaks Parkway San Jose, CA 95134, U.S.A. Phone: +1-408-922-0200 Fax: +1-408-922-0238 Telex: 176079 SMOS SNJUD
- HONG KONG, CHINA 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
S-MOS SYSTEMS, INC.
EASTERN AREA SALES AND TECHNOLOGY CENTER 301 Edgewater Place, Suite 120 Wakefield, MA 01880, U.S.A. Phone: +1-617-246-3600 Fax: +1-617-246-5443
- CHINA SHANGHAI EPSON ELECTRONICS CO., LTD.
4F, Bldg., 27, No. 69, Gui Jing Road Caohejing, Shanghai, CHINA Phone: 21-6485-5552 Fax: 21-6485-0775
S-MOS SYSTEMS, INC.
SOUTH EASTERN AREA SALES AND TECHNOLOGY CENTER 4300 Six Forks Road, Suite 430 Raleigh, NC 27609, U.S.A. Phone: +1-919-781-7667 Fax: +1-919-781-6778
- TAIWAN EPSON TAIWAN TECHNOLOGY & TRADING LTD.
10F, No. 287, Nanking East Road, Sec. 3 Taipei, TAIWAN Phone: 02-2717-7360 Fax: 02-2712-9164 Telex: 24444 EPSONTB
S-MOS SYSTEMS, INC.
CENTRAL AREA SALES AND TECHNOLOGY CENTER 1450 E.American Lane, Suite 1550 Schaumburg, IL 60173, U.S.A. Phone: +1-847-517-7667 Fax: +1-847-517-7601
EPSON TAIWAN TECHNOLOGY & TRADING LTD. HSINCHU OFFICE
13F-3, No.295, Kuang-Fu Road, Sec.2 HsinChu 300, TAIWAN Phone: 03-573-9900 Fax: 03-573-9169
EUROPE
- HEADQUARTERS EPSON EUROPE ELECTRONICS GmbH
Riesstrasse 15 80992 Muenchen, GERMANY Phone : +49-(0)89-14005-0 Fax : +49-(0)89-14005-110
- SINGAPORE EPSON SINGAPORE PTE., LTD.
No. 1 Temasek Avenue, #36-00 Millenia Tower, SINGAPORE 039192 Phone: +65-337-7911 Fax: +65-334-2716
- GERMANY EPSON EUROPE ELECTRONICS GmbH
SALES OFFICE Breidenbachstrasse 46 D-51373 Leverkusen, GERMANY Phone : +49-(0)214-83070-0 Fax : +49-(0)214-83070-10
- KOREA SEIKO EPSON CORPORATION KOREA OFFICE
10F, KLI 63 Bldg., 60 Yoido-Dong Youngdeungpo-Ku, Seoul, 150-010, KOREA Phone: 02-784-6027 Fax: 02-767-3677
- UNITED KINGDOM EPSON EUROPE ELECTRONICS GmbH UK BRANCH OFFICE
G6 Doncastle House, Doncastle Road Bracknell, Berkshire RG12 8PE, ENGLAND Phone: +44-(0)1344-381700 Fax: +44-(0)1344-381701
- JAPAN 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
- FRANCE EPSON EUROPE ELECTRONICS GmbH FRENCH BRANCH OFFICE
ED International Marketing Department I
(Europe & U.S.A.) 421-8, Hino, Hino-shi, Tokyo 191-8501, JAPAN Phone: +81-(0)42-587-5812 Fax: +81-(0)42-587-5564
ED International Marketing Department II (Asia)
421-8, Hino, Hino-shi, Tokyo 191-8501, JAPAN Phone: +81-(0)42-587-5814 Fax: +81-(0)42-587-5110
ELECTRONIC DEVICES MARKETING DIVISION
s Electronic devices information on the Epson WWW server
http://www.epson.co.jp
Issue APRIL 1998 Printed in Japan M A
|