Texas Instruments TMS370 User Manual

TMS370 Microcontroller/Gang Programmer
User’s Guide
2546239-9704 Microcontroller Products
2546239-9704
TMS370 Microcontroller/Gang
Programmer
User’s Guide
February, 1991
IMPORTANT NOTICE
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 over­view 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 applica­tion.
This document contains the following chapters:
Chapter 1 Introduction and Installation
Presents a general description of how each programmer operates and the fea­tures 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 2 Operating 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 3 Operating 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 A Operating the Programmer in Batch Mode
Outlines how to create a configuration/batch file and how to invoke the file at system start-up.
Appendix B Error Messages
Provides an alphabetical list of error messages and their meaning.
Appendix C Valid Configuration Parameters
Lists valid configuartion parameters for the devices supported by the program­mers.
Appendix D Using Keystroke Capture Files
Describes how to use keystroke capture files to repeat a commonly used pro­gram 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, architec­ture, 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 typewrit­er’s. Examples use a bold version of the special typeface for empha­sis; 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.).
Here is a sample program listing:
0011 0005 0001 .field 1, 2 0012 0005 0003 .field 3, 4 0013 0005 0006 .field 6, 3 0014 0006 .even
iv
Read This First
Information About Cautions and Warnings
This book may contain cautions and warnings.
A caution describes a situation that could potentially damage your soft- ware or equipment.
This is what a caution looks like.
A warning describes a situation that could potentially cause harm to you.
This is what a warning looks like.
Information About Cautions and Warnings
Trademarks
MS-DOS
XDS is a trademark of Texas Instruments Incorporated. PC/AT is a trademark of International Business Machines Corporation.
The information in a caution or a warning is provided for your protection. Please read each caution and warning carefully.
is a trademark of Microsoft Corp.
v
vi
Read This First
Contents
1 Introduction and Installation 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 Microcontroller Programmer Overview and Description 1-2. . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Gang Programmer Overview and Description 1-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.1 Operating the Gang Programmer in PC Mode 1-6. . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.2 Operating the Gang Programmer in Standalone Mode 1-6. . . . . . . . . . . . . . . . . . . .
1.3 Properly Installing the Programmer Hardware 1-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.1 Connecting a Programmer to the PDS Base Unit 1-8. . . . . . . . . . . . . . . . . . . . . . . .
1.3.2 Power Connection 1-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.3 Connection to a PC 1-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.4 Connection to an XDS 1-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.5 Integrated Circuit (IC) Insertion 1-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4 Properly Installing the Programmer Software 1-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.1 Installing the Software in a Single Directory 1-14. . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.2 Installing the Software in Multiple Directories 1-14. . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5 Invoking the Programmer Software 1-16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.6 Getting Started—Example Sessions 1-17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.6.1 Interactive Programming Example 1 1-17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.6.2 Interactive Programming Example 2 1-19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.6.3 Batch Programming Example 1-19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 Operating in the Configuration Window 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 How Command Menus Work 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Using the Special Function Keys 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 What Happens If I Make an Error? 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 Understanding Your Input at the Cursor Prompt 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5 Configuration Window Overview and Description 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.6 Secondary Configuration Window—the Show Ranges Window 2-7. . . . . . . . . . . . . . . . . . .
2.6.1 Selecting the Proper Program Algorithm 2-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.7 Showing the Software Revision Information — the Show ID Command 2-9. . . . . . . . . . . .
2.8 Defining and Adding a Device to the Device Table—the Add Device Command 2-9. . . . .
2.9 Editing the Configuration Parameters and Device Table — the Edit Command 2-11. . . .
2.9.1 Editing the Configuration Parameters 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.9.2 Editing the Device Table 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.10 Loading the Device Table and Configuration Parameters From a
File — the Load Command 2-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.11 Selecting a Current Device — the Choose Device Command 2-15. . . . . . . . . . . . . . . . . . . .
vii
Contents
2.12 Saving Configuration Parameters and the Device Table to a File — the
Save Command 2-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.13 Showing the Display Window — the Display Command 2-16. . . . . . . . . . . . . . . . . . . . . . . . .
2.14 Ending Your Current Session and Returning to DOS — the Quit Command 2-16. . . . . . .
3 Operating in the Display Window 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 How Command Menus Work 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Using the Special Function Keys 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 What Happens If I Make an Error 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 Understanding Your Input at the Prompt 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5 Display Window Overview and Description 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1 Differences in Command Structures for Microcontroller
Programmer and Gang Programmer 3-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6 Filling a Block of PC Memory With a Value — the Fill Command 3-8. . . . . . . . . . . . . . . . . .
3.7 Loading a COFF File Into PC Memory— the Load Command 3-9. . . . . . . . . . . . . . . . . . . . .
3.8 Outputting a COFF File From PC Memory — the Output COFF Command 3-10. . . . . . . .
3.9 Moving Blocks of PC Memory—the Move Command 3-12. . . . . . . . . . . . . . . . . . . . . . . . . . .
3.10 Programming a Device From PC Memory — the Program Command 3-13. . . . . . . . . . . . .
3.10.1 Programming Using the Microcontroller Programmer 3-13. . . . . . . . . . . . . . . . . . . .
3.10.2 Programming Using the Gang Programmer 3-15. . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.11 Showing and Operating Within a Text File—the Show Command 3-17. . . . . . . . . . . . . . . . .
3.11.1 Finding Character Strings Within a Text File — the Find Command 3-18. . . . . .
3.11.2 Finding the Next Occurence of Character String — the Next Command 3-18. . . .
3.11.3 Positioning the Cursor at a Specific Line Number — the Line Command 3-18. . .
3.11.4 Positioning the Cursor at Top of a File — the Top Command 3-18. . . . . . . . . . . . .
3.11.5 Positioning the Cursor at the Bottom of a File — the Bottom Command 3-18. . .
3.12 Uploading a Device’s Contents Into PC Memory—the Upload Command 3-19. . . . . . . . . .
3.12.1 Uploading Using the Microcontroller Programmer 3-19. . . . . . . . . . . . . . . . . . . . . . .
3.12.2 Uploading Using the Gang Programmer 3-20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.13 Verifying the Contents of a Device—the Verify Command 3-22. . . . . . . . . . . . . . . . . . . . . . .
3.13.1 Verifying Using the Microcontroller Programmer 3-22. . . . . . . . . . . . . . . . . . . . . . . .
3.13.2 Verifying Using the Gang Programmer 3-23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.14 Editing the Contents of PC Memory—the Edit Command 3-26. . . . . . . . . . . . . . . . . . . . . . .
3.15 Using the Master Mode Menu—the Master Command 3-27. . . . . . . . . . . . . . . . . . . . . . . . . .
3.16 Suspending the Program and Entering DOS—the System Command 3-28. . . . . . . . . . . . .
3.17 Quitting the Program and Exiting to DOS—the Quit Command 3-28. . . . . . . . . . . . . . . . . . .
A Operating the Programmer in Batch Mode A-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Understanding the Batch Mode File A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2 Batch File Command Rules and Descriptions A-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2.1 Executable Batch Commands A-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2.2 Nonexecutable Batch Commands A-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.3 Batch Mode Status Messages A-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Error Messages B-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.1 Error Message Descriptions B-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C Configuration Parameters C-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D Using Keystroke Capture Files D-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
Table of Contents
Running Title
Figures
1–1. Microcontroller Programmer Personality Module 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1–2. Gang Programmer Board 1-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1–3. Socket Identification 1-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–1. Command Menu Structure 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–2. Configuration Window at System Startup 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–3. The Show Ranges Window 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–4. Valid Address Ranges Window 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–1. Command Menu Structure 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–2. PC Memory Display and Reverse Assembled Code Windows 3-5. . . . . . . . . . . . . . . . . . . . . . .
ix
Running Title
Tables
1–1. XDS Memory Expansion/Communications Board Switch Settings 1-10. . . . . . . . . . . . . . . . . .
2–1. Edit Control Keys 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–2. Configuration Window Commands 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–3. Show Ranges Parameter Summary 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2–4. Device T able Edit Commands 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–1. Edit Control Keys 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–2. Display Window Commands 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–3. Reverse Assembled Code Window Commands 3-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–4. Show Text File Commands 3-17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3–5. Display Window Memory Edit Commands 3-26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–1. Valid Configuration Parameters C-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D–1. Valid Nonprintable Characters D-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
x
Table of Contents
Running Title
Examples
A–1. Example Configuration/Batch File A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D–1. Keystroke File Example.key D-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
xii
Table of Contents
Chapter 1
Introduction and Installation
This chapter describes how each programmer operates, how to install hard­ware, and how to install software. It also gives examples on getting started.
Chapter 1 comprises the following sections:
Section Page
1.1 Microcontroller Programmer Overview and Description 1-2. . . . . . . .
1.2 Gang Programmer Overview and Description 1-4. . . . . . . . . . . . . . . .
1.3 Properly Installing the Programmer Hardware 1-8. . . . . . . . . . . . . . . .
1.4 Properly Installing the Programmer Software 1-14. . . . . . . . . . . . . . . .
1.5 Invoking the Programmer Software 1-16. . . . . . . . . . . . . . . . . . . . . . . .
1.6 Getting Started—Example Sessions 1-17. . . . . . . . . . . . . . . . . . . . . . .
Because of obvious differences between the the
gang programmer
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 informa­tion 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 techni­cal 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.1 Microcontroller Programmer Overview and Description
The TMS370 Microcontroller Programmer is an interactive, menu-driven sys­tem 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.
Figure 1–1. Microcontroller Programmer Personality Module
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.2 Gang 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 pro­grammer 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 pack­age 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 pro­gram 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. Howev­er, 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 pro­grammed, a checksum is calculated and added to the configuration informa­tion 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 addition­al 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 environ­ment where you can easily program parts without the use of a personal com­puter; this is called standalone mode.
1-5
Gang Programmer Overview and Description
1.2.1 Operating the Gang Programmer in PC Mode
In
PC mode
facilitates programming TMS370 family devices and EPROMs. The system al­lows 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 com­mands 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.2 Operating 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 production­type 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.3 Properly Installing the Programmer Hardware
Correctly installing the programmer hardware is essential to the proper opera­tion of programmer system. The following subsections explain how to connect the programming board to the PDS base unit and the required power connec­tions 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.1 Connecting a Programmer to the PDS Base Unit
Connecting the programmer to the PDS is essentially the same for all program­mers. The illustrations below show this process for the microcontroller pro­grammer.
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.2 Power 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 con­nector for your power receptacle. The wires are color coded as follows:
Green and Yellow = Earth Blue = Neutral Brown = Live
1.3.3 Connection to a PC
1) Connect the end of the RS-232C cable consisting of a single 25-pin con­nector 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.4 Connection 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.
Table 1–1. XDS Memory Expansion/Communications Board Switch Settings
Switch No. S1 S2 S3 S4
1 Off Off Off Off 2 Off On Off Off 3 Off Off Off Off 4 Off On On Off 5 On Off On On 6 Off Off On On 7 On On On Off
1-10
Introduction and Installation
1.3.5 Integrated Circuit (IC) Insertion
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
U1 U2
U3 U4 U5
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.4 Properly Installing the Programmer Software
Installing software is exactly the same whether you are using the Microcontrol­ler 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.1 Installing 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 soft­ware.
1.4.2 Installing the Software in Multiple Directories
This method is useful if there are several different users or if one user is work­ing 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 AUTOEX­EC.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 out­lined 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 soft­ware.
1-15
Invoking the Programmer Software
1.5 Invoking 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 pro­grammer 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 pro­grammed 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 parame­ters or the batch commands for the batch control mode.
–b Optional argument that turns on the batch mode if
specified.
–p =
port #
The communication port number to be used. De­fault 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