Epson S1C33 User Manual

MF1200-02
CMOS 32-BIT SINGLE CHIP MICROCOMPUTER
S1C33 Family
Debug Monitor Operation Manual
NOTICE
No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from another government agency.
Windows 95, Windows 98 and Windows NT are registered trademarks of Microsoft Corporation, U.S.A. PC/AT and IBM are registered trademarks of International Business Machines Corporation, U.S.A. All other product names mentioned herein are trademarks and/or registered trademarks of their respective owners.
© SEIKO EPSON CORPORATION 2001 All rights reserved.
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.
Configuration of product number
Devices
S1 C 33104 F 0A01
Development tools
S5U1
1: For details about tool types, see the tables below. (In some manuals, tool types are represented by one digit.)2: Actual versions are not written in the manuals.
C 33L01 D1 1
00
Packing specification Specification Package (D: die form; F: QFP) Model number Model name (C: microcomputer, digital products) Product classification (S1: semiconductor)
00
Packing specification Version (1: Version 1 ∗2) Tool type (D1: Development Tool ∗1) Corresponding model number (33L01: for S1C33L01) Tool classification (C: microcomputer use) Product classification (S5U1: development tool for semiconductor products)
Comparison table between new and previous number
S1C33 Family processors
Previous No. E0C33A104 E0C33202 E0C33204 E0C33208 E0C33209 E0C332T01 E0C332L01 E0C332L02 E0C332S08 E0C332129 E0C33264 E0C332F128
Previous No. CC33 CF33 COSIM33 GRAPHIC33 HMM33 JPEG33 MON33 MELODY33 PEN33 ROS33 SOUND33 SMT33 TS33 USB33 VOX33 VRE33
New No. S1C33104 S1C33202 S1C33204 S1C33208 S1C33209 S1C33T01 S1C33L01 S1C33L02 S1C33S01 S1C33221 S1C33222 S1C33240
New No. S5U1C33000C S5U1C330C1S S5U1C330C2S S5U1C330G1S S5U1C330H1S S5U1C330J1S S5U1C330M2S S5U1C330M1S S5U1C330P1S S5U1C330R1S S5U1C330S1S S5U1C330S2S S5U1C330T1S S5U1C330U1S S5U1C330V1S S5U1C330V2S
Comparison table between new and previous number of development tools
Development tools for the S1C33 Family
Previous No. ICE33 EM33-4M PRC33001 POD33001 ICD33 DMT33004 DMT33004PD DMT33005 DMT33005PD DMT33006LV DMT33006PDLV DMT33007 DMT33007PD DMT33008LV DMT33008PDLV DMT332S08LV DMT332S08PDLV DMT33209LV DMT33209PDLV DMT332F128LV DMT33MON DMT33MONLV DMT33AMP DMT33AMP2 DMT33AMP3 DMT33AMP4 DMT33CF DMT33CPLD400KLV
New No. S5U1C33104H S5U1C33104E S5U1C33104P1 S5U1C33104P2 S5U1C33000H S5U1C33104D1 S5U1C33104D2 S5U1C33208D1 S5U1C33208D2 S5U1C33L01D1 S5U1C33L01D2 S5U1C33208D3 S5U1C33208D4 S5U1C33T01D1 S5U1C33T01D2 S5U1C33S01D1 S5U1C33S01D2 S5U1C33209D1 S5U1C33209D2 S5U1C33240D1 S5U1C330M1D1 S5U1C330M2D1 S5U1C330A1D1 S5U1C330A2D1 S5U1C330A3D1 S5U1C330A4D1 S5U1C330C1D1 S5U1C330C2D1
Previous No. DMT33LIF DMT33SMT DMT33LCD26 DMT33LCD37 EPOD33001 EPOD33001LV EPOD33208 EPOD33208LV EPOD332L01LV EPOD332T01 EPOD332T01LV EPOD33209 EPOD33209LV EPOD332128 EPOD332128LV EPOD332S08LV MEM33201 MEM33201LV MEM33202 MEM33202LV MEM33203 MEM33203LV MEM33DIP42 MEM33TSOP48 EPOD176CABLE EPOD100CABLE EPOD33SRAM5V EPOD33SRAM3V
New No. S5U1C330L1D1 S5U1C330S1D1 S5U1C330L2D1 S5U1C330L3D1 S5U1C33208E1 S5U1C33208E2 S5U1C33208E3 S5U1C33208E4 S5U1C33L01E1 S5U1C33T01E1 S5U1C33T01E2 S5U1C33209E1 S5U1C33209E2 S5U1C33220E1 S5U1C33220E2 S5U1C33S01E1 S5U1C33001M1 S5U1C33001M2 S5U1C33002M1 S5U1C33002M2 S5U1C33003M1 S5U1C33003M2 S5U1C330D1M1 S5U1C330T1M1 S5U1C33T00E31 S5U1C33S00E31 S5U1C33000S S5U1C33001S
TABLE OF CONTENTS
Preface
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.
Table of Contents
1 S5U1C330M2S Package ................................................................................................1
1.1 Features......................................................................................................................................................................1
1.2 Components of S5U1C330M2S Package......................................................................................................2
1.3 Installation...................................................................................................................................................................2
2 Implementing the Debug ..............................................................................................4
2.1 Resources Required for the Debug Monitor..................................................................................................4
2.2 Starting Up the Debug Monitor...........................................................................................................................5
2.3 Building an Application Program........................................................................................................................6
2.4 Creating Communication Control Routines...................................................................................................7
3 Target Program and Debugging..................................................................................10
3.1 Notes for Creating Target Programs.............................................................................................................10
3.2 Parameter File for Debugging..........................................................................................................................10
3.3 Starting Up and Terminating Procedure of Debugging..........................................................................11
3.4 Debugging Method...............................................................................................................................................12
3.5 Precautions for Debugging................................................................................................................................14
3.5.1 Restriction on Debugging Command..........................................................................................14
3.5.2 Other Precautions ..............................................................................................................................14
Appendix S5U1C330MxD1 Board ................................................................................15
A.1 Outline of S5U1C330MxD1 Board.................................................................................................................15
A.2 Names and Functions of Each Part..............................................................................................................15
A.3 Connecting the System......................................................................................................................................16
A.4 S5U1C330MxD1 Block Diagram....................................................................................................................17
A.5 Program Debugging with a S5U1C33xxxDx Board and S5U1C330M2S.......................................18
A.6 Indispensable Signal Pins of S5U1C330MxD1.........................................................................................21
S1C33 FAMILY DEBUG MONITOR EPSON OPERATION MANUAL
i

