background image

Содержание IE-488

Страница 1: ...IE 488 Keithley MetraByte Corporation...

Страница 2: ......

Страница 3: ...488 Manual Part Number 24820 Revision A Last Edit June 1984 Copyright 1984 KEITHLEY METAASYTEIASYSTIDAC 440 Myles Standish Boulevard Taunton Massachusetts 02780 Telephone 508 880 3000 FAX 508 880 017...

Страница 4: ...aterials and worksmanship for a period of one year from the date of delivery to the original purchaser Any product that is found to be defective wlthin the warranty period will at the option of Keithl...

Страница 5: ...y infringements of patents or other rights of third parties that may result from its use No license is granted by implication or otherwise under any patent rights of Keithley MetraByte Corporation Kei...

Страница 6: ......

Страница 7: ...ON CHAPTER 3 3 0 MODESOF OPERATION 3 1 IMAGE SPECIFIERS 3 2 IMAGE TERMINATORS 3 3 FLAG RETURN CODES CHAPTER 4 4 0 USER COMMANDS ABORT 15 CLEAR 16 CONFIG 17 ENTER 18 EOI 19 LOCAL 20 LOCKOUT 21 OUTPUT 2...

Страница 8: ...P 5 3 RETURN FLAG CODES APPENDIX A DMA Direct Memory Access DATA TRANSFERS 36 APPENDIX B RUNNING COMPILED PROGRAMS 38 APPENDIX C MAIN IEEE488 GPIB BUS CONNECTIONS 40 APPENDIX D C88 01 CONNECTORCABLE 4...

Страница 9: ...ener devices The controller maybe the IBM or any other of the 14 devices any one of which control may also be transferred to or from The IE488 interpreter includes a group of subroutines which may be...

Страница 10: ...bus Each bit represents a device on the bus This is typical response to a Para llel Poll operation This allows transfer of the bus management duties to another device on the bus The System controller...

Страница 11: ...M PC is not the active controller on the bus no other devices may be addressed by the IBM PC all controller commands The IBM PC may still transfer data as a talker listener if setup by the controller...

Страница 12: ...would be in conflict There are three groups of switches on the IE488 interface card The Base Address switch is located on the top left corner and marked BASE ADDRESS The switch settings are listed as...

Страница 13: ...ning 6 vectors are available to the user The IBM PC interrupt vector map is as shown below with the standard assignments of function made by IBM LEVEL VECTOR 0 1 3 ____ 4 5 6 7 FUNCTION TIMER SYSTEM O...

Страница 14: ...he IE 488 board First remove the board from its protective eIectrostatic packaging It is a good precaution to discharge any electrostatic charge you may have accumulated by touching the metal frame of...

Страница 15: ...dary address is always a period The IMAGE string is identified by brackets I The Command Line Interpreter is relatively tolerant of syntax error identification and will send back the appropriate error...

Страница 16: ...488 MANUAL COMMANDFORMAT transfer message codes are generated at the completion of each CALL BASADR is the address of the interface board being used BASADR may be 0 or 1 or actual base address e g 768...

Страница 17: ...specified by the image terminator It is the user s responsibility to insure that the array size and the type of array are correct No check is made on data types The values of m and z may be reversed...

Страница 18: ...e line feedand EOI during an OUTPUT command only The INPUT command is in the default mode INPUT terminates with EOI or last entry If carriage return and line feed are part of the data being transferre...

Страница 19: ...060 GPIB BUSY HO100 HARDWAREFAILURE HO200 TIME OUT ON DATA TRANSFER HO300 DEVICE NOT ACTIVE CONTROLLER HO400 IBM PC ACTIVE CONTROLLER HO500 SYSTEM NOT INITIALIZED HO600 CONFIGURATION ERROR HlOOO HllOO...

Страница 20: ...the bus is 15 The transfer of String data is limited to single element arrays and must be initialized The Maximum string size is 255 bytes as defined in the IBM PC Basic manual The user may transfer a...

