ST7MDTx-KIT - SeekDataSheet

ST7MDTx-KIT - SeekDataSheet
ST7MDTx-KIT
ST7 MCU STARTER KIT
Each ST7 Starter kit includes all you need to get
started with the selected ST7 devices.
Software Features (ST7 CDROM)
■
Hardware Features
■
■
■
■
■
EPROM Programming Board (EPB)
13.5 V Power Supply
Interface Cable for connection to PC parallel
port (LPT)
EPROM Sample Devices:
– MDT1:
2 x ST72E251G2 (CERDIP 32-pin)
– MDT2:
ST72E311N4D0S (CERDIP 56-pin)
ST72E311J4D0S (CERDIP 42-pin)
– MDT4:
ST72E272K4D0 (CERDIP 32-pin)
ST72E372J4D0 (CERDIP 42-pin)
ST72E671N6D0 (CERDIP 56-pin)
■
■
■
■
■
Software Development Tools for Windows 3.11,
Windows 95 and Windows NT:
ST Assembler, Linker, Librarian and Formatter
WGDB7 Simulator/Debugger
EPROMer Utility
Demo Version of Hiware C Toolchain
Application Notes with source code software
examples.
ST7 Instruction Set Help File
Rev. 1.0
May 1998
1/17
15
Table of Contents
ST7MDTx-KIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1 OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 MDT1 BOARD LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 MDT2 BOARD LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 MDT4 BOARD LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.2 ST Assembly Chain for the ST7 Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 METHOD OF OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 SOFTWARE INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
6
7
7
2.2 USING THE ST ASSEMBLY CHAIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 STARTING THE WGDB7 DEBUGGER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 PROGRAMMING ST7 DEVICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.1
2.4.2
2.4.3
2.4.4
2/17
16
Target Devices . . . . . . . . . . . . . .
Board and Device Setting Up . . .
Starting the Windows Epromer .
Configuring the Epromer . . . . . .
.......
.......
.......
.......
......
......
......
......
.......
.......
.......
.......
......
......
......
......
......
......
......
......
.......
.......
.......
.......
12
12
13
14
ST7MDTX-KIT
1 OVERVIEW
1.1 MDT1 BOARD LAYOUT
8MHz Crystal Oscillator
Parallel (Centronics)
PC Connector
SDIP32 ZIF MCU Socket
Reserved area
MCU
Power On
LED (red)
Board
Power On
LED (green)
Power Supply
Jack Connector
3/17
17
ST7MDTX-KIT
1.2 MDT2 BOARD LAYOUT
SDIP56 ZIF MCU Socket
8MHz Crystal Oscillator
Parallel (Centronics)
PC Connector
SDIP42 ZIF MCU Socket
RESERVED AREA
MCU
Power On
LED (red)
4/17
18
Board
Power On
LED (green)
Power Supply
Jack Connector
ST7MDTX-KIT
1.3 MDT4 BOARD LAYOUT
SDIP56 ZIF MCU Socket
8MHz Crystal Oscillator
SDIP32 ZIF MCU Socket
Parallel (Centronics)
PC Connector
SDIP42 ZIF MCU Socket
RESERVED AREA
MCU
Power On
LED (red)
Board
Power On
LED (green)
Power Supply
Jack Connector
5/17
19
ST7MDTX-KIT
1.4 SOFTWARE
1.4.1 Tools
To help you design and program your applications, the following software has been included
in the Starter Kit:
• ST Assembly Chain
• ST7 Simulator
• Windows Epromer for ST7 MCUs
A stand-alone ST7 instruction help file is also available. In many circumstances, it will help you
select the most suitable code for your programs and improve the overall performance of your
applications.
1.4.2 ST Assembly Chain for the ST7 Family
The ST Assembly Chain is a cross development system for ST7-driven applications. It includes an assembler, a linker, a formatter and a librarian.
The information flow is summarized in the chart below:
YOUR SOURCE
CODE IN ASSEMBLER
.inc
Librarian
.asm
.lib
Assembler
.err
.lst
Linker
.obj
.cod
.sym
.grp
.map
Formatter
.s19
Simulator/Debugger
6/17
20
EPROM Programmer
ST7MDTX-KIT
2 METHOD OF OPERATION
2.1 SOFTWARE INSTALLATION
To install and setup the Starter Kit software, follow these steps:
1 Insert the delivery CD-ROM into your CD-ROM drive.
2 Using Windows Explorer, open the root directory of your CDROM drive.
IF...
Acrobat Reader is already
installed on your system.
Acrobat Reader is not yet
installed on your system.
THEN...
Double-Click WELCOME.pdf. When the Welcome screen
is displayed, click FREEWARE
1. Open the folder /PROGRAM/ACROBAT3
2. Select and install the approriate language version of
Acrobat (for more details refer to the readme.txt in the
CDROM root directory)
3. When Acrobat is installed, double-click WELCOME.pdf.
When the Welcome screen is displayed, click
FREEWARE
Click here
7/17
21
ST7MDTX-KIT
The ST7 Tool Chain Setup introductory window appears on your screen, referring to the
three software components of the Starter Kit:
– WGDB7 Debugger
– ST Assembly Chain for the ST7 Family
– ST7 Epromer
Click Next to continue.
3 In the next window, Choose Destination Location, you will specify the folder (or directory)
where to copy the whole Starter Kit software. Use the default folder (or directory) or choose
another folder (or directory):
Click here to select another path
This is the default path
Return to previous window
Abort installation process
Continue installation process
Click Next to continue.
8/17
22
ST7MDTX-KIT
4 In the next window, Select Components, you will select the software components that are
to be copied from the CD-ROM into the folder (directory) you specified before:
Selecting the WGDB7 Debugger
cause these subcomponents
to be displayed
To select a component,
check the appropriate box
When WGDB7 is selected,
this line is always highlighted
Option applicable only to
emulation-aided debugging
(not supported in this
version of the Starter Kit)
Return to previous window
Abort installation process
Continue installation process
Click Next to continue.
5 The next window, Check Setup Information, displays the settings you have specified:
– Destination folder (directory)
– Components to be installed
Click Next to confirm. Click Back to change any settings.
6 The copying process takes place. A progress indicator keeps you informed of the status of
the operation.
When the copying process terminates, and if you didn’t select the ST Assembly Chain as a
component to be installed, you are directed to the Setup Complete window (see further on).
If you selected the ST Assembly Chain, you are prompted to modify your AUTOEXEC.BAT
file (or your system registry).
9/17
23
ST7MDTX-KIT
These changes affect:
– the PATH option, where the path for the components of the Assembly Chain should be added,
– the METAI and DOS4G environment variables that have to be set to the following values,
respectively:
SET METAI=C:\<install folder>\asm
where <install folder> is the installation root folder (directory), St7tools by default.
SET DOS4G=QUIET
You may let the system proceed to the changes or make the changes by yourself. In any case,
for the modifications to be effective, you will have to reboot the system. If you make the changes by yourself, the values to be typed can be found in:
C:\<install folder>\asm\St7vars.bat
where <install folder> is the installation root folder (directory), St7tools by default.
For more information refer to the ST7 Software Tools for the ST7 Family User Manual.
You are then directed to the Setup Complete window.
By checking the appropriate box, you may display a Release Note for the WGDB7 Debugger,
Version 2.0, and/or start a debugging session, immediately after the installation is completed.
10/17
24
ST7MDTX-KIT
2.2 USING THE ST ASSEMBLY CHAIN
The ST Assembly Chain components are installed in a subdirectory of the installation root directory, named asm.
By default, you will find all the software development tools that constitute the ST Assembly
Chain in:
C:\St7tools\asm
For more information on how to develop applications or programs for the ST7 microcontroller,
refer to the Software Tools for the ST7 Family User Manual included in the CD-ROM.
2.3 STARTING THE WGDB7 DEBUGGER
The WGDB7 debugger is installed in the installation root directory. By default, you will find it in:
C:\St7tools
To start WGDB7, just click the corresponding icon (or name in the cascading menus) in the
Windows desktop. The WGDB7 Introductory window appears:
You will notice that this is the simulation-aided version of the debugger in which the behaviour
of your program is just simulated, using a special software, as if it were running on an actual
microcontroller. To debug it, you don’t need any external hardware.
The debugging session starts a few seconds later.
To get accustomed to the product, you may start one of the sample programs provided with
the package, via the File/Open debugger menu chain.
The sample programs can be found in:
C:\<install folder>\sample
where <install folder> is the installation root folder (directory), St7tools by default.
For more information on how to use the WGDB7 Debugger, refer to the WGDB7 Windows Debugger for the ST7 Family User Manual included in the CD-ROM.
11/17
25
ST7MDTX-KIT
2.4 PROGRAMMING ST7 DEVICES
2.4.1 Target Devices
Once bug-free and ready for operation, the program you just developed needs to be transferred into an ST7 MCU program space.
With the ST7 MDT1 Starter Kit, you may program these MCUs(*):
ST72101G1 or G2
ST72212G2
ST72213G1
ST72251G1 or G2
With the ST7 MDT2 Starter Kit, you may program these MCUs (*):
ST72121J2 or J4
ST72311J2 or J4
ST72311N2 or N4
ST72331J2 or J4
ST72331N2 or N4
With the ST7 MDT4 Starter Kit, you may program these MCUs (*):
ST72272K2 or K4
ST72372J4
ST72371N4
ST72671N4 or N6
(*) These lists are subject to modifications
2.4.2 Board and Device Setting Up
Proceed as follows:
1 Place the device into the Zero Insertion Force (ZIF) socket mounted on the board.
CAUTION. Ensure correct device orientation when plugging it into the ZIF socket. Incorrect
insertion may damage the device and/or the board.
2 Using the parallel interface cable, connect the parallel port of the PC (LPT1 or LPT2) to the
board connector (PI).
3 Power on the PC and the board. The board power LED (LD1) lights up.
12/17
26
ST7MDTX-KIT
Notes
The parallel port of your PC should have been configured as a Centronics parallel port.
The supplied interface cable has been tested in order to operate properly on most PCs. Do not
use any other cable, especially if it is longer than the one provided by STMicroelectronics: the
board may not operate properly.
The cable should be connected directly to the DB-25 female connector of the PC parallel port.
This connector is similar to the one installed on the board. Do not insert any additional cables
or switchboxes between the PC and the board: a malfunctioning of the board may result.
If a dongle is mounted on the PC parallel port, it should not interfere with the programming
board. Should you notice a dysfunctioning of the board, remove the dongle and restart the installation procedure.
2.4.3 Starting the Windows Epromer
The Windows Epromer (Winee) is installed in the installation root directory. By default, you will
find it in:
C:\St7tools\Epromer
To start the Windows Epromer, just click the corresponding icon (or name in the cascading
menus) in the Windows desktop. The Epromer main window appears:
Click here to display the
epromer configuration window
Note that as long as the programming board
and the device to be programmed are not
specified, the display area is blank.
13/17
27
ST7MDTX-KIT
2.4.4 Configuring the Epromer
Follow these steps:
1 In the main window tool bar, click the
dow:
icon to select the epromer configuration win-
2 In the list, select the programming board for the Starter Kit:
ST7MDT1-KIT, ST7MDT2-KIT or ST7MDT4-KIT,
3 Click the Select Chip tab to display the list of the devices that can be programmed with this
Starter Kit.
14/17
28
ST7MDTX-KIT
A list box similar to the one shown below appears.
4 In the list, select the device to be programmed.
Click OK to confirm. The list box closes.
The memory mapping of the specified device now appears in the display area of the main window. It is made up of “FFs”, as one may expect, since programming has not taken place yet.
15/17
29
ST7MDTX-KIT
To view in turn the memory mapping of a selection of devices plugged in, open the configuration window again, then the Select Chip list box, and click Apply. The display area of the main
window changes while the list box stays open, for you to choose another chip if necessary.
The name of the device to be programmed
is displayed here
Display area
Details stored in the Epromer buffer for the
space corresponding to the currently selected tab
The EPROM has been selected
Information area
Progress bar
Pppppp
(progress of the current task
being executed by the Epromer)
Cursor position
in the display area
Origin of the
display area contents
5 Start your programming session.
For more information on how to use the Windows Epromer, click the Help command in the
main menu bar.
16/17
30
ST7MDTX-KIT
Notes:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics.
The ST logo is a trademark of STMicroelectronics
1998 STMicroelectronics - All Rights Reserved.
Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an
I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.
STMicroelectronics Group of Companies
Australia - Brazil - Canada - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Mexico - Morocco - The Netherlands Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A.
17/17
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement