《Fluke 9010A_to_9100ProgramTranslator 电路.pdf》由会员分享,可在线阅读,更多相关《Fluke 9010A_to_9100ProgramTranslator 电路.pdf(84页珍藏版)》请在收音机爱好者资料库上搜索。
1、9100 Series 9100A-030 9010A To 9100A Program Translator P/N 877696 December 1989 1989, John Fluke Mfg. Co., Inc. All rights reserved. Litho in U.S.A. LIMITED WARRANTY Fluke warrants to the original purchaser that the medium on which the 9010A to 9100A Program Translator is furnished will be free fro
2、m material defects and workmanship for 90 days from the date of shipment. This warranty does not apply to media which, in Flukes opinion, have been subject to misuse, al- teration, accident or abnormal conditions of operation or handling. Your software program is provided AS IS and Fluke does not wa
3、rrant that it will be error free, operate without interruption or that all errors will be corrected. For warranty service on your media, contact your nearest Fluke Service Center or send the media with the description of the difficulty, postage pre- paid, to the nearest Fluke Service Center. Fluke a
4、ssumes no risk for dam- age in transit. Fluke will replace, free of charge, media which fail to meet this warranty. However, if Fluke determine that the failure was caused by misuse, alter- ation, accident or abnormal conditions of operation or handling, you will be billed for the replacement. The n
5、ew media will be sent to you, transportation prepaid. If Fluke is unable, within a reasonable time, to replace your media, your purchase price will be reimbursed to you when you return them to Fluke. THIS WARRANTY IS EXCLUSIVE AND IS IN LIEU OF ALL OTHER WAR- RANTIES, EXPRESS OR IMPLIED, INCLUDING B
6、UT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. FLUKE WILL NOT BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAM- AGES OR LOSS, INCLUDING LOSS OF DATA, WHETHER IN CONTRACT, TORT, OR OTHERWISE. IF FLUKE IS HELD TO BE LIABLE, FO
7、R ANY REASON, ITS MAXIMUM LIABILITY SHALL NOT EXCEED FIVE TIMES THE PRICE OF THE SOFTWARE. i Contents SectionTitlePage 1.Introduction . 1-1 1.1.GENERAL DESCRIPTION . 1-1 1.2.PRODUCT DESCRIPTION . 1-2 1.3.OPERATION . 1-3 1.4.TRANSLATOR EFFICIENCY . 1-4 1.5.OPERATIONAL DIFFERENCES BETWEEN THE 9010A AN
8、D 9100A/9105A . 1-4 1.5.1.Arithmetic Underflow . 1-6 1.5.2.Probe Transition Count . 1-6 1.5.3.Probe Pulser . 1-6 1.5.4.Special Addresses . 1-7 1.6.HOW TO USE THIS MANUAL . 1-7 1.7.ORGANIZATION OF MANUAL . 1-8 2.Getting Started . 2-1 2.1.OVERVIEW . 2-1 2.2.HARDWARE REQUIREMENTS . 2-1 2.3BACKING UP TH
9、E DISKETTE . 2-2 2.4CONNECTING THE 9010A TO THE 9100A . 2-3 ii SectionTitlePage 3.How to Use the Translator . 3-1 3.1.OVERVIEW . 3-1 3.2.CREATE A UUT DIRECTORY ON THE 9100A HARD DISK . 3-2 3.3.COPY THE TRANSLATOR PROGRAMS INTO THE UUT . 3-5 3.4.TRANSFER PROGRAMS FROM THE 9010A TO THE 9100A . 3-5 3.4
10、.1.Load the 9010A Programs to be Translated . 3-6 3.4.2.Initiate Data Transfer on the 9100A . 3-7 3.4.3.Initiate Data Transfer on the 9010A . 3-8 3.4.4.Terminate Data Transfer on the 9100A . 3-10 3.5.TRANSLATE THE 9010A PROGRAMS TO TL/1 . 3-10 3.6.COPY THE TRANSLATOR OUTPUT TO TL/1 PROGRAM FILES . 3
11、-14 3.7.REVIEW THE TRANSLATOR ERRORS AND COMPLETE THE TRANSLATION . 3-15 3.8.EXECUTE THE TRANSLATED PROGRAM . 3-16 3.8.1.The Debugger Method . 3-17 3.8.2.The Operators Keypad Method . 3-18 3.8.3.Program Execution . 3-19 4.Language Reference . 4-1 4.1.OVERVIEW . 4-1 4.2.ADDRESS DESCRIPTORS . 4-1 4.3.
12、SETUP INFORMATION . 4-2 4.3.1.Statements That Are Not Translated . 4-4 4.4.9010A PROGRAMS . 4-7 4.4.1.Statements That Are Not Translated . 4-10 4.4.2.Statements That Are Partially Translated . 4-14 4.5.BINARY PROGRAMS . 4-17 4.5.1.Statements That Are Not Translated . 4-18 iii SectionTitlePage Append
13、ices A.Translator Output . A-1 A.1.OVERVIEW . A-1 A.2.9100A MONITOR OUTPUT . A-2 A.2.1.The Startup Message . A-2 A.2.2.The Error Message . A-3 A.2.3.The Termination Message . A-4 A.3.OPERATORS DISPLAY OUTPUT . A-4 A.4.LOG FILE OUTPUT . A-5 A.5.TL/1 OUTPUT . A-6 A.5.1.Global Variable Declarations . A
14、-9 A.5.2.Functions . A-10 A.5.3.The 9010exec Function . A-10 A.5.4.The async_input( ) Function . A-10 A.5.5.The Main Program . A-11 B.Translator Errors . B-1 B.1.OVERVIEW . B-1 B.2.ERRORS WHILE TRANSFERRING FROM THE 9010A TO THE 9100A . B-1 B.3.ERRORS WHILE TRANSLATING . B-2 B.4.ERRORS WHILE COPYING
15、 TO TL/1 . B-4 B.5.EXECUTION ERRORS . B-4 C.Helpful Information . C-1 C.1.OVERVIEW . C-1 C.2.OPTIMIZING THE 9010EXEC () FUNCTION . C-1 C.3.AUX PORT SELECTION AND PORT PARAMETERS . C-2 C.4.9LC COMPATIBILITY . C-3 C.5.PROBE PULSER . C-3 C.6.SPECIAL ADDRESSES . C-4 C.7.TRANSLATING IN BATCH MODE . C-6 i
16、v v Figures FigureTitlePage 2-1RS-232-C Wiring Diagram . 2-3 3-1.The Translation Process . 3-3 3-2.UUT Directory . 3-4 3-3.Monitor Display Showing Receiving Status Message . 3-8 3-4.Setup Information on 9100A Monitor . 3-9 3-5.9100A Monitor with a INFILE Argument Prompt . 3-13 A-1.Example of 9100A M
17、onitor Output . A-2 A-2.Translator Error Message Example . A-3 A-3.Operators Display Output Example . A-5 A-4.TL/1 Output File Example . A-6 vi vii Tables TableTitlePage 1-1.Non-translated or Partially Translated 9100A Statements . 1-5 2-1.Ordering Information . 2-2 2-2.RS-232-C Parameter Settings .
18、 2-4 4-1.Mapping between 9010A Address Descriptors and TL/1 Functions . 4-2 4-2.Mapping between 9010A Setup Statements and TL/1 Functions . 4-3 4-3.Mapping between 9010A Program Statements and TL/1 Functions . 4-8 4-4.Comparison of 9010A and 9100A Input Values for Keys . 4-13 4-5.Mapping Between 901
19、0A Binary Programs and TL/1 Programs . 4-18 B-1.Possible Errors Issued By The Translator . 4-3 viii 1-1 Section 1 Introduction GENERAL DESCRIPTION1.1. The 9100A-030 9010A to 9100A Program Translator (referred to in this manual as the translator) is a program that converts 9010A programs to the 9100A
20、 TL/1 programming language. These translated TL/1 programs can be executed on either the 9100A or 9105A. The translator program is written in the TL/1 language and executes only on a 9100A with a programmers station. The translator allows an existing base of 9010A programs to be used on a 9100A or 9
21、105A. The translator is also a valuable teaching tool for test engineers and programmers familiar with the 9010A and with little or no 9100A experience. 9000A-030 1-2 PRODUCT DESCRIPTION1.2. The translator consists of this Users Manual and a 3.5-inch diskette. The diskette contains programs in a UUT
22、 (Unit Under Test) directory named TRANSLATE. The following is a list of files contained on the diskette: PROGRAMDESCRIPTION TRANSLATEThe 9010A to 9100A Program Translator. 9010TAPEA sample 9010A program that can be translated and executed. 9010RDPROBTL/1 version of 9010A READ PROBE. 9010INPUTTL/1 v
23、ersion of 9010A DPY input. 9010ROMTSTTL/1 version of 9010A ROM TEST. 9010ADD32TL/1 version of 9010A 32-bit unsigned add (binary program). 9010SUB32TL/1 version of 9010A 32-bit unsigned subtract (binary program). 9010FREQTL/1 version of 9010A probe frequency (binary program). 9010PULSERTL/1 version o
24、f 9010A probe pulser (binary program). 9010SETUPTL/1 version of 9010A setup program (binary program). 9000A-030 1-3 OPERATION1.3. The 9010A is able to read and write test programs via its auxiliary RS-232-C interface. The entire contents of the 9010A program memory (including setup parameters and ad
25、dress space descriptors) can be transferred through the serial interface to the 9100A as ASCII text. Once the program transfer is made to the 9100A, the translator processes the input file containing the 9010A programs and generates an output text file containing the TL/1 version of the programs. Fi
26、nally, the 9100A COPY command converts the translated program from the text file into an executable TL/1 program file. Section 3 contains step-by-step procedures on how to transfer, translate, and convert programs to TL/l. The following is an example of an output file from the translator. This examp
27、le is a 9010A program that has been translated into TL/ 1. The original 9010A statements are included as comments in the TL/1 program by the translator. function P_10 ! PROGRAM 10 78 BYTES declare global numeric array 0:$F reg global numeric dpy global numeric aux global numeric syncmode end declare
28、 reg1 = $8000 ! REG1 = 8000 L_1: ! 1:LABEL 1 reg$F = reg$1 ! READ REG1 reg$E = readvirtual extaddr 0, addr reg$F reg8 = $20 ! REG8 = 20 9010exec (40) ! EXECUTE PROGRAM 40 if reg$1 = $801F then goto L_2 ! IF REG1 = 801F GOTO 2 reg1 = reg1 + 1 ! INC REG1 goto L_1 ! GOTO 1 L_2: ! 2:LABEL 2 print using
29、-COMPLETE, on dpy! ! DPY-+COMPLETE end function 9000A-030 1-4 TRANSLATOR EFFICIENCY1.4. 9010A source files can contain address space information, setup information, 9010A programs, and binary programs. The translator can convert 81% of these statements into TL/l. An additional 12% can be partially t
30、ranslated or can be set manually from the operators keypad on the front panel of the 9100A/9105A. For typical 9010A programs, more than 95% of the statements are translated. The 9010A statements in Table 1-1 are not translated. For information on how to manually complete the translation of these sta
31、tements, refer to Section 4. When the translator encounters a statement that cannot be converted to TL/1, the translator inserts the statement into the TL/1 program as a comment and displays an error message. The error messages are also written to a log file that can be reviewed later. OPERATIONAL D
32、IFFERENCES BETWEEN THE 9010A AND 9100A/9105A1.5. There are differences between the 9010A and 9100A/9105A that may affect the operation of the translated programs. Arithmetic underflow, probe transition counts, use of the probe pulser, and special addresses are differences that cannot be detected by
33、the translator and are described in the following paragraphs 9000A-030 1-5 . Table 1-1. Non-translated or Partially Translated 9100A Statements SETUP STATEMENTS PROGRAM STATEMENTS BINARY PROGRAMS BEEP ON ERR TRANSITION- ROM TESTMerge Tape EXERCISE ERRORS- * AUTO TESTPod Self-Test Program STALL RUN U
34、UTPod Setup Program UNSTALL ASYNCHRONOUS INPUT (with the DPY statement) 9000A-006 Programs (Asynchronous Signature Probe Option) TRAP ILLEGAL ADDRESSLEARN LINESIZE NEWLINE NOTES Most of the setup items do not affect program operation. *Can be set from the front panel of the 9100A/9105A Partially tra
35、nslated. The translation can be completed after the ROM signatures have been relearned on the 9100A/9105A. For more information, see Section 4. Partially translated. The translation can be completed by adding a haltuut () statement to the TL/1 program. For more information, see Section 4. This manua
36、l describes a workaround for asynchronous input. For more information, see Section 4. This program is partially translated. 9000A-030 1-6 Arithmetic Underflow1.5.1. The 9010A ignores arithmetic underflow and decrements from 0 to FFFFFFFF. The 9100A/9105A detects and reports arithmetic underflow errors during TL/1 program execution. Comparisons that depend on the underflow wraparound will not work. The following are examples of 9010A and 9100A/9105A subtraction: 9010A subtraction:0