Страница 21: ...charge until PASCTL command is executedNo device is necessary COMMANDSFORMAT ABORT EXAMPLE xxx10 CMD ABORT command format xxx20 DEF SEG HCOOO driver subroutine xxx30 CALL 1 488 CMD VAR FLG BRD execut...

Страница 22: ...st be the active controller or an error message will be generated COMMANDSFORMAT CLEAR devl dev2 devN EXAMPLE xx200 CMDS CLEAR 10 12 14 command format xx210 BRD 0 board xx220 CALL IE488 CMDS VAR FLG B...

Страница 23: ...tain the error code if any conflicts occur COMMANDSFORMAT CONPIG TALK devl MTA LISTEN devZ dev3 MLA EXAMPLE Xx10 BRD 0 xx20 CMD CONFIG MTA LISTEN 10 12 34 5 7 xx30 CALL IE488 CMDS VAR FLAG BRDB xx40 I...

Страница 24: ...the IBM to listen Only one device is allowed with this command COMMANDSFORMAT ENTER dev secad image EXAMPLE xxx10 DVM SPACES 25 Dimension array xxx20 CMD ENTER 12 0 181 Command String xxx30 CALL IE48...

Страница 25: ...oller incharge If the IBM PCis not the controller in charge and not programmed as a talker then an error code h9000 will be returned until the controller in charge programs the IBM PC as a talker befo...

Страница 26: ...PLE xx100 CMD LOCAL 10 11 12 14 define command xx120 CALL IE488 CMD VAR FLG BRD execute command xx130 IF NOT FLG THEN 200 test for errors xx140 PRINT ERROR HEX FLG IN LINE 120 xx150 END xx200 continue...

Страница 27: ...ut The IBM PC must be the active controller or an error message will be generated The devices cannot be set to local except by the GPIB controller The FLG variable contain the error code COMMANDSFORMA...

Страница 28: ...ring THIS IS A TEST using even parity and ending with a EOI code to show the end of the string The FLG variable will have any error transfer codes if an error was detected during transfer xx200 contin...

Страница 29: ...POL PROGRAMMINGEXAMPLE 100 VAR CHR HO Parallel Poll return byte initialized 110 CMD PARPOL 120 CALL IE488 CMD VAR FLG BRD 130 IF NOT FLG THEN 200 if error the flag is printed out 140 PRINT ERROR HEX F...

Страница 30: ...FLG IN LINE 110 END xx200 continue users program The IBM PC is inactive at this point and no controller commands are allowed To receive control back the command RXCTL must be used as follows xx300 CMD...

Страница 31: ...at it never responds to a parallel poll PPD H70 is the parallel poll disable command which places the device in the parallel poll idle state PPIS The value of the individual status IST can be set by b...

Страница 32: ...o a parallel poll command COMMANDSFORMAT PPUNCF dev PROGRAMMINGEXAMPLE 100 BRD 0 110 A CHR LHA 120 CMD PPUNCF 14 130 CALL IE488 CMD A FLG BRD 140 IF NOT FLG THEN 300 error is processed here 150 PRINT...

Страница 33: ...N EXAMPLE xx100 VAR 0 dummy variable not used xx120 BRD 0 define board number xx130 CMD REMOTE 10 12 14 define command xx140 CALL IE488 CMD VARS FLG BRD xx150 IF NOT FLG THEN 200 xx160 PRINT ERROR HEX...

Страница 34: ...RRUPT ENABLED 1 on BIT 09 DMA ENABLED 1 on BIT 10 DMA CHANNEL l chan l O chan 3 BIT 11 INTERRUPT vector level 1 BIT 12 INTERRUPT vector level 2 BIT 13 INTERRUPT vector level 4 BIT 14 srq CIC l PEND bi...

Страница 35: ...ALL IE488 CMD VAR FLG BRD xx160 IF NOT FLG THEN 200 xx170 PRINT ERROR HEX FLG IN LINE 150 END xx200 continue users program until IBM is controller xx210 xx220 WEND the last instruction before control...

