Manuel d'utilisation / d'entretien du produit TMS370 du fabricant Texas Instruments
Aller à la page of 99
2546239-9704 Microcontroller Products TMS370 Microcontroller/Gang Programmer User ’ s Guide.
2546239-9704.
TMS370 Microcontroller/Gang Programmer User ’ s Guide SPNU023 February , 1991.
IMPORT ANT 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.
Preface Read This First 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 .
Related Documentation iv Read This First Related Documentation The following TMS370 documents are available through T exas Instruments Incorporated: The TMS370 Family Data Manual (literature number SP.
Information About Cautions and W arnings v 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.
vi Read This First.
vii Contents 1 Introduction and Installation 1-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 Microcontroller Programmer Overview and Description 1-2 . . . . . . . . . . . . . . . . . . .
Contents viii T able of Contents 2.12 Saving Configuration Parameters and the Device T able to a File — the Save Command 2-15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.13 Showing the Display Window — the Display Command 2-16 .
Running Title ix Figures 1–1. Microcontroller Programmer Personality Module 1-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2. Gang Programmer Board 1-4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Running Title x T able of Contents T ables 1–1. XDS Memory Expansion/Communications Board Switch Settings 1-10 . . . . . . . . . . . . . . . . . . 2–1. Edit Control Keys 2-4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Running Title xi Examples A–1. Example Configuration/Batch File A-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D–1. Keystroke File Example.key D-2 . . . . . . . . . . . . . . . . . . . . . . . . .
xii T able of Contents.
1-1 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.
Microcontroller Programmer Overview and Description 1-2 Introduction and Installation 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.
Microcontroller Programmer Overview and Description 1-3 The base unit of the programmer contains two LEDs. The red LED is marked program or device power and is lit whenever power is applied to device sockets. The green LED is marked power and indicates that the base is turned on.
Gang Programmer Overview and Description 1-4 Introduction and Installation 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.
Gang Programmer Overview and Description 1-5 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 .
Gang Programmer Overview and Description 1-6 Introduction and Installation 1.2.1 Operating the Gang Programmer in PC Mode In PC mode , the gang programmer is an interactive, menu-driven system that facilitates programming TMS370 family devices and EPROMs.
Gang Programmer Overview and Description 1-7 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.
Properly Installing the Programmer Hardware 1-8 Introduction and Installation 1.3 Properly Installing the Programmer Hardware Correctly installing the programmer hardware is essential to the proper opera- tion of programmer system.
Properly Installing the Programmer Hardware 1-9 1.3.2 Power Connection 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.
Properly Installing the Programmer Hardware 1-10 Introduction and Installation 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 T able 1–1. T able 1–1.
Properly Installing the Programmer Hardware 1-1 1 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.
Properly Installing the Programmer Hardware 1-12 Introduction and Installation T o 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.
Properly Installing the Programmer Hardware 1-13 T o 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.
Properly Installing the Programmer Software 1-14 Introduction and Installation 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 .
Properly Installing the Programmer Software 1-15 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.
Invoking the Programmer Software 1-16 Introduction and Installation 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.
Getting Started—Example Sessions 1-17 1.6 Getting Started—Example Sessions This section will help you get a quick start using your programmer . Once you get started, the menu structure and prompts make the programmer easy to learn and to use.
Getting Started—Example Sessions 1-18 Introduction and Installation Object file: 6) Enter the name of the COFF file containing the object code with which the device is to be programmed. Press , and the following prompt appears: Object base address: all where all is the default, meaning that the entire object code address range is to be used.
Getting Started—Example Sessions 1-19 1.6.2 Interactive Programming Example 2 This sample session illustrates entering the interactive mode with the COFF file automatically loaded into PC memory . If the programmer software is active, that is, in the display or configuration windows, press to quit the program- mer and verify your choice.
1-20 Introduction and Installation.
2-1 Chapter 2 Operating in the Configuration Window This chapter describes the commands offered in the configuration window of the programmer ’s display . The first part of this chapter explains how the command menus and function keys work; it also has a short section on entering information at the cursor prompt.
How Command Menus Work 2-2 Operating in the Configuration Window 2.1 How Command Menus Work The interactive mode of the programmer is driven by command menus that are displayed on the top line of the screen. A command menu is a list of command names, each of which is displayed with one highlighted letter , usually the first character in the name.
Using the Special Function Keys/What Happens If I Make an Error 2-3 2.2 Using the Special Function Keys Function keys through invoke various actions in the programmer , depending on your location in the command menu structure. The valid function keys and their definitions for each mode are displayed on the bottom line of the screen for reference.
Understanding Y our Input at the Cursor Prompt 2-4 Operating in the Configuration Window 2.4 Understanding Y our Input at the Cursor Prompt The programmer software often requires you to enter a response to a prompt or to move the cursor to a value on the screen and modify it.
Configuration Window Overview and Description 2-5 2.5 Configuration Window Overview and Description If you use the configuration command while in the display window , the config- uration window illustrated in Figure 2–2 is displayed; it also displays when the programmer software is first invoked.
Configuration Window Overview and Description 2-6 Operating in the Configuration Window The device table lists devices that can be programmed through the program- mer . The device table displays 12 device types at a time and is sorted first by the device family names and then by the device first names.
Secondary Configuration Window—the Show Ranges Window 2-7 2.6 Secondary Configuration Window—the Show Ranges Window A small subwindow appears when you select the show ranges function key , , from the device area of the configuration window . Figure 2–3 illustrates what the show ranges window looks like.
Secondary Configuration Window—the Show Ranges Window 2-8 Operating in the Configuration Window 2.6.1 Selecting the Proper Program Algorithm For EEPROM memory in devices, there are three programming modes: writing 0s only , all 1s in the data bytes are ignored.
Showing the Software Revision Information/Defining and Adding a Device to the Device T able 2-9 2.7 Showing the Software Revision Information — the Show ID Command This command displays the software release/revision information on the top line of the PC screen for reference.
Defining and Adding a Device to the Device T able 2-10 Operating in the Configuration Window V alid types of memory are EPROM or EEPROM. Legal V CC values are listed following the prompt—0, 5, or 6.
Editing the Configuration Parameters and Device T able 2-1 1 Program Algorithm: If the family code is 10h (TMS370 EEPROM range), one of three pro- gramming algorithms can be chosen— program 1s, program 0s, or program 1s and 0s.
Editing the Configuration Parameters and Device T able 2-12 Operating in the Configuration Window 2.9.2 Editing the Device T able The device table is a list of devices catagorized by family name and device first name . The software diskette provides a device table file, device.
Editing the Configuration Parameters and Device T able 2-13 Pressing causes this temporary window to disappear , and the previous window is resumed. Pressing from the device table selects the device on the line where your cursor is positioned. The device you have chosen is highlighted when se- lected.
Loading the Device T able and Configuration Parameters From a File 2-14 Operating in the Configuration Window 2.10 Loading the Device T able and Configuration Parameters From a File — the Load Command When you select the L command, a submenu displays options for choosing a file to load.
Selecting a Current Device/Saving the Configuration Parameters and Device T able to a File 2-15 2.1 1 Selecting a Current Device — the Choose Device Command The choose device command moves the cursor directly to the device table. Use the cursor control keys to move the cursor to the device you will be pro- gramming and press to select it.
Showing the Display Window/Ending Y our Current Session and Returning to DOS 2-16 Operating in the Configuration Window 2.13 Showing the Display Window — the Display Command When you choose the display command , the programmer software checks to to see if a current device type has been selected.
3-1 Chapter 3 Operating in the Display Window This chapter describes the commands offered in the display window of the programmer ’s display . The first part of this chapter explains how the command menus and function keys work; it also has a short section on entering information at the cursor prompt.
How Command Menus Work 3-2 Operating in the Display Window 3.1 How Command Menus Work The interactive mode of the programmer is driven by command menus that are displayed on the top line of the screen. A command menu is a list of command names, each of which is displayed with one highlighted letter , usually the first character in the name.
Using Special Function Keys/What Happens If I Make an Error? 3-3 3.2 Using the Special Function Keys Function keys through invoke various actions in the programmer , depending on your location in the command menu structure. The valid function keys and their definitions for each mode are displayed on the bottom line of the screen for reference.
Understanding Y our Input At the Cursor Prompt 3-4 Operating in the Display Window 3.4 Understanding Y our Input at the Prompt The programmer software often requires you to enter a response to a prompt or to move the cursor to a value on the screen and modify it.
Display Window Overview and Description 3-5 3.5 Display Window Overview and Description The display window has two separate areas (see Figure 3–2): the PC memory display (left half of screen) and the reverse assembled code (right half of screen). The programmer displays the PC memory in a hexadecimal format.
Display Window Overview and Description 3-6 Operating in the Display Window T able 3–2. Display Window Commands Command Function F ill Memory Fill PC memory with a byte value. L oad COFF File Load a COFF file to PC memory . O utput COFF File Create a COFF file from PC memory .
Display Window Overview and Description 3-7 F2 (Pg Up) Scroll backward through code. F3 (Address) Invoke disassembler at specified PC memory address. ESC Leave inspect mode and return to display command menu. ← Move cursor left one space. → Move cursor right one space.
Filling a Block of PC Memory With a V alue 3-8 Operating in the Display Window 3.6 Filling a Block of PC Memory With a V alue — the Fill Command Use the fill command to fill a block of PC memory with a value.
Loading a COFF File Into PC Memory 3-9 3.7 Loading a COFF File Into PC Memory— the Load Command Use the load command to load a COFF file into the PC memory . This com- mand allows you to load the entire COFF file or part of it and also to specify where in the PC memory you want it loaded.
Outputting a COFF File From PC Memory 3-10 Operating in the Display Window 3.8 Outputting a COFF File From PC Memory — the Output COFF Command Use the output COFF command to create a COFF object file from the PC memory . This command allows you to specify the block(s) of PC memory to be used to create the COFF file.
Outputting a COFF File From PC Memory 3-1 1 After the input session is completed, the programmer uses the PC memory blocks given to create the COFF file. As a result of debugging, you may have made code changes that you would like to save. Y ou can save the changes for later use by creating a COFF file from the working code in the PC memory .
Moving Blocks of PC Memory 3-12 Operating in the Display Window 3.9 Moving Blocks of PC Memory—the Move Command Use the move command to move a block of PC memory from one location to another PC memory location. Step 1: Identify the size of PC memory to be moved.
Programming a Device From PC Memory 3-13 3.10 Programming a Device From PC Memory — the Program Command When you use the program command, the microcontroller and gang programmers display different prompts and messages. The microcontroller programmer is discussed in sub-section 3.
Programming a Device From PC Memory 3-14 Operating in the Display Window This message is updated when the programmer starts programming the next packet. If, for some reason, you want to terminate the programming process before it is completed, press the key to abort the process and return to the display command menu.
Programming a Device From PC Memory 3-15 3.10.2 Programming Using the Gang Programmer In PC mode, use the gang programmer ’s program command to program multiple devices from the PC memory with verification. (For information on pro- gramming from standalone mode, refer to subsection 1.
Programming a Device From PC Memory 3-16 Operating in the Display Window Once the programming begins, it proceeds packet by packet in180-byte seg- ments. Before a packet is programmed, the programmer verifies that the desti- nation device address is inside the valid address ranges defined for the current device type.
Showing and Operating Within a T ext File 3-17 3.1 1 Showing and Operating Within a T ext File—the Show Command Use the show command to show a text file.
Showing and Operating Within a T ext File 3-18 Operating in the Display Window 3.1 1.1 Finding Character Strings Within a T ext File — the Find Command The find command allows you to search for a string of characters in the text file. When the programmer prompts you for a character string, type a string up to 30 characters long.
Uploading a Device’s Contents Into PC Memory 3-19 3.12 Uploading a Device’s Contents Into PC Memory– the Upload Command When you use the upload command, the microcontroller and gang program- mers display different prompts and messages. The microcontroller program- mer is discussed in sub-section 3.
Uploading a Device’s Contents Into PC Memory 3-20 Operating in the Display Window During the uploading process, the programmer displays a status message on the bottom line of the screen to indicate the address currently being read.
Uploading a Device’s Contents Into PC Memory 3-21 unable to communicate with TMS370 device – Retry, Abort Y ou should inspect all of the devices for misalignment or bent pins. Y ou may have to remove devices until the bad device is found. Once the actual uploading begins, it proceeds packet by packet in180-byte segments.
V erifying the Contents of a Device 3-22 Operating in the Display Window 3.13 V erifying the Contents of a Device – the V erify Command When you use the verify command, the microcontroller and gang programmers display different prompts and messages.
V erifying the Contents of a Device 3-23 rent device type. If the address is not in the range, the following error message is displayed. Address out of range, Press any key During the verification process, the programmer displays a status message on the bottom line to indicate the beginning address of the packet currently being programmed.
V erifying the Contents of a Device 3-24 Operating in the Display Window Step 3: If you chose to verify a single device against PC memory , you must now specify the error file. Otherwise, verification errors are indicated with the red LEDs found below each device socket.
V erifying the Contents of a Device 3-25 Once the actual verification begins, it proceeds packet by packet (180-byte segments). Before a packet is read, the programmer verifies that the source device address is inside the valid address ranges defined for the current de- vice type.
Editing the Contents of PC Memory 3-26 Operating in the Display Window 3.14 Editing the Contents of PC Memory—the Edit Command The edit command puts the programmer in a special mode that allows you to overwrite the contents of the PC memory by typing new values.
Using the Master Mode Menu 3-27 3.15 Using the Master Mode Menu—the Master Command The master command mode allows you to program and manipulate data with a master device as the source of the data manipulation. This command brings up a menu simliar to the display window command menu.
Suspending the Program and Entering DOS/Quitting the Program and Exiting to DOS 3-28 Operating in the Display Window 3.16 Suspending the Program and Entering DOS—the System Command The system command temporarily suspends the programmer software so that you can use DOS commands and functions.
A-1 Appendix A Operating the Programmer in Batch Mode In the batch control mode, the execution flow is defined in a configuration/ batch file, and all messages are displayed in line-oriented mode. The configu- ration/batch file consists of a set of commands that define the current configu- ration and give direction of execution.
Understanding the Batch Mode File A-2 Operating the Programmer in Batch Mode A.1 Understanding the Batch Mode File Batch mode allows you to program and/or verify devices repeatedly with a fixed configuration setup in the configuration/batch file.
Batch File Command Rules and Descriptions A-3 A.2 Batch File Command Rules and Descriptions The batch commands can be classified as executable or nonexecutable . The executable commands invoke operations, whereas the nonexecutable com- mands define programming parameters and the device type.
Batch File Command Rules and Descriptions A-4 Operating the Programmer in Batch Mode A.2.2 Nonexecutable Batch Commands Nonexecutable commands do not invoke any action. They set certain pro- gramming parameters and define the device type. These commands can be classified as defaultable or nondefaultable .
Batch Mode Status Messages A-5 A.3 Batch Mode Status Messages When programming begins, a status message informs you: Programming at device address where device address is the location on the device that is currently being pro- grammed. This message is updated every time the programmer starts on the next packet of data.
A-6 Operating the Programmer in Batch Mode.
B-1 Appendix B Error Messages This appendix briefly describes the error messages associated with the programmers. It also gives reasons why the error occurred and sugges- tions on how to fix the error .
Error Message Descriptions B-2 Error Messages B.1 Error Message Descriptions The following messages are common to all programmers. Chip inserted incorrectly, or bad – Retry, Abort For the microcontroller programmer , this message refers to the 2732, 2764, 27128, and 27256 devices.
Error Message Descriptions B-3 invalid Vcc chosen – Retry, Abort The V CC value you have chosen for your device is invalid. Use a valid V CC value—0, 5, or 6 volts. invalid VPP chosen – Retry, Abort The V PP value you have chosen is invalid. Use a valid V PP value—0, 5, 12, 12.
Error Message Descriptions B-4 Error Messages These error messages are specific to the gang programmers. checksum error in master device – Retry, Abort The data in the master device is corrupt. Replace the master EPROM. illegal memory type detected in master – Retry, Abort The master EPROM device has illegal configuration data.
C-1 Appendix C Configuration Parameters T able C–1 describes the valid configuration parameters for the programmers discussed in this manual. Use of invalid parameters will result in programming errors. T able C–1. V alid Configuration Parameters Device Family Device 1st Name Start Size T ype V CC V PP Pdt Ctrl Reg.
C-2 Configuration Parameters.
D-1 Appendix D Using Keystroke Capture Files A keystroke capture file is a file in which the keystrokes you type are re- corded to be replayed later . Keystroke capture files are useful in setting up the programmer to perform a commonly repeated program or to verify operation.
Using Keystroke Capture Files D-2 Using Keystroke Capture Files Example D–1. Keystroke File Example.key C$DARW choose device $DARW move cursor down to 370C756 device $DARW $DARW $DARW $DARW $F5 sele.
Using Keystroke Capture Files D-3 T ext Name Actual Keystroke $INS insert $LARW left arrow arrow $RA WR right arrow $SRECORD stop record $SP space $T AB tab $UARW up arrow.
D-4 Using Keystroke Capture Files.
Index-1 Index A add device command, 2-9 address range, PC memory , 3-5 B batch mode command descriptions, A-3 executable, A-3 nonexecutable, A-4 description, A-2 status messages, A-5 block erase, 2-8 .
Index Index-2 system (using DOS commands), 3-28 uploading (device’ s contents), 3-19, 3-20 verify (device contents), 3-22, 3-23 description, 3-5 E edit command, 2-1 1 edit mode command, 3-26 editing.
Index Index-3 upload, 3-27 memory , PC, 1-2 microcontroller programmer description, 1-2 features, 1-2 physical description, 1-3 move PC memory command, 3-12 O output COFF file command, 3-10 P parameters.
Index Index-4.
IMPORT ANT 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.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Texas Instruments TMS370 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Texas Instruments TMS370 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Texas Instruments TMS370, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Texas Instruments TMS370 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Texas Instruments TMS370, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Texas Instruments TMS370.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Texas Instruments TMS370. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Texas Instruments TMS370 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.