T exas Instruments (TI) reserves the right to make changes to its products or to discontinue any
semiconductor product or service without notice, and advises its customers to obtain the latest
version of relevant information to verify , before placing orders, that the information being relied
on is current.
TI warrants performance of its semiconductor products and related software to the specifications
applicable at the time of sale in accordance with TI’s standard warranty . T esting and other quality
control techniques are utilized to the extent TI deems necessary to support this warranty.
Specific testing of all parameters of each device is not necessarily performed, except those
mandated by government requirements.
Certain applications using semiconductor products may involve potential risks of death,
personal injury , or severe property or environmental damage (“Critical Applications”).
TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED, OR
WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES
OR SYSTEMS OR OTHER CRITICAL APPLICATIONS.
Inclusion of TI products in such applications is understood to be fully at the risk of the customer.
Use of TI products in such applications requires the written approval of an appropriate TI officer .
Questions concerning potential risk applications should be directed to TI through a local SC
sales office.
In order to minimize risks associated with the customer’s applications, adequate design and
operating safeguards should be provided by the customer to minimize inherent or procedural
hazards.
TI assumes no liability for applications assistance, customer product design, software
performance, or infringement of patents or services described herein. Nor does TI warrant or
represent that any license, either express or implied, is granted under any patent right, copyright,
mask work right, or other intellectual property right of TI covering or relating to any combination,
machine, or process in which such semiconductor products or services might be or are used.
Copyright 1996, Texas Instruments Incorporated
How to Use This Manual
This manual describes how to use and operate the TMS370 Microcontroller
Programmer and the TMS370 Gang Programmer. Chapter 1 gives an overview of each programmer and describes the correct way to install your specific
programmer. After your programmer is correctly installed, you can use the
configuration commands
3, respectively , to operate your programming system for your specific application.
This document contains the following chapters:
Chapter 1Introduction and Installation
Presents a general description of how each programmer operates and the features available with each programmer. Also outlines the proper hardware and
software installation procedures.
and
display commands
Preface
Read This First
, described in Chapters 2 and
Chapter 2Operating in the Configuration Window
Describes how the command menus and function keys operate and how to
input information at the system prompt. Describes the commands available
while operating in the configuration window.
Chapter 3Operating in the Display Window
Describes how the command menus and function keys operate and how to
input information at the system prompt. Describes the commands available
while operating in the display window.
Appendix AOperating the Programmer in Batch Mode
Outlines how to create a configuration/batch file and how to invoke the file at
system start-up.
Appendix BError Messages
Provides an alphabetical list of error messages and their meaning.
Appendix CValid Configuration Parameters
Lists valid configuartion parameters for the devices supported by the programmers.
Appendix DUsing Keystroke Capture Files
Describes how to use keystroke capture files to repeat a commonly used program and to verify routines.
Related Documentation
Related Documentation
The following TMS370 documents are available through Texas Instruments
Incorporated:
TMS370 Family Data Manual
The
(literature number SPNS014) describes
the hardware aspects of the TMS370, such as pin functions, architecture, stack operation, and interface; the manual also includes the
TMS370 assembly language instruction set.
TMS370 Family Assembly Language Tools
The
(literature number
SPNU010) describes how to use of the TMS370 assembly language
tools (assembler, linker, archiver and code conversion utility) to create
and use objects that are in common object file format (COFF).
TMS370 Family C Compiler
The
(literature number (SPNU022) describes
the characteristics and operation of the TMS370 C Compiler.
TMS370 Family XDS/22 User’s Guide
The
(literature number SPNU008)
describes the hardware and software installation of the TMS370 Family
XDS22 consisting of the TMS370 debugger and emulator .
TMS370 PACT XDS/22 Addendum
The
(literature number SPNU019)
describes features and functions of the TMS370 P ACT XDS/22. Use this
addendum in conjunction with the
The
TMS370 Family XDS/11 User’s Guide
TMS370 Family XDS/22 User’s Guide.
(literature number SPNU015)
describes the hardware and software installation of the TMS370 Family
XDS11 consisting of the TMS370 debugger and emulator.
Style and Symbol Conventions
This document uses the following conventions.
Program listings, program examples, interactive displays, filenames, and
symbol names are shown in a special typeface similar to a typewriter’s. Examples use a bold version of the special typeface for emphasis; interactive displays use a bold version of the special typeface to
distinguish commands that you enter from items that the system displays
(such as prompts, command output, error messages, etc.).
tion specific to each type of programmer. When there are no icons present, you
should assume the information is common to all programmers.
This icon is used to distinguish descriptions and information
specific to the microcontroller programmer.
This icon is used to distinguish descriptions and information specific to the gang programmer.
When an icon is present, the information from the icon to the next icon,
the next section number (that is, 2.1, 2.2, 3.5, etc.)
mer symbolized by the icon.
Texas Instruments provides a hotline to assist you with technical questions
about the TMS370 family products and development tools. Phone (713)
274-2370 between the hours of 8:30 a.m. and 5:00 p.m. central time for technical assistance.
, icons are used to distinguish descriptions and informa-
microcontroller programmer
, is specific to the program-
and
or to
1-1
Microcontroller Programmer Overview and Description
1.1Microcontroller Programmer Overview and Description
The TMS370 Microcontroller Programmer is an interactive, menu-driven system that facilitates programming TMS370 family devices and EPROMs either
directly or through an XDS. The microcontroller programmer is currently
capable of programming the TMS370, TMS7742, TMS77C82, 2732, 2764,
27128, and 27256 device families. T o program the TMS7742 and TMS77C82
devices, you will need a 40-pin to 28-pin converter, which is sold separately.
T o operate the programmer , create a COFF file using the TMS370 Assembler
and Linker on a PC. The programmer loads the object code from the COFF
file into PC memory and programs a device from the data in PC memory . The
device is programmed and verified in units (packets) of 180 bytes at a time.
The programmer software has the following features:
Window-oriented screens with a menu-driven command structure.
Intermediate PC memory , which provides a storage area for downloading
a COFF file or uploading from the device. This allows you to inspect and
patch the loaded data.
Reversed assembly code display.
Ability to generate a COFF file from PC memory content.
Relocatable programming capability, which allows source data bytes
within a certain address range to be programmed at a specified location
in the device.
User-defined device types that allow new family members.
Ability to save or load the programmer configuration to or from a
configuration/batch file
In addition to these features, a limited batch mode is also supported.
.
1-2
Introduction and Installation
Microcontroller Programmer Overview and Description
The base unit of the programmer contains two LEDs. The red LED is marked
program
sockets. The green LED is marked
or
device power
and is lit whenever power is applied to device
power
and indicates that the base is turned
on. This LED should turn on approximately three seconds after power is
supplied to the programmer.
Do not insert or remove devices from the programmer while the red
program (device power)
LED is lit!
On the front edge of the programmer base is a black banana plug receptacle.
This is attached to the safety ground of the power cord in order to assist you
in connecting to electrostatic protection equipment.
1-3
Gang Programmer Overview and Description
1.2Gang Programmer Overview and Description
The TMS370 Gang Programmer is an interactive, menu-driven system that
provides programming support for on-chip EEPROM or EPROM of TMS370
microcontrollers in production environments.
The gang programmer has the following features:
Two modes of operation—PC mode and standalone mode.
Ability to program up to 16 devices.
LEDs that indicate programming or verification failure.
A buzzer that indicates programming completion.
The gang programmer consists of the standard programmer base, a gang programmer top, and the standard programmer software. If you already have a
standard TMS370 Microcontroller programmer, the gang programmer top can
be purchased separately . (There is a different programmer top for each package of TMS370 microcontrollers.)
Figure 1–2. Gang Programmer Board
1-4
The push-button switch in the upper right-hand corner is marked
used to start and stop programming or verification while operating in the stand-
Introduction and Installation
start
and is
Gang Programmer Overview and Description
alone mode; it is ignored in PC mode. The red LED built into this switch is
marked
TMS370 power on
and indicates that power is being supplied to the
sockets on the gang programmer.
Do not insert or remove devices from the programmer while the red
TMS370 power on
LED is lit!
The main body of the gang programmer consists of 16 sockets whose type and
arrangement are dependent on the type of gang programmer top you have.
Below each socket is a red LED, which is used to indicate a failure of the device
in the socket immediately above the LED. These sockets are mounted on base
sockets to allow easy replacement if a socket is damaged.
The rocker switch on the top center of the gang programmer board is used to
select program or verify when used in standalone mode; it is ignored in PC
mode. The red LED just above this switch is lit when the switch is in the program position.
There are two green LEDs on the left top of the gang programmer. The top LED
is marked
PDS power on
er LED is marked
and indicates that the base unit is turned on. The low-
external power on
and is used to indicate that the external
+15V is properly connected to the programmer top. The external power jack
is located on the upper left side of the programmer top.
Typically , this programmer is used in PC mode to program initial units. However, you can use the 28-pin DIP socket at the top center of the programmer to
program a 27C512 EPROM as a master device. As the master device is programmed, a checksum is calculated and added to the configuration information stored in the master device. This allows the programmer to verify that the
master device has not become corrupted before it is used to program additional units. Once programmed, this master contains all of the configuration data
as well as the code to be programmed into the mocrcontrollers. Now, the gang
programmer with the master device can be moved to a production environment where you can easily program parts without the use of a personal computer; this is called standalonemode.
1-5
Gang Programmer Overview and Description
1.2.1Operating the Gang Programmer in PC Mode
In
PC mode
facilitates programming TMS370 family devices and EPROMs. The system allows you to perform any or all of the operations listed below.
Program any or all of the 16 devices from PC memory
Modify or add a new device to the device table
Verify any or all devices against either PC memory or the master device.
Upload any of the 16 devices.
Program the 512K master device.
Upload the master device with or without configuration data.
Enter standalone mode.
When you program in PC mode, all LEDs are turned on for a predetermined
time as part of an LED test. Then, the software checks whether a device exists
in each socket and whether it is properly installed by running a small read-write
test. If any device fails, the LED for that device blinks for a few seconds, there
are two short audible beeps, and the following error message is displayed:
Device test failed, continue? (y/n)
, the gang programmer is an interactive, menu-driven system that
If you have incorrectly inserted any device(s), you can fix them at this time. If
only empty sockets failed, you can continue the programming by pressing
The LED of the failed device(s) remains on during programming. At the end
of programming if there is a verification error on any other device, its LED turns
on also.
In the PC mode, the push button on the gang programmer is deactivated. The
interactive commands for this mode are discussed in Chapter 2 and 3.
The gang programmer’s ability to execute any or all of the programmer commands on a
master
device allows you to program a master device for use in
standalone mode or to verify programmed devices against the master device
or PC memory while in PC mode.
1.2.2Operating the Gang Programmer in Standalone Mode
In
standalone mode,
access the stanalone mode from the PC mode by selecting the standalone
command; when the PC is not connected to the Gang Programmer during
power-up, standalone mode is automatically selected.
Standalone mode allows you to program and/or verify devices in a productiontype mode.
After you install the master 512K EPROM device and any devices you wish to
program or verify, the procedure for starting the programmer is quite simple.
the programmer works without the PC interface. Y ou can
.
1-6
Introduction and Installation
Gang Programmer Overview and Description
1) Position the toggle switch to either the program position or the verification
position.
2) Press the push button on the programmer.
While you press the push button, all 16 LEDs turn on, and remain on to
verify LED operation, until you release the push button.
3) Release the push button to begin the programming or verification.
If any of the devices are bad or incorrectly inserted into a socket or if the
socket is empty, the programmer beeps twice, and the LED below the
socket begins blinking.
4) To resume programming/verification, press the push button (within a
2-second period).
5) If you want to correct the error, wait until the blinking LEDs stop blinking
but remain on. At this time, insert a new device (or reinsert the old device)
and try the programming/verification procedures again.
6) Once programming has begun, you can abort at any time by pressing the
push button.
If you try to program without a master or with an invalid master device, all 16
LEDs blink until you acknowledge the error by pressing the push button.
1-7
Properly Installing the Programmer Hardware
1.3Properly Installing the Programmer Hardware
Correctly installing the programmer hardware is essential to the proper operation of programmer system. The following subsections explain how to connect
the programming board to the PDS base unit and the required power connections for connecting your programmer to a PC or TMS370 XDS. Also included
in these subsections is a description of how to properly insert DIPs and PLCCs.
1.3.1Connecting a Programmer to the PDS Base Unit
Connecting the programmer to the PDS is essentially the same for all programmers. The illustrations below show this process for the microcontroller programmer.
1) Line up the plastic tabs on the bottom of the programmer board with the
insertion hole in the top of the PDS base unit.
2) Press firmly until tabs are set.
3) Connect the ribbon cable from the PDS base unit to the connection on the
back of the programmer.
ribbon cable
ribbon
cable
connection
1-8
microcontroller
programmer
PDS base unit
connected PDS base
unit
and programmer board
Introduction and Installation
1.3.2Power Connection
The gang programmer also requires an external power supply of 15 volts/2
amps. The connection for this external power is marked EXTERNAL POWER
and is positioned near the top left corner of the programmer’s socket board.
Plug the the jack of the +15-volt wire into the external power socket. Connect
the white-striped wire to the +15-volt terminal of the power supply and the solid
black wire to the ground terminal of the power supply.
Properly Installing the Programmer Hardware
Connect the female end of the power cord to the PDS base unit.
The programmer can handle a power range of 105 to 265 volts AC at 47
to 440 hertz. All units are equipped with two power cords. If you are in the
U.S.A., use the power cord with a male connector that can be plugged
directly into a 120-V, 60-Hz power socket.
Outside the U.S.A., use the power cord with no male connector because
the type of receptacle to be used is unknown. Attach the appropriate connector for your power receptacle. The wires are color coded as follows:
Green and Yellow = Earth
Blue = Neutral
Brown = Live
1.3.3Connection to a PC
1) Connect the end of the RS-232C cable consisting of a single 25-pin connector to the programmer.
2) Connect the end of the RS-232C cable consisting of two 25-pin
connectors to the serial communication port of the PC. (If an IBM PC/A T
is used, the 9-pin-to-25-pin converter cable provided must be used.)
1.3.4Connection to an XDS
Connect the programmer through an XDS if you want to use both the XDS
Debugger and the microcontroller programmer, and if the PC has only one
communication port. Or, even if you have enough communication ports but do
not want to change the port number when you switch from one tool to the other,
you can use this method. The programmer works as if it is connected directly
to the PC.
Complete the following steps to connect the programmer through an XDS.
1) Connect port D of an XDS to the programmer by using the RS-232C cable
supplied with the programmer. The male connector on the double-headed
end of the cable connects to the XDS; the single-headed end connects to
the programmer.
1-9
Properly Installing the Programmer Hardware
2) Connect port A of the XDS to the PC by using the cable supplied with the
XDS.
3) Ensure that the switches on the XDS Communications board are set as
in Table 1–1.
ICs may be inserted or removed while power is applied to the programmer;
however:
1) When using the microcontroller programmer, never use
more than one IC socket at a time. Damage to the IC or the
programmer could result.
2) Never insert or remove the IC while the red LED is on. Dam-
age to the IC or the programmer could result.
3) TMS devices contain circuits to protect their inputs and out-
puts against damage due to electrostatic discharges of up to
2 kV. However, you should employ the usual precautions
when handling MOS devices, such as storing the device in
conductive foam and grounding yourself when handling
them.
For the microcontroller programmer, decide which of the sockets (U1, U2, U3,
U4, or U5) to use for your device. Figure 1–3, shows the circuit board and IC
sockets.
Properly Installing the Programmer Hardware
Figure 1–3. Socket Identification
2764, 27128, and 27256
370Cx10 DIP
370Cx10 PLCC
2732 pin 1
pin 1
pin 1
2732
J2
U1U2
U3U4U5
2764
27128
27256
Set to left for 2732
Set to right for 2764, 27128,
{
and 27256
370Cx32 PLCC
370Cx5x PLCC
1-1 1
Properly Installing the Programmer Hardware
To install a DIP device:
1) Align the IC so that pin 1 is oriented in the upper-left corner, indicated on
the printed circuit board by a circled number 1:
2) Raise the locking arm, pulling it toward you to the upright position.
3) Insert the IC.
locking arm
DIP
4) Lower the locking arm by pushing it away from you and down, as far as
it will go.
locking arm
DIP
1-12
Note:
If you install a 2732 device in U2, be sure to use the bottom socket holes,
leaving the top four socket holes unused. The correct position for a 2732
is indicated by a bracket on the printed circuit board to the left of the socket.
Introduction and Installation
Properly Installing the Programmer Hardware
To install a PLCC device:
With this release of the programmers, the PLCC sockets do not have a lid;
therefore, they are not sensitive to the device package height. These new
sockets also have the pin 1 orientation at the top of each socket, making it less
likely for you to insert a device backwards.
1) Place the PLCC in the empty socket.
2) Press firmly until it is properly seated.
The programmer hardware is now ready to use.
T o remove the device, press down firmly on the black plastic socket edges until
the device is pushed upward and released.
1-13
Properly Installing the Programmer Software
1.4Properly Installing the Programmer Software
Installing software is exactly the same whether you are using the Microcontroller Programmer or the Gang Programmer. Insert the diskette supplied with the
programmer into the PC disk drive and use one of the following methods to
copy the contents of the diskette to a directory in your hard disk.
1.4.1Installing the Software in a Single Directory
This method is simple and suitable for a single user with only a few source files.
1) Make a directory to contain your programmer files.
MKDIR \370
2) Change your working directory to the directory you just created.
CD \370
3) Copy the files from the diskette.
COPY A:*.*
4) See Section1.5 for a description of how to invoke the programmer software.
1.4.2Installing the Software in Multiple Directories
This method is useful if there are several different users or if one user is working on several different projects.
1) Create a directory for your programmer files.
MKDIR \370
2) Copy the programmer files into your programmer directory:
COPY A:*.* \370\*.*
3) Create project directories.
MKDIR \PROJ1
MKDIR \PROJ2
4) Add the programmer directory to the path command in the AUTOEXEC.BAT file.
PATH C:\DOS;C:\PROG;C:\REP;C:\370
where C:\370 is the added path to the programmer directory.
set
5) Include a
SET IPCDIR=C:\370
If the
device table
the programmer to search the programmer directory for the default device
command in the AUTOEXEC.BAT file as follows:
cannot be found elsewhere, the
set
command causes
1-14
Introduction and Installation
Properly Installing the Programmer Software
table. The order in which the programmer looks for the device table is outlined below.
a) First, it looks for a device table file specified in the configuration/batch
file if the configuration/batch file was included in the command line to
invoke the programmer software.
PRGRM370 @PROJ1.CFG
where PROJ1.CFG is the configuration/batch file.
b) Next, it looks in the current directory for the default DEVICE.TBL.
c)Then, it looks in the directory specified by the ”SET IPCDIR” command
for the file DEVICE.TBL.
6) See Section 1.5 for a description of how to invoke the programmer software.
1-15
Invoking the Programmer Software
1.5Invoking the Programmer Software
Before activating the programmer, be sure that it is plugged in and correctly
connected as described in Section 1.3. Turn on the programmer’s power
switch (and the gang programmer’s external power) before invoking the programmer software.
The command to run the programmer software from the DOS prompt is:
prgrm370 [
COFF file
] [@
Config./Batchfile
] [–b] [–p=
port #
]
where
COFF file
Optional argument that specifies a file to be programmed or verified in the batch control mode or
loaded into PC memory in the interactive control
mode.
Config./Batch file
@
Optional argument that specifies a configuration/
batch file that contains the configuration parameters or the batch commands for the batch control
mode.
–bOptional argument that turns on the batch mode if
specified.
–p =
port #
The communication port number to be used. Default is 1.
After you invoke the programmer software, the PC screen briefly displays a
version number and copyright message.
If you specified a configuration/batch file but did not turn on the batch mode,
the configuration specified in the file is loaded as the current configuration. Any
other batch commands that would control the flow of the programming process
are ignored.
If you specified a configuration/batch file and turned on the batch mode with
the –b argument, the programmer software operates as directed by the batch
file.
1-16
If you specified a port number and the programmer is not physically connected
to that port, then the following error message is displayed.
Programmer not properly connected: Abort, Retry?
Aborting the invocation returns you to the DOS prompt. T o retry the invocation,
make sure the programmer is turned on and properly connected to the port
specified in the command. Then, press
followed by to restart the
programmer software.
Interactive mode commands are described in detail in Sections 2 and 3. Batch
commands are covered in Appendix 1.
Introduction and Installation
Loading...
+ 69 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.