Download Print this page

Epson S1C33 Series Operation Manual

Debug monitor
Hide thumbs

Advertisement

Quick Links

MF1200-02
CMOS 32 - BIT SINGLE CHIP MICROCOMPUTER
S1C33 Family
Debug Monitor Operation Manual

Advertisement

loading

  Also See for Epson S1C33 Series

  Related Manuals for Epson S1C33 Series

  Summary of Contents for Epson S1C33 Series

  • Page 1 MF1200-02 CMOS 32 - BIT SINGLE CHIP MICROCOMPUTER S1C33 Family Debug Monitor Operation Manual...
  • Page 2 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...
  • Page 3 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.
  • Page 5: Table Of Contents

    Written for those who develop applications using the S1C33 Family of microcomputers, this manual describes how to implement the S1C33 Family debug monitor library S5U1C330M2S and how to debug the target program. 1 S5U1C330M2S Package ...1 1.1 Features ...1 1.2 Components of S5U1C330M2S Package ...2 1.3 Installation...2...
  • Page 7: S5U1C330M2S Package

    1 S5U1C330M2S Package The Debug Monitor S5U1C330M2S is a middleware designed for S1C33 Family single-chip microcomputers. It provides program-debugging functions on the user target board or for the actual product. 1.1 Features The following lists the features of S5U1C330M2S: It is provided as a library file that can be linked to the user program.
  • Page 8: Components Of S5U1C330M2S Package

    S5U1C330M2S needs to be linked with the user program as it is implemented. Therefore, make sure all tools of the "S1C33 Family C Compiler Package" have been installed in the personal computer and are ready to run before installing the S5U1C330M2S files. The basic system configuration is described below.
  • Page 9 The source files can be modified to use in the application program if necessary. Refer to "readme.txt" or "readmeja.txt" for the contents of the dmt33xxx folder. S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL Make file for building mon33ch0.lib Make file for building mon33ch1.lib Make file for building mon33.lib...
  • Page 10: Implementing The Debug

    Communication via RS232C is performed by a software polling method without any interrupt related resource. A serial I/O device outside the S1C33 chip can be used by customizing the serial I/O routine (see Section 2.4). S5U1C330M2S uses the TXD, RXD and status registers of the corresponding serial interface channel exclusively.
  • Page 11: Starting Up The Debug Monitor

    The debug monitor starts by jumping to m_mon_start( ). Normally, provide a select switch outside the S1C33 chip for selecting either starting up the debug monitor or a normal execution and create the program that can jump to m_mon_start( ) from the boot routine after an initial reset.
  • Page 12: Building An Application Program

    When using the serial interface on the S1C33 chip and the S5U1C330MxD1 board, link "mon33ch0.lib" (Ch.0 is used) or "mon33ch1.lib" (Ch.1 is used) accordingly. When not using the serial interface on the S1C33 chip and the S5U1C330MxD1 board, create serial I/O routines separately and link "mon33.lib".
  • Page 13: Creating Communication Control Routines

    For communicating with the debugger, the debug monitor calls the following four RS232C routines (1 to 4). "mon33chX.lib" that contains these routines can be used when using the serial interface Ch.0 or Ch.1 on the S1C33 chip and the S5U1C330MxD1 board. Otherwise, it is necessary to create these routines according to the system since "mon33.lib"...
  • Page 14 ;FER1(bit4) == 0 ? ;FER1(bit4) 0 clear ;return 1 ;PER1(bit3) == 0 ? ;PER1(bit3) 0 clear ;return 2 ;OER1(bit2) == 0 ? ;OER1(bit2) 0 clear ;return 3 ;read data ;read data set ;restore r3-r0 EPSON S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL...
  • Page 15 ... Originally created SIO routine m3s_sci.o ;Library files string.lib ctype.lib fp.lib idiv.lib ... Link "mon33.lib" that does not include SIO routine mon33.lib S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL 2 IMPLEMENTING THE DEBUG MONITOR ;read data ;mon firmware version EPSON...
  • Page 16: Target Program And Debugging

    ; this file version ; external ROM 1MB ; internal RAM area 2KB ; internal IO area 64KB ; external FLASH 1MB ; external SRAM 1MB ; external ROM 1MB ; external stack area 1MB EPSON S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL...
  • Page 17: Starting Up And Terminating Procedure Of Debugging

    Follow the procedure in order from Step 4 to Step 1 to terminate debugging and for power off. Note: When connecting and disconnecting the RS232C cable, make sure the target board and the personal computer are off. S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL 3 TARGET PROGRAM AND DEBUGGING...
  • Page 18: Debugging Method

    ; Set up a hardware PC break at the label ESC (for forced break) bh ESC ; nmi ; Label set as a hardware PC break point for the forced break function EPSON S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL...
  • Page 19 * 2 : Th i s s a mp l e ( " d mt 3 3 0 0 4 \ s a mp l e \ l e d 2 .s r f " ) a s s u me s t h a t a Fl a s h me mo r y o f 1 MB i s l o c a t e d a t 0 x 2 0 0 0 0 0 – 0 x 2 f f f f f . S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL 3 TARGET PROGRAM AND DEBUGGING ;...
  • Page 20: Precautions For Debugging

    /s te p e xe c u ti on s ta r ts , h owe v e r t he y r e st a r t i mmed ia t e ly . I nt e r r up ts wh il e t he t ar g e t p ro gr a m i s suspended are disabled according to the IE-bit status of the PSR. EPSON S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL...
  • Page 21: Appendix S5U1C330Mxd1 Board

    The S5U1C330MxD1 allows on-board debugging using the debugger (db33.exe) on a personal computer by connecting it to the target board in which the S1C33 Family debug monitor (S5U1C330M2S) has been implemented. Two types of boards are available: S5U1C330M1D1 board for 5 V operation and S5U1C330M2D1 for 3.3 V operation.
  • Page 22: Connecting The System

    S5U1C330MxD1 I/F connector (supplied with the S5U1C330MxD1 package) to the target board. See Table A.2.1 for the pin layout of the S5U1C33xxxDx/target board I/F connector. RS232C cable (supplied with the S5U1C330MxD1 package) COMx (male) (female) EPSON EPSON S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL...
  • Page 23: S5U1C330Mxd1 Block Diagram

    A.4 S5U1C330MxD1 Block Diagram RS232C connector (Dsub 9 pins) UPD4724 1.843MHz crystal oscillator Figure A.4.1 S5U1C330MxD1 block diagram S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL APPENDIX S5U1C330MXD1 BOARD S5U1C33xxxD1/target board I/F connector (12 pins) 1, 2, 9 11, 12 (RESET) (NMI)
  • Page 24: Program Debugging With A S5U1C33Xxxdx Board And S5U1C330M2S

    S5U1C330MxD1 board and the S5U1C33104Dx/S5U1C33209Dx board using the S5U1C330M2S. The sample program for the S5U1C33104Dx/S5U1C33209Dx is used for the explanation. Further, the development tools in the "S1C33 Family C Compiler Package" including the debugger (db33 ver. 1.72 or later) that supports S5U1C330M2S should be installed for debugging.
  • Page 25 2) Enter the following command at the DOS prompt. C:\...\SAMPLE\>make -f led.mak C:\...\SAMPLE\>make -f led2.mak Make can also be executed from the work bench wb33 (refer to the "S1C33 Family C Compiler Package Manual"). Starting up the debug monitor The boot routine mapped from address 0xC00000 on the S5U1C33104Dx/S5U1C33209Dx starts the debug monitor when the K63 input port is set to "0".
  • Page 26 The debugger db33 ver. 1.72 or later version supports debugging in the Flash memory. Refer to the "Debugger" section of the "S1C33 Family C Compiler Package Manual" for details of operations. To write the sample program to the Flash memory, first load the Flash erase/write routine "am29f800.srf". Then initialize the Flash memory functions using the fls and fle commands and load the sample program into the Flash memory using the lf command.
  • Page 27: Indispensable Signal Pins Of S5U1C330Mxd1

    Example: Connecting the target board to S5U1C330MxD1 with five wires Figure A.6.1 Connection example using indispensable pins The NMI, RESET and/or DEBUG signals should be connected if necessary. S1C33 FAMILY DEBUG MONITOR OPERATION MANUAL APPENDIX S5U1C330MXD1 BOARD User target board...
  • Page 28 EPSON HONG KONG LTD. 20/F., Harbour Centre, 25 Harbour Road Wanchai, Hong Kong Phone: +852-2585-4600 Fax: +852-2827-4346 Telex: 65542 EPSCO HX EPSON TAIWAN TECHNOLOGY & TRADING LTD. 10F, No. 287, Nanking East Road, Sec. 3 Taipei Phone: 02-2717-7360 Fax: 02-2712-9164 Telex: 24444 EPSONTB HSINCHU OFFICE 13F-3, No.
  • Page 29 In pursuit of “Saving” Technology, Epson electronic devices. Our lineup of semiconductors, liquid crystal displays and quartz devices assists in creating the products of our customers’ dreams. Epson IS energy savings.
  • Page 30 S1C33 Family Debug Monitor Operation Manual ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epson.co.jp/device/ First issue April, 1999 Printed February, 2001 in Japan...

This manual is also suitable for:

S5u1c330m2s