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, CPU, Memory, RS-232, Serial Interface, Termination, Floppy Disk, SCR

Download

PDF Abstract Text:

MF973-03a


CMOS 4-BIT SINGLE CHIP MICROCOMPUTER

MF973-03a
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER
E0C6002
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 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".
MS-DOS and EDLIN are registered trademarks of Microsoft Corporation, U.S.A. PC-DOS, PC / AT, VGA, EGA and IBM are registered trademarks of International Business Machines Corporation, U.S.A. NEC PC-9801 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.
CONTENTS
E0C6002 Development Tool Manual
PREFACE
This manual mainly explains the outline of the development support tool for the 4-bit Single Chip Microcomputer E0C6002. 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 EVA6251R (EVA6002) Manual (EVA6251 Manual + KIT6002 Manual) ICE6200 (ICE62R) Hardware Manual E0C62 Family Technical Guide E0C6002 Technical Manual E0C6200 / 6200A Core CPU Manual
Development procedure Device (E0C6002) Instructions
CONTENTS
1.1 1.2 1.3 1.4 Configuration of DEV6002 ........................................... 1 Developmental Environment .......................................... 1 Development Flow .................................................. 2 Production of Execution Disk .......................................... 3
2.1 2.2 2.3 ASM6002 Outline ................................................... 4 E0C6002 Restrictions ................................................ 4 ASM6002 Quick Reference ............................................ 5
3.1 3.2 3.3 3.4 3.5 FOG6002 Outline ................................................... 7 E0C6002 Option List ................................................ 7 Option Specifications and Selection Message ............................. 9 FOG6002 Quick Reference ........................................... 16 Sample File ....................................................... 18
4.1 4.2 4.3 4.4 4.5 SOG6002 Outline .................................................. 20 Option List ........................................................ 20 Segment Ports Output Specifications ................................... 21 SOG6002 Quick Reference ........................................... 22 Sample Files ...................................................... 24
5.1 5.2 5.3 ICS6002 Outline ................................................... 25 ICS6002 Restrictions ................................................ 25 ICS6002 Quick Reference ............................................ 26
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
CONTENTS
6.1 6.2 MDC6002 Outline .................................................. 29 MDC6002 Quick Reference ........................................... 29
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
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 DEV6002
The below software are included in the product of the E0C6002 development support tool DEV6002. 1. 2. 3. 4. 5. Cross Assembler ASM6002 ..................... Function Option Generator FOG6002 .............. Segment Option Generator SOG6002 ............. ICE Control Software ICS6002 ................... Mask Data Checker MDC6002 ................... 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 DEV6002 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 E0C6002, 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
PC-9801 Series IBM PC / AT
E0C6002 Series Development Tool
ICE6200 (ICE62R) RS-232C
ICE6200
EVA6251R (EVA6002)
MS-DOS / PC-DOS Editor · P-ROM writer · Printer
Target board
To be prepared by the user
Fig. 1.2.1 System configuration
The DEV6002 system requires a host computer with a RAM capacity of about 140K bytes. Since the ICE6200 (ICE62R) 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.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
1.3 Development Flow
Figure 1.3.1 shows the development flow through the DEV6002.
1 Determination of software specifications 2, 3 Flow chart generation and coding 1 Determination of hardware specifications 3, 4 Function option list generation 3, 4 Segment option list generation Creation of target board 1, 5
Coding sheet
Function option list
Segment option list
Source file generation by using editor
C002XXX .DAT
Program source file 3, 4 3, 4 Function Option Generator FOG6002 execution
C002XXX .SEG
Segment option source file 3, 4
Cross Assembler ASM6002 execution
Segment Option Generator SOG6002 execution
C002XXX .PRN
Assembly list
C002XXXL Object file .HEX C002XXXH .HEX C002XXXF .DOC C002XXXS .DOC
Function option document file
Segment option document file
Function
C002XXXF option .HEX HEX file
Segment
C002XXXF option .HEX HEX file
Function option ROM (one)
Segment option ROM (two)
3, 4 Debugging with ICE Control Software ICS6002 Debugging completion
ICE6200 (ICE62R)
ICE6200
EVA6251R (EVA6002)
Target board
3, 4 Mask Data Checker MDC6002 execution
C6002XXX File for submission .PAn
SEIKO EPSON
Fig. 1.3.1 DEV6002 development flow
Concerning file names
All the input-output file name for the each development support tool commonly use "C002XXX". In principle each file should be produced in this manner. Seiko Epson will designate the "XXX" for each customer.
Reference Manual
1 E0C6002 Technical Hardware Manual 2 E0C6200 / 6200A Core CPU Manual 3 E0C62 Family Development Tool Reference Manual
4 E0C6002 Development Tool Manual (this manual) 5 EVA6251R (EVA6002) Manual 6 ICE6200 (ICE62R) Hardware Manual EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL
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 (DEV6002, 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 MDC6002 will handle many files.
The driver for the RS-232C must be included in CONFIG.SYS by the host computer.
s In "ICS6002(B).BAT" the batch process is indicated such that the ICS6002J(W).EXE is executed after the execution of the command for the setting of the RS-232C communication parameters. 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.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
2 CROSS ASSEMBLER ASM6002
2.1 ASM6002 Outline
C002XXX .DAT
Error message
C002XXX .PRN
C002XXXL .HEX
C002XXXH .HEX
Error message
Assembly listing file
Object file
Fig. 2.1.1 ASM6002 execution flow
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.
2.2 E0C6002 Restrictions
Note the following when generating a program by the E0C6002:
s ROM area
The capacity of the E0C6002 ROM is 1K steps (0000H to 03FFH). Therefore, the specification range of the memory setting pseudo-instructions and PSET instruction is restricted.
Memory configuration: Bank: Only bank 0, Page: 4 pages (0 to 3H), each 256 steps Significant specification range: ORG pseudo-instruction: PAGE pseudo-instruction: BANK pseudo-instruction: PSET instruction: X, 0F2H 0000H to 03FFH 00H to 03H Only 0H 00H to 03H F2H 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. 5DH 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 E0C6002 RAM is 129 words (000H to 04FH, 090H to 0AFH, 0E0H, 0E3H to 0E8H, 0EBH to 0EDH, 0EFH to 0F1H, and 0F3H to 0FEH, 4 bits / word). Memory access is invalid when the unused area of the index register is specified.
Example: LD
Y, 05DH
s Undefined codes
The following instructions have not been defined in the E0C6002 instruction sets.
SLP PUSH POP LD LD
PUSH POP LD LD
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
2 CROSS ASSEMBLER ASM6002
2.3 ASM6002 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Option: .shp s h p -N Input file: Output file: ASM6002.EXE
C002XXXL.HEX (Object file, low-order) C002XXXH.HEX (Object file, high-order) C002XXX.PRN (Assembly listing file)
s Display example
E0C6002 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 1991 SEIKO EPSON CORP. SOURCE FILE NAME IS " C002XXX.DAT " THIS SOFTWARE MAKES NEXT FILES. C002XXXH.HEX C002XXXL.HEX C002XXX .PRN .. .. .. HIGH BYTE OBJECT FILE. LOW BYTE OBJECT FILE. ASSEMBLY LIST FILE. . . . (1) . . . (2)
When ASM6002 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, ASM6002 assembles the source file. To suspend execution, press the "CTRL" and "C" keys together at stage (1) or (2).
s Operators
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
2 CROSS ASSEMBLER ASM6002
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
(Syntax Error) (Undefined Error) (Missing Label) (Operand Error)
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
3 FUNCTION OPTION GENERATOR FOG6002
FUNCTION OPTION GENERATOR
FOG6002
Option list generation
3.1 FOG6002 Outline
With the 4-bit single-chip E0C6002 microcomputers, the customer may select 10 hardware options. By modifying the mask patterns of the E0C6002 according to the selected options, the system can be customized to meet the specifications of the target system. The Function Option Generator FOG6002 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 FOG6002, the E0C6002 mask pattern is automatically generated by a general purpose computer. The HEX file for the EVA6251R (EVA6002) hardware option ROM is simultaneously generated with the data file.
Start FOG6002
Set function option
C002XXXF .HEX
C002XXXF .DOC
EVA6251R (EVA6002) Seiko Epson
EPROM
Floppy disk
Fig. 3.1.1 FOG6002 execution flow
The operating method is same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
3.2 E0C6002 Option List
Multiple specifications are available in each option item as indicated in the Option List. Using "3.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 AND LCD VOLTAGE
s s s s 1. E0C6002 2. E0C6002 3. E0C60L02 4. E0C60L02 (Normal Type) (Normal Type) (Low Power Type) (Low Power Type) LCD LCD LCD LCD 3V 4.5 V 3V 4.5 V
2. MULTIPLE KEY ENTRY RESET
· COMBINATION ................. s s s s 1. Not Use 2. Use K00, K01 3. Use K00, K01, K02 4. Use K00, K01, K02, K03
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
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
5. R00 SPECIFICATION
· OUTPUT TYPE ................... s s s s · FOUT OUTPUT SPACIFICATION 1. 2. 3. 4. DC Output Buzzer Inverted Output (Control bit is R00) Buzzer Inverted Output (Control bit is R01) FOUT Output 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 256Hz 512Hz 1, 024Hz 2, 048Hz 4, 096Hz 512Hz 1, 024Hz 2, 048Hz 4, 096Hz 8, 192Hz F3 .... s s s s s F4 .... s s s s s 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1, 024Hz 2, 048Hz 4, 096Hz 8, 192Hz 16, 384Hz 2, 048Hz 4, 096Hz 8, 192Hz 16, 384Hz 32, 768Hz
· OUTPUT SPECIFICATION ........ s 1. Complementary
s 2. Pch-OpenDrain
6. R01 SPECIFICATION
· OUTPUT TYPE ................... s 1. DC Output · OUTPUT SPECIFICATION ........ s 1. Complementary s 2. Buzzer Output s 2. Pch-OpenDrain
7. OUTPUT SPECIFICATION (R02, R03)
· R02 ............................. s 1. Complementary · R03 ............................. s 1. Complementary s 2. Pch-OpenDrain s 2. Pch-OpenDrain
8. I / O PORT SPECIFICATION
· P00 ............................. s · P01 ............................. s · P02 ............................. s · P03 ............................. s 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain 2. Pch-OpenDrain
9. LCD COMMON DUTY AND BIAS
10. OSC1 SYSTEM CLOCK
s 1. Crystal s 2. CR
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
3 FUNCTION OPTION GENERATOR FOG6002
3.3 Option Specifications and Selection Message
Screen that can be selected as function options set on the E0C6002 are shown below, and their specifications are also described.
1 Device type and LCD voltage
OPTION NO.1 -- DEVICE TYPE & LCD POWER VREG -1. 2. 3. 4. E0C6002 E0C6002 E0C60L02 E0C60L02 LCD LCD LCD LCD 3V 4.5V 3V 4.5V
Select the chip specification. There are two models: E0C6002 (3 V supply voltage) and E0C60L02 (1.5 V supply voltage, low-power specification). Select the LCD drive voltage (3 V or 4.5 V) according to the LCD panel to be used. Figure 3.3.1 shows the external elements.
SELECTED
E0C6002
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.
E0C6002
3 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 3 bias VDD VS1 VL1 VL2 VL3 CA 3V CB VSS
E0C6002
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.
E0C60L02
4.5 V LCD panel 1 / 4, 1 / 3, 1 / 2 duty, 1 / 3 bias VDD VS1 VL1 VL2 VL3 CA 1.5 V CB VSS Note: VL1 is shorted to VSS inside the IC.
E0C60L02
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. 3.3.1 External elements
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
2 Multiple key entry reset
OPTION NO.2 -- MULTIPLE KEY ENTRY RESET -COMBINATION 1. 2. 3. 4. NOT USE USE K00, K01 USE K00, K01, K02 USE K00, K01, K02, K03
PLEASE SELECT
COMBINATION
OSC1 OSC2
SELECTED
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. However, the system is reset when a high signal is input for more than a rule time (1-3 sec). The system reset circuit is shown in Figure 3.3.2.
K00 K01 K02 K03
RESET
Fig. 3.3.2 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.
4 Input ports pull down resistor
OPTION NO.4 -- INPUT PORT PULL DOWN RESISTOR -K00 1. WITH RESISTOR 2. GATE DIRECT
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" (VSS) with pull down resistors, a delay of approximately 1 msec in waveform rise time will occur depending on the pull down resistor and entry load time constant. Because of this, when input reading is to be conducted, ensure the appropriate wait time with the program. The configuration of the pull down resistor circuit is shown in Figure 3.3.3.
Data bus Read signal
Fig. 3.3.3 Configuration of pull down resistor
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
5 R00 specification
OPTION NO.5 -- R00 SPECIFICATION -OUTPUT TYPE 1. 2. 3. 4. DC / BZ OUTPUT R00 / BZ OUTPUT R01 FOUT
VDD R00 output R00 register 0 1 0 VSS
Fig. 3.3.4 Output waveform at DC output selection
VDD Buzzer inverted output VSS R00 / R01 register 0 1 0
Fig. 3.3.5 Output waveform at buzzer inverted output selection
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
VDD FOUT output VSS R00 register 0 1 0
Fig. 3.3.6 Output waveform at FOUT output selection
Output register
Complementary Pch open drain
Fig. 3.3.7 Configuration of output circuit
6 R01 specification
OPTION NO.6 -- R01 SPECIFICATION -OUTPUT TYPE 1. DC 2. BZ OUTPUT
VDD R01 output R01 register 0 1 0 VSS
Fig. 3.3.8 Output waveform at DC output selection
VDD Buzzer output R01 register 0 1 0 VSS
Fig. 3.3.9 Output waveform at buzzer output selection
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
3 FUNCTION OPTION GENERATOR FOG6002
7 Output port output specification (R02, R03)
OPTION NO.7 -- OUTPUT PORT SPECIFICATION -R02 1. COMPLEMENTARY 2. PCH-OPENDRAIN
Select the output specification for 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 3.3.7).
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 3.3.7). 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 3.3.10.
Data bus
Read signal
Register
I / O control register
Fig. 3.3.10 Configuration of I / O port
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
9 LCD common duty and bias
Table 3.3.1 Common duty selection standard
Number of segments 1-40 41-60 61-80 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. 3.3.11 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. 3.3.12 Drive waveform from COM terminals (1 / 2 bias)
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
3 FUNCTION OPTION GENERATOR FOG6002
10 OSC1 system clock
Select oscillation circuit that uses OSC1 and OSC2 for the E0C6002 / 60L02. 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.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
3.4 FOG6002 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: Output file: FOG6002.EXE FOG6002
indicates the Return key.
C002XXXF.DOC (Function option document file, when modifying) C002XXXF.DOC (Function option document file) C002XXXF.HEX (Function option HEX file)
s Display example
E0C6002 FUNCTION 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 FOG6002 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 1991 SEIKO EPSON CORP. THIS SOFTWARE MAKES NEXT FILES. C002XXXF.HEX C002XXXF.DOC .. .. FUNCTION OPTION HEX FILE. FUNCTION OPTION DOCUMENT FILE.
STRIKE ANY KEY.
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
3 FUNCTION OPTION GENERATOR FOG6002
(Modifying function option settings)
In step (1), if no modifiable source exists, the following message is displayed and the sequence returns to the operation selection menu.
SOURCE FILE(S) FUNCTION OPTION DOCUMENT FILE IS NOT FOUND.
In step (2), if the function option document file is not in the current drive, the following message is displayed, prompting entry of other file name.
OPTION
-- MULTIPLE KEY ENTRY RESET -COMBINATION 1. 2. 3. 4. Not Use Use K00, K01 Use K00, K01, K02 Use K00, K01, K02, K03
PLEASE SELECT
COMBINATION
Option selection The selections for each option correspond one to one to the option list. Enter the selection number. The value in parentheses ( ) indicates the default value, and is set when only the RETURN key " " is pressed. In return, the confirmation is displayed. When you wish to modify previously set function options in the new setting process, enter "B " to return 1 step back to the previous function option setting operation. EPROM selection When setting function options setting is completed, the following message is output to ask the operator whether to generate the HEX file. (1) When debugging the program with EVA6251R (EVA6002), 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 EVA6251R (EVA6002) options. When a series of operations are complete, the sequence returns to the operation selection menu.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
3 FUNCTION OPTION GENERATOR FOG6002
3.5 Sample File
s Example of function option document file
SELECTED
SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED
SELECTED SELECTED
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
SELECTED SELECTED SELECTED SELECTED
SELECTED
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
4 SEGMENT OPTION GENERATOR SOG6002
4.1 SOG6002 Outline
With the 4-bit single-chip E0C6002 microcomputers, the customer may select the LCD segment options. By modifying the mask patterns of the E0C6002 according to the selected options, the system can be customized to meet the specifications of the target system. The Segment Option Generator SOG6002 is a software tool for generating data file used to generate mask patterns. From the data file created with SOG6002, the E0C6002 mask pattern is automatically generated by a general purpose computer. The HEX file for the EVA6251R (EVA6002) segment option ROM is simultaneously generated with the data file.
C002XXX .SEG
Error message Error message
C002XXXS .HEX Segment option HEX file
C002XXXS .DOC Segment option document file
for EVA6251R (EVA6002) use
Fig. 4.1.1 SOG6002 execution flow
The operating method is same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
4.2 Option List
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
4 SEGMENT OPTION GENERATOR SOG6002
4.3 Segment Ports Output Specifications
For the output specification of the segment output ports (SEG0-SEG19), 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 80 segments (60 segments when 1 / 3 duty is selected and 40 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 901 900 932 903 1 912 911 910 923 · When 1 / 3 duty is selected 0 901 900 932 -1 912 911 910 -· When 1 / 2 duty is selected 0 901 900 -- -1 912 911 -- --
s When DC output is selected
The DC output can be selected in units of two terminals and up to 20 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 SEG16 and SEG17, and Pch open drain output is set to SEG18 and SEG19. 16 AE0 -- -- -- C 17 AF0 -- -- -- C 18 AE1 -- -- -- P 19 AF1 -- -- -- P
Only complementary output is enabled as the DC output of the SEG ports of EVA6251R (EVA6002). Therefore, complementary output is enabled even if Pch open drain output is selected. Respond to it by adding external circuits as required.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
4 SEGMENT OPTION GENERATOR SOG6002
4.4 SOG6002 Quick Reference
s Starting command and input / output files
-H: Specifies the segment option document file for input file of SOG6002. C002XXX.SEG (Segment option source file) C002XXXS.DOC (Segment option document file, when -H option use) C002XXXS.DOC (Segment option document file) C002XXXS.HEX (Segment option HEX file)
s Display example
E0C6002 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 EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE EEE EEE EEEEEEEEEE EEEEEEEEEE
Start-up message When SOG6002 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 1991 SEIKO EPSON CORP. SEGMENT OPTION SOURCE FILE NAME IS " C002XXX.SEG " THIS SOFTWARE MAKES NEXT FILES. C002XXXS.HEX C002XXXS.DOC .. .. SEGMENT OPTION HEX FILE. SEGMENT OPTION DOCUMENT FILE.
STRIKE ANY KEY.
SOURCE FILE(S) C0020A0 PLEASE INPUT PLEASE INPUT PLEASE INPUT (ONE LINE IS C0020B0 C0020C0 . . (1) . . (2) . . (3) . . (4)
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
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
4 SEGMENT OPTION GENERATOR SOG6002
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 EVA6251R (EVA6002), 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 EVA6251R (EVA6002) options. When a series of operations are complete, the SOG6002 generates files. If no error is committed while setting segment options, "MAKING FILE IS COMPLETED" will be displayed and the SOG6002 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
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
4 SEGMENT OPTION GENERATOR SOG6002
4.5 Sample Files
s Example of segment option source file
C0020A0.SEG, VER.3.00 EVA6251R (EVA6002) LCD 0 900 901 902 903 1 910 911 912 913 2 920 921 922 923 3 930 931 932 933 4 940 941 942 943 5 950 951 952 953 6 960 961 962 963 7 970 971 972 973 8 980 981 982 983 9 990 991 992 993 10 9A0 9A1 9A2 9A3 11 9B0 9B1 9B2 9B3 12 9C0 9C1 9C2 9C3 13 9D0 9D1 9D2 9D3 14 9E0 9E1 9E2 9E3 15 9F0 9F1 9F2 9F3 16 A00 A01 A02 A03 17 A10 A11 A12 A13 18 A20 -- -- -19 A30 -- -- -SEGMENT DECODE TABLE S S S S S S S S S S S S S S S S S S C C
s Example of segment option document file
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
5 ICE CONTROL SOFTWARE ICS6002
5.1 ICS6002 Outline
The In-circuit Emulator ICE6200 (ICE62R) connects the target board produced by the user via the EVA6251R (EVA6002) 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 (ICE62R) control is done through the ICE Control Software ICS6002. The ICS6002 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 (ICE62R)
ICE6200
RS-232C
EVA6251R (EVA6002)
Target board
Fig. 5.1.1 Debugging system using ICE6200 (ICE62R)
The functions of the ICE6200 (ICE62R) and commands are same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
5.2 ICS6002 Restrictions
Take the following precautions when using the ICS6002.
s ROM Area
The ROM area is limited to a maximum address of 3FFH. Assigning data above the 3FFH address causes an error.
s RAM Area
The RAM area is limited to a maximum address of 0FEH. However, as the following addresses are in the unused area, designation of this area with the ICE commands produces an error. Unused area: 050H to 08FH, 0B0H to 0DFH, 0E1H , 0E2H, 0E9H, 0EAH, 0F2H Memory 090H to 0AFH is display memory 0E0H to 0FEH is I / O memory. (Refer to the "E0C6002 Technical Manual" for details.)
s Undefined Code
The instructions below are not specified for the E0C6002 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 ICS6002, OPTLD command cannot be used.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
5 ICE CONTROL SOFTWARE ICS6002
5.3 ICS6002 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: ICS6002.BAT ICS6002B.BAT (ICS6002J.EXE) (ICS6002W.EXE)
indicates the Return key.
. . . for MS-DOS . . . for PC-DOS . . . for MS-DOS . . . for PC-DOS
ICS6002 (ICS6002J) ICS6002B (ICS6002W) C002XXXL.HEX C002XXXH.HEX C002XXXD.HEX C002XXXC.HEX C002XXXL.HEX C002XXXH.HEX C002XXXD.HEX C002XXXC.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)
Output file:
s Display example
E0C6002 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 ICS6002 is started, the start-up message is displayed, and a self-test is automatically performed. ICS6002 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 ICS6002 program is terminated by entering the Q (Quit) command.
Confirm that the cables connected properly, then operate the ICS6002.
s Error messages
Error message Meaning Recover procedure Switch OFF the host power supply, connect cable, and reapply power. Or switch ON power to ICE6200 (ICE62R). Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200 (ICE62R). Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200 (ICE62R). Convert ROM and FD data with the cross assembler, then restart the ICE6200 (ICE62R). Reenter the proper command. Switch OFF the host power supply, connect cable, and reapply power. COMMUNICATION ERROR ICE6200 (ICE62R) is disconnected OR ICE NOT READY or power 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
E0C6002 DEVELOPMENT TOOL MANUAL
5 ICE CONTROL SOFTWARE ICS6002
s Command list
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 EVA6251R (EVA6002) 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 EVA6251R (EVA6002) CPU internal registers Set EVA6251R (EVA6002) CPU internal registers Reset EVA6251R (EVA6002) CPU Display X, Y, MX and MY Set data for X and Y display and MX, MY
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
5 ICE CONTROL SOFTWARE ICS6002
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 #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 (ICE62R) set condition from file Save ICE6200 (ICE62R) set condition to 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 (ICE62R) instruction Report results of ICE6200 (ICE62R) self diagnostic test means press the RETURN key.
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
6 MASK DATA CHECKER MDC6002
6.1 MDC6002 Outline
The Mask Data Checker MDC6002 is a software tool which checks the program data (C002XXXH.HEX and C002XXXL.HEX) and option data (C002XXXF.DOC and C002XXXS.DOC) created by the user and creates the data file (C6002XXX.PAn) for generating mask patterns. The user must send the file generated through this software tool to Seiko Epson. Moreover, MDC6002 has the capability to restore the generated data file (C6002XXX.PA0) to the original file format.
Object files Function option document file C002XXXF .DOC Segment option document file C002XXXS .DOC
C002XXXH .HEX
C002XXXL .HEX
MDC6002 Mask Data Checker execution (pack)
File for submission
C6002XXX .PAn
SEIKO EPSON
MDC6002 Mask Data Checker execution (unpack)
C002XXXH .PAn
C002XXXL .PAn
C002XXXF .PAn Unpacked files
C002XXXS .PAn
Fig. 6.1.1 MDC6002 execution flow
The operating method is same as for the E0C62 Family. Refer to the "E0C62 Family Development Tool Reference Manual" for details.
6.2 MDC6002 Quick Reference
s Starting command and input / output files
Execution file: Starting command: Input file: MDC6002.EXE MDC6002 C002XXXL.HEX C002XXXH.HEX C002XXXF.DOC C002XXXS.DOC C6002XXX.PAn C6002XXX.PAn C002XXXL.PAn C002XXXH.PAn C002XXXF.PAn C002XXXS.PAn (Object file, low-order) (Object file, high-order) (Function option document file) (Segment option document file) (Packed file) (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:
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
6 MASK DATA CHECKER MDC6002
s Display examples
E0C6002 PACK / UNPACK PROGRAM 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
Start-up message When MDC6002 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.PACK" 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 "C6002XXX.PA0" has been submitted, the pack file name should be entered as "C6002XXX.PA1".) With this, the mask file (C6002XXX.PAn) is generated, and the MDC6002 program will be terminated. Submit this file to Seiko Epson.
Unpacking of data (1) Select "2.UNPACK" in the operation menu. (2) Enter the packed file name. With this, the mask data file (C6002XXX.PAn) is restored to the original file format, and the MDC6002 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.
C0020A0H.PA0 C0020A0L.PA0 C0020A0F.PA0 C0020A0S.PA0
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
6 MASK DATA CHECKER MDC6002
s Error messages Program data error
Error Message Explanation
1. HEX DATA ERROR : NOT COLON. 2. HEX DATA ERROR : DATA LENGTH. (NOT 00-20h) 3. HEX DATA ERROR : ADDRESS. 4. HEX DATA ERROR : RECORD TYPE. (NOT 00) 5. HEX DATA ERROR : 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. 6. HEX DATA ERROR : TOO MANY DATA IN ONE LINE. There are too many data in 1 line. 7. HEX DATA ERROR : CHECK SUM. The checksum is not correct. 8. HEX DATA ERROR : END MARK. The end mark is not : 00000001FF. 9. HEX DATA ERROR : 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.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
APPENDIX A. E0C6002 INSTRUCTION SET
APPENDIX A.
Classification Mnemonic Operand
E0C6002 INSTRUCTION SET
Operation Code Flag Clock Operation
Branch
PSET p s C, s Z, s JPBA CALL s CALZ s RET RETS RETD l
instructions JP
System control Index operation
NOP5 NOP7 INC X Y X, x Y, y
instructions HALT
instructions LD
"" mean "not in E0C6002 Series".
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
APPENDIX A. E0C6002 INSTRUCTION SET
Classification
Mnemonic
Operation Code Operand
Flag Clock 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) XP SP SP-1, M(SP) XH SP SP-1, M(SP) XL SP SP-1, M(SP) YP SP SP-1, M(SP) YH SP SP-1, M(SP) YL SP SP-1, M(SP) F r M(SP), SP SP+1 XP M(SP), SP SP+1 XH M(SP), SP SP+1 XL M(SP), SP SP+1 YP 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 XH XL YH YL F POP r XH XL
"" mean "not in E0C6002 Series".
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
APPENDIX A. E0C6002 INSTRUCTION SET
Classification
Mnemonic
Operation Code Operand
Flag Clock 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
E0C6002 DEVELOPMENT TOOL MANUAL
APPENDIX A. E0C6002 INSTRUCTION SET
Abbreviations used in the explanations have the following meanings.
Symbols associated with registers and memory
A B X A register B register XHL register (low order eight bits of index register IX) Y YHL register (low order eight bits of index register IY) XH XH register (high order four bits of XHL register) XL XL register (low order four bits of XHL register) YH YH register (high order four bits of YHL register) YL YL register (low order four bits of YHL register) XP XP register (high order four bits of index register IX) YP YP register (high order four bits of index register IY) SP Stack pointer SP SPH High-order four bits of stack pointer SP SPL Low-order four bits of stack pointer SP MX, M(X) Data memory whose address is specified with index register IX MY, M(Y) Data memory whose address is specified with index register IY Mn, M(n) Data memory address 000H-00FH (address specified with immediate data n of 00H-0FH) M(SP) Data memory whose address is specified with stack pointer SP r, q Two-bit register code r, q is two-bit immediate data according to the contents of these bits, they indicate registers A, B, and MX and MY (data memory whose addresses are specified with index registers IX and IY) r q Register r1 r0 q1 q0 specified 0 0 0 0 A 0 1 0 1 B 1 0 1 0 MX 1 1 1 1 MY
Symbols associated with program counter
NBP NPP PCB PCP PCS PCSH PCSL New bank pointer New page pointer Program counter bank Program counter page Program counter step Four high order bits of PCS Four low order bits of PCS
Symbols associated with flags
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
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
NAME MSB
APPENDIX
APPENDIX B. E0C6002 RAM MAP
LSB NAME MSB
B. E0C6002 RAM MAP
EPSON
- - - - TM3 TM2 TM1 TM0 TC3 TC2 TC1 TC0 TC7 TC6 TC5 TC4 TC11 TC10 TC9 TC8 TC15 TC14 TC13 TC12 EIK03 EIK02 EIK01 EIK00 - - - - - - - - - - - - R03 R02 R01 R00 P03 P02 P01 P00 C3 C2 C1 C0 C7 C6 C5 C4 C11 C10 C9 C8 C15 C14 C13 C12
LSB NAME MSB
K03 K02 K01 K00
- EIT2 EIT8 EIT32
- IT2 IT8 IT32
LSB NAME MSB
E0C6002 DEVELOPMENT TOOL MANUAL
- XBZR - - - XFOUT1 XFOUT0 ADCLK
APPENDIX C. E0C6002 I / O MEMORY MAP
APPENDIX
Address D3 K03 K02
C. E0C6002 I / O MEMORY MAP
D0 K00 K01 R Name K03 K02 K01 K00 TM3 TM2 TM1 TM0 TC3 TC2 TC1 TC0 TC7 TC6 TC5 TC4 TC11 TC10 TC9 TC8 TC15 TC14 TC13 TC12 EIK03 EIK02 EIK01 EIK00 0 EIT2 EIT8 EIT32 0 0 0 EIAD 0 0 0 IK0 0 IT2 IT8 IT32 Init - - - - - - - - - - - - - - - - - - - - - - - - 0 0 0 0 0 0 0 1 High High High High High High High High 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Enable Enable Enable Enable Enable Enable Enable 0 Low Low Low Low Low Low Low Low 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Mask Mask Mask Mask Mask Mask Mask Comment Input port data K03 Input port data K02 Input port data K01 Input port data K00 Clock timer data 2 Hz Clock timer data 4 Hz Clock timer data 8 Hz Clock timer data 16 Hz Up / down counter data TC3 Up / down counter data TC2 Up / down counter data TC1 Up / down counter data TC0 (LSB) Up / down counter data TC7 Up / down counter data TC6 Up / down counter data TC5 Up / down counter data TC4 Up / down counter data TC11 Up / down counter data TC10 Up / down counter data TC9 Up / down counter data TC8 Up / down counter data TC15 (MSB) Up / down counter data TC14 Up / down counter data TC13 Up / down counter data TC12 Interrupt mask register K03 Interrupt mask register K02 Interrupt mask register K01 Interrupt mask register K00 Interrupt mask register (clock timer) 2 Hz Interrupt mask register (clock timer) 8 Hz Interrupt mask register (clock timer) 32 Hz
Register D2 D1
EIK03
EIK02
EIK00
EIT32
Enable
Interrupt mask register (A / D)
Yes Yes Yes Yes
Interrupt factor flag (K00-K03) Interrupt factor flag (clock timer) 2 Hz Interrupt factor flag (clock timer) 8 Hz Interrupt factor flag (clock timer) 32 Hz
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
APPENDIX C. E0C6002 I / O MEMORY MAP
Address
Register D2 D1 0
HLMOD
Name 0 0 IAD 0 0 R IAD 0 0 ADRUN 0 0 R / W ADRUN R03 R00 R01 R02 BUZZER FOUT R01 BUZZER R / W R00 FOUT P03 P00 P01 P02 P01 R / W P00 C3 C0 C1 C2 C1 R / W C0 C7 C4 C5 C6 C5 R / W C4 C11 C8 C9 C10 C9 R / W C8 C15 C12 C13 C14 C13 R / W C12 0 0 TMRST 0 0 W TMRST HLMOD 0 0 0 0 R 0 CSDC 0 0 0 0 R 0 0 0 IOC 0 0 R / W IOC XBZR XFOUT1 XFOUT0 0 XFOUT1 R / W XFOUT0 0 0 ADCLK 0 0 R / W ADCLK
Comment
Interrupt factor flag (A / D)
Start High High High On High On High High High High 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
A / D conversion Start / Stop 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 Up-counter data C3 Up-counter data C2 Up-counter data C1 Up-counter data C0 (LSB) Up-counter data C7 Up-counter data C6 Up-counter data C5 Up-counter data C4 Up-counter data C11 Up-counter data C10 Up-counter data C9 Up-counter data C8 Up-counter data C15 (MSB) Up-counter data C14 Up-counter data C13 Up-counter data C12
Reset 0
Reset Heavy
- Normal
Clock timer reset Heavy load protection mode register
Static
Dynamic
LCD drive switch
Out 2 kHz
I / O port I / O control register Buzzer frequency control FOUT frequency control FOUT frequency control
65 kHz
32 kHz
A / D clock selection 65 kHz / 32 kHz
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
APPENDIX D. TROUBLESHOOTING
APPENDIX
D. TROUBLESHOOTING
Problem Remedy measures
ICE6200 (ICE62R)
Nothing appears on the screen, or nothing works, after activation.
SOG6002
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.
E0C6002 DEVELOPMENT TOOL MANUAL
EPSON
APPENDIX D. TROUBLESHOOTING
Problem
Remedy measures
ASM6002
An R error occurs although the final page is passed.
MDC6002
Activation is impossible.
EVA6251R The EVA6251R (EVA6002) does not (EVA6002) work when it is used independently.
Target segment does not light.
EPSON
E0C6002 DEVELOPMENT TOOL MANUAL
International Sales Operations
AMERICA
EPSON ELECTRONICS AMERICA, INC. - HEADQUARTERS 1960 E. Grand Avenue EI Segundo, CA 90245, U.S.A. Phone: +1-310-955-5300 Fax: +1-310-955-5400
- CHINA EPSON (CHINA) CO., LTD.
28F, Beijing Silver Tower 2# North RD DongSanHuan ChaoYang District, Beijing, CHINA Phone: 64106655 Fax: 64107320
- SALES OFFICES West
150 River Oaks Parkway San Jose, CA 95134, U.S.A. Phone: +1-408-922-0200 Fax: +1-408-922-0238
SHANGHAI BRANCH
4F, Bldg., 27, No. 69, Gui Jing Road Caohejing, Shanghai, CHINA Phone: 21-6485-5552 Fax: 21-6485-0775
Central
101 Virginia Street, Suite 290 Crystal Lake, IL 60014, U.S.A. Phone: +1-815-455-7630 Fax: +1-815-455-7633
- 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
Northeast
301 Edgewater Place, Suite 120 Wakefield, MA 01880, U.S.A. Phone: +1-781-246-3600 Fax: +1-781-246-5443
- 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
Southeast
3010 Royal Blvd. South, Suite 170 Alpharetta, GA 30005, U.S.A. Phone: +1-877-EEA-0020 Fax: +1-770-777-2637
HSINCHU OFFICE
13F-3, No. 295, Kuang-Fu Road, Sec. 2 HsinChu 300, TAIWAN Phone: 03-573-9900 Fax: 03-573-9169
EUROPE
EPSON EUROPE ELECTRONICS GmbH - HEADQUARTERS Riesstrasse 15 80992 Muenchen, GERMANY Phone: +49-(0)89-14005-0
- SINGAPORE EPSON SINGAPORE PTE., LTD.
No. 1 Temasek Avenue, #36-00 Millenia Tower, SINGAPORE 039192 Phone: +65-337-7911 Fax: +65-334-2716
Fax: +49-(0)89-14005-110
- GERMANY SALES OFFICE
Altstadtstrasse 176 51379 Leverkusen, GERMANY Phone: +49-(0)217-15045-0 Fax: +49-(0)217-15045-10
- KOREA SEIKO EPSON CORPORATION KOREA OFFICE
50F, KLI 63 Bldg., 60 Yoido-Dong Youngdeungpo-Ku, Seoul, 150-010, KOREA Phone: 02-784-6027 Fax: 02-767-3677
- UNITED KINGDOM UK BRANCH OFFICE
2.4 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 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 EPSON Electronic Devices Website
http://www.epson.co.jp / device /
First issue JUNE 1997, Printed JUNE 1999 in Japan M A