MF1046-03 CMOS 4-BIT SINGLE CHIP MICROCOMPUTER S5U1C60N03D Manual (Development Software Tool for S1C60N03)
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.
The information of the product number change Starting April 1, 2001, the product number will be changed as listed below. To order from April 1, 2001 please use the new product number. For further information, please contact Epson sales representative.
CONTENTS PREFACE This manual mainly explains the outline of the development support tool for the 4-bit Single Chip Microcomputer S1C60N03. Refer to the "S1C62 Family Development Tool Reference Manual" for the details (common to all models) of each development support tool. Manuals for hardware development tools are separate, so you should also refer to the below manuals.
CONTENTS APPENDIX A. S1C60N03 INSTRUCTION SET _______________________ 31 B. S1C60N03 RAM MAP _______________________________ 35 C. S1C60N03 I/O MEMORY MAP _______________________ 36 D. TROUBLESHOOTING ______________________________ 37 E.
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL 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 S5U1C60N03D The below software are included in the product of the S1C60N03 development support tool S5U1C60N03D. 1. 2. 3. 4. 5. Cross Assembler ASM6003 .......................................... Function Option Generator FOG6003 .....................
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL 1.3 Development Flow Figure 1.3.1 shows the development flow through the S5U1C60N03D. *1 *1 Determination of software specifications Determination of hardware specifications *2, *3 *3, *4 Flow chart generation and coding Function option list generation Function option list Coding sheet *1, *5 Creation of target board Segment option list Source file generation by using editor Source file generation by using editor C003XXX .
1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL 1.4 Installation The S5U1C60N03D tools are included on the CD-ROM of the S5U1C62000A (S1C60/62 Family Assembler Package), and they can be installed in your hard disk using the installer (Setup.exe) on the CD-ROM. Refer to the "S5U1C62000A Manual" for how to install the S5U1C60N03D tools.
2 CROSS ASSEMBLER ASM6003 2 CROSS ASSEMBLER ASM6003 2.1 ASM6003 Outline The ASM6003 cross assembler is an assembler program for generating the machine code used by the S1C60N03 4-bit, single-chip microcomputers. The Cross Assembler ASM6003 will assemble the program source files which have been input by the user's editor and will generate an object file in Intel-Hex format and assembly list file.
2 CROSS ASSEMBLER ASM6003 2.3 ASM6003 Quick Reference _ indicates a blank. ■ Starting command and input/output files indicates the Return key. A parameter enclosed by [ ] can be omitted. Execution file: ASM6003.EXE Starting command: ASM6003_ [drive-name:] source-file-name [.shp]_ [-N] .shp s h p Option: -N Specifies the file I/O drives. Specifies the drive from which the source file is to be input. (A–P, @) Specifies the drive to which the object file is to be output.
2 CROSS ASSEMBLER ASM6003 ■ Pseudo-instructions Pseudo-instruction Meaning Example of use EQU (Equation) To allocate data to label SET (Set) DW (Define Word) To allocate data to label (data can be changed) To define ROM data ORG (Origin) To define location counter PAGE (Page) To define boundary of page SECTION (Section) To define boundary of section EQU EQU SET SET DW DW ORG ORG PAGE PAGE SECTION END (End) To terminate assembly END MACRO (Macro) To define macro LOCAL (Local) E
3 FUNCTION OPTION GENERATOR FOG6003 3 FUNCTION OPTION GENERATOR FOG6003 3.1 FOG6003 Outline With the 4-bit single-chip S1C60N03 microcomputers, the customer may select 10 hardware options. By modifying the mask patterns of the S1C60N03 according to the selected options, the system can be customized to meet the specifications of the target system. The Function Option Generator FOG6003 is a software tool for generating data files used to generate mask patterns.
3 FUNCTION OPTION GENERATOR FOG6003 6. TIMER INTERRUPT FREQUENCY • INTERRUPT FREQUENCY ................ ■ 1. 32/16/2 Hz Interrupt ■ 2. 64/16/2 Hz Interrupt 7. INPUT PORT PULL DOWN RESISTOR • K00 • K01 • K02 • K03 ......................................................... ......................................................... ......................................................... ......................................................... ■ ■ ■ ■ ■ ■ ■ ■ 1. With Resistor 1. With Resistor 1.
3 FUNCTION OPTION GENERATOR FOG6003 3.3 Option Specifications and Selection Message Screen that can be selected as function options set on the S1C60N03 are shown below, and their specifications are also described. 1 Device type *** OPTION Select the chip specification. There are two models: E0C6003 (S1C60N03) (3 V supply voltage) and E0C60L03 (S1C60L03) (1.5 V supply voltage, low-power specification). NO.1 *** --- DEVICE TYPE --1. E0C6003 2. E0C60L03 PLEASE SELECT NO.(1) ? 2 2.
3 FUNCTION OPTION GENERATOR FOG6003 VDD VL1 VL2 VL3 COM0 VDD VL1 VL2 VL3 COM0 COM1 COM1 COM1 COM2 COM2 COM2 COM3 COM3 COM3 1/4 duty drive waveform VDD VL1 VL2 VL3 COM0 1/3 duty drive waveform 1/2 duty drive waveform Fig. 3.3.1 Drive waveform from COM terminals (1/3 bias) VDD VL1, VL2 VL3 COM0 VDD VL1, VL2 VL3 COM0 COM1 COM1 COM1 COM2 COM2 COM2 COM3 COM3 COM3 1/4 duty drive waveform VDD VL1, VL2 VL3 COM0 1/3 duty drive waveform 1/2 duty drive waveform Fig. 3.3.
3 FUNCTION OPTION GENERATOR FOG6003 3 OSC1 system clock *** OPTION 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.
3 FUNCTION OPTION GENERATOR FOG6003 6 Timer interrupt frequency *** OPTION NO.6 *** --- TIMER INTERRUPT FREQUENCY --INTERRUPT FREQUENCY 1. 32/16/2 HZ INTERRUPT 2. 64/16/2 HZ INTERRUPT PLEASE SELECT NO.(1) ? 1 INTERRUPT FREQUENCY 1. 32/16/2 HZ INTERRUPT SELECTED Select timer interrupt frequencies. Either 32 Hz or 64 Hz can be selected for one of among three interrupt frequencies. The EIT32 interrupt mask register (0F4H•D0) is used for controlling the 32 Hz or 64 Hz interrupt.
3 FUNCTION OPTION GENERATOR FOG6003 8 R00 specification *** OPTION Select the output specification for the R00 terminal. Either complementary output or Pch open drain output may be selected. When "D.C." (DC output) is selected, R00 becomes a regular output port. When "/BZ R00" (buzzer inverted output, R00 control) is selected, by writing "1" to the R00 register, clock with frequency specified through the software is generated from the R00 terminal.
3 FUNCTION OPTION GENERATOR FOG6003 9 R01 specification *** OPTION NO.9 *** --- R01 SPECIFICATION --OUTPUT TYPE 1. D.C. 2. BZ OUTPUT PLEASE SELECT NO.(1) ? 2 OUTPUT SPECIFICATION 1. COMPLEMENTARY 2. PCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 OUTPUT TYPE OUTPUT SPECIFICATION 2. BZ OUTPUT SELECTED 1. COMPLEMENTARY SELECTED VDD R01 output R01 register 0 1 0 VSS Fig. 3.3.10 Output waveform at DC output selection VDD Buzzer output R01 register 0 1 0 VSS Fig. 3.3.
3 FUNCTION OPTION GENERATOR FOG6003 3.4 FOG6003 Quick Reference ■ Starting command and input/output files Execution file: FOG6003.EXE Starting command: FOG6003 Input file: C003XXXF.DOC (Function option document file, when modifying) Output file: C003XXXF.DOC (Function option document file) C003XXXF.HEX (Function option HEX file) indicates the Return key. ■ Display example *** E0C6003 FUNCTION OPTION GENERATOR. --- Ver 1.
3 FUNCTION OPTION GENERATOR FOG6003 *** OPERATION SELECT MENU *** 1. INPUT NEW FILE 2. EDIT FILE 3. RETURN TO DOS PLEASE SELECT NO.? 2 *** SOURCE FILE(S) *** C0030A0 C0030B0 PLEASE INPUT PLEASE INPUT PLEASE INPUT (ONE LINE IS PLEASE INPUT : . . (1) C0030C0 . . (2) . . (3) FILE NAME? C0030A0 USER'S NAME? ANY COMMENT 50 CHR)? EDIT NO.? 4 . . (4) . . (5) (Modifying function option settings) : PLEASE INPUT EDIT NO.
3 FUNCTION OPTION GENERATOR FOG6003 3.5 Sample File ■ Example of function option document file * * * * * * * * * * * * * * * E0C6003 FUNCTION OPTION DOCUMENT V 1.00 FILE NAME USER’S NAME INPUT DATE C0030A0F.DOC SEIKO EPSON CORP. 1997/03/03 COMMENT FUJIMI PLANT 281 FUJIMI SUWA-GUN NAGANO-KEN 399-0293 JAPAN TEL 0266-61-1211 FAX 0266-61-1273 OPTION NO.1 < DEVICE TYPE > E0C60L03 -------------------- SELECTED OPT0101 02 * * OPTION NO.
3 FUNCTION OPTION GENERATOR FOG6003 OPT0805 02 OPT0806 01 * * OPTION NO.9 * < R01 SPECIFICATION > * OUTPUT TYPE BZ OUTPUT ------------------* OUTPUT SPECIFICATION COMPLEMENTARY --------------OPT0901 02 OPT0902 01 * * OPTION NO.10 * < R02, R03 OUTPUT SPECIFICATION > * R02 OUTPUT SPECIFICATION COMPLEMENTARY --------------* R03 OUTPUT SPECIFICATION COMPLEMENTARY --------------OPT1001 01 OPT1002 01 * * * * SEIKO EPSON’S AREA * * * * OPTION NO.11 OPT1101 01 OPT1102 01 * * OPTION NO.12 OPT1201 01 * * OPTION NO.
4 SEGMENT OPTION GENERATOR SOG6003 4 SEGMENT OPTION GENERATOR SOG6003 4.1 SOG6003 Outline With the 4-bit single-chip S1C60N03 microcomputers, the customer may select the LCD segment options. By modifying the mask patterns of the S1C60N03 according to the selected options, the system can be customized to meet the specifications of the target system. The Segment Option Generator SOG6003 is a software tool for generating data file used to generate mask patterns.
4 SEGMENT OPTION GENERATOR SOG6003 4.3 Segment Ports Output Specifications For the output specification of the segment output ports SEG0–SEG14, 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.
4 SEGMENT OPTION GENERATOR SOG6003 4.4 SOG6003 Quick Reference ■ Starting command and input/output files _ indicates a blank. indicates the Return key. A parameter enclosed by [ ] can be omitted. Execution file: SOG6003.EXE Starting command: SOG6003_ [-H] Option: -H: Specifies the segment option document file for input file of SOG6003. Input file: C003XXX.SEG (Segment option source file) C003XXXS.DOC (Segment option document file, when -H option use) Output file: C003XXXS.
4 SEGMENT OPTION GENERATOR SOG6003 END OF OPTION SETTING. DO YOU MAKE HEX FILE (Y/N) ? Y . . (1) *** OPTION EPROM SELECT MENU *** 1. 2. 3. 4. 27C64 27C128 27C256 27C512 . . (2) PLEASE SELECT NO.? 3 3. 27C256 SELECTED MAKING FILE IS COMPLETED. EPROM selection When selecting file is completed, the following message is output to ask the operator whether to generate the HEX file. (1) When debugging the program with the evaluation board, HEX file is needed, so enter "Y ".
4 SEGMENT OPTION GENERATOR SOG6003 4.5 Sample Files ■ Example of segment option source file ; C0030A0.SEG, VER.1.
5 ICE CONTROL SOFTWARE ICS6003 5 ICE CONTROL SOFTWARE ICS6003 5.1 ICS6003 Outline The In-Circuit Emulator (S5U1C62000H) connects the target board produced by the user via the evaluation board (S5U1C62N37E) and performs real time target system evaluation and debugging by passing through the RS-232C from the host computer and controlling it. The operation on the host computer side and ICE (S5U1C62000H) control is done through the ICE Control Software ICS6003.
5 ICE CONTROL SOFTWARE ICS6003 5.3 ICS6003 Quick Reference ■ Starting command and input/output files indicates the Return key. Execution file: ICS6003B.BAT (ICS6003W.EXE) Starting command: ICS6003B (ICS6003W) Input file: C003XXXL.HEX C003XXXH.HEX C003XXXD.HEX C003XXXC.HEX (Object file, low-order) (Object file, high-order) (Data RAM file) (Control file) Output file: C003XXXL.HEX C003XXXH.HEX C003XXXD.HEX C003XXXC.
5 ICE CONTROL SOFTWARE ICS6003 ■ Command list Item No.
5 ICE CONTROL SOFTWARE ICS6003 Item No.
6 MASK DATA CHECKER MDC6003 6 MASK DATA CHECKER MDC6003 6.1 MDC6003 Outline The Mask Data Checker MDC6003 is a software tool which checks the program data (C003XXXH.HEX and C003XXXL.HEX) and option data (C003XXXF.DOC and C003XXXS.DOC) created by the user and creates the data file (C6003XXX.PAn) for generating mask patterns. The user must send the file generated through this software tool to Seiko Epson. Moreover, MDC6003 has the capability to restore the generated data file (C6003XXX.
6 MASK DATA CHECKER MDC6003 ■ Display examples *** E0C6003 PACK / UNPACK PROGRAM Ver 1.
6 MASK DATA CHECKER MDC6003 ■ Error messages Program data error Error Message 1. 2. 3. 4. 5. 6. 7. 8. 9. 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 : : : : : : : : : Explanation NOT COLON. DATA LENGTH. (NOT 00-20h) ADDRESS. RECORD TYPE. (NOT 00) DATA. (NOT 00-FFh) TOO MANY DATA IN ONE LINE. CHECK SUM. END MARK. DUPLICATE. There is no colon. The data length of 1 line is not in the 00–20H range.
APPENDIX A. S1C60N03 INSTRUCTION SET APPENDIX A.
APPENDIX A.
APPENDIX A.
APPENDIX A. S1C60N03 INSTRUCTION SET Abbreviations used in the explanations have the following meanings.
S5U1C60N03D MANUAL (DEVELOPMENT SOFTWARE TOOL FOR S1C60N03) EPSON F E 3 2 L LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB K03 K02 K01 K00 0 R03 R02 R01 R00 1 TM3 TM2 TM1 TM0 2 EIK03 EIK02 EIK01 EIK00 3 TMRST EIT2 EIT16 EIT32 4 – – – IK0 5 – IT2 IT16 IT32 6 8 XBZR LON – – – XFOUT1 XFOUT0 CSDC 7 – – – – 9 – – – – A – – – – B – – – – C – – – – D – – – – E – – – – F APPENDIX 1 P H 0 0 PROGRAM NAME: APPENDIX B. S1C60N03 RAM MAP B.
APPENDIX C. S1C60N03 I/O MEMORY MAP APPENDIX Address C.
APPENDIX D. TROUBLESHOOTING APPENDIX Tool ICE S5U1C62000H D. TROUBLESHOOTING Problem Nothing appears on the screen, or nothing works, after activation. The ICE fuse cut immediately after activation. appears on the screen immediately after activation. appears on the screen immediately after activation. Immediate values A (10) and B (11) cannot be entered correctly with the A command. is displayed by the SD command.
APPENDIX D. TROUBLESHOOTING Tool Problem ASM6003 An R error occurs although the final page is passed. MDC6003 Activation is impossible. Evaluation The evaluation board does not work when it is used independently. board S5U1C62N37E Target segment does not light. 38 Remedy measures The cross assembler is designed to output "R error" every time the page is changed. Use a pseudo-instruction to set the memory, such as ORG or PAGE, to change the page.
APPENDIX E. DEBUGGING FOR 1/2 DUTY DRIVE ON EVALUATION BOARD APPENDIX E. DEBUGGING FOR 1/2 DUTY DRIVE ON EVALUATION BOARD The evaluation board (S5U1C62N37E) is used to debug S1C60N03 systems. However, the evaluation board cannot output 1/2 duty signal to drive LCD. When debugging a S1C60N03 system that uses a 1/2 duty drive, it should be done with the following procedure. 1. Set 1/3 duty function option using the FOG6003. 2. Assign the segments using the SOG6003.
International Sales Operations AMERICA ASIA EPSON ELECTRONICS AMERICA, INC. EPSON (CHINA) CO., LTD. - HEADQUARTERS - 28F, Beijing Silver Tower 2# North RD DongSanHuan ChaoYang District, Beijing, CHINA Phone: 64106655 Fax: 64107319 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 - SALES OFFICES West 1960 E.
S5U1C60N03D Manual (Development Software Tool for S1C60N03) ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epson.co.