Страница 36: ...equence for Keithly Model 175 DVM 110 BRD 0 120 A M33X 130 CMD REMOTE 12 140 DVMEOI EOI 12 150 DVMSTATLlS STATUS 12 160 CALL IE488 CMD A FLG BRD 170 IF NOT FLG THEN 190 180 PRINT ERROR HEX FLG IN LINE...

Страница 37: ...3 NOB 1 2 BAO Hdddd BAl Hdddd where dev the address of the IBM 00 to 30 decimal MAD My IBM device address NOB number of IE488 boards 1 or 2 BAO base address for board 1 BAl base address for board 2 CI...

Страница 38: ...controller or an error will occur COMMANDSFORMAT TRIGGER devl dev2 devN EXAMPLE xx120 BRD 0 define board number xx140 CMD TRIGGER 11 12 15 define command xx150 CALL IE488 CMDS VAR FLG BRDB devices 11...

Страница 39: ...lity vector The segment will be the same value as the switch setting on the IE488 interface board The user should save any register contents which he does not want destroyed EXAMPLE BOARD CONTROL DATA...

Страница 40: ...driver RETURN CMP RTN FLAG 00 any errors on return JNE ERRSR HANDLER exit to error handler continue iisers program There is also available an assembly language macro library for the IEEE488 interface...

Страница 41: ...SEGMENT MAP The stack is used to transfer the variable pointers to and from the IE488 interpreter and must be of sufficient size to handle the interrupt and DMA vectors used in the interpreter The int...

Страница 42: ...transfers modes are more restricted in hard disk machines It is the user s responsibility to insure that disk transfers and IE488 DMA transfers do not conflict VAR O DMA DATA SEGMENT TO BE TRANSFERRE...

Страница 43: ...the VARPTR command as shown 10 DIM X 2 20 IE488 0 BRD 0 FLG 0 30 CMD OUTPUT dev WD 0 151 word 2 bytes 40 A THIS IS THE STRING TO TRANSFER IN DMA CHR 13 CHR lO 50 x l vARPTR A 1 60 X O HFFFF use basic...

Страница 44: ...ls need not be changed To compile a Basic program using the IE488 is a straightforward procedure using CALL IE488 CMD VAR FLG BRD Refer to the BASIC Compiler manual for the CALL command The IE488 vari...

Страница 45: ...oints to ROM SEG internal pointer BUSY ireturn to caller now were busy basic data seg restore stack string descpt ptr ARG 2 ARG 3 address of interface base address device get rom seg address inew data...

Страница 46: ...d between the D connector and the standard IEEE 488 male female For details of this adapter cable see Appendix D A rear view of the D connector pin assignments is shown below GND SHIELD ATN SRQ IFC ND...

Страница 47: ...shown below The cable is of flat shielded type and has a standard length of 1 meter approx 3 feet Different lengths are available to special order specify C88 xx where xx length in meters I 2 43 in I...

Страница 48: ...t 16 k byte block of memory There is 12 Kbytes of ROM and 4 Kbytes of static RAM which the Control Alt Del reset will have no effect on The user may also use the last 2 Kbytes of static RAM on the fir...

Страница 49: ...step is to initialize the IE 488 board this applies whatever you intend to do later and would usually be performed at the beginning of a program It is not necessary to repeat this operation unless yo...

Страница 50: ...appear hence the importance of keeping the order and number fixed see CALL in the IBM BASIC Manual 160 IF FLG O THEN PRINT INSTALLATION ERROR END This line is optional and just confirms that the init...

Страница 51: ...though we have used the mnemonic CMD as a name for our command string variable throughout our examples you are free to choose any other string name e g MYOWNNM for command data as long as it is correc...

Страница 52: ...ett Packard Interface Bus User s Guide Publication 9830A 1974 HP 1B Improving Measurements in Engineering and Manufacturing A Collection of Useful Technical Information Hewlett Packard Publication 595...

Отзывы: