NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
MF731-02 E0C6247 E0C62 EVA6247 ICE6200 E0C6200/6200A DEV6247 DMS6200 ASM6247 - Datasheet Archive
CMOS 4-BIT SINGLE CHIP MICROCOMPUTER E0C6247 DEVELOPMENT TOOL MANUAL NOTICE No part of this material may be reproduced or
MF731-02 MF731-02 CMOS 4-BIT SINGLE CHIP MICROCOMPUTER E0C6247 E0C6247 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". © SEIKO EPSON CORPORATION 1998 All rights reserved. E0C6247 E0C6247 Development Tool Manual PREFACE This manual mainly explains the outline of the development support tool for the 4-bit Single Chip Microcomputer E0C6247 E0C6247. Refer to the "E0C62 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 E0C62 Family Development Tool Reference Manual EVA6247 EVA6247 Manual ICE6200 ICE6200 Hardware Manual Development procedure E0C62 E0C62 Family Technical Guide Device (E0C6247 E0C6247) Instructions E0C6247 E0C6247 Technical Manual E0C6200/6200A E0C6200/6200A Core CPU Manual CONTENTS 1 COMPOSITION OF DEVELOPMENT SUPPORT TOOL _ 1 1.1 1.2 1.3 1.4 Configuration of DEV6247 DEV6247 . 1 Developmental Environment . 1 Development Flow . 2 Production of Execution Disk . 3 2 DEVELOPMENT TOOL MANAGEMENT SYSTEM DMS6200 DMS6200 _ 4 2.1 2.2 DMS6200 DMS6200 Outline . 4 DMS6200 DMS6200 Quick Reference . 4 3 CROSS ASSEMBLER ASM6247 ASM6247 _ 5 3.1 3.2 3.3 ASM6247 ASM6247 Outline . 5 E0C6247 E0C6247 Restrictions . 5 ASM6247 ASM6247 Quick Reference . 6 4 FUNCTION OPTION GENERATOR FOG6247 FOG6247 _ 8 4.1 4.2 4.3 4.4 4.5 FOG6247 FOG6247 Outline . 8 E0C6247 E0C6247 Option List . 8 Option Specifications and Selection Message . 10 FOG6247 FOG6247 Quick Reference . 15 Sample File . 17 5 ICE CONTROL SOFTWARE ICS6247 ICS6247 _ 20 5.1 5.2 5.3 ICS6247 ICS6247 Outline . 20 ICS6247 ICS6247 Restrictions . 20 ICS6247 ICS6247 Quick Reference . 22 6 MASK DATA CHECKER MDC6247 MDC6247 _ 25 6.1 6.2 MDC6247 MDC6247 Outline . 25 MDC6247 MDC6247 Quick Reference . 25 APPENDIX A. E0C6247 E0C6247 INSTRUCTION SET _ 28 B. E0C6247 E0C6247 RAM MAP _ 32 C. E0C6247 E0C6247 I/O MEMORY MAP _ 51 D. TROUBLESHOOTING _ 59 E0C6247 E0C6247 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 DEV6247 DEV6247 The below software are included in the product of the E0C6247 E0C6247 development support tool DEV6247 DEV6247. 1. 2. 3. 4. 5. Development Tool Management System DMS6200 DMS6200 . Cross Assembler ASM6247 ASM6247 . Function Option Generator FOG6247 FOG6247 . ICE Control Software ICS6247 ICS6247 . Mask Data Checker MDC6247 MDC6247 . Menu selection for each software / start-up software Cross assembler for program preparation Function option data preparation program ICE control program Mask data preparation program 1.2 Developmental Environment The software product of the development support tool DEV6247 DEV6247 operates on the following host systems: · IBM PC/AT (at least PC-DOS Ver. 2.0) · NEC PC-9801 PC-9801 Series (at least MS-DOS Ver. 3.1) Host computer [ PC-9801 PC-9801 Series] IBM PC/AT When developing the E0C6247 E0C6247, 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. DEV6247 DEV6247 EPSON 5" 2HD DEV6247 DEV6247 DMS6200 DMS6200 ASM6247 ASM6247 FOG6247 FOG6247 ICS6247 ICS6247 MDC6247 MDC6247 SMC6247 SMC6247 Series Development Tool ICE6200 ICE6200 RS-232C RS-232C EPSON 5" 2HD EDLIN MS-DOS/PC-DOS Editor · P-ROM writer · Printer Note EVA6247 EVA6247 ICE6200 ICE6200 Target board To be prepared by the user Fig. 1.2.1 System configuration The DEV6247 DEV6247 system requires a host computer with a RAM capacity of about 140K bytes. Since the ICE6200 ICE6200 is connected to the host computer with a RS-232C RS-232C serial interface, adapter board for asynchronous communication will be required depending on the host computer used. 1 E0C6247 E0C6247 Development Tool Manual (Introduction) 1.3 Development Flow Figure 1.3.1 shows the development flow through the DEV6247 DEV6247. *1, *2 *1 Determination of software specifications Determination of hardware specifications *2, *3, *4 *4, *5 *4, *5 Development support tool selection on menu of Development Tool Management System DMS6200 DMS6200 *1, *6 Function option list generation Flow chart generation and coding Creation of target board Function option list Coding sheet Source file generation by using editor C247XXX C247XXX .DAT Program source file *4, *5 *4, *5 Cross Assembler ASM6247 ASM6247 execution Function Option Generator FOG6247 FOG6247 execution C247XXX C247XXX .PRN Assembly list C247XXXL C247XXXL Object file .HEX C247XXXH C247XXXH .HEX C247XXXF C247XXXF .DOC Function option document file C247XXXF C247XXXF .HEX Function option HEX file Function option ROM (one) ICE6200 ICE6200 *4, *5 Debugging with ICE Control Software ICS6247 ICS6247 EVA6247 EVA6247 Target board ICE6200 ICE6200 *4, *7 Debugging completion *6 *4, *5 Mask Data Checker MDC6247 MDC6247 execution C6247XXX C6247XXX File for submission .PAn SEIKO EPSON Fig. 1.3.1 DEV6247 DEV6247 development flow Concerning file names All the input-output file name for the each development support tool commonly use "C247XXX C247XXX". 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 2 E0C6247 E0C6247 Technical Hardware Manual E0C6247 E0C6247 Technical Software Manual E0C6200/6200A E0C6200/6200A Core CPU Manual E0C62 E0C62 Family Development Tool Reference Manual *5 E0C6247 E0C6247 Development Tool Manual (this manual) *6 EVA6247 EVA6247 Manual *7 ICE6200 ICE6200 Hardware Manual E0C6247 E0C6247 Development Tool Manual (Introduction) 1.4 Production of Execution Disk Execution files for each software development support tool and batch and parameter files for the ICE6200 ICE6200 are recorded in the DEV6247 DEV6247 floppy disk. The content of the files contained in the DEV6247 DEV6247 floppy disk are shown below. PC-DOS version ASM6247 ASM6247.EXE DMS6200 DMS6200.EXE FOG6247 FOG6247.EXE ICS6247B ICS6247B.BAT ICS6247W ICS6247W.EXE ICS6247P ICS6247P.PAR MDC6247 MDC6247.EXE MS-DOS version ASM6247 ASM6247.EXE DMS6200 DMS6200.EXE FOG6247 FOG6247.EXE ICS6247 ICS6247.BAT ICS6247J ICS6247J.EXE ICS6247P ICS6247P.PAR MDC6247 MDC6247.EXE Contents Cross Assembler execution file Development Tool Management System execution file Function Option Generator execution file ICE Control Software batch file ICE Control Software execution file ICE Control Software parameter file Mask Data Checker execution file 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 (DEV6247 DEV6247, 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 MDC6247 MDC6247 will handle many files. Note The driver for the RS-232C 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 DMS6200 menu. Example: Copying into a floppy disk Insert the original disk into the A drive and the formatted disk to be copied into B drive, then execute the DISKCOPY command. A>DISKCOPY A: B: Copying into a hard disk (C drive) Make a subdirectory (DEV6247 DEV6247), then insert the original disk into the A drive and execute the COPY command. C\>MD DEV6247 DEV6247 C\>CD DEV6247 DEV6247 C\DEV6247 DEV6247\>COPY A:*.* Example: Setting of FILES (CONFIG.SYS) C\>TYPE CONFIG.SYS : FILES=20 : s In "ICS6247 ICS6247(B).BAT" the batch process is indicated such RS-232C RS-232C Setting (PC-DOS version) that the ICS6247J ICS6247J(W).EXE is executed after the execution MODE COM1: 4800, n, 8, 1, p of the command for the setting of the RS-232C 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 DMS6200 menu. The SPEED (MS-DOS) or MODE (PC-DOS) command is used for setting the RS-232C 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. Note The DMS6200 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. 3 E0C6247 E0C6247 Development Tool Manual (DMS6200 DMS6200) 2 DEVELOPMENT TOOL MANAGEMENT SYSTEM DMS6200 DMS6200 2.1 DMS6200 DMS6200 Outline The DMS6200 DMS6200 (Development Tool Management System) is a software which selects the DEV6247 DEV6247 software development support tool and the program such as an editor in menu form and starts it. In this way the various software DMS6200 DMS6200 frequently executed during debugging can be effectively Menu selections activated. Fig. 2.1.1 ASM6247 ASM6247 FOG6247 FOG6247 ICS6247 ICS6247 MDC6247 MDC6247 Editor etc. DMS6200 DMS6200 execution flow To DOS Refer to the "E0C62 E0C62 Family Development Tool Reference Manual" for detailes of the operation. 2.2 DMS6200 DMS6200 Quick Reference s Starting command Execution file: DMS6200 DMS6200.EXE Starting command: DMS6200 DMS6200 indicates the Return key. s Display examples * E0C6200 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 Start message When DMS6200 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. (C) Copyright 1991 SEIKO EPSON CORP. STRIKE ANY KEY. Menu screen (PC-DOS Version) DMS6200 DMS6200 Version 1.0 1) 2) 3) 4) 5) Copyright(C) SEIKO EPSON CORP. 1991. ASM6247 ASM6247 .EXE FOG6247 FOG6247 .EXE ICS6247B ICS6247B.BAT ICS6247W ICS6247W.EXE MDC6247 MDC6247 .EXE Input Number ? [1 ] 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 DMS6200 DMS6200 Version 1.0 1) 2) 3) 4) 5) 6) 7) C2470A0 C2470A0 .DAT C2470A0 C2470A0 .PRN C2470A0F C2470A0F.DOC C2470A0F C2470A0F.HEX C2470A0H C2470A0H.HEX C2470A0L C2470A0L.HEX C62470A0 C62470A0.PA0 Input Number ? [1 ] Edit > [ASM6247 ASM6247 C2470A0 C2470A0 4 Copyright(C) SEIKO EPSON CORP. 1991. ] To starting ASM6247 ASM6247, 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. E0C6247 E0C6247 Development Tool Manual (ASM6247 ASM6247) 3 CROSS ASSEMBLER ASM6247 ASM6247 3.1 ASM6247 ASM6247 Outline The ASM6247 ASM6247 cross assembler is an assembler program for generating the machine code used by the E0C6247 E0C6247 4-bit, singlechip microcomputers. The Cross Assembler ASM6247 ASM6247 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. In this assembler, program modularization has been made possible through macro definition functions and programming independent of the ROM page structure has been made possible through the auto page set function. In addition, consideration has also been given to precise error checks for program capacity (ROM capacity) overflows, undefined codes and the like, and for debugging of such things as label tables for assembly list files and cross reference table supplements. A>EDLIN C247XXX C247XXX.DAT Create the source file C247XXX C247XXX .DAT A>ASM6247 ASM6247 C247XXX C247XXX Execute the cross assembler Error message Error message The format of the source file and its operating method are same as for the E0C62 E0C62 Family. Refer to the "E0C62 E0C62 Family Development Tool Reference Manual" for details. C247XXX C247XXX .PRN Assembly listing file C247XXXL C247XXXL .HEX C247XXXH C247XXXH .HEX Object file Fig. 3.1.1 ASM6247 ASM6247 execution flow 3.2 E0C6247 E0C6247 Restrictions Note the following when generating a program by the E0C6247 E0C6247: s ROM area The capacity of the E0C6247 E0C6247 ROM is 8,192 steps (0000H 0000H to 1FFFH). Therefore, the specification range of the memory setting pseudo-instructions and PSET instruction as follows. Memory configuration: Bank: Bank 0 and bank 1 Page: Bank 0 . 16 pages (0 to 0FH), bank 1 . 16 pages (0 to 0FH) Significant specification range: ORG pseudo-instruction: PAGE pseudo-instruction: BANK pseudo-instruction: PSET instruction: 0000H 0000H to 1FFFH 00H to 0FH 0H and 1H 00H to 0FH s RAM area The capacity of the E0C6247 E0C6247 RAM is 1,792 words (000H to AFFH, 4 bits/word). However, note the following points when programming. The following addresses become unused area. Memory access is invalid when the unused area is specified. Page 0 to 3: 82H83H, 85H87H, 8FH, 93H, 97H, 9FH, ABHAFH, B3H, B7H, BBH, C3HC7H, CEHCFH, D3HDFH, E4HE7H, EFH, F5HF7H, FDHFFH Example: LD LD LD A,2 XP,A X,0D5H 2D5H 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. s Undefined codes The SLP instruction has not been defined in the E0C6247 E0C6247 instruction sets. 5 E0C6247 E0C6247 Development Tool Manual (ASM6247 ASM6247) 3.3 ASM6247 ASM6247 Quick Reference _ indicates a blank. indicates the Return key. A parameter enclosed by [ ] can be omitted. s Starting command and input/output files Execution file: ASM6247 ASM6247.EXE Starting command: ASM6247 ASM6247_ [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. (AP, @) Specifies the drive to which the object file is to be output. (AP, @, Z) Specifies the drive to which the assembly listing file is to be output. (AP, @, Z) @: Current drive, Z: File is not generated The code (FFH) in the undefined area of program memory is not created. Input file: C247XXX C247XXX.DAT Output file: C247XXXL C247XXXL.HEX (Object file, low-order) C247XXXH C247XXXH.HEX (Object file, high-order) C247XXX C247XXX.PRN (Assembly listing file) (Source file) s Display example * E0C6247 E0C6247 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 " C247XXX C247XXX.DAT ". THIS SOFTWARE MAKES NEXT FILES. C247XXXH C247XXXH.HEX C247XXXL C247XXXL.HEX C247XXX C247XXX .PRN . . . HIGH BYTE OBJECT FILE. LOW BYTE OBJECT FILE. ASSEMBLY LIST FILE. DO YOU NEED AUTO PAGE SET? (Y/N) Y . . . (1) DO YOU NEED CROSS REFERENCE TABLE? (Y/N) Y . . . (2) When ASM6247 ASM6247 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, ASM6247 ASM6247 assembles the source file. To suspend execution, press the "CTRL" and "C" keys together at stage (1) or (2). s Operators Arithmetic operators Monadic positive +a Monadic negative -a Addition a+b Subtraction a-b Multiplication a*b Division a/b a_MOD_b Remainder of a/b a_SHL_b Shifts a b bits to the left a_SHR_b Shifts a b bits to the right Separates the high-order eight bits from a HIGH_a Separates the low-order eight bits from a LOW_a 6 Logical operators a_AND_b Logical product a_OR_b Logical sum a_XOR_b Exclusive logical sum Logical negation NOT_a Relational operators True when a is equal to b a_EQ_b True when a is not equal to b a_NE_b True when a is less than b a_LT_b True when a is less than or equal to b a_LE_b True when a is greater than b a_GT_b True when a is greater than or equal to b a_GE_b E0C6247 E0C6247 Development Tool Manual (ASM6247 ASM6247) s 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 BANK (Bank) To define boundary of bank PAGE (Page) To define boundary of page SECTION (Section) To define boundary of section EQU EQU SET SET DW DW ORG ORG BANK BANK PAGE PAGE SECTION END (End) To terminate assembly END MACRO (Macro) To define macro LOCAL (Local) ENDM (End Macro) To make local specification of label during macro definition To end macro definition ABC BCD ABC ABC ABC BCD CHECK LOCAL LOOP 9 ABC+1 0001H 0001H 0002H 0002H 'AB' 0FFBH 100H 256 0 1H 1H 3 MACRO LOOP CP JP ENDM DATA CHECK 1 MX,DATA NZ,LOOP s Error messages Error message S U M O (Syntax Error) (Undefined Error) (Missing Label) (Operand Error) P R (Phase Error) (Range Error) ! (Warning) FILE NAME ERROR FILE NOT PRESENT DIRECTORY FULL FATAL DISK WRITE ERROR LABEL TABLE OVERFLOW 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. · A statement exceeded a page boundary although its location was not specified. · 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). CROSS REFERENCE TABLE OVERFLOW The label/symbol reference count exceeded the cross-reference table capacity (only when the cross-reference table is generated). 7 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 4 FUNCTION OPTION GENERATOR FOG6247 FOG6247 4.1 FOG6247 FOG6247 Outline With the 4-bit single-chip E0C6247 E0C6247 microcomputers, the customer may select nine hardware options. By modifying the mask patterns of the E0C6247 E0C6247 according to the selected options, the system can be customized to meet the specifications of the target system. The Function Option Generator FOG6247 FOG6247 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 FOG6247 FOG6247, the E0C6247 E0C6247 mask pattern is automatically generated by a general purpose computer. The HEX file for the evaluation board (EVA6247 EVA6247) hardware option ROM is simultaneously generated with the data file. The operating method is same as for the E0C62 E0C62 Family. Refer to the "E0C62 E0C62 Family Development Tool Reference Manual" for details. Option list generation Start FOG6247 FOG6247 Set function option C247XXXF C247XXXF .HEX EVA6247 EVA6247 C247XXXF C247XXXF .DOC EPROM Seiko Epson Floppy disk Fig. 4.1.1 FOG6247 FOG6247 execution flow 4.2 E0C6247 E0C6247 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. OSC1 SYSTEM CLOCK (FOR EVA BOARD) s s s s 1. 32.7kHz 2. 38.4kHz 3. 50 kHz 4. 76.8kHz 2. OSC3 SYSTEM CLOCK SPECIFICATION (FOR EVA BOARD) s 1. Internal clock s 2. External clock 3. OSC3 SYSTEM CLOCK s 1. Not Use s 2. Use s 3. Use 4. MULTIPLE KEY ENTRY RESET · COMBINATION . s s s s · TIME AUTHORIZE . s 1. Not Use 2. Use 3. Use 4. Use 1. Not Use s 2. Use 5. WATCHDOG TIMER RESET s 1. Not Use 8 s 2. Use E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 6. INPUT PORT PULL UP RESISTOR · K00 · K01 · K02 · K03 · K10 · K11 · K12 · K13 . . . . . . . . s s s s s s s s s s s s s s s s 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 2. Gate Direct 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s s s s s s s s 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary 1. Complementary s s s s s s s s 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 2. Nch-OpenDrain 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 1. With Resistor 7. OUTPUT PORT OUTPUT SPECIFICATION · R00R03 . · R10R13 . · R20R23 . · R30 . · R31 . · R32 . · R33 . · R40 . · R41 . · R42 . · R43 . s s s s s s s s s s s 8. I/O PORT OUTPUT SPECIFICATION · P00P03 . · P10P13 . · P20P23 . · P30 . · P31 . · P32 . · P33 . · P40P43 . s s s s s s s s 9. EXTERNAL POWER FOR LCD DRIVING s 1. Internal power s 2. External power 9 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 4.3 Option Specifications and Selection Message Screen that can be selected as function options set on the E0C6247 E0C6247 are shown below, and their specifications are also described. 1 OSC1 system clock (for EVA board) * OPTION Select the OSC1 system clock frequency to be used for the EVA6247 EVA6247. Select a frequency to be used in the actual IC from among four types (32.7 kHz / 38.4 kHz / 50 kHz / 76.8 kHz). NO.1 * - OSC1 SYSTEM CLOCK (FOR EVA BOARD) -1. 32.7KHZ 2. 38.4KHZ 3. 50 KHZ 4. 76.8KHZ * This selection is for the EVA6247 EVA6247 setting. It does not set the specification of the actual IC. PLEASE SELECT NO.(1) ? 1 1. 32.7KHZ SELECTED 2 OSC3 system clock specification (for EVA board) * OPTION NO.2 * - OSC3 SYSTEM CLOCK SPECIFICATION (FOR EVA BOARD) -1. INTERNAL CLOCK 2. EXTERNAL CLOCK PLEASE SELECT NO.(1) ? 1 1. INTERNAL CLOCK SELECTED * This selection is for the EVA6247 EVA6247 setting. It does not set the specification of the actual IC. The OSC3 oscillation frequency of the EVA6247 EVA6247 is fixed at 1 MHz. When another OSC3 oscillation frequency is used, the clock (amplitude: 5 V, duty: 50% ± 10%) must be supplied from outside of the EVA6247 EVA6247. In this option, select either an internal clock (1 MHz) or an external clock for the OSC3 clock of the EVA6247 EVA6247. See "EVA6247 EVA6247 Manual" for how to supply a clock when an external clock is selected. 3 OSC3 system clock * OPTION NO.3 * - OSC3 SYSTEM CLOCK -1. NOT USE 2. USE 3. USE PLEASE SELECT NO.(1) ? 2 2. USE 10 SELECTED Select whether the OSC3 system clock will be used or not. If you use OSC3 system clock, either CR oscillation circuit or ceramic oscillation circuit can be selected. To minimize external components, CR oscillation circuit would be suitable; to obtain a stable oscillation frequency, ceramic oscillation circuit would be suitable. When CR oscillation circuit is selected, only resistors are needed as external components since capacities are built-in. When ceramic oscillation circuit is selected, a ceramic oscillator, gate capacity and drain capacity are needed as external components. E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 4 Multiple key entry reset * OPTION The reset function and time authorize circuit are set when K00 through K03 are entered. When "Not Use" is set for the combination, the reset function is not activated even if K00 through K03 are entered. When "Use " is set, the system is reset immediately the K00 and K01 inputs go low at the same time. Similarly, the system is reset as soon as the K00 through K02 inputs or the K00 through K03 inputs go low. When "Use" is set for the time authorize circuit, a simultaneous low input time is authorized. The system is reset when a signal is input for more than 1 to 2 sec. If the time authorize circuit is not used, the system is reset when a low signal is input for more than 1.5 msec. The multiple key entry reset circuit is shown in Figure 4.3.1. NO.4 * - MULTIPLE KEY ENTRY RESET -COMBINATION 1. NOT USE 2. USE 3. USE 4. USE PLEASE SELECT NO.(1) ? 4 TIME AUTHORIZE 1. NOT USE 2. USE PLEASE SELECT NO.(1) ? 1 COMBINATION TIME AUTHORIZE 4. USE SELECTED 1. NOT USE SELECTED * If "Not Use" is set for the combination, the time authorize selection is required. OSC1 OSC1 oscillation circuit OSC2 Mask option VDD Watchdog timer Oscillation detection circuit When oscillation stops: HIGH Initial reset K00 K01 Time authorize circuit K02 Fig. 4.3.1 Multiple key entry reset circuit K03 VDD Mask option Noise rejector RESET 5 Watchdog timer reset * OPTION NO.5 * - WATCHDOG TIMER RESET -1. NOT USE 2. USE Select whether the watchdog timer built-in to detect CPU runaways will be used or not. When the watchdog timer is not reset by the program within 3 to 4 second cycles, the CPU is initially reset. PLEASE SELECT NO.(1) ? 2 2. USE SELECTED 11 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 6 Input port pull up resistor * OPTION Select whether input ports (K00K03 and K10 K13) will each be supplemented with pull up resistors or not. When "Gate Direct" is selected, see to it that entry floating state does not occur. Select "With Resistor" pull up resistor for unused ports. Moreover, the input port status is changed from low level (VSS) to high (VDD) with pull up resistors, a delay in waveform rise time will occur depending on the pull up 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 up resistor circuit is shown in Figure 4.3.2. NO.6 * - INPUT PORT PULL UP RESISTOR -K00 1. WITH RESISTOR 2. GATE DIRECT PLEASE SELECT NO.(1) ? 1 K01 1. WITH RESISTOR 2. GATE DIRECT PLEASE SELECT NO.(1) ? 1 K02 1. WITH RESISTOR 2. GATE DIRECT PLEASE SELECT NO.(1) ? 1 K03 1. WITH RESISTOR 2. GATE DIRECT VDD K10 Mask option 1. WITH RESISTOR 2. GATE DIRECT K PLEASE SELECT NO.(1) ? 1 K11 1. WITH RESISTOR 2. GATE DIRECT Address PLEASE SELECT NO.(1) ? 1 K12 VSS 1. WITH RESISTOR 2. GATE DIRECT Fig. 4.3.2 Configuration of pull up resistor circuit PLEASE SELECT NO.(1) ? 1 K13 1. WITH RESISTOR 2. GATE DIRECT PLEASE SELECT NO.(1) ? 1 K00 K01 K02 K03 K10 K11 K12 K13 12 1. 1. 1. 1. 1. 1. 1. 1. Interrupt request Data bus PLEASE SELECT NO.(1) ? 1 WITH WITH WITH WITH WITH WITH WITH WITH RESISTOR RESISTOR RESISTOR RESISTOR RESISTOR RESISTOR RESISTOR RESISTOR SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 7 Output port output specification * OPTION Select the output specification for the output ports (R00R03, R10R13, R20R23, R30R33 and R40R43). Either complementary output or Nch open drain output may be selected. When output port is to be used on key matrix configuration, select Nch open drain output. For unused output ports, select complementary output. The output circuit configuration is shown in Figure 4.3.3. NO.7 * - OUTPUT PORT OUTPUT SPECIFICATION -R00-R03 -R00-R03 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R10-R13 R10-R13 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R20-R23 R20-R23 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R30 High impedance control register Data bus PLEASE SELECT NO.(1) ? 1 R31 VDD Address 1. COMPLEMENTARY 2. NCH-OPENDRAIN 1. COMPLEMENTARY 2. NCH-OPENDRAIN Data register Mask option RXX Address PLEASE SELECT NO.(1) ? 1 R32 1. COMPLEMENTARY 2. NCH-OPENDRAIN VSS PLEASE SELECT NO.(1) ? 1 R33 Fig. 4.3.3 Configuration of output circuit 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R40 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R41 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R42 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R43 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 R00-R03 R00-R03 R10-R13 R10-R13 R20-R23 R20-R23 R30 R31 R32 R33 R40 R41 R42 R43 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED 13 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 8 I/O port output specification * OPTION Select the output specification to be used during I/O ports (P00P03, P10P13, P20P23, P30P33 and P40P43) output mode selection. Either complementary output or Nch open drain output may be selected. Select complementary output for unused ports. NO.8 * - I/O PORT OUTPUT SPECIFICATION -P00-P03 -P00-P03 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 P10-P13 P10-P13 1. COMPLEMENTARY 2. NCH-OPENDRAIN The I/O ports can control the input/output direction according to the IOC registers (addresses B0H, B4H, B8H, BCH and C0H); at "1" and "0" settings, it is set to output port and input port, respectively. PLEASE SELECT NO.(1) ? 1 P20-P23 P20-P23 1. COMPLEMENTARY 2. NCH-OPENDRAIN When the serial interface function is selected, the output specification of the terminals SOUT, SCLK (during the master mode) and SRDY (during the slave mode) that is used as output in the input/ output port of the serial interface is respectively selected by the mask options of P41, P42 and P43. Selects complementary output for the SIN (P40) output specification. The I/O port circuit configuration is shown in Figure 4.3.4. PLEASE SELECT NO.(1) ? 1 P30 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 P31 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 P32 1. COMPLEMENTARY 2. NCH-OPENDRAIN PLEASE SELECT NO.(1) ? 1 VDD 1. COMPLEMENTARY 2. NCH-OPENDRAIN Address Data bus P33 PLEASE SELECT NO.(1) ? 1 P40-P43 P40-P43 1. COMPLEMENTARY 2. NCH-OPENDRAIN Address Address Data register Address I/O control register (IOC) PLEASE SELECT NO.(1) ? 1 P00-P03 P00-P03 P10-P13 P10-P13 P20-P23 P20-P23 P30 P31 P32 P33 P40-P43 P40-P43 1. 1. 1. 1. 1. 1. 1. 1. Pull up control register (PUP) COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY COMPLEMENTARY SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED P Fig. 4.3.4 Circuit configuration of I/O port 9 External power for LCD driving * OPTION NO.9 * - EXTERNAL POWER FOR LCD DRIVING -1. INTERNAL POWER 2. EXTERNAL POWER PLEASE SELECT NO.(1) ? 1 1. INTERNAL POWER 14 SELECTED Select the power mode for the LCD driver. When internal power is selected, the LCD power source built in the E0C6247 E0C6247 is used and driving is fixed at 1/4 bias. In this case, the LCD contrast may be adjusted through the software. When external power is selected, the LCD driving voltage is externally supplied, Aside from 1/4 bias, driving may also be set at 1/5 bias. Adjustment of the LCD contrast in this case requires setting up of external components. E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 4.4 FOG6247 FOG6247 Quick Reference s Starting command and input/output files Execution file: FOG6247 FOG6247.EXE Starting command: FOG6247 FOG6247 Input file: C247XXXF C247XXXF.DOC (Function option document file, when modifying) Output file: C247XXXF C247XXXF.DOC (Function option document file) C247XXXF C247XXXF.HEX (Function option HEX file) indicates the Return key. s Display example * E0C6247 E0C6247 FUNCTION OPTION GENERATOR. - Ver 3.13A 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 (C) COPYRIGHT 1993 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 SEIKO EPSON CORP. THIS SOFTWARE MAKES NEXT FILES. C247XXXF C247XXXF.HEX C247XXXF C247XXXF.DOC . . Start-up message When FOG6247 FOG6247 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. FUNCTION OPTION HEX FILE. FUNCTION OPTION DOCUMENT FILE. STRIKE ANY KEY. Date input Enter the 2-digit year, month, and day of the month by delimiting them with a slash ("/"). When not modifying the date, press the RETURN key " " to continue. * E0C6247 E0C6247 USER'S OPTION SETTING. - Ver 3.13A * CURRENT DATE IS 92/12/01 PLEASE INPUT NEW DATE : 92/12/20 Operation selection menu Enter a number from 1 to 3 to select a subsequent operation. 1. To set new function options. 2. To modify the document file. 3. To terminate FOG6247 FOG6247. * OPERATION SELECT MENU * 1. INPUT NEW FILE 2. EDIT FILE 3. RETURN TO DOS PLEASE SELECT NO.? * OPERATION SELECT MENU * 1. INPUT NEW FILE 2. EDIT FILE 3. RETURN TO DOS PLEASE SELECT NO.? 1 PLEASE INPUT FILE NAME? C2470A0 C2470A0 PLEASE INPUT USER'S NAME? SEIKO EPSON CORP. PLEASE INPUT ANY COMMENT (ONE LINE IS 50 CHR)? TOKYO DESIGN CENTER ? 421-8 HINO HINO-SHI TOKYO 191 JAPAN ? TEL 0425-84-2551 ? FAX 0425-84-8512 ? PLEASE EXISTS PLEASE PLEASE INPUT FILE NAME? C2470A0 C2470A0 OVERWRITE(Y/N)? N INPUT FILE NAME? C2470B0 C2470B0 INPUT USER'S NAME? . . (1) . . (2) . . (3) Setting new function options Select "1" on the operation selection menu. (1) Enter the file name. (2) Enter the customer's company name. (3) Enter any comment. (Within 50 characters x 10 lines) Next, start function option setting from option No. 1. In case a function option document file with the same name as the file name specified in the current drive exists, the user is asked whether overwrition is desired. Enter "Y" or "N" accordingly. 15 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) * OPERATION SELECT MENU * 1. INPUT NEW FILE 2. EDIT FILE 3. RETURN TO DOS PLEASE SELECT NO.? 2 * SOURCE FILE(S) * C2470A0 C2470A0 C2470B0 C2470B0 PLEASE INPUT PLEASE INPUT PLEASE INPUT (ONE LINE IS PLEASE INPUT C2470C0 C2470C0 . . (1) . . (2) . . (3) FILE NAME? C2470A0 C2470A0 USER'S NAME? ANY COMMENT 50 CHR)? EDIT NO.? 4 . . (4) . . (5) : (Modifying function option settings) : PLEASE INPUT EDIT NO.? E 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) * Modifying function option settings Select "2" on the operation selection menu. (1) Will display the files on the current drive. (2) Enter the file name. (3) Enter the customer's company name. (4) Enter any comment. Previously entered data can be used by pressing the RETURN key " " at (3) and (4). (5) Enter the number of the function option to be modified. When selection of one option is complete, the system prompts entry of another function option number. Repeat selection until all options to be modified are selected. Enter "E " to end option setting. Then, move to the confirmation procedure for HEX file generation. 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. PLEASE INPUT FILE NAME? C2470N0 C2470N0 FUNCTION OPTION DOCUMENT FILE IS NOT FOUND. PLEASE INPUT FILE NAME? In addition, if specified file format is different (such as document file for the other model), the following message is displayed and FOG6247 FOG6247 is terminated. BAD FUNCTION OPTION DOCUMENT FILE. 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. * OPTION NO.3 * - OSC3 SYSTEM CLOCK -1. NOT USE 2. USE 3. USE PLEASE SELECT NO.(1) ? 2 2. USE END OF OPTION SETTING. DO YOU MAKE HEX FILE (Y/N) ? Y SELECTED . . (1) * OPTION EPROM SELECT MENU * 1. 2. 3. 4. 27C64 27C64 27C128 27C128 27C256 27C256 27C512 27C512 . . (2) PLEASE SELECT NO.? 3 3. 27C256 27C256 SELECTED MAKING FILE(S) IS COMPLETED. * OPERATION SELECT MENU * 1. INPUT NEW FILE 2. EDIT FILE 3. RETURN TO DOS PLEASE SELECT NO.? 16 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 EVA6247 EVA6247, 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 EVA6247 EVA6247 options. When a series of operations are complete, the sequence returns to the operation selection menu. E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) 4.5 Sample File s Example of function option document file * E0C6247 E0C6247 FUNCTION OPTION DOCUMENT V 3.13A * * FILE NAME C2470A0F C2470A0F.DOC * USER'S NAME SEIKO EPSON CORP. * INPUT DATE 92/12/01 * * COMMENT TOKYO DESIGN CENTER * 421-8 HINO HINO-SHI TOKYO 191 JAPAN * TEL 0425-84-2551 * FAX 0425-84-8512 * * * OPTION NO.1 * < OSC1 SYSTEM CLOCK (FOR EVA BOARD) > * 32.7KHZ -*OPT0101 OPT0101 * * OPTION NO.2 * < OSC3 SYSTEM CLOCK SPECIFICATION (FOR EVA BOARD) > * INTERNAL CLOCK -*OPT0201 OPT0201 * * OPTION NO.3 * < OSC3 SYSTEM CLOCK > * NOT USE -OPT0301 -OPT0301 01 * * OPTION NO.4 * < MULTIPLE KEY ENTRY RESET > * COMBINATION NOT USE -* TIME AUTHORIZE NOT USE -OPT0401 -OPT0401 01 OPT0402 OPT0402 01 * * OPTION NO.5 * < WATCHDOG TIMER RESET > * USE -OPT0501 -OPT0501 02 * * OPTION NO.6 * < INPUT PORT PULL UP RESISTOR > * K00 WITH RESISTOR -* K01 WITH RESISTOR -* K02 WITH RESISTOR -* K03 WITH RESISTOR -* K10 WITH RESISTOR -* K11 WITH RESISTOR -* K12 WITH RESISTOR -* K13 WITH RESISTOR - SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED 17 E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) OPT0601 OPT0601 OPT0602 OPT0602 OPT0603 OPT0603 OPT0604 OPT0604 OPT0605 OPT0605 OPT0606 OPT0606 OPT0607 OPT0607 OPT0608 OPT0608 01 01 01 01 01 01 01 01 * * OPTION NO.7 * < OUTPUT PORT OUTPUT SPECIFICATION > * R00-R03 R00-R03 COMPLEMENTARY * R10-R13 R10-R13 COMPLEMENTARY * R20-R23 R20-R23 COMPLEMENTARY * R30 COMPLEMENTARY * R31 COMPLEMENTARY * R32 COMPLEMENTARY * R33 COMPLEMENTARY * R40 COMPLEMENTARY * R41 COMPLEMENTARY * R42 COMPLEMENTARY * R43 COMPLEMENTARY OPT0701 OPT0701 01 OPT0702 OPT0702 01 OPT0703 OPT0703 01 OPT0704 OPT0704 01 OPT0705 OPT0705 01 OPT0706 OPT0706 01 OPT0707 OPT0707 01 OPT0708 OPT0708 01 OPT0709 OPT0709 01 OPT0710 OPT0710 01 OPT0711 OPT0711 01 * * OPTION NO.8 * < I/O PORT OUTPUT SPECIFICATION > * P00-P03 P00-P03 COMPLEMENTARY * P10-P13 P10-P13 COMPLEMENTARY * P20-P23 P20-P23 COMPLEMENTARY * P30 COMPLEMENTARY * P31 COMPLEMENTARY * P32 COMPLEMENTARY * P33 COMPLEMENTARY * P40-P43 P40-P43 COMPLEMENTARY OPT0801 OPT0801 01 OPT0802 OPT0802 01 OPT0803 OPT0803 01 OPT0804 OPT0804 01 OPT0805 OPT0805 01 OPT0806 OPT0806 01 OPT0807 OPT0807 01 OPT0808 OPT0808 01 * 18 - SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED - SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED SELECTED E0C6247 E0C6247 Development Tool Manual (FOG6247 FOG6247) * OPTION NO.9 * < EXTERNAL POWER FOR LCD DRIVING > * INTERNAL POWER OPT0901 OPT0901 01 OPT0902 OPT0902 01 * * * * SEIKO EPSON'S AREA * * * * OPTION NO.10 OPT1001 OPT1001 01 * * OPTION NO.11 OPT1101 OPT1101 01 * * OPTION NO.12 OPT1201 OPT1201 01 * * OPTION NO.13 OPT1301 OPT1301 01 * * OPTION NO.14 OPT1401 OPT1401 01 * * OPTION NO.15 OPT1501 OPT1501 01 * * OPTION NO.16 OPT1601 OPT1601 01 * * OPTION NO.17 OPT1701 OPT1701 01 OPT1702 OPT1702 01 * * OPTION NO.18 OPT1801 OPT1801 01 OPT1802 OPT1802 01 * * OPTION NO.19 OPT1901 OPT1901 01 \\END Note - SELECTED End mark "¥¥END" may be used instead of "\\END" depending on the PC used. (The code of \ and ¥ is 5CH.) 19 E0C6247 E0C6247 Development Tool Manual (ICS6247 ICS6247) 5 ICE CONTROL SOFTWARE ICS6247 ICS6247 5.1 ICS6247 ICS6247 Outline The In-circuit Emulator ICE6200 ICE6200 connects the target board produced by the user via the EVA6247 EVA6247 and performs real time target system evaluation and debugging by passing through the RS-232C RS-232C from the host computer and controlling it. The operation on the host computer side and ICE6200 ICE6200 control is done through the ICE Control Software ICS6247 ICS6247. The ICS6247 ICS6247 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 Fig. 5.1.1 Debugging system using ICE6200 ICE6200 [ PC-9801 PC-9801 Series] IBM PC/AT RS-232C RS-232C ICE6200 ICE6200 EVA6247 EVA6247 Target board ICE6200 ICE6200 The functions of the ICE6200 ICE6200 and commands are same as for the E0C62 E0C62 Family. Refer to the "E0C62 E0C62 Family Development Tool Reference Manual" for details. 5.2 ICS6247 ICS6247 Restrictions Take the following precautions when using the ICS6247 ICS6247. s ROM area The ROM area is limited to a maximum address of 1FFFH. s RAM area The RAM area is limited to a maximum address of AFFH. However, as the following addresses are in the unused area, designation of this area with the ICE commands produces an error. Page 0 to 3: 82H83H, 85H87H, 8FH, 93H, 97H, 9FH, ABHAFH, B3H, B7H, BBH, C3HC7H, CEHCFH, D3HDFH, E4HE7H, EFH, F5HF7H, FDHFFH s OPTLD command In the ICS6247 ICS6247, OPTLD command can be used. This command is used to load HEX file (function option data) in the EVA6247 EVA6247 memory with the ICE6200 ICE6200. Load of function option data: 20 #OPTLD,1,C247XXX C247XXX E0C6247 E0C6247 Development Tool Manual (ICS6247 ICS6247) OPTLD READ HEXA DATA FILE Format #OPTLD,1, Function Load function option HEX file in the EVA6247 EVA6247 function option data memory. It is HEX file output by the function option generator and has intel HEX format. * Since function option HEX file cannot be loaded in OSC3 clock operation, you should not change the operation clock. Example #OPTLD,1,C247XXX C247XXX . C247XXXF C247XXXF.HEX file is loaded in the function option data memory. 21 E0C6247 E0C6247 Development Tool Manual (ICS6247 ICS6247) 5.3 ICS6247 ICS6247 Quick Reference s Starting command and input/output files indicates the Return key. Execution file: ICS6247 ICS6247.BAT ICS6247B ICS6247B.BAT (ICS6247J ICS6247J.EXE) (ICS6247W ICS6247W.EXE) . . . for MS-DOS . . . for PC-DOS Starting command: ICS6247 ICS6247 (ICS6247J ICS6247J) ICS6247B ICS6247B (ICS6247W ICS6247W) Input file: C247XXXL C247XXXL.HEX C247XXXH C247XXXH.HEX C247XXXD C247XXXD.HEX C247XXXC C247XXXC.HEX C247XXXF C247XXXF.HEX (Object file, low-order) (Object file, high-order) (Data RAM file) (Control file) (Function option HEX file) Output file: C247XXXL C247XXXL.HEX C247XXXH C247XXXH.HEX C247XXXD C247XXXD.HEX C247XXXC C247XXXC.HEX (Object file, low-order) (Object file, high-order) (Data RAM file) (Control file) . . . for MS-DOS . . . for PC-DOS s Display example * E0C6247 E0C6247 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 ICS6247 ICS6247 is started, the start-up message is displayed, and a self-test is automatically performed. ICS6247 ICS6247 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 ICS6247 ICS6247 program is terminated by entering the Q (Quit) command. Note 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) 22 Meaning ICE6200 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. Confirm that the cables connected properly, then operate the ICS6247 ICS6247. Recover procedure Switch OFF the host power supply, connect cable, and reapply power. Or switch ON power to ICE6200 ICE6200. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200 ICE6200. Switch OFF power to ICE, and connect the evaluation board. Then, apply power to ICE6200 ICE6200. Convert ROM and FD data with the cross assembler, then restart the ICE6200 ICE6200. Reenter the proper command. Switch OFF the host power supply, connect cable, and reapply power. E0C6247 E0C6247 Development Tool Manual (ICS6247 ICS6247) s ICE6200 ICE6200 commands Item No. Function 1 2 3 Assemble Disassemble Dump 4 Fill 5 Set Run Mode 6 Trace 7 Break Command Format #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 8 Move #BRES #BC #BE #BSYN #BT #BRKSEL,REM #MP,a1,a2,a3 #MD,a1,a2,a3 9 Data Set 10 Change CPU Internal Registers #SP,a #SD,a #DR #SR #I #DXY #SXY Outline of Operation 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 EVA6247 EVA6247 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 EVA6247 EVA6247 CPU internal registers Set EVA6247 EVA6247 CPU internal registers Reset EVA6247 EVA6247 CPU Display X, Y, MX and MY Set data for X and Y display and MX, MY 23 E0C6247 E0C6247 Development Tool Manual (ICS6247 ICS6247) Item No. 11 Function History Command Format #HSW,a #HSR,a #RF,file #RFD,file #VF,file #VFD,file #WF,file #WFD,file #CL,file #CS,file #OPTLD,1,file #CVD #CVR #RP #VP #ROM #Q #HELP Display ICE6200 ICE6200 instruction #CHK Report results of ICE6200 ICE6200 self diagnostic test #HA,a1,a2 #HAR,a1,a2 #HAD #HS,a 12 File 13 Coverage 14 ROM Access 15 Terminate ICE Command Display Self Diagnosis 16 17 Outline of Operation 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 ICE6200 set condition from file Save ICE6200 ICE6200 set condition to file Load function 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 #H,p1,p2 #HB #HG #HP #HPS,a #HC,S/C/E means press the RETURN key. 24 E0C6247 E0C6247 Development Tool Manual (MDC6247 MDC6247) 6 MASK DATA CHECKER MDC6247 MDC6247 6.1 MDC6247 MDC6247 Outline The Mask Data Checker MDC6247 MDC6247 is a software tool which checks the program data (C247XXXH C247XXXH.HEX and C247XXXL C247XXXL.HEX) and option data (C247XXXF C247XXXF.DOC) created by the user and creates the data file (C6247XXX C6247XXX.PAn) for generating mask patterns. The user must send the file generated through this software tool to Seiko Epson. Moreover, MDC6247 MDC6247 has the capability to restore the generated data file (C6247XXX C6247XXX.PA0) to the original file format. Object files C247XXXH C247XXXH .HEX Function option document file C247XXXL C247XXXL .HEX C247XXXF C247XXXF .DOC The operating method is same as for the E0C62 E0C62 Family. Refer to the "E0C62 E0C62 Family Development Tool Reference Manual" for details. MDC6247 MDC6247 Mask Data Checker execution (pack) File for submission SEIKO EPSON C6247XXX C6247XXX .PAn MDC6247 MDC6247 Mask Data Checker execution (unpack) C247XXXH C247XXXH .PAn C247XXXL C247XXXL .PAn C247XXXF C247XXXF .PAn Fig. 6.1.1 MDC6247 MDC6247 execution flow Unpacked files 6.2 MDC6247 MDC6247 Quick Reference s Starting command and input/output files Execution file: MDC6247 MDC6247.EXE Starting command: MDC6247 MDC6247 Input file: C247XXXL C247XXXL.HEX C247XXXH C247XXXH.HEX C247XXXF C247XXXF.DOC C6247XXX C6247XXX.PAn (Object file, low-order) (Object file, high-order) (Function option document file) (Packed file) C6247XXX C6247XXX.PAn C247XXXL C247XXXL.PAn C247XXXH C247XXXH.PAn C247XXXF C247XXXF.PAn (Packed file) (Object file, low-order) (Object file, high-order) (Function option document file) Output file: indicates the Return key. When packing When unpacking When packing When unpacking 25 E0C6247 E0C6247 Development Tool Manual (MDC6247 MDC6247) s Display examples * E0C6247 E0C6247 PACK / UNPACK PROGRAM Ver 2.001 * 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 MDC6247 MDC6247 is started, the start-up message and operation menu are displayed. Here, the user is prompted to select operation options. (C) COPYRIGHT 1991 SEIKO EPSON CORP. - OPERATION MENU -1. PACK 2. UNPACK PLEASE SELECT NO.? - OPERATION MENU -1. PACK 2. UNPACK . . . (1) PLEASE SELECT NO.? 1 C247XXXH C247XXXH.HEX -+ | C247XXXL C247XXXL.HEX -+- C247XXX C247XXX.PAn (PACK FILE) | C247XXXF C247XXXF.DOC -+ PLEASE INPUT PACK FILE NAME (C6247XXX C6247XXX.PAn) ? C62470A0 C62470A0.PA0 . . . (2) C2470A0H C2470A0H.HEX -+ | C2470A0L C2470A0L.HEX -+- C2470A0 C2470A0.PA0 | C2470A0F C2470A0F.DOC -+ Note 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 "C6247XXX C6247XXX.PA0" has been submitted, the pack file name should be entered as "C6247XXX C6247XXX.PA1".) With this, the mask file (C6247XXX C6247XXX.PAn) is generated, and the MDC6247 MDC6247 program will be terminated. Submit this file to Seiko Epson. Don't use the data generated with the -N option of the Cross Assembler (ASM6247 ASM6247) as program data. If the program data generated with the -N option of the Cross Assembler is packed, following message is displayed. HEX DATA ERROR : DATA (NO FFh) Unpacking of data (1) Select "1" in the operation menu. (2) Enter the packed file name. - OPERATION MENU -1. PACK 2. UNPACK . . . (1) PLEASE SELECT NO.? 2 PLEASE INPUT PACKED FILE NAME (C6247XXX C6247XXX.PAn) ? C62470A0 C62470A0.PA0 +- C2470A0H C2470A0H.PA0 | C62470A0 C62470A0.PA0 -+- C2470A0L C2470A0L.PA0 | +- C2470A0F C2470A0F.PA0 26 . . . (2) With this, the mask data file (C6247XXX C6247XXX.PAn) is restored to the original file format, and the MDC6247 MDC6247 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. E0C6247 E0C6247 Development Tool Manual (MDC6247 MDC6247) s Error messages Program data error Error Message 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. HEX HEX HEX HEX HEX HEX HEX HEX HEX HEX DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR : : : : : : : : : : NOT COLON. DATA LENGTH. (NOT 00-20h) ADDRESS. RECORD TYPE. (NOT 00) DATA. (NOT 00-FFh) TOO MANY DATA IN ONE LINE. CHECK SUM. END MARK. DUPLICATE. DATA (NO FFh) Explanation There is no colon. The data length of 1 line is not in the 0020H range. The address is beyond the valid range of the program ROM. The record type of 1 line is not 00. The data is not in the range between 00H and 0FFH. There are too many data in 1 line. The checksum is not correct. The end mark is not : 00000001FF 00000001FF. There is duplicate definition of data in the same address. There is an undefined field in the HEX data. Function option data error Error Message 1. 2. 3. 4. OPTION OPTION OPTION OPTION DATA DATA DATA DATA ERROR ERROR ERROR ERROR : : : : START MARK. OPTION NUMBER. SELECT NUMBER. END MARK. Explanation The start mark is not "\OPTION". (during unpacking) * The option number is not correct. The option selection number is not correct. The end mark is not "\\END" (packing) or "\END" (unpacking).* File error Error Message 1. FILE IS NOT FOUND. 2. PACK FILE NAME (File_name) ERROR. 3. PACKED FILE NAME (File_name) ERROR. 4. VERSION NUMBER ERROR : X.DOC 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. FOG6247 FOG6247 different from the version No. has been used. System error Error Message 1. DIRECTORY FULL. 2. DISK WRITE ERROR. Explanation The directory is full. Writing on the disk is failed. * \ sometimes appears as ¥, depending on the personal computer being used. 27 E0C6247 E0C6247 Development Tool Manual (Appendix) APPENDIX A. E0C6247 E0C6247 INSTRUCTION SET Operation Code Flag Classification Mnemonic Operand Branch PSET p 1 1 1 0 0 1 0 p4 p3 p2 p1 p0 5 NBP p4, NPP p3~p0 s 0 0 0 0 s7 s6 s5 s4 s3 s2 s1 s0 5 PCB NBP, PCP NPP, PCS s7~s0 C, s 0 0 1 0 s7 s6 s5 s4 s3 s2 s1 s0 5 PCB NBP, PCP NPP, PCS s7~s0 if C=1 NC, s 0 0 1 1 s7 s6 s5 s4 s3 s2 s1 s0 5 PCB NBP, PCP NPP, PCS s7~s0 if C=0 Z, s 0 1 1 0 s7 s6 s5 s4 s3 s2 s1 s0 5 PCB NBP, PCP NPP, PCS s7~s0 if Z=1 NZ, s 0 1 1 1 s7 s6 s5 s4 s3 s2 s1 s0 5 PCB NBP, PCP NPP, PCS s7~s0 if Z=0 JPBA 1 1 1 1 1 1 1 0 1 0 0 0 5 PCB NBP, PCP NPP, PCSH B, PCSL A CALL s 0 1 0 0 s7 s6 s5 s4 s3 s2 s1 s0 7 M(SP-1) PCP, M(SP-2) PCSH, M(SP-3) PCSL+1 CALZ s 0 1 0 1 s7 s6 s5 s4 s3 s2 s1 s0 7 instructions JP B A 9 8 7 6 5 4 3 2 1 0 I D Z C Clock Operation SP SP-3, PCP NPP, PCS s7~s0 M(SP-1) PCP, M(SP-2) PCSH, M(SP-3) PCSL+1 SP SP-3, PCP 0, PCS s7~s0 RET 1 1 1 1 1 1 0 1 1 1 1 1 7 RETS 1 1 1 1 1 1 0 1 1 1 1 0 12 RETD l 0 0 0 1 l7 l6 l5 l4 l3 l2 l1 l0 12 PCSL M(SP), PCSH M(SP+1), PCP M(SP+2) SP SP+3 PCSL M(SP), PCSH M(SP+1), PCP M(SP+2) SP SP+3, PC PC+1 PCSL M(SP), PCSH M(SP+1), PCP M(SP+2) SP SP+3, M(X) l 3~ l 0, M(X+1) l 7~ l 4, X X+2 System NOP5 1 1 1 1 1 1 1 1 1 0 1 1 5 No operation (5 clock cycles) control NOP7 1 1 1 1 1 1 1 1 1 1 1 1 7 No operation (7 clock cycles) instructions HALT 1 1 1 1 1 1 1 1 1 0 0 0 5 Halt (stop clock) X 1 1 1 0 1 1 1 0 0 0 0 0 5 X X+1 operation Y 1 1 1 0 1 1 1 1 0 0 0 0 5 Y Y+1 instructions LD X, x 1 0 1 1 x7 x6 x5 x4 x3 x2 x1 x0 5 XH x7~x4, XL x3~x0 Y, y 1 0 0 0 y7 y6 y5 y4 y3 y2 y1 y0 5 YH y7~y4, YL y3~y0 XP, r 1 1 1 0 1 0 0 0 0 0 r1 r0 5 XP r XH, r 1 1 1 0 1 0 0 0 0 1 r1 r0 5 XH r XL, r 1 1 1 0 1 0 0 0 1 0 r1 r0 5 XL r YP, r Index INC YP r 5 YH r 1 1 1 0 1 0 0 1 1 0 r1 r0 5 YL r r, XP 1 1 1 0 1 0 1 0 0 0 r1 r0 5 r XP r, XH 1 1 1 0 1 0 1 0 0 1 r1 r0 5 r XH r, XL 1 1 1 0 1 0 1 0 1 0 r1 r0 5 r XL r, YP 1 1 1 0 1 0 1 1 0 0 r1 r0 5 r YP r, YH 1 1 1 0 1 0 1 1 0 1 r1 r0 5 r YH r, YL 1 1 1 0 1 0 1 1 1 0 r1 r0 5 r YL XH, i 1 0 1 0 0 0 0 0 i3 i2 i1 i0 7 XH XH+i3~i0+C XL, i 1 0 1 0 0 0 0 1 i3 i2 i1 i0 7 XL XL+i3~i0+C YH, i 1 0 1 0 0 0 1 0 i3 i2 i1 i0 7 YH YH+i3~i0+C YL, i 28 5 YL, r ADC 1 1 1 0 1 0 0 1 0 0 r1 r0 YH, r 1 1 1 0 1 0 0 1 0 1 r1 r0 1 0 1 0 0 0 1 1 i3 i2 i1 i0 7 YL YL+i3~i0+C E0C6247 E0C6247 Development Tool Manual (Appendix) Operation Code Flag Classification Mnemonic Operand Index CP XH, i 1 0 1 0 0 1 0 0 i3 i2 i1 i0 7 XH-i3~i0 operation XL, i 1 0 1 0 0 1 0 1 i3 i2 i1 i0 7 XL-i3~i0 instructions YH, i 1 0 1 0 0 1 1 0 i3 i2 i1 i0 7 YH-i3~i0 YL, i 1 0 1 0 0 1 1 1 i3 i2 i1 i0 7 YL-i3~i0 r, i 1 1 1 0 0 0 r1 r0 i3 i2 i1 i0 5 r i3~i0 transfer r, q 1 1 1 0 1 1 0 0 r1 r0 q1 q0 5 r q instructions A, Mn 1 1 1 1 1 0 1 0 n3 n2 n1 n0 5 A M(n3~n0) B, Mn 1 1 1 1 1 0 1 1 n3 n2 n1 n0 5 B M(n3~n0) Mn, A 1 1 1 1 1 0 0 0 n3 n2 n1 n0 5 M(n3~n0) A Mn, B 1 1 1 1 1 0 0 1 n3 n2 n1 n0 5 M(n3~n0) B LDPX MX, i 1 1 1 0 0 1 1 0 i3 i2 i1 i0 5 M(X) i3~i0, X X+1 1 1 1 0 1 1 1 0 r1 r0 q1 q0 5 r q, X X+1 LDPY MY, i 1 1 1 0 0 1 1 1 i3 i2 i1 i0 5 M(Y) i3~i0, Y Y+1 1 1 1 0 1 1 1 1 r1 r0 q1 q0 5 r q, Y Y+1 LBPX MX, l 1 0 0 1 l 7 l 6 l 5 l 4 l 3 l 2 l 1 l 0 5 M(X) l 3~ l 0, M(X+1) l 7~ l 4, X X+2 Data LD r, q r, q Flag operation B A 9 8 7 6 5 4 3 2 1 0 I D Z C Clock Operation SET F, i 1 1 1 1 0 1 0 0 i3 i2 i1 i0 7 F F i3~i0 RST F, i 1 1 1 1 0 1 0 1 i3 i2 i1 i0 7 F F i3~i0 instructions SCF 1 1 1 1 0 1 0 0 0 0 0 1 7 C 1 RCF 1 1 1 1 0 1 0 1 1 1 1 0 7 C 0 SZF 1 1 1 1 0 1 0 0 0 0 1 0 7 Z 1 RZF 1 1 1 1 0 1 0 1 1 1 0 1 7 Z 0 SDF 1 1 1 1 0 1 0 0 0 1 0 0 7 D 1 (Decimal Adjuster ON) RDF 1 1 1 1 0 1 0 1 1 0 1 1 7 D 0 (Decimal Adjuster OFF) EI 1 1 1 1 0 1 0 0 1 0 0 0 7 I 1 (Enables Interrupt) DI 1 1 1 1 0 1 0 1 0 1 1 1 7 I 0 (Disables Interrupt) Stack INC SP 1 1 1 1 1 1 0 1 1 0 1 1 5 SP SP+1 operation DEC SP 1 1 1 1 1 1 0 0 1 0 1 1 5 SP SP-1 1 1 1 1 1 1 0 0 0 0 r1 r0 5 SP SP-1, M(SP) r XP 1 1 1 1 1 1 0 0 0 1 0 0 5 SP SP-1, M(SP) XP XH 1 1 1 1 1 1 0 0 0 1 0 1 5 SP SP-1, M(SP) XH XL 1 1 1 1 1 1 0 0 0 1 1 0 5 SP SP-1, M(SP) XL YP 1 1 1 1 1 1 0 0 0 1 1 1 5 SP SP-1, M(SP) YP YH 1 1 1 1 1 1 0 0 1 0 0 0 5 SP SP-1, M(SP) YH YL 1 1 1 1 1 1 0 0 1 0 0 1 5 SP SP-1, M(SP) YL F 1 1 1 1 1 1 0 0 1 0 1 0 5 SP SP-1, M(SP) F r 1 1 1 1 1 1 0 1 0 0 r1 r0 5 r M(SP), SP SP+1 XP 1 1 1 1 1 1 0 1 0 1 0 0 5 XP M(SP), SP SP+1 XH 1 1 1 1 1 1 0 1 0 1 0 1 5 XH M(SP), SP SP+1 XL 1 1 1 1 1 1 0 1 0 1 1 0 5 XL M(SP), SP SP+1 YP 1 1 1 1 1 1 0 1 0 1 1 1 5 YP M(SP), SP SP+1 instructions PUSH r POP 29 E0C6247 E0C6247 Development Tool Manual (Appendix) Operation Code Flag Classification Mnemonic Operand Stack POP YH 1 1 1 1 1 1 0 1 1 0 0 0 5 YH M(SP), SP SP+1 operation YL 1 1 1 1 1 1 0 1 1 0 0 1 5 YL M(SP), SP SP+1 instructions F 1 1 1 1 1 1 0 1 1 0 1 0 5 F M(SP), SP SP+1 SPH, r 1 1 1 1 1 1 1 0 0 0 r1 r0 5 SPH r SPL, r 1 1 1 1 1 1 1 1 0 0 r1 r0 5 SPL r r, SPH 1 1 1 1 1 1 1 0 0 1 r1 r0 5 r SPH LD B A 9 8 7 6 5 4 3 2 1 0 I D Z C Clock Operation 5 r SPL r, i 1 1 0 0 0 0 r1 r0 i3 i2 i1 i0 5 7 r r+i3~i0 r, q 1 0 1 0 1 0 0 0 r1 r0 q1 q0 5 7 r r+q r, i 1 1 0 0 0 1 r1 r0 i3 i2 i1 i0 5 7 r r+i3~i0+C r, q 1 0 1 0 1 0 0 1 r1 r0 q1 q0 5 7 r r+q+C SUB r, q 1 0 1 0 1 0 1 0 r1 r0 q1 q0 5 7 r r-q SBC r, i 1 1 0 1 0 1 r1 r0 i3 i2 i1 i0 5 7 r r-i3~i0-C r, q 1 0 1 0 1 0 1 1 r1 r0 q1 q0 5 7 r r-q-C r, i 1 1 0 0 1 0 r1 r0 i3 i2 i1 i0 7 r r i3~i0 r, q 1 0 1 0 1 1 0 0 r1 r0 q1 q0 7 r r q r, i 1 1 0 0 1 1 r1 r0 i3 i2 i1 i0 7 r r i3~i0 r, q 1 0 1 0 1 1 0 1 r1 r0 q1 q0 7 r r q r, i 1 1 0 1 0 0 r1 r0 i3 i2 i1 i0 7 r r i3~i0 r, q 1 0 1 0 1 1 1 0 r1 r0 q1 q0 7 r r q r, i 1 1 0 1 1 1 r1 r0 i3 i2 i1 i0 7 r-i3~i0 r, q 1 1 1 1 0 0 0 0 r1 r0 q1 q0 7 r-q r, i 1 1 0 1 1 0 r1 r0 i3 i2 i1 i0 7 r i3~i0 r, q 1 1 1 1 0 0 0 1 r1 r0 q1 q0 7 r q RLC r 1 0 1 0 1 1 1 1 r1 r0 r1 r0 7 d3 d2, d2 d1, d1 d0, d0 C, C d3 RRC r 1 1 1 0 1 0 0 0 1 1 r1 r0 5 d3 C, d2 d3, d1 d2, d0 d1, C d0 INC Mn 1 1 1 1 0 1 1 0 n3 n2 n1 n0 7 M(n3~n0) M(n3~n0)+1 DEC Mn 1 1 1 1 0 1 1 1 n3 n2 n1 n0 7 M(n3~n0) M(n3~n0)-1 ACPX MX, r 1 1 1 1 0 0 1 0 1 0 r1 r0 5 7 M(X) M(X)+r+C, X X+1 ACPY MY, r 1 1 1 1 0 0 1 0 1 1 r1 r0 5 7 M(Y) M(Y)+r+C, Y Y+1 SCPX MX, r 1 1 1 1 0 0 1 1 1 0 r1 r0 5 7 M(X) M(X)-r-C, X X+1 SCPY MY, r 1 1 1 1 0 0 1 1 1 1 r1 r0 5 7 M(Y) M(Y)-r-C, Y Y+1 7 r r r, SPL 1 1 1 1 1 1 1 1 0 1 r1 r0 Arithmetic ADD instructions ADC AND OR XOR CP FAN NOT 30 r 1 1 0 1 0 0 r1 r0 1 1 1 1 E0C6247 E0C6247 Development Tool Manual (Appendix) Abbreviations used in the explanations have the following meanings. Symbols associated with registers and memory Symbols associated with program counter A B X NBP NPP PCB PCP PCS PCSH PCSL 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 000H00FH (address specified with immediate data n of 00H0FH) 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 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 00H1FH Eight-bit immediate data or label 00H0FFH Eight-bit immediate data 00H0FFH Four-bit immediate data 00H0FH 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 31 32 7 6 5 4 3 2 L LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB 0 1 2 3 4 5 6 7 8 9 A B C D E F APPENDIX 1 P H 0 0 PROGRAM NAME: E0C6247 E0C6247 Development Tool Manual (Appendix) B. E0C6247 E0C6247 RAM MAP RAM map - 1 (000H07FH) 7 6 5 4 3 2 1 P H 1 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 2 (100H17FH) 33 34 7 6 5 4 3 2 1 P H 2 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 3 (200H27FH) 7 6 5 4 3 2 1 P H 3 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 4 (300H37FH) 35 36 7 6 5 4 3 2 1 P H 4 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 5 (400H47FH) F E D C B A 9 P H 4 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 6 (480H4FFH) 37 38 7 6 5 4 3 2 1 P H 5 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 7 (500H57FH) F E D C B A 9 P H 5 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 8 (580H5FFH) 39 40 7 6 5 4 3 2 1 P H 6 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 9 (600H67FH) F E D C B A 9 P H 6 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 10 (680H6FFH) 41 42 7 6 5 4 3 2 1 P H 7 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 11 (700H77FH) F E D C B A 9 P H 7 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 12 (780H7FFH) 43 44 7 6 5 4 3 2 1 P H 8 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 13 (800H87FH) F E D C B A 9 P H 8 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) RAM map - 14 (880H8FFH) 45 46 7 6 5 4 3 2 1 P H 9 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) External memory access area (900H97FH) F E D C B A 9 P H 9 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) External memory access area (980H9FFH) 47 48 7 6 5 4 3 2 1 P H A 0 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) Display memory (A00HA7FH) F E D C B A 9 P H A 8 LSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB LSB NAME MSB NAME MSB L 0 PROGRAM NAME: 1 2 3 4 5 6 7 8 9 A B C D E F E0C6247 E0C6247 Development Tool Manual (Appendix) Display memory (A80HAFFH) 49 50 F E D C B A 3 9 2 1 P H 0 8 0 NAME MSB SVDS3 SVDS2 SVDS1 LSB SVDS0 NAME MSB SIK03 SIK03 SIK02 SIK02 SIK01 SIK01 LSB SIK00 SIK00 NAME MSB 0 0 0 LSB R0HIZ NAME MSB IOC03 IOC03 IOC02 IOC02 IOC01 IOC01 LSB IOC00 IOC00 NAME MSB IOC43 IOC43 IOC42 IOC42 IOC41 IOC41 LSB IOC40 IOC40 NAME MSB LDUTY VCCHG LSB LPWR NAME MSB ENRTM ENRST ENON LSB BZE NAME MSB 0 0 0 LSB EIPT L PROGRAM NAME: LC3 LC2 LC1 LC0 P43 P42 P41 P40 P03/D03 P03/D03 P02/D02 P02/D02 P01/D01 P01/D01 P00/D00 P00/D00 0 0 0 R1HIZ KCP03 KCP03 KCP02 KCP02 KCP01 KCP01 KCP00 KCP00 2 0 EISIFE EISIFT EISIFR 0 0 0 EIK1 0 0 BZSTP BZFQ2 BZSHT BZFQ1 SHTPW BZFQ0 0 ALOFF ALON LPAGE PUL43 PUL43 PUL42 PUL42 PUL41 PUL41 PUL40 PUL40 PUL03 PUL03 PUL02 PUL02 PUL01 PUL01 PUL00 PUL00 R03 R02 R01 R00 K03 K02 K01 K00 0 0 SVDDT SVDON 1 0 0 0 EIK0 0 BDTY2 BDTY1 BDTY0 R13 R12 R11 R10 3 EIT3 EIT2 EIT1 EIT0 IOC13 IOC13 IOC12 IOC12 IOC11 IOC11 IOC10 IOC10 0 0 0 R2HIZ SIK13 SIK13 SIK12 SIK12 SIK11 SIK11 SIK10 SIK10 VCSEL VDSEL HLON DBON 4 PUL13 PUL13 PUL12 PUL12 PUL11 PUL11 PUL10 PUL10 R23 R22 R21 R20 K13 K12 K11 K10 5 P13/D07 P13/D07 P12/D06 P12/D06 P11/D05 P11/D05 P10/D04 P10/D04 R33HIZ R33HIZ R32HIZ R32HIZ R31HIZ R31HIZ R30HIZ R30HIZ KCP13 KCP13 KCP12 KCP12 KCP11 KCP11 KCP10 KCP10 6 R33 R32 R31 R30 7 9 A B C 0 0 0 IPT 0 0 PTPS1 PTPS0 0 SMD1 SMD0 ESIF IOC23 IOC23 IOC22 IOC22 IOC21 IOC21 IOC20 IOC20 R43HIZ R43HIZ R42HIZ R42HIZ R41HIZ R41HIZ R40HIZ R40HIZ RXTRG RXEN TXTRG TXEN P23/CS3 P23/CS3 P22/CS2 P22/CS2 P21/CS1 P21/CS1 P20/CS0 P20/CS0 SELR43 SELR43 SELR42 SELR42 0 0 A03 A02 A01 A00 0 ISIFE ISIFT ISIFR 0 0 0 IK1 0 PNRFS 0 PTOE PTPC1 PTRUN PTPC0 PTRST EPR PMD SCS1 SCS0 PUL23 PUL23 PUL22 PUL22 PUL21 PUL21 PUL20 PUL20 R43 R42 R41 R40 EXTMF HZCS HZBUS 0 MEMS1 ADINC MEMS0 PICON 0 0 0 IK0 RD3 RD2 RD1 RD0 0 FER PER OER A07 A06 A05 A04 IT3 IT2 IT1 IT0 RD7 RD6 RD5 RD4 TRXD3 TRXD2 TRXD1 TRXD0 IOC33 IOC33 IOC32 IOC32 IOC31 IOC31 IOC30 IOC30 A11 A10 A09 A08 CLKCHG FOUTE 0 0 0 OSCC 0 0 0 0 0 TMRUN PRSM1 VDC1 FOFQ1 PRSM0 VDC0 FOFQ0 WDRST TMRST 8 PT3 PT2 PT1 PT0 TRXD7 TRXD6 TRXD5 TRXD4 PUL33 PUL33 PUL32 PUL32 PUL31 PUL31 PUL30 PUL30 A15 A14 A13 A12 TM3 TM2 TM1 TM0 D PT7 PT6 PT5 PT4 P33 P32 P31 P30 0 0 0 A16 TM7 TM6 TM5 TM4 E SELP33 SELP33 SELP32 SELP32 SELP31 SELP31 SELP30 SELP30 F E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory (page 0 to 3, 80HFFH) E0C6247 E0C6247 Development Tool Manual (Appendix) APPENDIX C. E0C6247 E0C6247 I/O MEMORY MAP I/O memory map (80H8EH) Address D3 *7 Register D2 D1 D0 SVDS3 SVDS2 SVDS1 SVDS0 0 0 0 SVDDT SVDON 89H 0 0 0 0 0 0 0 0 0 0 VDC0 FOFQ1 FOFQ0 8AH 8CH 8DH 8EH *2 *2 0 0 *5 Remarks 0 0 OSC3 On Enable *2 0 FOFQ0 0 0 *5 *2 0 *5 *2 0 *5 *2 *5 R W WDRST Reset 0 *5 *2 0 0 TMRUN TMRST 0 *5 *2 TMRUN 0 R R/W W *5 TMRST Reset TM3 0 TM3 TM2 TM1 TM0 TM2 0 TM1 0 R TM0 0 TM7 0 TM4 TM7 TM6 TM5 TM6 0 TM5 0 R TM4 0 0 8BH R/W R Low On VD2 VD2 On On 0 FOFQ1 R/W *2 0 FOUTE FOUTE *2 0 VDC1 R/W 1 0 0 *5 0 *5 SVDDT R R/W SVDON VCSEL VCSEL VDSEL HLON DBON VDSEL HLON R/W DBON 0 *5 0 0 PRSM1 PRSM0 0 *5 PRSM1 R R/W PRSM0 CLKCHG CLKCHG OSCC VDC1 VDC0 OSCC 0 88H SVDS2 SVDS0 R/W 84H Init *1 0 SVDS1 80H 81H Name SVDS3 0 SVD criteria voltage setting Voltage Voltage SVDS SVDS [3] [2] [1] [0] (V) [3] [2] [1] [0] (V) 0 1 1 1 1 1 1 1 1.60 2.60 0 1 1 0 1 1 1 0 1.40 2.50 0 1 0 1 1 1 0 1 1.30 2.30 0 1 0 0 1 1 0 0 1.25 2.20 0 0 1 1 1 0 1 1 1.20 2.10 0 0 1 0 1 0 1 0 1.15 2.05 0 0 0 1 1 0 0 1 1.10 2.00 0 0 0 0 1 0 0 0 1.05 1.95 Unused Unused Normal SVD detection data SVD circuit On/Off Off VDD Power selection for LCD system voltage circuit VDD Power selection for oscillation system regulated voltage circuit Halver On/Off Off Dobler On/Off Off PRSM [1] [0] fosc1 (kHz) Unused 76.8 1 1 Unused 50.0 1 0 OSC1 38.4 0 1 prescaler selection 32.768 0 0 OSC1 CPU system clock switch Off OSC3 oscillation On/Off VDC [1] [0] VD1 Oscillation circuit CPU 1 * 2.1 V OSC3 (1 MHz) operating 0 1 1.4 V OSC3 (200 kHz) voltage switch 0 0 1.2 V OSC1 Disable FOUT output enable FOFQ [1] [0] FOUT frequency Unused 1 1 fosc3 FOUT 1 0 fosc1 0 1 fosc1/8 (fosc1/16) frequency selection 0 0 fosc1/64 (fosc1/128) (In cace of fosc1 = 76.8 kHz) WDRST *1 Initial value at the time of initial reset *2 Not set in the circuit *3 Undefined *4 Reset (0) immediately after being read Comment Reset Run Reset Stop Unused Unused Unused Watchdog timer reset Unused Unused Clock timer Run/Stop Clock timer reset Clock timer data (16 Hz) Clock timer data (32 Hz) Clock timer data (64 Hz) Clock timer data (128 Hz) Clock timer data (1 Hz) Clock timer data (2 Hz) Clock timer data (4 Hz) Clock timer data (8 Hz) fosc1 (12.5 Hz) = 50 kHz (25 Hz) (50 Hz) (100 Hz) *5 Constantly "0" when being read *6 Refer to main manual *7 Page switching in I/O memory is not necessary 51 E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory map (90H9EH) Address *7 D3 SIK03 SIK03 Register D2 D1 SIK02 SIK02 D0 SIK00 SIK00 SIK01 SIK01 90H R/W K03 K02 K00 K01 91H R KCP03 KCP03 KCP02 KCP02 KCP01 KCP01 KCP00 KCP00 92H R/W SIK13 SIK13 SIK12 SIK12 SIK10 SIK10 SIK11 SIK11 94H R/W K13 K12 K10 K11 95H R KCP13 KCP13 KCP12 KCP12 KCP11 KCP11 KCP10 KCP10 96H R/W EXTMF 0 R/W MEMS1 R MEMS0 98H Name SIK03 SIK03 SIK02 SIK02 SIK01 SIK01 SIK00 SIK00 K03 K02 K01 K00 KCP03 KCP03 KCP02 KCP02 KCP01 KCP01 KCP00 KCP00 SIK13 SIK13 SIK12 SIK12 SIK11 SIK11 SIK10 SIK10 K13 K12 K11 K10 KCP13 KCP13 KCP12 KCP12 KCP11 KCP11 KCP10 KCP10 EXTMF 0 *5 Init *1 0 0 0 0 *2 *2 *2 *2 1 1 1 1 0 0 0 0 *2 *2 *2 *2 1 1 1 1 0 *2 MEMS1 R/W 0 MEMS0 0 1 Enable Enable Enable Enable High High High High 0 Disable Disable Disable Disable Low Low Low Low Comment K00K03 interrupt selection register K00K03 input port data K00K03 input comparison register Enable Enable Enable Enable High High High High Disable Disable Disable Disable Low Low Low Low K10K13 interrupt selection register K10K13 input port data K10K13 input comparison register On Off External memory access function control MEMS [1] [0] Size (bit) External memory 1 1 1M (R only) (A00A16) 1 0 512K (R/W) (A00A15) 0 1 256K (R/W) (A00A14) size selection 0 0 64K (R/W) (A00A12) CS0CS3 output high-impedance control Address bus, RD/WR high-impedance control External memory address increment External memory address auto increment mode Unused High-Z Output HZCS 0 High-Z Output HZBUS 0 99H Increment ADINC 0 R/W W R/W Auto inc. Normal PICON 0 1 0 A03 *2 A00 A03 A02 A01 External memory address A00A03 (EXTMF = 1) 1 0 A02 *2 Functions as a general-purpose register 9AH 1 0 A01 *2 when EXTMF = 0. R/W 1 0 A00 *2 1 0 A07 *2 A04 A07 A06 A05 External memory address A04A07 (EXTMF = 1) 1 0 A06 *2 Functions as a general-purpose register 9BH 1 0 A05 *2 when EXTMF = 0. R/W 1 0 A04 *2 1 0 A11 *2 A08 A11 A10 A09 External memory address A08A11 (EXTMF = 1) 1 0 A10 *2 Functions as a general-purpose register 9CH 1 0 A09 *2 when EXTMF = 0. R/W 1 0 A08 *2 External memory address A12A15 (EXTMF = 1) 1 0 A15 *2 A12 A15 A14 A13 Bits that are not used as an address for 1 0 A14 *2 9DH external memory access can also be used 1 0 A13 *2 R/W as a general-purpose register. 1 0 A12 *2 Unused 0 *5 *2 A16 0 0 0 Unused 0 *5 *2 9EH Unused 0 *5 *2 R R/W External memory address A16 *8 1 0 A16 *2 *8 When other than EXTMF = 1 and a memory less than 1M bits are used, it functions as a general-purpose register. HZCS 52 HZBUS ADINC PICON E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory map (A0HAAH) Register D2 D1 Address *7 D3 0 0 D0 0 R0HIZ A0H R R03 R/W R01 R00 0 R02 R1HIZ A1H R/W 0 0 A2H R R13 R/W R11 R10 0 R12 R2HIZ A3H R/W 0 0 A4H R R23 R/W R21 R20 R31HIZ R31HIZ R30HIZ R30HIZ R22 A5H R/W R33HIZ R33HIZ R32HIZ R32HIZ A6H R/W R33 R31 R30 R41HIZ R41HIZ R40HIZ R40HIZ R32 A7H R/W R43HIZ R43HIZ R42HIZ R42HIZ A8H R/W Name 0 *5 0 *5 0 *5 R0HIZ R03 R02 R01 R00 0 *5 0 *5 0 *5 R1HIZ R13 R12 R11 R10 0 *5 0 *5 0 *5 R2HIZ R23 R22 R21 R20 R33HIZ R33HIZ R32HIZ R32HIZ R31HIZ R31HIZ R30HIZ R30HIZ R33 R32 R31 R30 R43HIZ R43HIZ R42HIZ R42HIZ R41HIZ R41HIZ Init *1 *2 *2 *2 0 1 1 1 1 *2 *2 *2 0 1 1 1 1 *2 *2 *2 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 High-Z High High High High High-Z High High High High 0 Output Low Low Low Low Output Low Low Low Low High-Z High High High High High-Z High-Z High-Z High-Z High High High High High-Z High-Z High-Z Output Low Low Low Low Output Output Output Output Low Low Low Low Output Output Output R40 A9H R/W SELR43 SELR43 SELR42 SELR42 0 0 AAH R/W R Output 0 High Low R42 0 High Low 1 High Low R40 R41 High-Z R41 R42 0 R43 R43 R40HIZ R40HIZ 1 High Low BZ BZ Normal Normal SELR43 SELR43 SELR42 SELR42 0 *5 0 *5 0 0 *2 *2 Comment Unused * R0HIZ functions as a general-purpose Unused register when EXTMF = 1. Unused R0 output high-impedance control (EXTMF = 0) R00R03 output port data (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. Unused * R1HIZ functions as a general-purpose Unused register when EXTMF = 1. Unused R1 output high-impedance control (EXTMF = 0) R10R13 output port data (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. Unused * R2HIZ functions as a general-purpose Unused register when EXTMF = 1. Unused R2 output high-impedance control (EXTMF = 0) R20R23 output port data (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. R30R33 output high-impedance control Bit corresponding to the address bus for external memory can be used as a general-purpose register when EXTMF = 1. R30R33 output port data Bit corresponding to the address bus for external memory can be used as a general-purpose register when EXTMF = 1. R43 output high-impedance control R42 output high-impedance control R41 output high-impedance control (EXTMF = 0) (General-purpose register when EXTMF = 1) R40 output high-impedance control (EXTMF = 0) (General-purpose register when EXTMF = 1) R43 output port data (SELR43 SELR43 = 0) (General-purpose register when BZ output is selected) R42 output port data (SELR42 SELR42 = 0) (General-purpose register when BZ output is selected) R41 output port data (EXTMF = 0) (General-purpose register when EXTMF = 1) R40 output port data (EXTMF = 0) (General-purpose register when EXTMF = 1) R43 function selection register (BZ or general-purpose output) R42 function selection register (BZ or general-purpose output) Unused Unused 53 E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory map (B0HBAH) Address *7 D3 IOC03 IOC03 Register D2 D1 D0 IOC01 IOC01 IOC00 IOC00 PUL01 PUL01 PUL00 PUL00 IOC02 IOC02 B0H R/W PUL03 PUL03 PUL02 PUL02 B1H R/W P03 P02 P01 P00 D03 D02 D01 D00 B2H R/W IOC13 IOC13 IOC11 IOC11 IOC10 IOC10 PUL11 PUL11 PUL10 PUL10 IOC12 IOC12 B4H R/W PUL13 PUL13 PUL12 PUL12 B5H R/W P13 P12 P11 P10 D07 D06 D05 D04 B6H R/W IOC23 IOC23 IOC21 IOC21 IOC20 IOC20 PUL21 PUL21 PUL20 PUL20 IOC22 IOC22 B8H R/W PUL23 PUL23 PUL22 PUL22 B9H R/W P23 P22 P21 P20 CS3 CS2 CS1 CS0 BAH R/W 54 Name IOC03 IOC03 IOC02 IOC02 IOC01 IOC01 IOC00 IOC00 PUL03 PUL03 PUL02 PUL02 PUL01 PUL01 PUL00 PUL00 P03 P02 P01 P00 D03 D02 D01 D00 IOC13 IOC13 IOC12 IOC12 IOC11 IOC11 IOC10 IOC10 PUL13 PUL13 PUL12 PUL12 PUL11 PUL11 PUL10 PUL10 P13 P12 P11 P10 D07 D06 D05 D04 IOC23 IOC23 IOC22 IOC22 IOC21 IOC21 IOC20 IOC20 PUL23 PUL23 PUL22 PUL22 PUL21 PUL21 PUL20 PUL20 P23 P22 P21 P20 CS3 CS2 CS1 CS0 Init *1 0 0 0 0 1 1 1 1 *2 *2 *2 *2 *2 *2 *2 *2 0 0 0 0 1 1 1 1 *2 *2 *2 *2 *2 *2 *2 *2 0 0 0 0 1 1 1 1 *2 *2 *2 *2 *2 *2 *2 *2 1 Output Output Output Output On On On On High High High High 1 1 1 1 Output Output Output Output On On On On High High High High 1 1 1 1 Output Output Output Output On On On On High High High High Disable Disable Disable Disable 0 Input Input Input Input Off Off Off Off Low Low Low Low 0 0 0 0 Input Input Input Input Off Off Off Off Low Low Low Low 0 0 0 0 Input Input Input Input Off Off Off Off Low Low Low Low Active Active Active Active Comment P00P03 I/O control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P00P03 pull up control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P00P03 I/O port data (EXTMF = 0) External memory data D00D03 (EXTMF = 1) P10P13 I/O control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P10P13 pull up control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P10P13 I/O port data (EXTMF = 0) External memory data D04D07 (EXTMF = 1) P20P23 I/O control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P20P23 pull up control register (EXTMF = 0) Functions as a general-purpose register when EXTMF = 1. P20P23 I/O port data (EXTMF = 0) Chip select CS0CS3 active standby (EXTMF = 1) E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory map (BCHC2H) Address *7 D3 IOC33 IOC33 Register D2 D1 IOC32 IOC32 IOC31 IOC31 D0 IOC30 IOC30 Name IOC33 IOC33 Init *1 1 Output 0 0 Input P33 P32 P31 P30 BEH R/W Output Input 1 On Off PUL32 PUL32 1 On Off 1 On Off 1 On Off *2 High Low P32 *2 High Low *2 High Low P30 R/W 0 P31 BDH Input P33 PUL30 PUL30 Output PUL30 PUL30 PUL31 PUL31 0 PUL31 PUL31 PUL32 PUL32 Input PUL33 PUL33 PUL33 PUL33 Output IOC30 IOC30 R/W 0 IOC31 IOC31 BCH IOC32 IOC32 *2 High Low IOC43 IOC43 IOC41 IOC41 IOC40 IOC40 C0H R/W PUL43 PUL43 PUL42 PUL42 PUL41 PUL41 PUL40 PUL40 C1H R/W P43 P42 P41 C2H R/W P40 Output Input 0 Output Input 0 Output Input 1 On Off PUL42 PUL42 1 On Off 1 On Off 1 On Off *2 High Low P42 *2 High Low P41 IOC42 IOC42 0 P43 R/W IOC42 IOC42 PUL40 PUL40 BFH I/O I/O I/O I/O Input PUL41 PUL41 SELP30 SELP30 FOUT PTOVF FR CL Output IOC40 IOC40 SELP31 SELP31 0 0 0 0 0 PUL43 PUL43 SELP32 SELP32 SELP33 SELP33 SELP32 SELP32 SELP31 SELP31 SELP30 SELP30 IOC43 IOC43 IOC41 IOC41 SELP33 SELP33 *2 High Low P40 *2 High Low Comment P33 I/O control register (SELP33 SELP33 = 0) (General-purpose register when FOUT output is selected) P32 I/O control register (SELP32 SELP32 = 0) (General-purpose register when PTOVF output is selected) P31 I/O control register (SELP31 SELP31 = 0) (General-purpose register when FR output is selected) P30 I/O control register (SELP30 SELP30 = 0) (General-purpose register when CL output is selected) P33 pull up control register (SELP33 SELP33 = 0) (General-purpose register when FOUT output is selected) P32 pull up control register (SELP32 SELP32 = 0) (General-purpose register when PTOVF output is selected) P31 pull up control register (SELP31 SELP31 = 0) (General-purpose register when FR output is selected) P30 pull up control register (SELP30 SELP30 = 0) (General-purpose register when CL output is selected) P33 I/O port data (SELP33 SELP33 = 0) (General-purpose register when FOUT output is selected) P32 I/O port data (SELP32 SELP32 = 0) (General-purpose register when PTOVF output is selected) P31 I/O port data (SELP31 SELP31 = 0) (General-purpose register when FR output is selected) P30 I/O port data (SELP30 SELP30 = 0) (General-purpose register when CL output is selected) P33 function selection register (FOUT output or I/O) P32 function selection register (PTOVF output or I/O) P31 function selection register (FR output or I/O) P30 function selection register (CL output or I/O) P43 I/O control register (General-purpose register when SI/F (sync. slave) is selected) P42 I/O control register (General-purpose register when SI/F (sync.) is selected) P41 I/O control register (ESIF = 0) (General-purpose register when SI/F is selected) P40 I/O control register (ESIF = 0) (General-purpose register when SI/F is selected) P43 pull up control register (General-purpose register when SI/F (sync. slave) is selected) P42 pull up control register (General-purpose register when SI/F (sync. master) is selected) P41 pull up control register (ESIF = 0) (General-purpose register when SI/F is selected) P40 pull up control register (ESIF = 0) SIN pull up control register (ESIF = 1) P43 I/O port data (General-purpose register when SI/F (sync. slave) is selected) P42 I/O port data (General-purpose register when SI/F (sync.) is selected) P41 I/O port data (ESIF = 0) (General-purpose register when SI/F is selected) P40 I/O port data (ESIF = 0) (General-purpose register when SI/F is selected) 55 E0C6247 E0C6247 Development Tool Manual (Appendix) I/O memory map (C8HD2H) Address *7 D3 0 Register D2 D1 SMD1 SMD0 D0 Name 0 *5 Init *1 *2 ESIF SMD1 0 SMD0 0 ESIF EPR 0 0 PMD 0 SCS1 SCS0 PMD SCS1 SCS0 C9H R/W RXTRG RXEN TXTRG TXEN 0 TXTRG(R) R/W 0 FER OER CBH TRXD3 R/W TRXD2 TRXD1 TRXD0 CCH R/W TRXD7 TRXD6 TRXD5 TRXD4 CDH R/W LDUTY 0 LPWR ALON VCCHG LPAGE D0H R/W 0 ALOFF D1H R/W R LC3 LC2 LC1 D2H R/W 56 0 0 TXTRG(W) PER R Odd RXTRG(W) RXEN CAH LC0 Unu