1 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.
This package also contains source codes of all the modules.
S5 U1 C33 0M2 S u se s a pp r ox . 1 0KB RO M, a pp r ox . 2 .5K B RA M a nd a c ha n ne l o f s er i a l i nt er f a c e o n t he S1 C33
chip. It allows direct program debugging via the S5U1C330MxD1 board using the debugger db33 on the personal computer.
Allows debugging of the target program in the RAM, ROM or Flash memory on the target board.
Supports the following debugging functions:
- Successive execution and step execution of the program
- PC break and data break
- Memory/register operation
- Flash memory writing
A configuration of the debugging system is shown in Figure 1.1.1.
Target board
S1C33xxx
Serial
interface
External
RAM
External
ROM
Figure 1.1.1 Configuration of debugging system
FLASH
memory
S5U1C330MxD1 interface board
RS232C
115,200 bps
Debugger
db33
EPSON
S1C33 FAMILY DEBUG MONITOR EPSON OPERATION MANUAL
1
1 S5U1C330M2S PACKAGE

1.2 Components of S5U1C330M2S Package

The following lists the contents of S5U1C330M2S Package: When unpacking, make sure that all of the following components are included. (1) Tool disk (3.5' FD for PC/AT, 1.44MB) 1 (2) S1C33 Family Debug Monitor Operation Manual (this manual) 2 (1 English/1 Japanese) (3) Warranty 2 (1 English/1 Japanese)
1.3 Installation
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.
Personal computer: IBM PC/AT or compatible (PC with Pentium 90 MHz or higher and 32MB or more memory recommended) One channel of the serial port is used to communicate with the debug monitor.
OS:
Windows95, Windows NT 4.0 or higher version (English version or Japanese version)
All the S5U1C330M2S files are supplied on one floppy disk. Execute the self-extract file "mon33vXX.exe" on the FD to install the files. ("XX" in the file name represents the version number, for example, "mon33v10.exe" is the file name of S5U1C330M2S ver. 1.0.) When "mon33vXX.exe" is started up by double-clicking the file icon, the following dialog box appears.
Enter a path/folder name in the text box then click [Unzip]. The specified folder will be created and all the files will be copied to the folder.
When the specified folder already exists on the specified path, the folder will be overwritten without prompting if [Overwrite Files Without Prompting] is checked.
The following lists the configuration of directories and files after copying. (root)\ (default: C:\E0C33\MON33\)
readme.txt Supplementary explanation (in English) readmeja.txt Supplementary explanation (in Japanese)
lib\ ..... MON33 library
mon33ch0.lib S5U1C330M2S library that uses the serial I/F Ch.0 on the S1C33xxx mon33ch1.lib S5U1C330M2S library that uses the serial I/F Ch.1 on the S1C33xxx mon33.lib S5U1C330M2S library that does not use a serial I/F on the S1C33xxx
... These libraries cannot be used with the ICE or ICD.
Normally, either "mon33ch0.lib" or "mon33ch1.lib" is used according to the serial I/F channel used. Use "mon33.lib" when providing a serial I/O circuit separately and when not using the S5U1C330MxD1 board.
mon33ice.lib Library that does not use a serial I/F on the S1C33xxx for debugging the
S5U1C330M2S using the ICE or ICD
2
EPSON S1C33 FAMILY DEBUG MONITOR
OPERATION MANUAL
1 S5U1C330M2S PACKAGE
mon33ch0.mak Make file for building mon33ch0.lib mon33ch1.mak Make file for building mon33ch1.lib mon33.mak Make file for building mon33.lib mon33ice.mak Make file for building mon33ice.lib
src\ ..... MON33 source files
m33_def.h S5U1C330M2S definition file m3c_brk.c C source file for break functions m3c_exe.c C source file for program execution m3c_flsh.c C source file for Flash memory operation m3c_main.c S5U1C330M2S main C source file m3c_mem.c C source file for memory operation m3c_othe.c C source file for other functions m3c_sci.c C source file for sending/receiving messages m3s_exe.s Assembly source file for program execution m3s_flsh.s Assembly source file for Flash memory operation m3s_init.s Assembly source file for S5U1C330M2S initial set-up m3s_mem.s Assembly source file for memory operation m3s_sci.s Assembly source file for sending/receiving messages
dmt33xxx\ ..... Sample source files for the S5U1C33xxxDx, MON33 build files and related files
A sample program for blinking the LED on the S5U1C33xxxDx, a source for the on­board Flash memory write/erase routines and the make files are included in each dmt33xxx folder. 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 EPSON OPERATION MANUAL
3
Loading...
+ 21 hidden pages