《Fluke 9010A-LanguageCompiler-1 电路.pdf》由会员分享,可在线阅读,更多相关《Fluke 9010A-LanguageCompiler-1 电路.pdf(179页珍藏版)》请在收音机爱好者资料库上搜索。
1、901OA Language Compiler P/N 861504 December 1983 elg83 Litho 收音机爱好者资料库 Ra d i o Fa n s .CN NOTICE This manual describes unpublished Software which contains the tradesecrets and confidential proprietary information of John Fluke Mfg. Co., Inc. and which embodies substantial creative effort, ideas, an
2、d expressions. THE SOFTWARE IS PROVIDED UNDER LICENSE FROM FLUKE. Fluke grants Licensee a perpetual non-exclusive license to use this material and make up to three copies for backup purposes without written permission from Fluke. THIS SOFTWARE IS LICENSED FOR USE ON A SINGLE COMPUTER SYSTEM. LIMITED
3、 WARRANTY Fluke warrants that the Software has been properly recorded on non-defective diskettes. Fluke does not warrant the Software to be error free. Fluke will replace such diskettes without charge if Fluke in good faith determines that such diskettes were not subject to misuse and if returned to
4、 a Fluke Technical Service Center, within ninety (99) days of shipment. Refer to your 9OlOA Operator Manual for a listing of locations. Fluke reserves the right to change the specifications and operating characteristics of the Software it produces, over a period of time, without notice. - FLUKE GRAN
5、TS NO OTHER WARRANTIES, EITHER EXPRESSED OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABIL- ITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. IN NO EVENT SHALL FLUKE BE LIABLE FOR ANY LOSS OF DATA, USE, PROFITS OR GOODWILL, OR FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL OR OTHE
6、R SIMILAR DAMAGES AS A RESULT OF ANY MATTER RELATED TO THIS AGREEMENT, REGARDLESS OF THE FORM OF THE ACTION. Copyright (a)1983 John Fluke Mfg. Co., Inc., P.O. Box C9090, Everett, Washington 98208 收音机爱好者资料库 Ra d i o Fa n s .CN Contents 1INTRODUCTION.1-l Introduction to the 9010A Language Compiler.l-3
7、 The Host Computer System .1-4 How the Compiler Works . l-5 Language Extensions . l-6 r The 9010A Language Compiler Package .l-7 Disk Verification Program .l-7 Compiler .l-7 File Transfer Program .1-7 Pod Data Files . Use With the 9005A.t: 2HOW TO USE THIS MANUAL.2-1 Introduction.2-3 Organization.24
8、 Suggested Use .2-5 3GETTING STARTED.3-1 Introduction.3-3 Fluke 1720A Instrument Controller .34 Introduction.34 What You Need .3-4 Backing Up the Program Diskette .34 Verifying the Working Diskette.3-5 Hooking Up the System .3-6 System Dependencies .3-8 Test Editor .3-8 Disk Space .3-8 Compiler Orga
9、nization .3-8 i(continued on page ii) 收音机爱好者资料库 Ra d i o Fa n s .CN CONTENTS, continued -, Fluke 1722A Instrument Controller . . . . . . . . . . . . . . . . . . . . . 3-9 Introduction. . . . . . . . . . . . . . . . . . . .*.*. 3-9 What You Need. . . . . . . . . . . . . . . . . . . . . . . . . . . .
10、. . . .*. Backing Up the Program Diskette . . . . . . . . . . . . . . *.*.E Verifying the Working Diskette . . . .*.*.3-10 Hooking Up the System . . . . .*. 3-10 System Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 Text Editor. . . . . . . . . . . . . . . . . . . .
11、. . . . . . . . . . . . . . . . . . 3-12 Disk Space . . . . . . . . . . . . . . . . . . . .*.*. 3-12 IBM Personal Computer . . . . . . .*. 3-13 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13 What You Need. . . . . . . . . . . . . . . . . . . . . . . . .
12、 . . . . . . . . . . . 3-13 Backing Up the Program Diskette . .*.*.3-14 Verifying the Working Diskette . . . . . . . . . . . . . . . . . . . . . .3-14 Hooking Up the System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 System Editor . . . . . .*. 3-16 RETURN Key . . . . . . .*.*.*.*
13、3-16 CP/ M Operating Systems.*.*. 3-17 Introduction. . . . . . . . . . . . . . . . .*. 3-17 What You Need.*.,. 3-17 Backing Up the Program Diskette - . . . . . . . . . . . . . . . . . . . .3-18 Verifying the Working Diskette . . . . . . . . . . . . . .*.3-18 Hooking UP the System. . . . . . . . . .
14、. . . . . . . . . . . . . . . . . . . 3-19 Installing Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20 Editor. . . . . .*. 3-20 4WRITING PROGRAMS . . . . . . . . . . . . . . . . . . . . . . . . .:-; Introduction. . . . . . . . . . . . . . . . . . . . . . . .*. - Part 1:
15、 General Program Format. . . . . . . . . . . . . . . . . . . . . . . 44 Introduction,. 4-4 Important Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 Program Comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7 90 10A Programs. . . . . . . . . . .
16、 . . . . . . . . . . . . . . . . . . . . . . . . 4-8 Address Space Information . . . . . . . . . . . . . . . . . . . . . . . . . .4-8 Setup Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Pod Data Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17、 . . . . . 4-l 1 9010A/Pad Interaction,.,.,. 4-12 Sample Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13 Part 2: Coding Shortcuts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18、. . . . . . . . . 4-16 Optional Keywords and Keyword Abbreviations . . . . . . . . 4-17 Unary Operator Shorthand ,.,.4-18 - Default Entries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18 File Inclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19、. . . . 4-19 (continued on page iii) ii 收音机爱好者资料库 Ra d i o Fa n s .CN CONTENTS, continued Sample Program .4-20 Part 3: Symbolic Names .4-22 Introduction.4-22 Symbolic Program Names .4-24 Symbolic Labels .4-26 Symbolic Register Names .4-28 Predefined Register Names.4-29 Sample Program .4-30 5USING TH
20、E COMPILER .5-l Introduction. 5-3 Preparing the Source File .5-4 Compiling.5-5 Interactive Mode .5-6 Command Line Mode.5-8 Listing File Options.5-10 Syntax Errors .5-l 1 Transferring Programs. 5-12 Transferring Programs to the 9010A .5-12 Transferring Programs from the 9010A .5-14 Source Format .5-1
21、4 Hex Format .5-16 6LANGUAGE REFERENCE. 6-I Introduction. 6-3 Syntax Diagram Notation .6 4 Special Symbols .6-5 Symbolic Names. 6-6 Expressions.6-8 Addresses. 6-10 General Information .6-11 Statement Format .6-l 1 Program Comments.6-l 1 File Inclusion . 6-12 SOURCE FILE SYNTAX.6-13 Source File.6-15
22、Setup. 6-17 Address Space.6-19 Address Descriptor .6-2 1 Global Declaration .6-23 Symbolic Register Name Declaration .6-25 9OlOA Program .6-27 Program Body .6-29 . . . 1 1 1(continued on page iv) 收音机爱好者资料库 Ra d i o Fa n s .CN CONTENTS, continued Local Declaration.6-3 1 Binary Program .6-33 Include D
23、irective.6-35 SETUP PARAMETERS.6-37 Beep. 6-39 Bus Test .641 Enable.643 Exercise Errors .645 Linesize.647 Newline.6-49 Pod. 6-5 1 Run UUT.6-53 Stall/Unstall.6-55 Timeout. 6-57 Trap .6-59 SOlOA PROGRAM STATEMENTS.6-61 Atog.6-63 Auto Test.6-65 - Aux.667 Bus Test .6-71 DPY .6-73 Dtog .6-77 Execute.6-79
24、 Goto.6-8 1 If .6-83 IO Test. 6-85 Label. 6-87 Learn .6-89 Probe .6-9 1 RAM Test .6-93 RAMP .6-95 Read .6-97 Reg .6-99 Rept/ Loop.6-101 ROM Test . 6-103 Run UUT. 6-105 stop .6-107 Sync .6-109 Unary .6-111 Walk .6-113 - Write.6-115 (continued on page v) i v 收音机爱好者资料库 Ra d i o Fa n s .CN CONTENTS, con
25、tinued APPENDICES AKeywords.A-l BPredehed Register Names .B-l COptional Keywords and Keyword Abbreviations.C-l D Default Setup Parameters .D-l E Parameter Limits .E-l F Error Messages.F-l INDEX vlvi 收音机爱好者资料库 Ra d i o Fa n s .CN Section 1 Introduction CONTENTS Introduction to the 9010A Language Comp
26、iler . The Host Computer System .k-i How the Compiler Works.l-5 Language Extensions .l-6 The 9010A Language Compiler Package .1-7 Disk Verification Program .l-7 Compiler .1-7 File Transfer Program .l-7 Pod Data Files .l-8 Use With the 9005A.l-8 l-1/1-2 收音机爱好者资料库 Ra d i o Fa n s .CN INTRODUCTION TO T
27、HE 9010A LANGUAGE COMPILER The 9010A Language Compiler package is used to create test and troubleshooting programs for the Fluke 9010A Micro-System Troubleshooter. The 9010A is an excellent tool for interactive troubleshooting, and many users may want to take advantage of its power by writing extens
28、ive test programs. While the 9010A itself is very convenient for entering relatively short programs, it may be advantageous to create and maintain large, elaborate, or complex programs using a host computers editing and file management facilities. The 9010A Language Compiler allows 9010A programs to
29、 be developed conveniently on a host computer system and then transferred to the 9010A for execution. l-3 收音机爱好者资料库 Ra d i o Fa n s .CN Introduction _- THE HOST COMPUTER SYSTEM The illustration shows the 9010A connected by an RS-232-C serial interface to a host computer system. Fluke currently suppo
30、rts the 9OlOA Language Compiler on the following computer systems: ?Fluke 1720A and 1722A Instrument Controllers 0Most 280 CP/M systems with 8-inch disk drives ? Kaypro II ?IBM Personal Computers (PC and XT) - Registered Trademarks: z-80: zilog CP/ M: Digital Research Inc. Kaypro: Kaypro Corp. IBM:
31、International Business Machines 1-4 收音机爱好者资料库 Ra d i o Fa n s .CN Introduction HOW THE COMPILER WORKS 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 address space descriptors, ar
32、e transferred through the serial interface in a special hex data format. The 9010A Language Compiler takes advantage of this ability of the 9010A to read programs in hex format. The test programmer develops the test programs on the host computer system in an ASCII source program form using the full
33、power of the editing and file storage capabilities of the host system. In this sense, a 9010A program on the host system is much like a program written in any other programming language, such as BASIC, FORTRAN, or Pascal. Once the program has been written in source form, the 9010A Language Compiler
34、program converts the source program into the hex format required for transfer to the 9010A. The program is then transferred to the 9010A using a transfer program that is supplied with the compiler package, and the hex format program is read into Troubleshooter memory by pressing the AUX I/F and READ keys on the 9010A. 1-5 收音机爱好者资料库 Ra d i o Fa n s .CN Introduc