Home
GPIB-1014P User Manual
Contents
1. eene 2 7 Figure 2 3 GPIB 1014P Block Diagram 22 c lalla 2 8 Figure 3 1 GPIB 1014P Parts Locator Diagram iii 3 2 Figure 3 2 EH ee 3 3 Figure 3 3 Configuration for VMEbus Base Address 1000 hex default setting 3 4 Figure 3 4 VMEbus Interrupt Line Selection ss 3 5 Figure 3 5 VMEbus Interrupt Priority Code Selection eee 3 6 Figure 3 5 Status ID Byte VAX x occ fice Macca eege 3 7 Figure 3 7 GPIB Cable Shield Grounding eene nennen 3 8 Pigure 3 62 GPIB Cable Comneno ei 3 11 Figure 4 1 uPD7210 Interface REBISICIS urina ara cia 4 4 Figure 4 2 Writing to the Hidden Registers AAA 4 5 Figure E 1 GPIB Connector and the Signal Assignment eee eee eee E 4 Figure E 2 Linear Configuration oriali lia E 5 Fipure E Star Connguratiohi a sicilia ela E 6 Tables Table 2 lt 1 GPIB 1014P Stonals eee aloe o e d te S Ede ed best 2 1 Table 2 2 uPD7210 Internal GPIB Interface Registers 2 3 Table 2 3 GPIB 1014P IEEE 488 Interface Capabilities ee eee 2 10 Table 2 4 GPIB 1014P IEEE 1014 Interrupter Compliance Levels 2 12 Table 3 1 GPIB 1014P Pin Assignment on VMEbus Connector PI 3 9 Table 4 1 GPIB 1014P Register Map supra 4 1 Table 4 2 Clues to Understanding Mnemonics eese nene 4 3 Table 4 3 Multiline GPIB Commands Recognized by the UP
2. Access L VMEbus Base Address Selection VMEbus Interrupt Priority Code Selection Oo 0 OSTOBTASSE ESO ra sen ten g aia tho n SN can oe gu ll T E ee nen g Ce T T D ario peer die dio da Selection Status ID Byte diOO SININNUISNI TVNOILVN GPIB Cable Shield Grounding Selection 1 GPIB 1014P Parts Locator Diagram Figure 3 National Instruments Corporation 3 2 GPIB 1014P User Manual Section Three Configuration and Installation Access Mode The GPIB 1014P can be configured to allow Supervisor privileged or Supervisor and User non privileged access using hardware jumper W2 as shown in Figure 3 2 To configure the board for privileged access only place the jumper on the side labeled S as shown in Figure 3 2a To configure the board for non privileged access place the jumper on the side labeled NP as shown in Figure 3 2b The default setting for the GPIB 1014P is for non privileged access In the Supervisor privileged mode the GPIB 1014P only responds to Address Modifier AM code 2D In the Supervisor and User non privileged mode the board responds to AM codes 2D or 29 Refer to the ANSI IEEE Std 1014 1987 IEEE Standard for a Versatile Backplane Bus VMEbus for more information on Supervisor and Non privileged modes S S a Supervisor only b Supervisor and User Privileged Non privileged Figure 3 2 Access Selection VMEbus Base Address The addr
3. 1 0000 Tl SN7GLS74AN IC LS74 FLIP FLOP o ult 700706 01 1 0000 n SNTAETAN 1C F74 FLIP FLOP 61 u12 700004 01 1 0000 Tl SN74LSOBN IC LS0B 2 INP AND 62 u13 700176 01 1 0000 n SN74LS240N IC LS240 BUFFER DRIVER 63 ui 700200 01 1 0000 NEC UPD7210 1C 7210 GPIB INTFC CNTRLR 64 u15 700440 01 1 0000 MOT MC74FO4N IC F04 HEX INVERTER 65 ue 701010 01 1 0000 TI SN74F10N IC F10 THREE INPUT NAND GATE 66 UI7 700646 01 1 0000 SIG N74F38N IC F38 QUAD 2 INPUT NAND 3 ST e U18 700173 01 1 0000 AMD AM25LS2521PC IC LS2521 8 BIT EQUAL TO CMPTR 68 ue 701072 01 1 0000 16 N74F393N 1C F393 0UAL 4 BIT BIN COUNTER 69 U20 700234 01 1 0000 nos SN74S02N 1C S02 2 INP NOR 70 u21 700706 01 1 0000 n SN74F74N IC F764 FLIP FLOP 71 u22 700740 01 1 0000 n SN74F20N IC F20 DUAL 4INPUT NAND 72 GPIB 1014P User Manual B 4 National Instruments Corporation r x Appendix B Parts List and Schematic Diagrams ODECIOIOIOI A E AE E e e E e e E E E E AE AE E e ded e AE 9 AE A EVE e E S RH Be e A A Ae e HE CN CERE e e e i KAN RN RO ERR HEY AE A N RR ede Be e n Red ede ee A A a e ITEM NO NI PART NO QTY REQD MER MFR PART PRODUCT DESCRIPTION U23 700490 01 1 0000 TI SN74ALS244AN IC ALS244 0CT BUF amp LINE DR 3 ST 73 u24 700706 01 1 0000 n SN74F74N IC F74 FLIP FLOP 74 u25 700287 01 1 0000 TI SN74LS19AN IC LS19 HEX ST INVERTER i 75 U26 700222 01 1 0000 TI SN74S00N 1C S00 2 INP NANO 76 u27 700540 01 1 0000 SIG N74E8SN IC F85 4 BIT MAGNITUDE COMP 77 u28 720003 01 1
4. LADS amp undefined amp ACDS amp CPT ENAB UDPCF is cleared on UCG ACG amp defined TAG LAG amp ACDS CPT ENAB pon The CPT bit flags the occurrence of a GPIB command not recognized by the TLC and all following GPIB secondary commands when the Command pass through feature is enabled by the CPT ENAB bit AUXRB 0 w Any GPIB command message not decoded by the TLC is treated as an undefined command for example the Go To Local command GTL However any addressed command is automatically ignored when the TLC is not addressed Undefined commands are read using the CPTR The TLC holds off the GPIB Acceptor Handshake in the Accept Data State ACDS until the Valid auxiliary command function code octal 017 is written to the AUXMR If the CPT feature is not enabled undefined commands are simply ignored Address Pass Through Bit Address Pass Through Interrupt Enable Bit APT is set by ADMI amp ADMO amp TPAS LPAS amp SCG amp ACDS APT is cleared by pon Read ISR1 Notes ADMI Address Mode Register bit 1 ADMR 1 w ADMO Address Mode Register bit 0 ADMR 0 w 4 10 National Instruments Corporation Section Four Bit 5r 5w 4r 4w Mnemonic DET DET IE END RX END IE Register Bit Descriptions Description TPAS GPIB Talker Primary Addressed State LPAS GPIB Listener Primary Addressed State SCG GPIB Secondary Command Group ACDS GPIB Accept Data State pon power o
5. 3 The current Active Controller sees the completed handshake goes to idle and unasserts ATN 4 As soon as the ATN line on the GPIB is unasserted the TLC automatically becomes CIC and asserts ATN As soon as the TLC becomes CIC the CIC bit in the ADSR and the Command Output CO bit in Interrupt Status Register 2 ISR2 are set Using these two bits the program can unambiguously determine that the TLC is the GPIB Active Controller and can send remote messages Sending Remote Multiline Messages Commands The GPIB 1014P sends commands as Active Controller simply by writing to the Command Data Out Register CDOR in response to the CO status bit in ISR2 The TLC recognizes any commands applicable to itself such as its own talk or listen address To make the TLC a Listener write its listen address to the CDOR Going from Active to Standby Controller If the TLC is GPIB Active Controller the Controller Standby State CSBS is entered upon reception of the Go To Standby auxiliary command The ATN line is unasserted as soon as the TLC enters CSBS Even though the TLC GPIB Controller state machine is in standby the CIC bit in the ADSR is still set Do not issue the Go To Standby auxiliary command unless the CO bit in ISR2 is set There are three cases to consider when going to standby Case 1 The TLC becomes the GPIB Talker when ATN is unasserted To do this wait for CO to be set send the TLC GPIB Talk Address MTA wait for CO to
6. ADMR 31 AUXMR 0 AUXMR IE AUXMR 16 ADSR 80 ISR2 9 AUXMR 10 ADSR C0 National Instruments Corporation Diagnostics and Troubleshooting Chip Reset Address Mode 1 Immediate execute pon set IFC clear IFC CIC CO ADSC go to standby CIC ATN 7 3 GPIB 1014P User Manual Appendix A Specifications IEEE 488 Bus Transfer Rate Up to 80 kbytes sec Power Requirement 5 VDC 0 5 A typical 1 0 A maximum Physical Board dimensions 6 3 x 3 9 in Input output connector IEEE 488 standard 24 pin Operating Environment Component temperature 0 to 70 C Relative humidity 10 to 90 noncondensing Storage Environment Temperature 62 to 71 C Relative humidity 0 to 100 noncondensing National Instruments Corporation A 1 GPIB 1014P User Manual Appendix B Parts List and Schematic Diagrams This appendix contains the parts list and schematic diagrams for the GPIB 1014P National Instruments Corporation B 1 GPIB 1014P User Manual Parts List and Schematic Diagrams Appendix B iiini END PRODUCT PRODUCT DESCRIPTION REVISION LEVEL 180150 00E CCA GPIB 1014P BASELINE E ITEM NO NI PART NO QTY REQD MFR MFR PART PRODUCT DESCRIPTION 01 180152 01 1 0000 NI 180152 01 PWB GP1B 1014P 1 1 02 740912 01 2 0000 740912 01 SCREW 4 40x5 16 PNK SS 2 03 740001 01 2 0000 740001 01 NUT 4 40 HEX 2PS 3 04 740406 01 2 0000 740406 01 WASHER 10 LOCK SPLIT ZPS 4 05 740401 01 4 0000 2
7. An ampersand amp represents AND and a plus sign represents OR in logical expressions All numbers except register offsets are decimal unless specified otherwise Register offsets are given in hexadecimal Uppercase mnemonics are used for control status data registers register contents and interface functions as well as GPIB remote messages commands and logic states as defined in the IEEE 488 standard After a mnemonic of a name has been defined the mnemonic is used thereafter Appendix F contains a list of all mnemonics used in this manual along with their type and name Mnemonics are assigned to messages states registers bits functions and integrated circuits Most mnemonics contain a clue to their meaning Table 4 2 contains a list of clues to look for Table 4 2 Clues to Understanding Mnemonics Clue Mnemonic Probably Stands For Ends in IE Interrupt enable bit Ends in EN Enable bit 4 letters Interface function as defined in the ends in S IEEE 488 standard Ends in R RO R1 R2 GPIB program register 3 letters uppercase Remote GPIB message 3 letters lowercase Local GPIB message National Instruments Corporation 4 3 GPIB 1014P User Manual Register Bit Descriptions Section Four Interface Registers All program registers are GPIB interface registers eight are read only eight are write only and five are hidden or indirectly accessible All are located within the NEC uPD7210 Talker Lis
8. MICA ROL 42 501 730001 01 1 0000 NSC 184148 DIODE 14148 SWITCHING 43 J01 180168 01 1 0000 NI 180168 01 CONN CHAMP 24 PIN DISASSEMBLED th P01 760208 96 1 0000 PAN 100 096 033 CONN DIN 3X32POS RTANG CLASSIT 45 R01 711117 01 1 0000 AB 1104672 RESNET 9X4 7K 2 10 SIP 46 R02 710015 01 1 0000 D 4084472 RESNET 7X4 7K 2 8 SIP 47 National Instruments Corporation B 3 GPIB 1014P User Manual Parts List and Schematic Diagrams Appendix B Votre ede d dee de e c Ve dci de Ve dee ede e de eee e ege e de eee ih c je de ek ele e ede eee Me e e e dee dede e e dre e dee e e de ee ede Ve e e e e e e de e fede de de dede e de ee de ee defe e eee de ede e ITEM NO NI PART NO QTY REQD MFR MFR PART PRODUCT DESCRIPTION R03 711162 01 1 0000 AB RNK7320F RES 732 1 4W 1 48 ROS 711117 01 1 0000 AB 1104472 RESNET 9X4 7K 2 10 SIP 49 ROS 711141 01 1 0000 RCO7GF822J RES B 2K 1 4W 5 CF 50 u01 700107 01 1 0000 NS DS75162AN 1C 75162 GPIB CNTRL BUS XCVR 51 U02 700009 01 1 0000 n SNTALS27N iC LS27 5 1NP NOR 52 UOS 700643 01 1 0000 SIG N74F264N IC F244 0CTAL BUFER LINE DRIVE 53 u04 700562 01 1 0000 TI SN74F245N IC F245 TRANSCEIVER 56 u05 700008 01 1 0000 TI SN74LS20N IC LS20 4 INP WAND 55 U06 700182 01 1 0000 TI SN74LS21N IC LS21 4 INP AND 56 U07 720004 01 1 0000 AMP 2 435668 8 DIPSWITCH 8 POS SPST 57 U08 700740 01 1 0000 Ti SN74F20N IC F20 DUAL 4INPUT NAND 58 voy 700106 01 1 0000 NS DS75160AN 1C 75160 GPIB DATA BUS von 59 up 700013 01
9. Related Document For more information on topics covered in this section consult JEEE Standard Digital Interface for Programmable Instrumentation IEEE 488 Std 488 1978 IEEE 488 1 Std 488 1987 and IEEE 488 2 Std 488 1987 National Instruments Corporation E 7 GPIB 1014P User Manual Appendix F Mnemonics Key This appendix contains a mnemonics key that defines the mnemonics abbreviations used throughout this manual for functions remote messages local messages states bits registers integrated circuits system functions and VMEbus operations and signals The mnemonic types in the key that follows are abbreviated to mean the following Bit Function Integrated Circuit Local Message Local Signal Register Remote Message System Function State VMEbus Operation VMEbus Signal National Instruments Corporation GPIB 1014P User Manual Mnemonics Key Mnemonic Type A ACDS ST ACG RM ACRS ST ACT B AD 5 1 B AD 5 0 1 0 B AD 5 1 1 1 B ADCS B ADCS IE B ADMI 1 0 B ADMR R ADO VBO ADR R ADRO R ADRI R ADSC B ADSR R AH ST AIDS ST AM VBS ANRS ST APRS ST APT B APT IE B ARS B AS VBS ATN ST ATN B AUXMR R AUXRA R AUXRB R AUXRE R AWNS ST B BERR VBS BIN B BLT VBO C C F CACS ST CADS ST GPIB 1014P User Manual Appendix F Definition Acceptor Data State AH function Addressed Command Group Acceptor Ready State Channel Active Bit Talker Listener Controller TLC GPI
10. Several components on the board can be damaged by electrostatic discharge To avoid such damage in handling the board touch the plastic bag to a metal part of your VMEbus computer chassis before removing the board from the bag 2 Remove the board from the bag and inspect the board for loose components or any other sign of damage Notify National Instruments if the board appears damaged in any way DO NOT install a damaged board into your computer National Instruments Corporation 1 3 GPIB 1014P User Manual Section Two General Description This section contains the physical and electrical specifications for the GPIB 1014P and describes the characteristics of key interface board components including a functional block diagram as well as illustrations of applications in test and measurement configurations Physical Characteristics The GPIB 1014P measures 160 by 100 mm and is supplied with a standard 24 pin GPIB connector mounted on the front panel The card is available with both single and double height metal front panels 8 in width A DIN 41612 96 pin connector connects the GPIB 1014P to the VMEbus backplane Electrical Characteristics All integrated circuit drivers and receivers used on the GPIB 1014P meet the requirements of the VMEbus Specification and the IEEE 1014 standard Table 2 1 contains a list of the VMEbus signals used by the GPIB 1014P and the device used to interface to each signal Note The asterisk aft
11. 0000 AMP 2 435668 7 ia 78 uge 720006 01 1 0000 AMP 2 435668 8 DIPSWITCH 8 POS SPST i og u30 700013 01 1 0000 TI SN74LS74AN 1C LS74 FLIP FLOP 80 u31 700013 01 1 0000 TI SN74LS74AN 1C LS74 FLIP FLOP 81 u32 700706 01 1 0000 Hoc SN7 amp F7AN IC F74 FLIP FLOP 82 u33 700905 01 1 0000 DAL SEMI DS1013M 25 IC DS1013M DDL 25NS 3 IN 1 83 U34 700173 01 1 0000 AMD AM25LS2521PC 1C L 2521 8 BIT EQUAL TO CMPTR 84 01 760013 36 0 0833 SAMT TSW 136 07 8 S CONN BRGSTK HOR SGL E 85 wo2 760013 36 0 0833 SAMT TSW 136 07 S S CONN BRGSTK HDR SGL RW 1 36PO 86 NUS 760144 72 0 1944 SAMT TSW 136 07 S D CONN BRGSTK HOR 2X36 STRT 87 National Instruments Corporation B 5 GPIB 1014P User Manual Parts List and Schematic Diagrams Appenc HD DD DD dee e dede ce eee AAA de dee de e dee eje ede ede e e eee D de ee dee dede dede e KA e e KAA dede de dede ede I SEI ICI eee e Y Ye ede de ee e dede deed dede ede ARR ENT END PRODUCT PRODUCT DESCRIPTION 180150 01E CCA GPIB 1014P 1 ITEM NO NI PART NO QTY REOD 06 742410 01 1 0000 08 745047 01 0 0000 10 180188 01 1 0000 13 745108 01 2 0000 14 742613 01 2 0000 15 740705 01 1 0000 16 745176 01 2 0000 47 742412 01 2 0000 18 745096 01 1 0000 19 181059 01 1 0000 20 180154 11 1 0000 ADI 180150 00E 1 0000 GPIB 1014P User Manual REVISION LEVEL MFR SCHR LOCTITE NI SCHR SCHR SCHR SCHR SCHR SCHR NI MFR PART 21100 138 242 180188 01 60807 181 21100 140 21100
12. 010 0793 Netherlands 03480 33466 Norway 32 848400 Singapore 2265886 Spain 91 640 0085 Sweden 08 730 49 70 Switzerland 056 20 51 51 Taiwan 02 377 1200 U K 0635 523545 National Instruments Corporation G 1 Fax Number 03 879 9179 0662 437010 19 02 757 03 11 45 76 71 11 90 502 2930 1 48 14 24 14 089 714 60 35 02 48301915 03 3788 1923 95 800 010 0793 03480 30673 32 848600 2265887 91 640 0533 08 730 43 70 056 20 51 55 02 737 4644 0635 523154 GPIB 1014P User Manual Technical Support Form Photocopy this form and update it each time you make changes to your software or hardware and use the completed copy of this form as a reference for your current configuration Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently If you are using any National Instruments hardware or software products related to this problem include the configuration forms from their user manuals Include additional pages if necessary Name Company Address Fax ___ Phone ___ Computer brand Model Processor Operating system Speed MHz RAM MB Display adapter Mouse yes no Other adapters installed Hard disk capacity MB Brand Instruments used National Instruments hardware product model Revision Configuration National Instruments software product Version Configuration The problem is List any
13. 429 21100 662 21100 379 20809 295 181059 01 BO PRODUCT DESCRIPTION SCREW 2 5 X 10MM FLSTRHD ZPS 1 LOCTITE 2 EMI SHIELD CONN CHAMP i 3 PWB HOLDER DIE CAST 4 SCREW CHEESE HD M2 5x8 ZPS 5 SCREW 2 5 X 8MM RSD CSKHD ZPS 6 SLEEVE 5 9 X 3 3 DIA SS 7 SCREW 2 5 X 11M CAPTIVE NPS 8 HANDLE 4HP GRAY 9 LABEL GPIB 1014P 10 PANEL 3U HEIGHT MODIFIED 1 CCA GPIB 1014P BASELINE 12 National Instruments Corporatio Appendix B Parts List and Schematic Diagrams 3e Ve ede he fe dee deje dele ICI eje e e je ION e ve efe ete je IIC Ar N efe ehe AAA N NA RICE ICI de dee D fe defe ee de ee dee SEDE ede ede IE ICAO ede UH TE IRENE TO DE TOTO dede fee diete SEDE Ae DOD RO IE TE e RESORT IE AAA ETERO E END PRODUCT PRODUCT DESCRIPTION REVISION LEVEL 180150 02E CCA GPIB 1014P 2 E ITEM NO NI PART NO QTY REQD MFR MFR PARTO PRODUCT DESCRIPTION 06 742410 01 1 0000 SCHR 21100 138 SCREM 2 5 X 10MM FLSTRHD ZPS 1 08 745047 01 0 0000 LOCTITE 242 LOCTITE 2 10 180188 01 1 0000 NI 180188 01 EMI SHIELO CONN CHAMP 3 13 745108 01 2 0000 SCHR 60807 181 PWB HOLDER DIE CAST 4 14 742413 01 3 0000 SCHR 21100 140 SCREW CHEESE HD M2 5x8 2PS 5 15 740705 01 2 0000 SCHR 21100 429 SCREW 2 5 X 8MM RSD CSKHD ZPS 6 16 745176 01 2 0000 SCHR 21100 6652 SLEEVE 5 9 X 3 3 DIA SS 7 17 742412 01 2 0000 SCHR 21100 379 o SCREW 2 5 X 11MM CAPTIVE NPS 8 18 745096 01 2 0000 SCHR 20809 295 HANDLE amp HP GRAY 9 19 181059 01
14. 740401 01 WASHER 4 LOCK INT TH 2PS 5 06 742410 01 2 0000 erg 21100 138 d SCREW 2 5 X 10MM FLSTRHD ZPS 6 07 740009 01 2 0000 SCHR 21100 144 LES 3 7 08 745047 01 0 0000 LOCTITE 242 LOCTITE 8 09 180187 01 2 0000 ii 180187 01 JACKSOCKET CHAMP METRIC LONG 9 11 760014 02 8 0000 AMP 531220 3 CONN MINI JUMP 2 POS SHORT 10 12 745100 01 2 0000 ZIER 741 ANGLE BKT 4 40 THD HOLE 20 co 715062 01 1 0000 SPG 1990106X0016CE2 CAP 10UF 16V 20 TANT RDL 12 co4 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 13 cos 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 14 cos 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 15 co7 715079 01 1 0000 AVX SA105E4732AA CAP O47UF 50V 80 20X CER AX 16 cos 715079 01 1 0000 AVX SA105E4732AA m CAP 047UF 50V 80 20 CER AX 17 cos 715079 01 1 0000 AVX SA 105E4732AA CAP 047UF 50V 80 20 CER AX 18 c10 715079 01 1 0000 AVX SA105E4732AA CAP DATUF 50V BO 20X CER AX 19 e 715079 01 1 0000 AVX SA105E4732AA CAP OS7UF SOV 80 20 CER AX 20 c12 715079 01 4 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 21 c13 715079701 1 0000 AVX SA105E4732AA CAP 047UF 50V B0 20X CER AX 22 GPIB 1014P User Manual B 2 National Instruments Corporation Appendix B Parts List and Schematic Diagrams anaa a WE DE B TO EE D OCEANO EIEIO IIE c OE OOO OLO E AE O O ORO ON N NAA NA KNN TA ITEM NO NI PART NO QTY REQD MFR MFR P
15. Bit If DTI is set the mode 2 secondary or mode 1 and 3 minor Talker is not enabled that is the TLC does not respond to a secondary address or minor primary talk address formed from bits AD5 1 to ADI 1 If DTI is cleared DT1 0 and the TLC received its primary talk address that is is in TPAS the secondary address is checked 5r DLI Disable Listener 1 Bit If DL1 1 the mode 2 secondary or mode 1 and 3 minor listen function is not enabled that is the TLC cannot be addressed to listen at the address specified by AD5 1 through AD1 1 If DLI is cleared DL1 0 and the TLC received its primary listen address that is is in LPAS the secondary address is checked 4 Or AD 5 1 1 1 Mode 2 Secondary TLC GPIB Address Bits 5 1 through 1 1 These are the lower five bits of the TLC secondary or minor address The secondary address is formed by adding hex AO to bits AD 5 1 1 1 The minor talk address is formed by adding hex 40 to AD 5 1 1 1 while the listen address is formed by adding a hex 20 GPIB 1014P User Manual 4 46 National Instruments Corporation Section Four Register Descriptions End Of String Register EOSR VMEbus Address Base Address F hex Attributes Write Only 7 6 5 4 3 2 1 0 EOS7 EOS6 EOS5 EOS4 EOS3 EOS2 EOS1 EOSO W The End of String Register EOSR holds the byte used by the TLC to detect the end of a GPIB data block transfer A 7 or 8 bit byte ASCII or binary can be placed in
16. F features of GPIB 1014P 1 1 Finish Handshake FH command codes for 4 28 description 4 31 G GET Group Execute Trigger command 4 25 Go To Standby command codes for 4 29 description 4 32 GPIB cable shield grounding 3 8 GPIB Controller See Controller function GPIB 1014P block diagram 2 8 capabilities 2 10 to 2 12 contents of kit 1 3 definition v 1 1 features of 1 1 functional description 2 5 to 2 12 IEEE 1014 compliance levels 2 12 illustration 1 2 major components of 2 9 optional equipment 1 3 parts list and schematic diagrams B 1 to B 8 theory of operation 6 1 to 6 5 versions of 1 2 GPIB TLC See Talker Listener Controller TLC GTL Go To Local command 4 25 GPIB 1014P User Manual Index 4 National Instruments Corporation Index H handshake lines E 2 hidden registers Address Register 0 ADR 4 44 Address Register 1 ADR1 4 45 Auxiliary Register 0 ADRO 4 43 Auxiliary Register A AUXRA 4 38 to 4 39 Auxiliary Register B AUXRB 4 40 to 4 41 Auxiliary Register E AUXRE 4 42 End of String Register EOSR 4 46 Internal Counter Register ICR 4 35 Parallel Poll Register PPR 4 36 to 4 37 HLDA Holdoff on All Bit 4 39 HLDE Holdoff on END Bit 4 39 I ICR See Internal Counter Register ICR IEEE 488 standard 1 1 GPIB 1014P capabilities 2 10 to 2 12 IEEE 1014 standard 1 1 GPIB 1014P compliance levels 2 12 IFC interface clear line E 3 Immediate Execute Pon comma
17. Receive control Pass control Pass Control to Self Parallel Poll Take control synchronously Tri state bus drivers with automatic switch to open Collector drivers during Parallel Poll The GPIB 1014P has complete Source and Acceptor Handshake capability The GPIB 1014P can operate as a basic Talker or Extended Talker and can respond to a Serial Poll It can be placed in a Talk Only mode and it is unaddressed to talk when it receives its listen address The interface can operate as a basic Listener or Extended Listener It can be placed in a Listen Only mode and it is unaddressed to listen when it receives its talk address The GPIB 1014P has full capabilities for requesting service from another Controller It can be placed in local mode but the interpretation of remote versus local mode is software dependent The interface has full Parallel Poll capability although local configuration requires software assistance It also has Device Clear and Trigger National Instruments Corporation 2 11 GPIB 1014P User Manual General Description Section Two capability but the interpretation is software dependent All Controller functions as specified by the IEEE 488 standard are included in the GPIB 1014P These include the capability to e Be System Controller e Initialize the interface s Send Remote Enable e Respond to Service Request e Send multiline command messages e Receive control e Pass control e Conduct a Parallel Poll e Take c
18. Set IFC command codes for 4 29 description 4 34 Set Parallel Poll Flag command codes for 4 28 description 4 32 Set REN command codes for 4 29 description 4 34 SH Source Handshake 4 7 signals and lines data lines E 2 GPIB connector and signal assignment illustration E 4 GPIB 1014P pin assignment on VMEbus connector P1 3 9 to 3 10 handshake lines E 2 DAV data valid E 3 NDAC not data accepted E 2 NRED not ready for data E 2 interface management lines E 3 ATN attention E 3 EOI end or identify E 3 IFC interface clear E 3 REN remote enable E 3 SRQ service request E 3 VMEbus signals chart of 2 1 to 2 2 operation 6 1 to 6 2 slave addressing VMEbus 2 2 to 2 3 slave data VMEbus 2 3 SPD Serial Poll Disable command 4 26 SPE Serial Poll Enable command 4 26 GPIB 1014P User Manual Index 10 National Instruments Corporation Index specifications electrical characteristics 2 1 to 2 2 IEEE 488 bus transfer rate A 1 operating environment A 1 physical characteristics A 1 2 1 power requirement A 1 storage environment A 1 SPEOI Send Serial Poll EOI Bit 4 41 SPMR See Serial Poll Mode Register SPMR SPMS Serial Poll Mode State Bit 4 20 SPSR See Serial Poll Status Register SPSR SRQ service request line E 3 SRQI Service Request Input Bit 4 15 to 4 16 SRQI IE Service Request Input Interrupt Enable Bit 4 15 to 4 16 storage environment A 1 Supervisor or Non privileged
19. These bits specify the five low order bits of the GPIB address that is to be recognized by the TLC The corresponding GPIB Talk address is formed by adding octal 100 to AD 5 1 while the corresponding GPIB listen address is formed by adding octal 40 The value written to AD 5 1 must not be all ones otherwise the corresponding talk and listen addresses would conflict with the GPIB Untalk UNT and Unlisten UNL commands National Instruments Corporation 4 45 GPIB 1014P User Manual Register Descriptions Section Four Address Register 1 ADR1 VMEbus Address Base Address F hex Attributes Read Only 7 6 5 4 3 2 1 0 R Address Register 1 ADR1 indicates the status of the GPIB address and enable bits for the secondary address of the TLC if mode 2 addressing is used or the minor primary address of the TLC if dual primary addressing is used modes 1 and 3 If mode 1 addressing is used and only a single primary address is needed both the talk and listen addresses disable in this register If mode 2 addressing is used the talk and listen disable bits in this register must match those in ADRO Bit Mnemonic Description Tr EOI End or Identify Bit EOI indicates the value of the GPIB EOI line latched when a data byte is received by the TLC GPIB Acceptor Handshake AH function If EOI 1 the EOI line was asserted with the received byte EOI is cleared by pon or by using the Chip Reset auxiliary command 6r DTI Disable Talker 1
20. Trigger command Return to Local rtl Return to Local rtl The two Return to Local commands implement the rtl message as defined by IEEE 488 When CONG is zero the message is generated in the form of a pulse When COMG is one the rtl command is set in the standard manner Send EOI SEOD The Send EOI command causes the GPIB End Or Identify EOD line to go true with the next byte transmitted The EOI line is then cleared upon completion of the Handshake for that byte The TLC recognizes the Send EOI command only if TA 1 that is the TLC is addressed as the GPIB Talker continues GPIB 1014P User Manual 4 32 National Instruments Corporation Section Four Register Descriptions Table 4 5 Auxiliary Commands Detailed Description continues Command Code COM4 COM0 43210 Description Non Valid Secondary Command or Address The Non Valid command releases the GPIB DAC message held off by the Address Pass Through APT The TLC is permitted to operate as if an Other Secondary Address OSA message has been received Valid Secondary Command or Address The Valid command releases the GPIB DAC message held off by APT and allows the TLC to function as if a My Secondary Address MSA message had been received The DAC message is released at the time of Command Pass Through CPT DAC is also released if DCAS or DTAS is in Holdoff state Clear Parallel Poll Flag Set Parallel Poll Flag These commands set the Parallel
21. address recognition However unlike Address Mode 2 Address Mode 3 provides for both major and minor primary addresses and your program must identify the secondary address by reading the CPTR Proper operation using Address Mode 3 is listed as follows 1 During initialization of the TLC enable Address Mode 3 and optionally set the APT IE bit in IMRI to enable an interrupt request on receipt of a secondary GPIB address Write the TLC major GPIB primary address to ADRO and the TLC minor GPIB primary address to ADRI 2 Receipt of the TLC major or minor primary GPIB Talk Address MTA or major or minor primary GPIB Listen Address MLA sets TPAS or LPAS indicating that the primary address has been received 3 If the next GPIB command following the primary address is a secondary address the APT bit is set and a DAC handshake holdoff is activated the GPIB DAC message is held false 4 Inresponse to APT the program must e Determine whether the command just received is a listen talk major or minor address by reading the LPAS TPAS and MJMN bits of the ADSR e Read the secondary address in the CPTR and determine whether or not it is the address of the TLC GPIB 1014P User Manual 5 6 National Instruments Corporation Section Five Programming Considerations 5 Ifit is not the TLC address issue the Non Valid auxiliary command If it is the TLC address issue the Valid auxiliary command 6 When the Valid auxiliary command is i
22. auxiliary command until there are no more bytes to send and the DO bit is set Case 2 The TLC as a Listener takes control upon receipt of the Take Control Synchronously auxiliary command If programmed I O is used the Take Control Synchronously auxiliary command should be issued between seeing a DI status bit and reading the last byte from the DIR Case 3 The TLC as neither Talker nor Listener takes control synchronously with the Take Control Synchronously auxiliary command after detecting the END RX bit set in ISR1 This indicates that a holdoff is in progress When the Take Control Synchronously auxiliary command is used the TLC takes control of the GPIB only at the end of a data transfer This implies that one transfer must follow or be in progress when the Take Control Synchronously auxiliary command is issued If this is not the case the Take Control Asynchronously auxiliary command must be used Of course the Take Control Asynchronously auxiliary command may be used in place of the Take Control Synchronously auxiliary command when the possibility of disrupting an in progress GPIB handshake before all GPIB Listeners have accepted the data byte is acceptable In Cases 2 and 3 the END IE bit in IMRI can also be set to indicate to the program that the TLC functioning as a GPIB Listener has received its last byte In all cases a CO status indicates that the GPIB 1014P is now Active Controller GPIB 1014P User Manual 5 4 Nati
23. be set again and then issue the Go To Standby auxiliary command National Instruments Corporation 5 3 GPIB 1014P User Manual Programming Considerations Section Five Case 2 The TLC becomes a GPIB Listener when ATN is unasserted To do this wait for CO to be set issue the TLC GPIB Listen Address MLA wait for CO to be set again and then issue the Go To Standby auxiliary command Case 3 The TLC is neither GPIB Talker nor Listener In this case issue the listen in continuous mode auxiliary command or set the Holdoff on End HLDE and Holdoff on All HLDA bits in AUXRA before going to standby This puts the TLC in the continuous mode Once this mode is enabled the TLC participates in the GPIB handshake without setting the Data In DI bit Then issue gts When Holdoff occurs the TLC can take control synchronously This means that the Talker must finish its transmission with the END or EOS message It can then take control synchronously when necessary Note The Take Control Synchronously on End tese auxiliary command can be issued after gts thereby causing the TLC to automatically take control synchronously on holdoff Going from Standby to Active Controller The manner in which the TLC resumes GPIB Active Control depends on how it went to standby Consider the three cases Case 1 The TLC as a Talker takes control upon receipt of the Take Control Asynchronously auxiliary command Do not issue the Take Control Asynchronously
24. board is designated as A16 D08 0 The board does not implement Unaligned Transfer UAT Block Transfer BLT and Read Modify Write RMW cycles National Instruments Corporation 2 3 GPIB 1014P User Manual General Description Section Two Interrupter Interrupt events that originate from the TLC are as follows e GPIB Data In DI e GPIB Data Out DO END message received END RX e GPIB Command Out CO Remote mode change REMC e GPIB handshake error ERR e Lockout change LOKC e Address Status Change ADSC e Secondary Address received APT Service Request received SRQI Trigger command received DET e Device Clear received DEC RX e Unrecognized Command received CPT All 13 interrupt events are wire ORed in the TLC to a single signal designated INT on the interface board When one of these events occurs INT goes high and one of the interrupt request lines IRQ1 through IRQ7 is driven low You select the interrupt request line by means of an onboard jumper You set the interrupt priority via three hardware switches U28 The encoded value of the priority must match the level of the interrupt request line See Interrupt Request Line Selection in Section Three for more information on setting the interrupt level The onboard hardware implements the VMEbus interrupt acknowledge protocol The interrupter drives the VMEbus with an 8 bit Status ID byte vector during an interrupt acknowledge cycle
25. communication functions Device A VMEbus Computer with GPIB 1014P Able to Talk Listen and Control Frequency Counter Able to Talk Device B Printer Able to Listen Device C Digital Voltmeter Able to Talk Data Lines and Listen DIO1 DIO8 Handshake Lines DAV Data Valid NRED Not Ready for Data NDAC Not Data Accepted Management Lines IFC Interface Clear ATN Attention SRQ Service Request REN Remote Enable EOI End or Identify Figure 2 1 GPIB 1014P with a VMEbus Computer GPIB 1014P User Manual 2 6 National Instruments Corporation Section Two General Description R amp D Lab Microprocessor Work Station VMEbus Computer with GPIB 1014P IEEE 488 Interface IEEE 488 Interface Up to 300 Meters RS 422 Computer Center ZY GPIB 100 Bus Extender Production amp Testing PDP 11 44 with GPIB11 2 S 100 Computer IEEE 488 Interface GPIB 696P IEEE 488 Interface Figure 2 2 GPIB 1014P in a Multiprocessor Application National Instruments Corporation 2 7 GPIB 1014P User Manual Section Two General Description Figure 2 3 is a block diagram of the GPIB 1014P 199198 Jonu UI9ISAS Naa x41 OWN 5CH9N xAVG IOH xNLLV OS JoAIOOSUPI VCOISL OrcLadr IOAIOOSUPEI VO9ISL LOCAL BUS SIOATDOSULI sng eq 3dnuroju UOTJ99II eq pue JUW L Surpoooq ssoippy sng I0V 0V 1014P Block Diagram Figure 2 3 GPIB N
26. functions as described in the following paragraphs Bit Mnemonic Description 4w ISS Individual Status Select Bit The ISS bit determines the value of the TLC ist message When ISS 1 ist becomes the same value as the TLC Service Request State SRQS The TLC is asserting the GPIB SRQ message when it is in SRQS When ISS 0 ist takes on the value of the TLC Parallel Poll Flag The Parallel Poll Flag is set and cleared using the Set Parallel Poll Flag and Clear Parallel Poll Flag auxiliary commands 3w INV Invert Bit The INV bit affects the polarity of the TLC INT pin Setting INV causes the polarity of the Interrupt INT pin on the TLC to be active low As implemented on the GPIB 1014P configuring the INT pin to active low results in interrupt request errors Consequently INV should always be clear and should never be set INV 0 INT pin is active high INV 1 INT pin is active low 2w TRI Three State Timing Bit The TRI bit determines the TLC GPIB Source Handshake Timing T1 as defined in the IEEE 488 specifications TRI can be set to enable high speed data transfers when three state GPIB drivers are used The GPIB 1014P uses three state GPIB drivers except during Parallel Poll responses in which case the GPIB drivers automatically switch to Open National Instruments Corporation 4 41 GPIB 1014P User Manual Register Descriptions Bit Mnemonic lw SPEOI Section Four Description Collector Setting TRI enables
27. if the received data is read through the DIR that is the GPIB RFD message is not generated In RFD Holdoff on End mode operation is the same as the RFD HLDA but only when the end of the data block EOS or END message is detected that is the END message is received or if REOS is set the EOS character received Handshake holdoff is released by the FH auxiliary command In continuous mode the rdy message is generated when in ANRS until the end of the data block is detected A Holdoff is generated at the end of a data block The FH auxiliary command must be issued to release the Holdoff The continuous mode is useful for monitoring the data block transfer without actually participating in the transfer no data reception In continuous mode the DI bit ISR1 0 r is not set by the reception of a data byte 4 40 National Instruments Corporation Section Four Register Descriptions Auxiliary Register B AUXRB VMEbus Address Base Address B hex AUXMR Control Code 101 Binary Bits 7 5 Attributes Write Only Accessed through AUXMR 4 3 2 1 0 CPT INV W Writing to Auxiliary Register B AUXRB is done via the AUXMR Writing the value 101 into the Control Code CNT 2 0 and a bit pattern into the Command Code portion COM 4 0 of the AUXMR causes the Command Code to be written to AUXRB When the data is written to AUXRB the bits are denoted as shown in the register bit map above This 5 bit code affects several interface
28. organization of the manual If you find errors in the manual please record the page numbers and describe the errors Thank you for your help Name Title Company Address Phone Mail to Technical Publications Fax to Technical Publications National Instruments Corporation National Instruments Corporation 6504 Bridge Point Parkway MS 53 02 MS 53 02 Austin TX 78730 5039 512 794 5678 Index Index A abbreviations used in the manual vi access mode configuration 3 3 AD5 0 through AD1 0 Mode 2 Primary GPIB Address Bits 5 0 through 1 0 4 43 AD5 1 Address Bit 4 44 AD 5 1 1 1 Mode 2 Secondary TLC GPIB Address Bits 5 1 through 1 1 4 45 address decoding 6 2 definition 2 9 VMEbus address lines 6 2 VMEbus base address configuration 3 3 to 3 4 VMEbus slave addressing 2 2 to 2 3 Address Mode Register ADMR 4 22 to 4 24 Address Register 0 ADR 4 44 Address Register 1 ADR1 4 45 Address Status Register ADSR 4 20 to 4 21 addressed implementation of Talker and Listener 5 5 to 5 7 ADMI 1 0 Address Mode Bits 1 through 0 4 23 to 4 24 ADMR See Address Mode Register ADMR ADR See Address Register 0 ADR ADRO See Auxiliary Register 0 ADRO ADRI See Address Register 1 ADR1 ADSC Addressed Status Change Bit 4 17 to 4 18 ADSC IE Addressed Status Change Interrupt Enable Bit 4 17 to 4 18 ADSR See Address Status Register ADSR AH Acceptor
29. the EOSR to be used in detecting the end of a block of data The length of the EOS byte to be used in the comparison is selected by the BIN bit in AUXRA AUXRA 4 w If the TLC is a Listener and bit REOS of AUXRA is set the END bit is set in ISR1 whenever the byte in the DIR matches the EOSR If the TLC is a Talker and the data is being transmitted and XEOS bit of AUXRA is set the END message GPIB EOI line asserted low is sent along with the data byte whenever the contents of the CDOR matches the EOSR Bit Mnemonic Description 7 0w EOS7 End of String Bits 7 through 0 EOSO National Instruments Corporation 4 47 GPIB 1014P User Manual Section Five Programming Considerations This section explains important considerations for programming the GPIB 1014P Initialization On power up pon the VMEbus system typically issues a system reset SYSRESET that drives the GPIB 1014P RESET signal active and initializes the following circuitry e Timing State Machine e Interrupter e uPD7210 TLC The NEC uPD7210 Talker Listener Controller TLC integrated circuit is initialized as follows e The local message pon is set and the interface functions are placed in their idle states SIDS AIDS TIDS SPIS TPIS LIDS LPIS NPRS LOCS PPIS PUCS CIDS SRIS SIIS e All bits of the Serial Poll Mode Register SPMR are cleared s End Or Identify EOD bit is cleared e All bits of the Auxiliary Registers A B and E AUXRA AUXRB an
30. when the first GPIB data byte is received Address Mode 2 Address Mode 2 is used when Talker Extended TE or Listener Extended LE functions are to be used TE and LE functions require receipt of two addresses primary and secondary before setting TA or LA The TLC GPIB primary address is specified by the byte written to ADRO The secondary address is specified by the byte written to ADR1 Upon receipt of both the primary and secondary GPIB addresses the TLC becomes an addressed Talker or Listener If the TLC has received its primary GPIB talk address the Talker Primary Addressed State TPAS bit in the ADSR is set If the TLC receives its secondary GPIB talk address before receiving another GPIB Primary Command Group PCG message that is not its MTA the TA bit in the ADSR the ADSC bit in the ISR2 and the DO bit in the ISRI are set If the MC GPIB has received its primary GPIB listen address the Listener Primary Addressed State LPAS bit in the ADSR is set If the TLC receives its secondary GPIB listen address before receiving another GPIB Primary Command Group PCG message that is not its MLA the LA bit in the ADSR is set the ADSC bit in ISR2 is set and the DI bit in ISRI is set when the first GPIB data byte is received The Major Minor MJMN bit in the ADSR indicates whether the address status refers to the major or minor address Address Mode 3 Address Mode 3 like Address Mode 2 is used to implement Extended GPIB Talk and Listen
31. you select must match the interrupt request line see Interrupt Request Priority in Section Three The VME signal AS is delayed 25 nsec to allow the comparator output to stabilize This delayed signal then clocks the result of the comparison AS is delayed an additional 25 nsec before asserting IACKOUT or responding with a STATUS ID byte This additional delay assures that the output of the flip flop will be stable before the logic selects to either pass the interrupt of the comparison or respond with a status byte If the output of the flip flop is latched true the interrupter is set to respond with a STATUS ID byte The interrupter waits for IACKIN and DSO to become true as well as for the signal AS that has been delayed 50 nsec and makes certain that the VME signal DTACK has been released At this time an enable vector signal EV is latched in order to enable the data bus transceiver for the entire transfer cycle The complement EV enables an F244 to drive the VME data bus with a STATUS ID byte which you determine by setting onboard switches as described in Interrupt Status ID Byte in Section Three Two inverters delay EV to allow for data set up on the VMEbus EV then signals the DTACK Asset Release circuitry via IDTACK to drive DTACK true EV and EV are held true until the interrupt handler releases DSO The rise of EV releases the IRQ line Therefore the GPIB 1014P is a Release On AcKnowledge ROAK interrupter Note
32. 1 4 8 to 4 13 Interrupt Status Register 2 ISR2 4 14 uPD7210 interface registers chart 4 4 overview 4 3 to 4 4 Serial Poll Mode Register SPMR 4 19 Serial Poll Status Register SPSR 4 19 writing to hidden registers 4 5 mnemonics for 4 3 register map 4 1 to 4 2 size of 4 2 terminology related to 4 2 to 4 3 REM Remote Bit 4 16 REMC Remote Change Bit 4 17 REMC IE Remote Change Interrupt Enable Bit 4 17 REMOTE ENABLE REN sample program C 8 REN remote enable line E 3 REOS END on EOS Received Bit 4 38 reset See system reset Return to Local rtl command codes for 4 28 description 4 31 RFD Holdoff mode 4 6 4 39 RFD Ready for Data message 4 6 rsv Request Service Bit 4 19 S S8 Serial Poll Status Byte 4 19 S Status Bit Polarity Bit 4 37 sample programs 68000 code C 2 to C 4 COMMAND SEND CSEND C 17 DATA SEND DSEND C 13 to C 14 INITIALIZE INIT C 5 to C 6 National Instruments Corporation Index 9 Index GPIB 1014P User Manual Index INTERFACE CLEAR IFC C 7 overview C 1 PASS CONTROL PASSC C 19 READ C 11 to C 12 RECEIVE RCV C 9 to C 10 REMOTE ENABLE REN C 8 WRITE C 15 to C 16 schematic diagrams B 1 to B 8 SDC Selected Device Clear command 4 25 Send EOI SEOI command codes for 4 28 description 4 31 sending receiving messages 5 7 Serial Poll Mode Register SPMR 4 19 Serial Poll Status Register SPSR 4 19 serial polls conducting 5 8 responding to 5 8
33. 1 Trigger command codes for 4 28 description 4 31 TRM 1 0 Transmit Receive Mode Bits 1 through 0 4 22 to 4 23 troubleshooting test procedures hardware installation tests 7 2 to 7 3 interpreting test procedures 7 1 overview 6 5 7 1 verification of GPIB 1014P before installation 3 10 U U Parallel Poll Unconfigure Bit 4 36 UNL Unlisten command 4 26 unpacking the GPIB 1014P 1 3 to 1 4 UNT Untalk command 4 26 V Valid Secondary Command or Address command codes for 4 28 description 4 32 verification of system compatibility 3 9 testing 3 10 VMEbus base address configuration 3 3 to 3 4 control signals 6 1 to 6 2 data lines 6 1 definition 2 9 interrupt configuration 3 5 to 3 6 modules not provided 2 5 GPIB 1014P User Manual Index 12 National Instruments Corporation signals chart 2 1 to 2 2 slave addressing 2 2 to 2 3 slave data 2 3 W WRITE sample program C 15 to C 16 X X Don t Care Bit 4 43 XEOS Transmit END with EOS Bit 4 38 National Instruments Corporation Index 13 Index GPIB 1014P User Manual
34. 1 0000 NI 181059 01 LABEL GPIB 1014P 10 20 480153 1 1 0000 l E PANEL 6U HEIGHT MODIFIED 11 21 180799 01 1 0000 NI 180799 01 LABEL LOGO NI 12 22 740009 01 2 0000 SCHR 21100 144 NUT 2 5MM HEX ZPS 13 A01 180150 00 1 0000 CCA GPIB 1014P BASELINE 14 National Instruments Corporation B 7 GPIB 1014P User Manual Parts List and Schematic Diagrams Appendix B DE WE E AE BE E EE VE EE EE EE EE ERR OP DOMO ee EEUU END PRODUCT PRODUCT DESCRIPTION REVISION LEVEL 180150 52E CCA GPIB 1014P 2 CC3 E ITEM NO NI PART NO QTY REQD MFR _ MER PART PRODUCT DESCRIPTION 25 180144 01 1 0000 c3 MP3100 51 LABEL GPIB 1014P C3 BAR CODE 1 A01 180150 02E 1 0000 3 CCA GPIB 1014P 2 2 GPIB 1014P User Manual B 8 National Instruments Corporation Appendix B Parts List and Schematic Diagrams SE DE DERE SACE DE e RE DERE AA e he He Ae Se Fe NAR dede fe desde Ae De NA de Fe de e KANA N A e de de je dede dede de e Ve de de deinde Re e e de e de Se NAA Se e de e dle te e e e e AE ACE ISEE SEDE DONE HE ED DION IEEE e e ACI IEEE E fede END PRODUCT PRODUCT DESCRIPTION 180150 55E CCA GPIB 1014P 1S ITEM NO NI PART NO QTY REQD 08 745047 01 0 0000 10 180188 01 1 0000 A01 180150 00E 1 0000 National Instruments Corporation REVISION LEVEL E MER MFR PART LOCTITE 242 NI 180188 01 PRODUCT DESCRIPTION EMI SHIELD CONN CHAMP 2 CCA GPIBy 1014P BASEL INE 3 GPIB 1014P User Manual Ka D e Ka di us I e Ka Ire de TO
35. 14P to be driven to the GPIB The transceivers remain configured as drivers until a system reset is received or the Disable System control auxiliary command is issued which causes the transceivers to be reconfigured as receivers If the GPIB 1014P is not the System Controller the initialization sequence should include issuing the Disable System Control auxiliary command to ensure that the transceivers are configured as receivers GPIB 1014P User Manual 5 2 National Instruments Corporation Section Five Programming Considerations Another Active Controller passes control to the GPIB 1014P by sending the TLC GPIB talk address MTA followed by the GPIB Take Control TCT message The TLC upon receiving these two messages MTA and TCT automatically becomes CIC when ATN is dropped The exact sequence of events is as follows 1 The TLC receives the My Talk Address MTA The TLC then enters into Talker Addressed State TADS This operation can be transparent to a program The Talker Active TA bit in the Address Status Register ADSR is set when the TLC receives its GPIB talk address 2 The TLC receives the GPIB TCT message Note Normally a program does not have to read or respond to the TCT command message but it can read the TCT message in the Command Pass Through Register CPTR in response to the assertion of the CPT status bit in Interrupt Status Register 1 ISR1 assuming that the CPT ENABLE bit of AUXRB has been previously set
36. 25 26 21 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3 ER 3E 3F S Or O O OOO ib ib bo _ ib ib _ bo VE VS SQ UU amp D KA CH OO C O OO O1 O1 O1 O1 WNro O1 01 O1 O1 Nada 60 61 62 63 64 65 66 67 O UO C 0 EH 70 74 72 73 74 75 76 77 OOO W T e LL E PPU SDC SPD SPE TCT UNL Dec LO LO CO CO CO LO CO CO LO JO Ln amp C0 I2 5 b vs GA AHH A YA OBWNEF CH D CO O1 O1 O1 O1 O1 Ln s O1 amp LO ND P5 O LO 56 57 58 59 60 61 62 63 ASCII SP I n dp i CO I On EE NH CH x Lo amp VO e WM A oe se Appendix D Msg MLAO MLAI MLA2 MLA3 MLA4 MLAS MLA6 MLA 7 MLA8 MLA9 MLAI MLAI MLAI MLAI MLAI MLAI Ln SWNro MLAI MLAI MLAI MLA19 MLA20 MLA21 MLA22 MLA23 DO IA MLA24 MLA25 MLA26 MLA27 MLA28 MLA29 MLA30 UNL Parallel Poll Unconfigure Selected Device Clear Serial Poll Disable Serial Poll Enable Take Control Unlisten National Instruments Corporation Appendix D Multiline Interface Messages Multiline Interface Messages Hex Oct Dec ASCII Msg Hex Oct DecASCII Msg 40 100 64 MTAO 60 140 96 E MSAO PPE 4 LOT 65 A MTAI 61 141 97 a MSA1 PPE 42 102 66 B MTA2 62 142 98 b MSA2 PPE 43 103 67 C MTA3 6
37. 3 143 99 e MSA3 PPE 44 104 68 D MTA4 64 144 100 d MSA4 PPE 45 LOS 69 E MTA5 65 145 01 e MSAS PPE 46 L06 70 F MTA6 66 146 02 f MSA6 PPE 47 107 71 G MTA7 67 147 03 g MSA7 PPE 48 110 72 H MTA8 68 150 04 h MSA8 PPE 49 11 13 I MTA9 69 151 05 i MSA9 PPE 4A 12 74 J MTA10 6A 152 06 j MSA10 PPE 4B 13 75 K MTA11 6B 153 07 k MSA11 PPE 4C 14 76 L MTA12 6C 154 08 1 MSA12 PPE 4D 15 77 M MTA13 6D 155 09 m MSA13 PPE 4E 16 78 N MTA14 6E 156 10 n MSA14 PPE AF d 79 O MTA15 6F 157 11 O MSA15 PPE 50 120 80 P MTA16 70 160 112 p MSA16 PPD 5d 121 81 Q MTA17 71 161 tIS q MSA17 PPD 52 122 82 R MTA18 72 162 114 r MSA18 PPD 53 123 83 S MTA19 73 163 115 S MSA19 PPD 54 124 84 T MTA20 74 164 116 MSA20 PPD 55 125 85 U MTA21 T5 165 117 u MSA21 PPD 56 126 86 V MTA22 76 166 118 V MSA22 PPD 57 127 87 W MTA23 77 167 19 Ww MSA23 PPD 58 130 88 X MTA24 78 170 120 x MSA24 PPD 59 131 89 Y MTA25 79 171 121 y MSA25 PPD 5A 132 90 Z MTA26 TA 172 122 Z MSA26 PPD 5B 133 91 MTA27 7B 173 123 MSA27 PPD 5C 134 92 MTA28 TC 174 124 MSA28 PPD 5D 135 93 MTA29 7D 175 125 MSA29 PPD 5E 136 94 S MTA30 7E 176 126 a MSA30 PPD 5E 137 95 UNT TE 177 127 DEL Message Definitions PPD Parallel Poll Disable MTA My Talk Address PPE Parllel Poll Enable SPE Serial Poll Enable MSA My Secondary Address UNT Untalk National Instruments Corporation D 3 GPIB 1014P User Manual Appendix E Operation of the GPIB Communication among interconnected GPIB devices is ac
38. ART PRODUCT DESCRIPTION ci 715079 01 1 0000 AVX SA105E4732AA CAP O47UF 50V 80 20 CER AX 23 c15 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX c16 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 25 c17 715079 01 1 0000 AVR SA105E4732AA CAP 047UF 50V 80 20 CER AX 26 CO 715079 01 1 0000 AVX SA10SE473ZAA CAP O47UF 50V 80 20 CER AX 27 c19 715079 01 1 0000 AVX SATOSE473ZAA CAP 047UF 50V 80 20 CER AX 28 C20 715079 01 1 0000 AVX SA105E4732AA CAP 047UF SOV 80 20 CER AX 29 c21 715079 01 1 0000 AVX SA10SE473ZAA CAP O47UF 50V 80 20 CER AX 30 c22 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 31 c23 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 32 C24 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 33 C25 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20 CER AX 34 C26 715079 01 1 0000 AVX SA105E4732AA CAP 047UF 50V 80 20X CER AX 35 c27 715079 01 1 0000 i AVX SA10SE473ZAA CAP 047UF 50V 80 20 CER AX 28 c28 715079 01 1 0000 AVX SA10SE473ZAA CAP O47UF 50V 80 20 CER AX 37 c29 715079 01 1 0000 AVX SA105E4732AA CAP 047UF S0V 80 20X CER AX 38 c30 715079 01 1 0000 AVX STA CAP 047UF SOV 80 20 CER AX 39 c31 715079 01 1 0000 AVX SA105E4732AA CAP 047UF SOV 80 20 CER AX 40 c32 715062 01 1 0000 SPG 1990106X0016CE2 CAP 10UF 16V 20 TANT RD 41 c33 715034 01 1 0000 CMO4FD121J03 CAP 120PF 100V 5
39. B ERR RM ERR IE B EV LS G GET RM GND VBS GTL RM gts LM H HLDA B HLDE B I IACK VBS IACKIN VBS IACKOUT VBS IDTACK LS GPIB 1014P User Manual Appendix F Definition Disable Listener Bit Disable Listener 0 Bit Disable Listener 1 Bit Direct Memory Access Data Out Bit Data Strobe Zero Device Trigger Disable Talker Bit Disable Talker 0 Bit Disable Talker 1 Bit Data Transfer Acknowledge Device Trigger Active State Device Trigger Idle State End Enable Interrupt on End Received Bit End Received Bit End or Identify Bit End or Identify End of String End of String Bits 7 through 0 End of String Register Error Bit Error Enable Interrupt on Error Bit Enable Vector Group Execute Trigger Ground Go To Local Go to Standby Holdoff on All Bit Holdoff on End Bit Interrupt Acknowledge Signal Interrupt Acknowledge In Interrupt Acknowledge Out Interrupt DTACK F 4 National Instruments Corporation Appendix F Mnemonic Type IDY RM IFC RM IMRI R IMR2 R INT B INV B IRQ VBS ISRI R ISR2 R ISS B ist LM L L F LA B LACS ST LADS ST LAG RM LDTACK LS LE F LIDS ST LLO RM LMR B LOCS ST LOK B LOKC B LOKC IE B lon B lon LM LPAS B LPAS ST Ipe LM LPIS ST Itn LM lun LM LWLS ST LWORD VBS M MCYC LS MDTACK LS MJMN B MLA RM MSA RM MTA RM National Instruments Corporation Mnemonics Key Definition Identify Interface Clear Interrupt Mask Register 1 Interrup
40. B Address Bits 5 through 1 Mode 2 Primary TLC GPIB Address Bits 5 through 1 Mode 2 Secondary TLC GPIB Address Bits 5 through 1 Addressed Status Change Bit Enable Interrupt on Addressed Status Change Bit Address Mode Bits 1 through 0 Address Mode Register Address Only Cycle Address Register Address Register 0 Address Register 1 Address Status Change Address Status Register Acceptor Handshake Acceptor Idle State Address Modifier Acceptor Not Ready State Affirmative Poll Response State Address Pass Through Bit Enable Interrupt on Address Pass Through Bit Address Register Select Bit Address Strobe Attention Attention Bit Auxiliary Mode Register Auxiliary Register A Auxiliary Register B Auxiliary Register E Acceptor Wait for New Cycle State Bus Error Binary Bit Block Transfer Controller Controller Active State C function Controller Addressed State F 2 National Instruments Corporation Appendix F Mnemonic Type CAWS ST CDOR R CDO 7 0 B CIC B CIDS ST CLK 3 0 B CNT B CNT 2 0 B CO B CO IE B COM 4 0 B CPPS ST CPT B CPT ENAB B CPT IE B CPTR R CPT 7 0 B CPWS ST CSBS ST CSHS ST CSNS ST CSRS ST CSWS ST CTRS ST D DAB RM DAC RM dacr DAV RM DC F DCAS ST DCIS ST DCL RM DEC B DEC IE B DEC RX B DEN LS DET B DET IE B DHDC B DHDT B DI B DI 7 0 B DI IE B DIR R DIR 7 0 B National Instruments Corporation Mnemonics Key Definition Controller Active Wait Sta
41. D7210 4 25 Table 4 4 Auxiliary Command Summary ss 4 28 Table 4 5 Auxiliary Commands Detail Description eene 4 30 GPIB 1014P User Manual xiv National Instruments Corporation Section One General Information The GPIB 1014P is an IEEE 488 interface for the VMEbus This interface permits IEEE 488 compatible engineering scientific or medical instruments to be controlled from a VMEbus based computer The GPIB 1014P has the following features e Complete IEEE 488 Talker Listener Controller TLC capability using the NEC uPD7210 GPIB TLC chip e Polled or interrupt driven transfers e Transfer rates up to 80 kbytes sec e User configurable parameters Base Address Interrupt Request Line Interrupt Status ID byte Supervisor or User Access s EEE 1014 VMEbus standard compliance e Comprehensive software support The GPIB 1014P conforms to all requirements and conventions specified in the ANSI IEEE Std 1014 1987 Hereafter the General Purpose Interface Bus is referred to as the GPIB the GPIB standard is referred to as the JEEE 488 standard and the ANSI IEEE Std 1014 1987 is referred to as the JEEE 1014 standard National Instruments Corporation 1 1 GPIB 1014P User Manual General Information Section One Figure 1 1 shows the GPIB 1014P interface board e D s D a x Figure 1 1 GPIB 1014P Interface Board The GPIB 1014P interface kit includes hardware and programming exam
42. Enable Bit ADSC is set by any change in TA any change in LA any change in CIC any change in MJMN amp lon ton ADSC is cleared by pon Read ISR2 4 18 National Instruments Corporation Section Four Register Bit Descriptions Bit Mnemonic Description Notes TA Talker Active bit ADSR 1 r LA Listener Active bit ADSR 2 r CIC Controller In Charge bit ADSR 7 r MJMN Major Minor bit ADSR 0 r lon Listen Only bit ADMR 6 w ton Talk Only bit ADMR 7 w pon power on reset Read ISR2 Bit is cleared immediately after it is read ADSC is set whenever there is a change in one of the four bits TA LA CIC MJMN of the Address Status Register ADSR National Instruments Corporation 4 19 GPIB 1014P User Manual Register Bit Descriptions Section Four Serial Poll Status Register SPSR VMEbus Address Base Address 7 hex Attributes Read Only Serial Poll Mode Register SPMR VMEbus Address Base Address 7 hex Attributes Write Only 7 6 5 4 3 2 1 0 R W Bit Mnemonic Description Tr Iw S8 Serial Poll Status Byte 5 0r S6 S1 5 0w Cleared by Power On Reset pon and by issuing the Chip Reset auxiliary command These bits are used for sending device or system dependent status information over the GPIB when the TLC is serial polled When the TLC is addressed as the GPIB Talker and receives the GPIB multiline Serial Poll Enable SPE command message it transmits a byte of status in
43. Even though the VMEbus interrupt request line is no longer driven the TLC INT line remains asserted until it is cleared in the interrupt service routine by reading the appropriate interrupt status register ISR1 or ISR2 The appropriate interrupt status register must be read to enable further interrupts from the GPIB 1014P The DTACK assert release circuitry releases DTACK after the F245 ceases driving the data bus DEN 1 IDTACK is high and DS1 is released If the address lines A01 through A03 do not match the indicated priority of the GPIB 1014P the Q output of the flip flop is latched high indicating that IACKOUT is to be asserted After IACKIN and the delayed AS are received high the VMEbus signal IACKOUT is driven low IACKOUT is released within 30 nsec of AS being released GPIB Interface The GPIB 1014P is interfaced to the GPIB using an NEC uPD7210 Talker Listener Controller TLC large scale integrated circuit The TLC contains most of the logic circuitry needed to program control and monitor the GPIB interface functions that are implemented by the GPIB 1014P Access to these functions is through eight read only registers and 13 write only registers five of which are indirectly addressed These registers occupy a block of 16 memory addresses eight consecutive odd addresses GPIB 1014P User Manual 6 4 National Instruments Corporation Section Six Theory of Operation The TLC is enabled during the TLC CS pulse a
44. GPIB 1014P User Manual June 1994 Edition Part Number 370944A 01 Copyright 1984 1994 National Instruments Corporation All Rights Reserved National Instruments Corporate Headquarters 6504 Bridge Point Parkway Austin TX 78730 5039 512 794 0100 Technical support fax 800 328 2203 512 794 5678 Branch Offices Australia 03 879 9422 Austria 0662 435986 Belgium 02 757 00 20 Canada Ontario 519 622 9310 Canada Qu bec 514 694 8521 Denmark 45 76 26 00 Finland 90 527 2321 France 1 48 14 24 24 Germany 089 741 31 30 Italy 02 48301892 Japan 03 3788 1921 Mexico 95 800 010 0793 Netherlands 03480 33466 Norway 32 84 84 00 Singapore 2265886 Spain 91 640 0085 Sweden 08 730 49 70 Switzerland 056 20 51 51 Taiwan 02 377 1200 U K 0635 523545 Limited Warranty The GPIB 1014P is warranted against defects in materials and workmanship for a period of two years from the date of shipment as evidenced by receipts or other documentation National Instruments will at its option repair or replace equipment that proves to be defective during the warranty period This warranty includes parts and labor A Return Material Authorization RMA number must be obtained from the factory and clearly marked on the outside of the package before any equipment will be accepted for warranty work National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty National Instrumen
45. HE o apr DHbC Figure 4 2 Writing to the Hidden Registers GPIB 1014P User Manual 4 6 National Instruments Corporation Section Four Register Bit Descriptions Data In Register DIR VMEbus Address Base Address 1 hex Attributes Read Only 7 6 5 4 3 2 1 U R The Data In Register DIR is used to move data from the GPIB to the VMEbus when the interface is a Listener Incoming information is separately latched by this register and is not destroyed by a write to the Command Data Out Register CDOR which locates at the same address The GPIB Ready For Data RFD message is held false until the byte is removed from the DIR by an I O read from a VMEbus master The Acceptor Handshake AH completes automatically after the byte has been read In RFD Holdoff mode refer to Auxiliary Register A later in this section the GPIB Handshake is not finished until the Finish Handshake FH auxiliary command is issued telling the TLC to release the Holdoff By using the RFD Holdoff mode the same byte can be read several times or a GPIB Talker that is ready to provide more data can be held off until the program is ready to proceed DIO is the least significant bit of the data byte and corresponds to GPIB DIO1 DI7 is the most significant bit of the data byte and corresponds to GPIB DIO8 Bit Mnemonic Description 7 Or DIR 7 0 Data In Bits 7 through 0 National Instruments Corporation 4 7 GPIB 1014P User Manual Registe
46. Handshake 4 6 APT Address Pass Through Bit 4 9 to 4 10 APT IE Address Pass Through Interrupt Enable Bit 4 9 to 4 10 ARS Address Register Select Bit 4 44 ATN Attention Bit 4 20 ATN attention line E 3 auxiliary command summary detailed description 4 30 to 4 34 table of 4 28 to 4 29 Auxiliary Mode Register AUXMR command summary table 4 28 to 4 34 overview 4 27 to 4 28 Auxiliary Register 0 ADRO 4 43 Auxiliary Register A AUXRA 4 38 to 4 39 Auxiliary Register B AUXRB 4 40 to 4 41 Auxiliary Register E AUXRE 4 42 National Instruments Corporation Index 1 GPIB 1014P User Manual Index B base address VMEbus configuring 3 3 to 3 4 BIN Binary Bit 4 38 bus signals See VMEbus C cable shield grounding GPIB 3 8 cabling 3 10 to 3 11 capability codes for GPIB 1014P 2 10 to 2 12 CDO 7 0 Command Data Out Bits 7 through 0 4 7 CDOR See Command Data Out Register CDOR Chip Reset command codes for 4 28 description 4 30 to 4 31 CIC Controller In Charge Bit 4 20 Clear IFC command codes for 4 29 description 4 34 Clear Parallel Poll Flag command codes for 4 28 description 4 32 Clear REN command codes for 4 29 description 4 34 CLK 3 0 Clock Bits 3 through 0 4 35 clock and reset circuitry definition 2 9 operation 6 2 CNT 2 0 Control Code Bits 2 through 0 4 27 to 4 34 CO Command Out Bit 4 16 CO IE Command Out Interrupt Enable Bit 4 16 Command Data Out R
47. N CON a Shield Isolated or Unconnected b Shield Grounded or Connected Default setting Figure 3 7 GPIB Cable Shield Grounding GPIB 1014P User Manual 3 8 National Instruments Corporation Section Three Configuration and Installation Installation The GPIB 1014P is a single height board that interfaces to the VMEbus PI and is available with either a single or double height metal front cover plate The following paragraphs describe the GPIB 1014P interface to the VMEbus backplane and to the IEEE 488 bus Verification of System Compatibility The GPIB 1014P monitors and drives those signals required by the IEEE 1014 Standard and is compatible with certified VMEbus systems Compare the signals listed in Table 3 1 to those used by the VMEbus system in which the GPIB 1014P will be installed to ensure that the GPIB 1014P provides all the necessary signals needed by the VMEbus system and vice versa Table 3 1 GPIB 1014P Pin Assignment on VMEbus Connector P1 Signal Used Signal Not Used Signal Used Signal Not Used Al GND AS GND IACK IACKIN IACKOUT AMA A07 A06 AUS A04 A03 A02 A01 5V BBSY BCLR ACFAIL BGOIN BGOOUT SERCLK BGIIN SERDAT BGIOUT BG2IN BG20UT BG3IN BG30UT BRO BR1 BR2 BR3 5V STDBY continues National Instruments Corporation 3 9 GPIB 1014P User Manual Configuration and Installation Section Three Table 3 1 GPIB 1014P Pin Assignment on VMEbus C
48. NEC uPD7210 LSI GPIB Talker Listener Controller as well as summary tables for easy reference Section Five Programming Considerations explains important considerations for programming the GPIB 1014P Section Six Theory of Operation contains a functional overview of the GPIB 1014P board and explains the operation of each functional block making up the GPIB 1014P Section Seven GPIB 1014P Diagnostic and Troubleshooting Test Procedures contains test procedures for determining if the GPIB 1014P is installed and operating correctly Appendix A Specifications lists the specifications of the GPIB 1014P Appendix B Parts List and Schematic Diagrams contains a parts list and detailed schematic diagrams Appendix C Sample Programs provides sample programs in 68000 Assembly Language code for implementing the most commonly used GPIB functions Line by line comments provide an explanation of each function Appendix D Multiline Interface Command Messages contains a listing of the multiline GPIB interface messages National Instruments Corporation v GPIB 1014P User Manual Preface e Appendix E Operation of the GPIB describes the operation of the GPIB e Appendix F Mnemonics Key contains an alphabetical listing of all mnemonics used in this manual and indicates whether the mnemonic represents a bit register function remote message local message state VMEbus operation or VMEbus signal e Appendix G Customer Communicatio
49. Poll Flag to the value of COM3 The value of the Parallel Poll Flag is used as the local message ist when bit four of Auxiliary Register B is zero The value of SRQS is used as the ist when ISS 1 Go To Standby The Go To Standby command sets the local message gts if the TLC is in Controller Active State CACS or when it enters CACS When the TLC leaves CACS gts is cleared Take Control Asynchronously The Take Control Asynchronously command pulses the local message tca continues National Instruments Corporation 4 33 GPIB 1014P User Manual Register Descriptions Section Four Table 4 5 Auxiliary Commands Detailed Description continues Command Code COM4 COM0 43210 Description Take Control Synchronously The Take Control Synchronously command sets the local message tcs The local message tcs is effective only when the TLC is in Controller Standby State CSBS or Controller Synchronous Wait State CSWS The local message tcs is cleared when the TLC enters Controller Active State CACS Take Control Synchronously on END The Take Control Synchronously on END command sets the local message tcs when the data block transfer End message END bit equal to one is generated at CSBS The tcs message is cleared when the TLC enters CACS Listen The listen command generates the local message Itn in the form of a pulse Listen in Continuous Mode The Listen in Continuous Mode command generates the local message
50. Power Off Power On Parallel Poll scan all status flags Parallel Poll Active State Parallel Poll Configure Parallel Poll Disable Parallel Poll Enable Parallel Poll Idle State Parallel Poll Response Parallel Poll Standby Active Parallel Poll Unconfigure Parallel Poll Unaddressed to Configure State Ready for next message Remote Bit Remote Change Bit Enable Interrupt on Remote Change Bit Remote State Remote Enable End on End Of String Received Bit Ready For Data Remote Local Read Modify Write Release on Register Access Request Parallel Poll Request Service F 6 National Instruments Corporation Appendix F Mnemonic Type rsc LM ISV B ISV LM rtl LM RWD B RWLS ST S S B SACS ST SCG RM SDC RM SDYS ST SGNS ST SH F SIAS ST SIC LM SIDS ST SIIS ST SINS ST SIWS ST SNAS ST SP F SPAS ST SPD RM SPE RM SPEOI B SPIS ST SPMR R SPMS B SPMS ST SPSR R SR F SRAS ST sre LM SRIS ST SRNS ST SRQ RM SRQI B SRQI IE B SRQS ST STB RM STRS ST SWNS ST SYSCLK VBS SYSFAIL VBS SYSRESET VBS National Instruments Corporation Mnemonics Key Definition Request System Control Request Service Bit Request Service Return To Local Release When Done Bit Remote With Lockout State Status Bit Polarity Sense Bit System Control Active State Secondary Command Group Selected Device Clear Source Delay State Source Generate State Source Handshake System Control Interface Clear Active
51. Result O 1 1 10000 Unconfigures PPR 01 100000 00000 is written to the PPR GPIB 1014P participates in a Parallel Poll asserting the DIO1 line if ist is 0 Otherwise the GPIB 1014P does not participate 0 1 101 00 I 0 1 00 1 is written to the PPR GPIB 1014P participates in a Parallel Poll asserting the DIO2 line if ist is 1 Otherwise the GPIB 1014P does not participate GPIB 1014P User Manual 4 38 National Instruments Corporation Section Four Register Descriptions Auxiliary Register A AUXRA VMEbus Address Base Address B hex AUXMR Control Code 100 Binary Bits 7 5 Attributes Write Only Accessed through AUXMR 4 3 2 1 0 W Writing to Auxiliary Register A AUXRA is done via the AUXMR Writing the binary value 100 into the Control Code CNT 2 0 and a bit pattern into the Command Code portion COM 4 0 of the AUXMR causes the Command Code to be written to AUXRA When the data is written to AUXRA the bits are denoted by the mnemonics shown above This 5 bit code controls the data transfer messages Holdoff and EOS END Bit Mnemonic Description 4w BIN Binary Bit The BIN bit selects the length of the EOS message Setting BIN causes the End of String Register EOSR to be treated as a full 8 bit byte When BIN 0 the EOSR is treated as a 7 bit register for ASCII characters and only a 7 bit comparison is done with the data on the GPIB 3w XEOS Transmit END with EOS Bit The XEOS bit permits or prohibits automa
52. State Send Interface Clear Source Idle State System Control Interface Clear Idle State System Control Interface Clear Not Active State Source Idle Wait State System Control Not Active State Serial Poll scanning flags Serial Poll Active State T function Serial Poll Disable Serial Poll Enable Send Serial Poll End Or Indentify Bit Serial Poll Idle State Serial Poll Mode Register Serial Poll Mode State Bit Serial Poll Mode State Serial Poll Status Register Service Request System Control Remote Enable Active State Send Remote Enable System Control Remote Enable Idle State System Control Remote Enable Not Active State Service Request Service Request Input Bit Enable Interrupt on Service Request Input Bit Service Request State Status Byte Source Transfer State Source Wait for New Cycle State System Clock System Fail System Reset F 7 GPIB 1014P User Manual Mnemonics Key Mnemonic Type T T F TA B TACS ST TADS ST TAG RM tca LM tcs LM TCT TM TDMA SX TE F TIDS ST TLC IC TLC CS LS TLC WR LS ton B ton LM TPAS B TPAS ST TPIS ST TRI B TRM 1 0 B U U B UAT VBO UCG RM UNL RM UNT RM W WR LS X XEOS B GPIB 1014P User Manual Appendix F Definition Talker Talker Active Bit Talker Active State T function Talker Addressed State Talk Address Group Talk Control Asynchronously Take Control Synchronously Take Control Terminate DMA Extended Talk Talker Idle State Ta
53. T dIH9 98239953 Pensasey SIUETA TTY et SINSNNELSNT MILL 0661 IHSISAdOOO uO0TSSTUJSd US933T1J 300u3Tm SWIFT 40 STES JO aJgnisejnueu ous JOJ TS Q SUJ FR Jets 40 3TOU UT poTdD2 JO poonpoJgdsJ 9q 70V TIVUS PUR 3u9UnJiSUT TRUOTIEN 30 R349d0dd BUY due UTBJIIU SUOTIBITITS945 PUR aUaWNSOP STUL CII4I9IH4S SSIMYBHLO SSSQNN S310N SWHO NI 3599 Sannen YOLSTSSY RT u a V TT Lit a y I Appendix C Sample Programs This appendix contains listings of routines in 68000 assembly language code that implement the essential elements of these major utility functions Initialize the GPIB 1014P interface INIT Initialize the interface functions of the GPIB devices IFC Set or clear the GPIB REN line REN Accept data bytes from a Talker RCV Address Talker and read device dependent messages READ Send data bytes to Listeners DSEND Address Listener and write device dependent messages WRITE Send command bytes to Listeners CSEND Write interface messages CMD Pass GPIB control to another device PASSC Assumptions regarding the state of the GPIB 1014P appear at the beginning of each routine and must be adhered to for proper error free operation The following characteristics of the code must be considered The GPIB 1014P base address is FF1000 hex Normal non extended GPIB addressing is used Time out on subroutine calls is not implemented Register values are not saved on subrou
54. TE1 btst DO ISR1 L Wait until last byte has been sent beq WRITE movb TCA AUXMR L Then take control subw 2 cmdct L Prepare to unaddress all Talkers and Listeners bsr CMD rts GPIB 1014P User Manual C 16 National Instruments Corporation Appendix C 68000 Code Sample Programs kK ck ok Ck KK Ck Ck KR Ck Ck KK ok ko KK k k k KK OK COMMAND SEND CSEND KKK ck Ck ck Ck Ck Ck ck Ck Ck Ck Ck Ck ko k ok k ok k k kk X Summary Called by CMD to send interface command messages Assumptions on entry The GPIB 1014P is Active Controller The dO register contains the number of bytes to send The a0 register contains the address oc cmdbuf Actions Initialize a count variable Wait until the CDOR is empty Write a byte and increment the counter Check for a GPIB error Loop until all bytes are transferred On an error set dO to 1 Status on return dO register contains number of bytes sent or 1 if an error occurred Comments CSEND CSENDI CSEND2 CSEND3 cliw count L btst CO ISR2 L beq CSEND1 cmpw count d0 beq CSEND3 addw 1 count L movb a0 CDOR L btst ERR ISR1 bne CSEND2 addi 1 a0 bra CSEND1 movw 1 d0 rts National Instruments Corporation Initialize count variable Wait till CDOR is empty Have all commands been sent Yes No Increment counter and write the next command If there are no Listeners return 1 in dO re
55. This Status ID byte is set by an onboard 8 position Dual In line Package DIP switch U7 After the interrupt handler reads the Status ID byte from the data bus it releases the data strobe DSO to high Upon seeing DSO high the interrupter releases the data bus and the interrupt request line This implies that the GPIB 1014P interrupter is a Release On Acknowledge ROAK interrupter Note Even though the interrupt request line is no longer driven the TLC Interrupt INT line remains asserted until it is cleared in the interrupt service routine by reading the appropriate status register ISR1 or ISR2 Clearing the TLC INT line in the interrupt routine enables further interrupts from the GPIB 1014P GPIB 1014P User Manual 2 4 National Instruments Corporation Section Two General Description VMEbus Modules Not Provided Because the GPIB 1014P is not designed to be VMEbus System Controller it does not have the following modules Master s Bus Timer e Arbiter e Interrupt Handler e TACK Daisy Chain Driver e System Clock Driver Serial Clock Driver Power Monitor Diagnostic Aids The GPIB 1014P is designed to allow stand alone verification of I O functions See Section Seven GPIB 1014P Diagnostic and Troubleshooting Test Procedures for details Data Transfer Features The GPIB 1014P can be used to transfer data to and from the GPIB using programmed I O Typical transfer rates range from 10 to 80 kbytes sec Data tra
56. XMR L a6 8 d2 a6 4 d1 a6 GPIB 1014P User Manual No Clear any HLDE or HLDA in effect Clear byte counter Read status Wait for GPIB END or DI Look for END Read byte More bytes to read Yes continue No exit END read last byte Record bytes read Send HLDA Restore d2 Restore d1 Unlink Return National Instruments Corporation Appendix C National Instruments Corporation Sample Programs KREE READ Summary Called to read device dependent data messages when the GPIB 1014P is Controller In Charge DCH is called when the GPIB 1014P is Idle Controller Assumptions on entry GPIB 1014P is Controller In Charge The Talker address is placed in first location of cmdbuf The variable cmdct is set to 1 The buffer datbuf is free to place incoming data The number of bytes to read is placed in datct Actions Set up cmdbuf and cmdct and call CMD to address the Talker and unaddress all other devices Program the GPIB 1014P to listen Go to standby and unassert ATN Transfer the contents of datct to the dO register Load the a0 register with the address of datbuf Call RCV to receive the data Call CMD to unaddress all devices Program the GPIB 1014P to unlisten Status on return GPIB 1014P is Active Controller Acceptor handshake is held off at NRFD All GPIB devices are unaddressed C 11 GPIB 1014P User Manual Sample P
57. XRB INT is set by CPT amp CPT IE APT amp APT IE DET amp DET IE ERR amp ERR IE END RX amp END IE DEC amp DEC IE DO amp DO IE DI amp DI IE SRQI amp SRQI IE REMC amp REMC IE CO amp CO IE LOKC amp LOKC IE ADSC amp ADSC IE National Instruments Corporation 4 15 GPIB 1014P User Manual Register Bit Descriptions Bit Tw Dr DW Mnemonic SRQI SRQI IE GPIB 1014P User Manual Description Notes CPT CPT IE APT APT IE DET DET IE ERR ERR IE END RX END IE DEC DEC IE DO DO IE DI DI IE SRQI SRQI IE REMC REMC IE CO CO IE LOKC LOKC IE ADSC ADSC IE Reserved Bit Section Four Command Pass Through Bit Enable Interrupt on Command Pass Through Bit Address Pass Through Bit Enable Interrupt on Address Pass Through Bit Device Execute Trigger Bit Enable Interrupt on Device Execute Trigger Bit Error Bit Enable Interrupt on Error Bit End Received Bit Enable Interrupt on End Received Bit Device Clear Bit Enable Interrupt on Device Clear Bit Data Out Bit Enable Interrupt on Data Out Bit Data In Bit Enable Interrupt on Data In Bit Service Request Input Bit Enable Interrupt on Service Request Input Bit Remote Change Bit Enable Interrupt on Remote Change Bit Command Output Bit Enable Interrupt on Command Output Bit Lockout Change Bit Enable Interrupt on Lockout Change Bit Address Status Ch
58. access configuration 3 3 switches See jumpers and switches system reset clock and reset circuitry 6 2 during initialization 5 1 to 5 2 T TA Talker Active Bit 4 21 Take Control Asynchronously Pulsed command codes for 4 28 description 4 32 Take Control Synchronously command codes for 4 28 description 4 33 Take Control Synchronously on End command codes for 4 28 description 4 33 Talker Listener Controller TLC See also Controller function addressed implementation Address Mode 1 5 5 Address Mode 2 5 5 to 5 6 Address Mode 3 5 6 to 5 7 definition 2 9 GPIB interface 6 4 to 6 5 initiliazation of 5 1 interrupt events originating from 2 4 operation of E 1 to E 2 overview 5 5 programmed implementation 5 5 sending receiving messages 5 7 VMEbus slave addressing 2 2 TCT Take Control command 4 26 test and troubleshooting See troubleshooting test procedures National Instruments Corporation Index 11 GPIB 1014P User Manual Index theory of operation address decoding 6 2 clock and reset circuitry 6 2 GPIB interface 6 4 to 6 5 interrupter logic 6 3 to 6 4 test and troubleshooting 6 5 timing control logic 6 3 VMEbus interface 6 1 to 6 2 timing control logic 6 3 timing state machine definition 2 9 TLC See Talker Listener Controller TLC ton Talk Only Bit 4 22 TPAS Talker Primary Addressed State Bit 4 21 transceivers for GPIB 1014P 2 2 TRI Three State Timing Bit 4 40 to 4 4
59. ale a ie 4 2 Interface Resistere ocio ee ee deet 4 3 Data In Resister DIR sgabelli 4 6 Command Data Out Register CDOR 2 due ee eene 4 7 Interrupt Status Register L SRL nn eh eG 4 8 Interrupt Mask Register 1 IMR sss seene 4 8 National Instruments Corporation xi GPIB 1014P User Manual Contents Interrupt Status Register 2 ISR2 sin pierino a ila ara 4 14 Interrupt Mask Register 2 IMR2 sse 4 14 Serial Poll Status Register SPSR curarne 4 19 Serial Poll Mode Register SPMR sese 4 19 Address Status Register ADSR uri ia ilari 4 20 Address Mode Register ADMR sse 4 22 Command Pass Through Register CPTR AA 4 25 Auxiliary Mode Register AUXMR arri ili 4 27 Hidden EE 4 34 Internal Counter Register ICR sese 4 35 Parallel Poll Register PPR cc leer lele 4 36 Auxiliary Register A AUXRA ciclici ta 4 38 Auxiliary Register B AUXRB coils 4 40 Auxiliary Register E AUXRE ee 4 42 Address Register O ADRO soto sette her radiato alinea 4 43 Address Register ADR iius esee estate be gena ra NT Eae eU a Suae ee Ee 4 44 Address Register LADRI TE 4 45 End Of String Register EOSR seene 4 46 Section Five Programming Considerations iii 5 1 rri patei EE 5 1 The GPIB 1014P as GPIB Controller ss 5 2 Becoming Controller In Charge CIC and Active Controller 5 2 Sending Remote Multiline Messages Commands eese 5 3 Going from A
60. an idle state with ATN off if CIC 0 Attention Bit ATN is a status bit which indicates the current level of the GPIB ATN signal If ATN is 0 the GPIB ATN signal is asserted Serial Poll Mode State Bit If SPMS 1 the TLC GPIB Talker T or Talker Extended TE function is enabled to participate in a serial poll SPMS is set when the TLC has been addressed as a GPIB Talker and the GPIB Active Controller has issued the GPIB Serial Poll Enable SPE command message SPMS is cleared when the GPIB Serial Poll Disable SPD command is received by power on reset or by issuing the Chip Reset auxiliary command Listener Primary Addressed State Bit The LPAS bit is used when the TLC is configured for extended GPIB addressing and when set indicates that the TLC has received its primary listen address In Mode 3 addressing see Address Mode Register Description LPAS 1 indicates that the secondary address being received on the next GPIB command may represent the TLC Extended Secondary GPIB Listen address LPAS is cleared by pon or by issuing the Chip Reset auxiliary command National Instruments Corporation 4 21 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic 3r TPAS 2r LA lr TA Or MJMN GPIB 1014P User Manual Section Four Description Talker Primary Addressed State Bit TPAS is used when the TLC is configured for extended GPIB addressing and when set indicates that the TLC has received its primar
61. and the local pon message becomes false Chip Reset The Chip Reset command resets the TLC in the same way as an external reset pulse The System Controller bit is also cleared The TLC is reset to the following conditions e The local pon message is set and the interface functions are placed in their idle states All bits of the SPMR are cleared The EOI bit is cleared All bits of the AUXRA AUXRB and AUXRE are cleared The Parallel Poll Flag and RSC local message are cleared The contents of the ICR is set to eight F3 set to 1 F2 Fl and FO set to 0 The TRMO bit and the TRMI bit are cleared continues National Instruments Corporation 4 31 GPIB 1014P User Manual Register Descriptions Section Four Table 4 5 Auxiliary Commands Detailed Description continues Command Code COM4 COM0 43210 Description The interface functions are held in their idle states until released by an Immediate Execute pon command Between these commands the TLC writable bits may be programmed to their desired states Finish Handshake FH The Finish Handshake command finishes a GPIB Handshake that was stopped because of a Holdoff on RFD or DAC Trigger Note Trigger cannot be used with the GPIB 1014P The Trigger command generates a high pulse on the TRIG pin T R3 pin when TRM1 0 of the TLC The Trigger command performs the same function as if the DET Device Trigger bit ISR1 5 r were set The DET bit is not set by issuing the
62. ange Bit Enable Interrupt on Address Status Change Bit Write zero to this bit Service Request Input Bit Service Request Input Interrupt Enable Bit SRQI is set when CIC amp SRQ amp RQS amp DAV becomes true SRQI is cleared by pon Read ISR2 Notes CIC SRQ RQS DAV GPIB Controller In Charge GPIB Service Request message GPIB Request Service message GPIB Data Valid message 4 16 National Instruments Corporation Section Four Bit 5r 5w 4r 4w 3r 3w Mnemonic LOK DMAO REM DMAI CO CO IE Register Bit Descriptions Description pon power on reset Read ISR2 Bitis cleared immediately after it is read The SRQI bit indicates that a GPIB Service Request SRQ message has been received while the TLC Controller function is active CIC 1 Lockout Bit LOK is used along with the REM bit to indicate the status of the TLC GPIB Remote Local RL function If set the LOK bit indicates that the TLC is in Local With Lockout State LWLS or Remote With Lockout State RWLS LOK is a non interrupt bit DMA Out Enable Bit The DMA feature is not implemented Do not set this bit Remote Bit This bit is true whenever the TLC GPIB RL function is in one of two states Remote State REMS or Remote With Lockout State RWLS The TLC RL function enters one of these states when the System Controller has asserted the Remote Enable line REN and the Controller In Charge addres
63. ared immediately after it is read The END RX bit is set when the TLC is a Listener and the GPIB uniline message END is received with a data byte from the GPIB Talker or the data byte in the DIR matches the contents of the End Of String Register EOSR Device Clear Bit Device Clear Interrupt Enable Bit DEC is set by DCAS DEC is cleared by pon Read ISR1 Notes DCAS GPIB Device Clear Active State pon power on reset Read ISR1 Bitis cleared immediately after it is read The DEC bit indicates that the GPIB Device Clear DCL command has been received or that the GPIB Selected Device Clear SDC command has been received while the TLC was a GPIB Listener the TLC is in DCAS Error Bit Error Interrupt Enable Bit ERR is set by TACS amp SDYS amp DAC amp RFD SIDS amp Write CDOR SDYS SIDS ERR is cleared by pon Read ISR1 4 12 National Instruments Corporation Section Four Bit lr lw Or Ow Mnemonic DO DO IE DI DI IE Register Bit Descriptions Description Notes TACS GPIB Talker Active State SDYS GPIB Source Delay State DAC GPIB Data Accepted message RFD GPIB Ready For Data message SIDS GPIB Source Idle State Write CDOR Bit is set immediately after writing to the Command Data Out Register SDYS gt SIDS Transition from GPIB Source Delay State to Source Idle State pon power on reset Read ISRI1 Bit is cleared immediately after it is read The ERR bit i
64. at all this test gives limited assurance that the TLC and its associated circuitry are working and that the output signals can be manipulated properly NDAC is the GPIB Not Data Accepted signal By programming the TLC to Listen or not Listen via the ADMR NDAC can be asserted or not asserted respectively DIO1 is the GPIB Data Input Output bit 1 LSB By programming the TLC as active GPIB Controller and sending command bytes using the CO bit the CDOR DIOI can be asserted and unasserted for testing GPIB 1014P User Manual 6 6 National Instruments Corporation Section Seven GPIB 1014P Diagnostic and Troubleshooting Test Procedures This section contains test procedures for determining if the GPIB 1014P is installed and operating correctly The tests are similar to those used by National Instruments to verify correct hardware functioning This method programs specific internal functions by writing to one or more registers then reading other registers to confirm that the functions were implemented A user must have available an appropriate mechanism for writing to and reading from I O and memory locations A program such as an interactive control program console emulator monitor or program debugger is ideal for this purpose Interpreting Test Procedures The following test procedures are written in the form of simple equations The left side of the equation contains the hexadecimal address offset from the GPIB 1014P base addre
65. ational Instruments Corporation 2 6 GPIB 1014P User Manual Section Two General Description The interface consists of these major components which are discussed in greater detail in Section Six e VMEbus Interface e Address Decoder e Clock and Reset Circuitry e Timing State Machine Interrupter e GPIB TLC NEC uPD7210 National Instruments Corporation Consists of the buffers drivers and transceivers for the address data status and control lines used on the VMEbus plus other logic circuitry that converts internal signals to bus compatible signals Recognizes when the VMEbus master addresses one of the GPIB 1014P registers and generates the appropriate strobe to effect the data transfer Monitors the VMEbus utility signals to generate the 8 MHZ clock used by the TLC and to detect System Reset Controls the timing of accesses to the GPIB 1014P from the VMEbus Implements the correct VMEbus priority interrupt protocol allowing the GPIB 1014P to request and respond to an interrupt acknowledge cycle All interrupt conditions are also detectable by polling Implements many of the GPIB interface functions either independently or with assistance of or interpretation by the controlling program Together with special transceivers the TLC forms the GPIB interface side of the GPIB 1014P 2 9 GPIB 1014P User Manual General Description Section Two Table 2 3 lists the capabilities of the GPIB 1014P i
66. bytes Status on return The GPIB 1014P is Idle Controller Comments movb TCA AUXMR L movb UNT cmdbuf L movb UNL cmdbuf L 1 movb tctadr cmdbuf L 2 movb TCT cmdbuf L 3 movw 4 cmdct bsr CMD rts National Instruments Corporation Take control in case at standby Set up the command buffer The GPIB 1014P automatically releases control when TCT is sent C 19 GPIB 1014P User Manual Appendix D Multiline Interface Messages The following tables are multiline interface messages sent and received with ATN TRUE National Instruments Corporation D 1 GPIB 1014P User Manual Multiline Interface Messages Multiline Interface Messages Hex Oct Dec ASCII Msg 00 000 0 NUL 01 001 1 SOH GTL 02 002 2 STX 03 003 3 ETX 04 004 4 EOT SDC 05 005 5 ENO PPC 06 006 6 ACK 07 007 BEL 08 010 8 BS GET 09 011 9 HT LET OA 012 10 LF OB 013 11 VT OC 014 12 FF OD 015 12 CR OF 016 14 SO OF 017 15 SI 10 020 16 DLE 11 021 17 DC1 LLO 12 022 18 DC2 13 023 19 DC3 14 024 20 DC4 DCL 15 025 21 NAK PPU 16 026 22 SYN 17 027 23 ETB 18 030 24 CAN SPE 19 031 25 EM SPD 1A 032 26 SUB 1B 033 27 ESC 1C 034 28 FS 1D 035 29 GS 1E 036 30 RS 1F 037 34 US Message Definitions DCL Device Clear GET Group Execute Trigger GTL Go To Local LLO Local Lockout MLA My Listen Address PPC Parallel Poll Configure GPIB 1014P User Manual D 2 Hex 20 21 22 23 24
67. citly handled in the software by writing the appropriate values to the U S and P3 to PI bits of the PPR Refer to the PPR description in Section Four for more information Once the PPR is configured all that remains for your program is determining the source and value of the local individual status ist message If the ISS bit in the AUXRB is zero ist is set and cleared via the Set and Clear Parallel Poll auxiliary commands If ISS is one ist is set if the TLC s Service Request function is in the Service Request State SRQS and the TLC is asserting the GPIB SRQ signal line and cleared otherwise Consequently setting ISS ties the Parallel Poll function to the Service Request function and also to the Serial Poll process The particular response sent by the GPIB 1014P during a Parallel Poll is determined by the value of ist and the configuration of the GPIB 1014P The value of ist and the actual configuration must be decided by the GPIB system integrator The response can be changed dynamically during program execution by changing the value of ist and when remote configuration is used by reconfiguration National Instruments Corporation 5 11 GPIB 1014P User Manual Section Six Theory of Operation This section discusses the major elements of the GPIB 1014P in detail with references to signals and circuits shown in the schematic diagrams in Appendix B However a brief description of the GPIB 1014P interface with a functional block diagra
68. ck the jumper settings described in Section Three After these items have been carefully checked if the interface is still not functioning properly gather together the information concerning what the GPIB 1014P is and is not doing with regard to the expected results and contact National Instruments National Instruments Corporation 7 1 GPIB 1014P User Manual Diagnostics and Troubleshooting Section Seven GPIB 1014P Hardware Installation Tests 1 Initialize TLC B AUXMR 2 B AUXMR 0 Chip Reset Immediate execute pon 2 Send Chip Reset then read registers and compare to reset values AUXMR 2 ISR1 0 ISR2 0 SPSR 0 ADSR 40 CPTR 0 Ud O tA Q2 D 3 Test ton DO ERR CPTR TA B AUXMR 2 ADMR 80 AUXMR 0 ADSR 42 ISR1 22 CDOR 51 CPTR 51 ISR1 6 ISR1 0 AUXMR 2 ADMR 0 AUXMR 0 ADSR 40 DVD Le ad gj 0 o pj o 4 Checklon LA B AUXMR 2 IMRI lt 0 IMR2 0 ADMR 40 AUXMR 0 ADSR 44 AUXMR 2 ADSR 40 tj Bj LN L GPIB 1014P User Manual Chip Reset Chip Reset ton Immediate execute pon TA DO write data byte verify DO ERR bits cleared when read Chip Reset disable ton Immediate execute pon not TA Chip Reset no interrupts no interrupts lon Immediate execute pon LA Chip Reset not LA 7 2 National Instruments Corporation Section Seven 5 Test ATN CIC CO B gj o ER O AUXMR 2
69. consists of 16 signal lines and eight ground return or shield drain lines The 16 signal lines are divided into the following three groups e Eight data lines e Three handshake lines e Five interface management lines Data Lines The eight data lines DIO1 through DIO8 carry both data and command messages All commands and most data use the 7 bit ASCII or ISO code set in which case the eighth bit DIO8 is unused or used for parity Handshake Lines Three lines asynchronously control the transfer of message bytes among devices The process is called a three wire interlocked handshake and it guarantees that message bytes on the data lines are sent and received without transmission error NRFD not ready for data NRFD indicates when a device is ready or not ready to receive a message byte The line is driven by all devices when receiving commands and by Listeners when receiving data messages GPIB 1014P User Manual E 2 National Instruments Corporation Appendix E Multiline Interface Messages NDAC not data accepted NDAC indicates when a device has or has not accepted a message byte The line is driven by all devices when receiving commands and by Listeners when receiving data messages DAV data valid DAV tells when the signals on the data lines are stable valid and can be accepted safely by devices The Controller drives DAV when sending commands and the Talker drives it when sending data messages Interface Managem
70. contrasted with Serial Polls where the overhead in the form of addressing and enabling command messages occurs with each poll Conducting a Parallel Poll The TLC as Active Controller has the capability to conduct a Parallel Poll When the Execute Parallel Poll auxiliary command is issued and the TLC internal local message rpp is set the Parallel Poll is executed that is the GPIB message IDY is sent true as soon as the TLC Controller interface function is placed in the proper state CAWS or CACS The Parallel Poll Response PPR is automatically read from the GPIB DIO lines into the CPTR and the rpp local message is cleared A program can determine that the Parallel Poll operation is complete based on the condition of CO CO 1 when the poll is complete The response can be obtained by reading the contents of the CPTR The response is held in the CPTR until a GPIB command is transmitted or the TLC Controller function becomes inactive In response to IDY each device participating in the Parallel Poll drives one and only one GPIB DIO line its Parallel Poll response or PPRn active true or passive false while it drives the other lines passive false Since there are eight data lines and for each line there can be one response true or false for each device 2 lines device there are 16 possible responses The line that a device uses and how that device drives the line depends on how it was configured and whether its local individual status m
71. ction is held off in ACDS until the Valid auxiliary command is written to the AUXMR The CPTR is also used to inspect secondary addresses when mode 3 addressing is used The TLC Acceptor Handshake function is held off in ACDS until the Valid or Non Valid auxiliary command is written to the AUXMR Table 4 3 Multiline GPIB Commands Recognized by the uPD7210 continues GPIB 1014P User Manual 4 26 National Instruments Corporation Section Four Register Bit Descriptions Table 4 3 Multiline GPIB Commands Recognized by the uPD7210 continued EXE MSA PPE My Secondary Address or Parallel Poll Enable MSA PPD My Secondary Address or Parallel Poll Disable The CPTR is read during a TL C initiated Parallel Poll operation to fetch the Parallel Poll response The PPR message is latched into the CPTR when CPPS is set until CIDS is set or until a command byte is sent over the GPIB National Instruments Corporation 4 27 GPIB 1014P User Manual Register Bit Descriptions Section Four Auxiliary Mode Register AUXMR VMEbus Address Base Address B hex Attributes Write Only Permits Access to Hidden Registers 7 6 5 4 3 2 1 0 CNT2 CNTI CNTO COM4 COM3 COM2 COMI COMO W The AUXMR is used to issue auxiliary commands It is also used to program the five hidden registers e Auxiliary Register A AUXRA e Auxiliary Register B AUXRB e Parallel Poll Register PPR e Auxiliary Register E AUXRE e Internal Count
72. ctive to Standby Controller eene 5 3 Going from Standby to Active Controller eee 5 4 Going from Active to Idle Controller rear 5 4 The GPIB 1014P as GPIB Talker and Listener 5 5 Programmed Implementation of Talker and Listener 5 5 Addressed Implementation of the Talker and Listener 5 5 AddressMode l 4 td e He alari 5 5 Address Mod T ne en manne te NS 5 5 Address Mode EE 5 6 mending Receiving MESSAGES TTT 5 7 Sending Receiving END or EOS seene 5 7 ee EEN 5 7 Seral Polls 4 eae eate ade oes atate seta ene tr a a 5 8 Conducting Serial Polls 23 322 0 OTRo ET SETT iate 5 8 Responding to aerial Poll spissi eo celiaca 5 8 Parallel Eltere STET ii 5 9 Conducting a Parallel Poll n epe nitide paio dta uec onto erra aae iA T 5 9 Responding To a Parallel Pollaiolo illa 5 10 Section Six Theory of Operation srl a t Diis 6 1 VMEbus Interface e e aeaa e a ee 6 1 Data LINES eege See e 6 1 ee EN EE 6 1 Address LINES C EL EE 6 2 GPIB 1014P User Manual Xii National Instruments Corporation Contents Addtress Decoding E 6 2 Clock and Reset TM L 6 2 Timing Control Lo i CP 6 3 Interrupter ETT 6 3 GPIB e 6 4 Test and NK ee E 6 5 Section Seven GPIB 1014P Diagnostic and Troubleshooting Test Procedures 7 1 Interprete Test Proce rd anes us doe see a tei to
73. d AUXRE are cleared e The Parallel Poll Flag and Request System Control RSC local message are cleared e The Internal Clock Register ICR is set to a count of eight e The Transmit Receive Mode 0 TRMO and Transmit Receive Mode 1 TRM1 bits in the Address Mode Register ADMR are cleared All other TLC register contents should be considered as undefined while the RESET is asserted and after RESET has been cleared All Auxiliary Mode Register AUXMR commands are cleared and cannot be executed All other TLC registers can be programmed while the TLC internal signal pon is set When pon is released or cleared by issuing an Immediate Execute pon auxiliary command to the TLC the interface functions are released from the pon state and the auxiliary commands can be executed National Instruments Corporation 5 1 GPIB 1014P User Manual Programming Considerations Section Five A typical programmed initialization sequence for the GPIB 1014P might include the following steps 1 Set pon by issuing the Chip Reset auxiliary command to place the GPIB 1014P in a known quiescent state 2 Set or clear the desired interrupt enable bits in Interrupt Mask Register 1 IMR1 and Interrupt Mask Register 2 IMR2 of the TLC 3 Load the TLC primary GPIB address in Address Register 0 ADRO and Address Register 1 ADRI 4 Enable or disable the GPIB Talker and Listener functions and addressing mode using the ADMR 5 Load the Serial Poll response i
74. dby The d0 register contains the byte count The a0 register contains the address of the data buffer The user specified variable veoi has been set properly Actions Copy byte count to di Wait until the CDOR is empty Decrement di If last byte assert EOI if in use Write a byte Check for a GPIB error Loop until all bytes are transferred On an error set dO to 1 Status on return The dO register contains the number of bytes transferred or a 1 to indicate an error C 13 GPIB 1014P User Manual Sample Programs DSEND1 movb ISR1 L d2 btst DO ERR d2 beq DSEND1 btst ERR d2 bne DSEND3 subl 1 d1 bmi DSEND4 bne DSEND2 cmpb 0 vseoi L beq DSEND2 movb SEOI AUXMR L DSEND2 movb a0 CDOR L bra DSEND1 movb DMAO IMR2 DSEND3 movil 1 d0 DSEND4 movi a6 8 d2 movl a6 4 d1 unlk a6 GPIB 1014P User Manual Appendix C Comments Link Save di Save d12 Copy byte count Wait for CDOR or ERR Look for error dec byte counter Have all bytes been sent No Is this last byte Yes EOI in use No Send EOI with last byte Next byte Enable DMA to the CDOR Return 1 indicating error Restore d2 Restore di Unlink Return C 14 National Instruments Corporation Appendix C National Instruments Corporation Sample Programs kK kk k KK WRITE kK kk KK KK Summary Called to send device dependent data me
75. ding status condition or event occurs a hardware interrupt request is generated Bits in ISRI are set and cleared by the TLC regardless of the status of the interrupt enable bits in IMR1 If an interrupt condition occurs at the same time ISRI is being read the TLC holds off setting the corresponding status bit until the read has finished Bit Mnemonic Description Tr CPT Command Pass Through Bit Tw CPT IE Command Pass Through Interrupt Enable Bit CPT is set on UCG ACG amp TADS LADS amp undefined amp ACDS amp CPTENAB UDPCF amp SCG amp ACDS amp CPT ENAB CPT is cleared by pon Read ISR1 Notes UCG GPIB Universal Command Group message ACG GPIB Addressed Command Group message TADS GPIB Talker Addressed State LADS GPIB Listener Addressed State defined GPIB command automatically recognized and executed by TLC National Instruments Corporation 4 9 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic 6r APT DW APT IE GPIB 1014P User Manual Section Four Description undefined GPIB command not automatically recognized and executed by TLC ACDS GPIB Accept Data State CPT ENAB AUXRB 0 w UDPCF Undefined primary command function see below SCG GPIB Secondary Command Group message pon power on reset TAG GPIB Talk Address Group message LAG GPIB Listen Address Group message Read ISRI Bit is cleared immediately after it is read UDPCF is set on UCG ACG amp TADS
76. e Listener 0 Bit If DLO is set it indicates that the mode 2 primary or mode 1 and 3 major Listener is not enabled that is the TLC does not respond to a GPIB Listen address matching bits AD 5 0 1 0 If DLO 0 the TLC responds to a GPIB listen address matching bits AD 5 0 1 0 4 Or AD5 0 Mode 2 Primary GPIB Address Bits 5 0 through 1 0 through AD1 0 These are the lower five bits of the TLC GPIB primary or major address The primary talk address is formed by adding octal 100 to AD5 0 through AD1 0 while the listen address is formed by adding octal 40 GPIB 1014P User Manual 4 44 National Instruments Corporation Section Four Register Descriptions Address Register ADR VMEbus I O Address Attributes Base Address D hex Write Only Internal to TLC 7 6 5 4 3 2 1 0 W The Address Register ADR is used to load the internal registers ADRO and ADRI Both ADRO and ADRI must be loaded for all addressing modes Bit Mnemonic Tw ARS 6w DT 5w DL 4 0w ADS 1 Description Address Register Select Bit ARS is O or 1 to select whether the seven lower order bits of ADR must be loaded into internal registers ADRO or ADRI respectively Disable Talker Bit DT must be set if recognition of the GPIB talk address formed from ADS through ADI ADR 4 0 w is not to be enabled Disable Listener Bit DL must be set if recognition of the GPIB Listen address formed from AD 5 1 is not to be enabled Address Bit
77. ed Remote configuration Parallel Poll function subset PP1 involves the dynamic assigning of the response line and sense to devices on the GPIB This is accomplished using Parallel Poll Enable PPE and Parallel Poll Disable PPD commands which are issued by the Active Controller The sequence for remotely configuring devices on the GPIB is as follows 1 Become Active Controller Send the GPIB UNL message to unaddress all GPIB Listeners Send the listen address of the first device to be configured Send the GPIB PPC message to all devices followed by the PPE message for that device SAC E Repeat from the second step UNL for each additional device The same procedure should be followed to disable polling with PPD for example when changing responses during reconfiguration Responding To a Parallel Poll Before the GPIB 1014P can be polled by the CIC the TLC must be configured either locally by your program at initialization time or remotely by the CIC Configuration involves the following e Enabling the TLC to participate in polls e Selecting the sense or polarity of the response e Selecting the GPIB data line on which the response will be asserted when the CIC issues the IDY message With remote configuration PP1 the TLC interprets the configuration commands received from the CIC without any software assistance or interpretation from your program With local configuration PP2 the three actions listed must be expli
78. ed to represent each bit Each bit is labeled with a name inside its rectangle An asterisk after the bit name indicates that the signal is active low An asterisk is equivalent to an overbar In many of the registers several bits are labeled with an X indicating don t care bits When a register is read these bits may appear set or cleared but should be ignored because they have no significance When a register is written to these bit locations should be cleared Terminology The terms set set true and set to one are synonymous The terms clear set false set to zero and clear to zero are synonymous The meanings of preset and reset are determined by the context in which they are used Bit signatures are written in uppercase letters The term addressed means the interface has been configured to perform a function from the GPIB side while the term programmed means that it has been configured from the VMEbus side This distinction is important to make because many functions such as making the interface a Talker or Listener can be activated from either side GPIB 1014P User Manual 4 2 National Instruments Corporation Section Four Register Bit Descriptions Where it is necessary to specify a particular bit of a register the bit position appears as a decimal number in square brackets after the mnemonic for example ISR1 1 indicates the DI bit of Interrupt Status Register 1 A minus sign is used to indicate logical negation
79. egister CDOR 4 7 Command Pass Through Register CPTR 4 25 to 4 26 COMMAND SEND CSEND sample program C 17 commands auxiliary command summary detailed description 4 30 to 4 34 table of 4 28 to 4 29 commands or command messages E 1 multiline GPIB commands table D 2 to D 3 4 25 to 4 26 configuration GPIB cable shield grounding 3 8 interrupt status ID vector selection 3 7 jumpers and switches 3 2 requirements E 6 Supervisor or Non privileged access 3 3 VMEbus base address 3 3 to 3 4 VMEbus interrupt 3 5 to 3 6 GPIB 1014P User Manual Index 2 National Instruments Corporation Index Controller function becoming controller in charge CIC and active controller 5 2 to 5 3 Controller In Charge CIC and System Controller E 2 going from active to idle 5 4 going from active to standby 5 3 going from standby to active 5 4 operation of E 1 to E 2 sending remote multiline messages commands 5 3 CPT 7 0 Command Pass Through Bits 7 through 0 4 25 to 4 26 CPT Command Pass Through Bit 4 8 to 4 9 CPT ENABLE Command Pass Through Enable Bit 4 41 CPT IE Command Pass Through Interrupt Enable Bit 4 8 to 4 9 CPTR See Command Pass Through Register CPTR D Data In Register DIR 4 6 data lines E 2 data or data messages E 1 DATA SEND DSEND sample program C 13 to C 14 data transfer features 2 5 DAV data valid signal E 3 DCL Device Clear command 4 26 DEC Device Clear Bit 4 11 DEC IE Dev
80. en mode 3 is used When the TLC is in Talker Primary Addressed State TPAS or Listener Primary Addressed State LPAS and a secondary address byte is on the GPIB DIO lines the APT bit of ISR2 is set and the secondary GPIB address may be inspected in the CPTR The TLC Acceptor Handshake is held up in the Accept Data State ACDS until the Valid or Non Valid auxiliary command is written to the AUXMR signaling a valid or invalid secondary address respectively to the TLC ADMO and ADMI must be cleared when either of the two programmable bits ton or lon is set National Instruments Corporation 4 25 GPIB 1014P User Manual Register Bit Descriptions Section Four Command Pass Through Register CPTR VMEbus Address Base Address B hex Attributes Read Only 7 6 5 4 3 2 1 0 R Bit Mnemonic Description 7 0r CPT 7 0 Command Pass Through Bits 7 through 0 These bits are used to transfer undefined multiline GPIB command messages from the GPIB DIO lines to the computer When the CPT feature is enabled CPT ENAB 1 AUXRB 0 w any GPIB Primary Command Group PCG message not decoded by the TLC is treated as an undefined command The multiline GPIB commands recognized by the uPD7210 are listed in Table 4 3 All GPIB Secondary Command Group SCG messages following an undefined GPIB PCG message are also treated as undefined In such a case when an undefined GPIB message is encountered it is held in the CPTR and the TLC Acceptor Handshake fun
81. ent Lines Five lines are used to manage the flow of information across the interface ATN attention The Controller drives ATN true when it uses the data lines to send commands and false when it allows a Talker to send data messages IFC interface clear The System Controller drives the IFC line to initialize the bus and become CIC REN remote enable The System Controller drives the REN line which is used to place devices in remote or local program mode SRQ service request Any device can drive the SRQ line to asynchronously request service from the Controller EOI end or identify The EOI line has two purposes The Talker uses the EOI line to mark the end of a message string The Controller uses the EOI line to tell devices to identify their response in a parallel poll Physical and Electrical Characteristics Devices are usually connected with a cable assembly consisting of a shielded 24 conductor cable with both a plug and receptacle connector at each end This design allows devices to be linked in either a linear or a star configuration or a combination of the two See Figures E 1 E 2 and E 3 The standard connector is the Amphenol or Cinch Series 57 Microribbon or Amp Champ type An adapter cable using a non standard cable and or connector is used for special interconnection applications National Instruments Corporation E 3 GPIB 1014P User Manual Multiline Interface Messages Appendix E The GPIB uses negative l
82. er Register ICR Table 4 2 shows the control and command codes used Bit Mnemonic Description 7 5w CNT 2 0 Control Code Bits 2 through 0 These bits specify the control code that is the manner in which the information in bits COM A 0 is to be used If CNT 2 0 are all zero then the special command selected by COM 4 0 is executed otherwise the hidden register selected by CNT 2 0 is loaded with the data from COM 4 0 GPIB 1014P User Manual 4 28 National Instruments Corporation Section Four Register Bit Descriptions Bit Mnemonic Description 4 0w COM 4 0 Command Code bits 4 through 0 These bits specify the command code of the special function if the control code is 000 Table 4 4 is a summary of the implemented special functions Table 4 5 explains the details of each special function If the control code is not 000 then these bits are written to one of the hidden registers indicated by the control code in CNT 2 0 Table 4 4 Auxiliary Command Summary Function Code COM4 COMO0 43210 Auxiliary Command eaves le eee borio o anna 00111 Non Valid Secondary Command or Address O 1 11 1 Valid Secondary Command or Address 0 1 Clear Paralle 1 Poll Flag 0 001 01 0 001 09 Set Paralle 1 Poll Flag 1 I Take Control Asynchronously Pulsed Take Control Synchronously Take Control Synchronously on End continues National Instruments Corporation 4 29 GPIB 1014P User Manual Register Description
83. er the bus signal indicates the signal is active low Table 2 1 GPIB 1014P Signals Driver Device Receiver Device Bus Signals Part Number Part Number D00 D07 F245 F245 AMSAMBAMOAMI TI e DSO WRITE IACK IACKIN LS240 SYSRESET SYSCLK continues National Instruments Corporation 2 1 GPIB 1014P User Manual General Description Section Two Table 2 1 GPIB 1014P Signals continued Driver Device Receiver Device Bus Signals Part Number Part Number DTACK IACKOUT AS DS1 WRITE ALS244 A03 through A01 ALS244 The GPIB transceivers meet the requirements of the IEEE 488 standard The components used are as follows ie e Transceivers Component Designation Data Transceivers 75160 Control Transceivers 75162 Note Current load is typically 0 5 A 1 A maximum VMEbus Characteristics The following paragraphs describe both modules on the GPIB 1014P slave and interrupter Table 2 3 later in this section summarizes the capabilities of these modules VMEbus Slave Addressing The GPIB 1014P occupies 16 bytes of consecutive memory addresses located in the A16 short Input Output I O space These addresses are used to access the GPIB Talker Listener Controller TLC As a VMEbus slave it only responds when the address modifier AM lines specify a short supervisory access AM code 2D or short non privileged access AM code 29 An onboard jumper allows selection of privileged or non privileged access to t
84. error messages The following steps will reproduce the problem GPIB 1014P Hardware and Software Configuration Form Record the settings and revisions of your hardware and software on the line to the right of each item Update this form each time you revise your software or hardware configuration and use this form as a reference for your current configuration National Instruments Products e NI 488M Software Version Number on Distribution Medium s National Instruments board installed GPIB 1014 GPIB 1014D GPIB 1014P or GPIB 1014DP e GPIB 1014 Revision e Hardware Settings Base I O Interrupt Request DMA Address Line Channel 1st GPIB 1014 2nd GPIB 1014 e Software Settings Base I O Interrupt Vector DMA Address Number Channel gpib0 gpibl Other Products e Application Programming Language Version e Computer Make and Model e Microprocessor e Clock Frequency e Type of Video Board Installed e Type of other boards installed and their respective hardware settings Base I O Interrupt DMA Board Type Address Level Channel Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products This information helps us provide quality products to meet your needs Title GPIB 1014P User Manual Edition Date June 1994 Part Number 370944A 01 Please comment on the completeness clarity and
85. ess Mode Register write Command Pass Thru Register read Auxiliary Mode Register write Address Register 0 read Address Register write Address Register 1 read End Of String Register write DEIER Appendix C C 2 National Instruments Corporation Appendix C DI DO ERR ENDRX CO DT1 DL1 NATN MODE1 TRM ICR PPR AUXRA AUXRB AUXRE IEPON FH SEOI GTS TCA TCS TCSE LTN LTNC LUN SIFC CIFC SREN CREN TCT UNL UNT SELO SEL1 MA SC National Instruments Corporation C 3 001 octal 002 004 020 010 0100 0 40 0100 001 060 040 0140 0200 0240 0300 000 003 006 020 021 022 032 023 033 034 036 026 037 027 011 077 0137 0200 011 Sample Programs ISR1 Bits Data in Data out Error END received ISR2 Bits Command out ADR Bits Disable Talker Disable Listener ADSR Bits Not ATN ADMR Bits Address Mode 1 GPIB 1014P functions for T R2 and T R3 AUXMR Hidden Registers Internal Counter Register Parallel Poll Register Auxiliary Register A Auxiliary Register B Auxiliary Register E AUXMR Commands Immediate execute power on Finish release handshake Send END Go to standby Take control asynchronously Take control synchronously Take control synchronously on END Listen Listen continuously Unlisten Set IFC Clear IFC Set REN Clear REN GPIB Comma
86. ess space required by the GPIB 1014P consists of one block of 16 consecutive byte addresses The GPIB 1014P responds only to AM codes that indicate short 16 bit addressing See Access Mode previously in this section The GPIB 1014P decodes the 12 most significant address bits A04 through A15 as the base address The Talker Listener Controller TLC internally decodes the Register Select signals which are address bits A01 through A03 National Instruments Corporation 3 3 GPIB 1014P User Manual Configuration and Installation Section Three Dual In line Package DIP switches U28 and U29 select the base address U29 selects address lines A8 through A15 and U28 selects address lines A4 through A7 Press the side labeled 0 to select a logical zero for the corresponding address bit Press the side labeled 1 to select a logical one Figure 3 3 shows the configuration for the base address default setting 1000 hex Key Bl the side you press down for Base Address 1000 hex E not involved in Base Address selection This side down for logic een e This side down for logic 0 This side down for logic Ex n This side down for logic 0 Figure 3 3 Configuration for VMEbus Base Address 1000 hex default setting GPIB 1014P User Manual 3 4 National Instruments Corporation Section Three Configuration and Installation VMEbus Interrupt Configuration The GPIB 1014P contains circuitry that permits it to request service by driving one of t
87. essage ist is one or zero Thus each device on the GPIB can be configured to drive its assigned DIO line true if ist 1 and to drive the DIO line false if ist 0 or it can be configured to do exactly the opposite that is to drive the DIO line true if ist 0 and false if ist 1 The meaning of the value of ist whether one or zero is system dependent or device dependent Because the data lines are driven Open Collector during Parallel Polls more than one device can respond on each line The device or devices asserting the line true overrides any device asserting the line false The Controller must know in advance whether a true response means the local ist message of the device is one or zero To do this the device must be configured to respond in the desired way Two methods can be used to accomplish this e Local configuration Parallel Poll function subset PP2 involves assigning a response line and sense from the device side in a manner similar to assigning the device GPIB address Thus one device might be assigned to respond with remote message PPRI driving DIO1 while a GPIB 1014P User Manual 5 10 National Instruments Corporation Section Five Programming Considerations second device might be assigned to respond with the remote message PPR3 driving DIO3 both positive that is true response if ist 1 Local configuration is static in that it does not change after the system is integrated that is hardware configured and install
88. est system control rsc and set Interface Clear IFC to the value of COM3 These commands should only be issued if the GPIB 1014P is the System Controller SC In order to meet the IEEE 488 requirements you must not issue the Clear IFC command until IFC has been held true for at least 100 usec Set REN Clear REN These commands generate the local message rsc and set REN to the value in COM3 These commands should only be issued if the GPIB 1014P is the System Controller SC In order to meet IEEE 488 requirements you must not issue the Set REN command until REN has been held false for at least 100 usec Disable System Control The Disable System Control command clears the local message rsc National Instruments Corporation 4 35 GPIB 1014P User Manual Register Descriptions Section Four Hidden Registers The hidden registers are loaded through the Auxiliary Mode Register AUXMR AUXMR 7 5 is loaded with the hidden register number and AUXMR 4 0 is loaded with the data to be transferred to the hidden register The hidden registers cannot be read and in some cases the contents can only be set that is they can be cleared or reset to initialized conditions only by issuing the Chip Reset auxiliary command or by a pon Figure 4 2 earlier in this section shows the five hidden registers and illustrates how they are loaded with data from the AUXMR Internal Counter Register ICR VMEbus Address Base Address B hex AUXMR C
89. f eight bits labeled VO through V7 as shown in Figure 3 6 Bit V7 corresponds to the most significant bit while VO corresponds to the least significant Press the side labeled 0 to select a logical zero for the corresponding address bit Press the side labeled 1 to select a logical one Figure 3 6 shows the configuration for a status ID byte value 1A hex Key B the side you press down for Status ID Byte 1A hex This side down for logic F7 This side down for logic 0 MN MN L MN EN EN C mH EN C NH Figure 3 6 Status ID Byte 1A hex National Instruments Corporation 3 7 GPIB 1014P User Manual Configuration and Installation Section Three GPIB Cable Shield Grounding The GPIB cable shield connects to the chassis ground through the metal front panel on the GPIB 1014P The cable shield can also be connected to the system logic ground if desired Usually the GPIB cable shield is grounded only at the GPIB System Controller Set hardware jumper WI to the side labeled CON to short or connect the GPIB cable shield to VMEbus digital logic ground Place the jumper on the side labeled ISO to leave the GPIB cable shield isolated Select one configuration depending on whether or not the GPIB 1014P is the GPIB System Controller and whether or not the GPIB cable shield is grounded elsewhere Figure 3 7 shows the two possible configurations The GPIB 1014P is shipped in the isolated or unconnected configuration SHLD SHLD CO
90. formation SPMR 7 0 to the Controller In Charge after the Controller goes to Standby and becomes an active Listener 6r PEND Pending Bit PEND is set when rsv 1 and cleared when Negative Poll Response States NPRS amp Request Service rsv 1 Reading the PEND status bit can confirm that a request was accepted and that the Status Byte STB was transmitted PEND 0 DW TSV Request Service Bit The rsv bit is used for generating the GPIB local request service message When rsv is set and the GPIB Active Controller is not serially polling the TLC the TLC enters the Service Request State SRQS and asserts the GPIB SRQ signal When the Active Controller reads the STB during the poll the TLC clears rsv at the Affirmative Poll Response State APRS The rsv bit is also cleared by power on reset LMR CFG2 1 w and by issuing the Chip Reset auxiliary command GPIB 1014P User Manual 4 20 National Instruments Corporation Section Four Register Bit Descriptions Address Status Register ADSR VMEbus Address Attributes Base Address 9 hex Read Only The ADSR contains information that can be used to monitor the TLC GPIB address status Bit Tr 6r 5r 4r Mnemonic CIC ATN SPMS LPAS Description Controller In Charge Bit CIC CIDS CADS CIC indicates that the TLC GPIB Controller function is in an active or standby state with ATN on or off respectively The Controller function is in
91. gister GPIB 1014P User Manual Sample Programs 68000 Code CMD movb TCA AUXMR L movl movw bsr rts GPIB 1014P User Manual Appendix C ok RK KR KK KKK ok ok KK kk COMMAND CMD ok ok KK KK k k k k k KKK Summary Send GPIB interface or command messages Assumptions on entry The GPIB 1014P is Controller In Charge The commands to be sent are in cmdbuf The variable cmdct contains the number of commands to be sent which must be less than 256 Interruption of any data transfer in progress is acceptable Actions Issue TCA command to assert ATN in case the GPIB 1014P is at standby Load the dO register with the address of cmdbuf Load a0 with the number of commands Call CSEND to transmit the bytes Status on return GPIB 1014P is Active Controller GPIB devices are programmed as implied by command bytes Comments Take control in case at standby cmdbuf a0 Set up registers for CSEND call cmdct d0 CSEND C 18 National Instruments Corporation Appendix C 68000 Code Sample Programs PASS CONTROL PASSC Summary Passes GPIB Controller In Charge status to another device Assumptions on entry The GPIB 1014P is Controller In Charge The primary GPIB address of the new controller is placed in tctadr Actions Send TCA command to take control in case the GPIB 1014P is at standby Set up the command buffer and command count Call CMD to send the command
92. gure IEEE 488 capability code PP1 do not write to the PPR The TLC implements remote configuration fully and automatically without software assistance The hardware recognizes interprets and responds to Parallel Poll Configure PPC Parallel Poll Enable PPE Parallel Poll Disable PPD and Identify IDY messages The user need only set or clear the individual status ist message using Set Clear Parallel Poll Flag auxiliary commands according to pre established system protocol convention Writing to the PPR after it is remotely configured will corrupt the configuration When using the local PPC capability code PP2 a valid PPE or PPD message should be written to the PPR in advance of the poll Bit Mnemonic Description 4w U Parallel Poll Unconfigure Bit The U bit determines whether or not the TLC participates in a Parallel Poll If U 0 the TLC participates in Parallel Polls and responds in the manner defined by PPR 3 through PPR 0 and by ist If U 1 the TLC does not participate in a Parallel Poll The U bit is equivalent to the local message lpe local poll enable active low When U 0 S and P3 1 mean the same as the bit of the same name in the PPE message and the I O write operation to the PPR is the same as the receipt of the PPE message from the GPIB Controller When U 1 S and P3 1 do not carry any meaning but they must be cleared National Instruments Corporation 4 37 GPIB 1014P User Manual Register Description
93. hat it is safe to write a byte to the CDOR The DO bit is set again once the byte has been received by all GPIB Listeners To receive data wait until the GPIB 1014P has been programmed or addressed to listen and the DIR is full When this occurs the DI bit in the ISRI is set indicating that the GPIB Talker has written a byte to the DIR Once that byte has been read the DI bit will be set again when a new byte is received from the GPIB Talker Determining when the CDOR is empty or the DIR is full can be done by polling the ISR1 until the DO or DI status first appears or by allowing a program interrupt to occur on the respective event Remember however that the status bits and interrupt signals are cleared when the ISRI is read so the absence of a true DO or DI status does not indicate that the CDOR is still full or that the DIR is still empty National Instruments Corporation 5 7 GPIB 1014P User Manual Programming Considerations Section Five Sending Receiving END or EOS The GPIB END message is sent by issuing the Send EOI auxiliary command just before writing the last data byte to the CDOR The GPIB EOS message is sent simply by making the last byte written to the CDOR the End Of String EOS code The END status bit or interrupt is used to inform the program of the receipt of an END or EOS message Interrupts The interrupt circuitry of the GPIB 1014P allows the board to interrupt the CPU to request service Prior to use the fol
94. he SC signal from the System Controller Select logic control signal direction of these two transceivers Controlling the direction of the data handshake and EOI signals T RI is high when the TLC is a Talker or Active Controller and low when it is a Listener Controlling the direction of the ATN and SRQ signals T R2 is high when the TLC is Controller In Charge CIC and low otherwise T R3 is high when the three state driver mode is active and low when the open collector mode is active When the GPIB 1014P is parallel polled the transceiver switches to open collector mode SC is set whenever the System Controller Select logic senses that the TLC has received the Set IFC auxiliary command SC is cleared when the TLC receives the Release System Control auxiliary command SC controls the direction of the IFC and REN signals driving the GPIB when SC is high and receiving from the GPIB when it is low National Instruments Corporation 6 5 GPIB 1014P User Manual Theory of Operation Section Six Test and Troubleshooting The GPIB 1014P is designed to aid acceptance testing and troubleshooting of either hardware failures or software bugs The hardware provides several features that enable stand alone testing The NDAC and DIO1 bits can be used to determine if the output signals of the TLC the 75160A and the 75162A are functioning properly Since most failures including problems with short or open circuits on the PWB prevent the TLC from working
95. he VMEbus interrupt request lines The GPIB 1014P responds to an interrupt acknowledge cycle of correct priority by providing an 8 bit vector status byte that is used to locate the appropriate interrupt service routine The following paragraphs explain the actions that must be performed to configure the interrupt request line the interrupt priority and the status ID byte or interrupt vector Interrupt Request Line Selection The VMEbus provides seven interrupt request lines IRQ1 to IRQ7 The GPIB 1014P can be configured to drive any one of these seven lines The jumper shown in Figure 3 4 is used to connect the interrupt request from the GPIB 1014P to one of the VMEbus interrupt request lines The jumper is placed on the pins that correspond to the desired interrupt request line Note The interrupt priority code must be set to correspond to the interrupt request line Figure 3 4a shows the jumper configured to select interrupt request line IRQ2 while Figure 3 4b shows the configuration for selecting IRQ4 The default setting for the GPIB 1014P is IRQ2 1 RQ 7 1 RQ 7 a Select Interrupt Request Line Configured b Select Interrupt Request Line Configurec to IRQ2 to IRQ4 Default setting Figure 3 4 VMEbus Interrupt Line Selection Note An asterisk implies that the signal is active low Interrupt Priority Code The interrupt priority code is used to identify an interru
96. he board The board responds to 16 bit addresses It compares address lines A04 through A15 with its hardware programmable base address see Base Address in Section Three to generate its board select signal The Talker Listener Controller TLC decodes the remaining address lines AO1 through A03 and the data strobe DSO into eight memory mapped interface register addresses The GPIB TLC uPD7210 interface registers are addressed relative to the base address of the board as shown in Table 2 2 GPIB 1014P User Manual 2 2 National Instruments Corporation Section Two General Description Table 2 2 uPD7210 Internal GPIB Interface Registers Address Base Hex Offset Register Data In DIR Control Data Out CDOR Interrupt Status 1 ISR1 Interrupt Mask 1 IMR Interrupt Status 2 ISR2 Interrupt Mask 2 IMR2 Serial Poll Status SPSR Serial Poll Mode SPMR Address Status ADSR Address Mode ADMR Command Pass Through CPTR Auxiliary Mode AUXMR Address 0 ADRO Address ADR Address 1 ADRI R W R W R W R W R W R W R W R W End of String EOSR VMEbus Slave Data As discussed previously the GPIB 1014P can function as a VMEbus slave decoding memory addresses and commands from a VMEbus master It is designed to accommodate address pipelining as well as Address Only ADO cycles All data is transferred to and from the VMEbus with lines DOO through D07 In VMEbus terminology the slave module of the
97. he switching center Controller monitors the communications network GPIB When the center Controller notices that a party device wants to make a call send a data message it connects the caller Talker to the receiver Listener The Controller addresses a Talker and a Listener before the Talker can send its message to the Listener After the message is transmitted the Controller may unaddress both devices National Instruments Corporation EI GPIB 1014P User Manual Multiline Interface Messages Appendix E Some bus configurations do not require a Controller For example one device may always be a Talker called a Talk only device and there may be one or more Listen only devices A Controller is necessary when the active or addressed Talker or Listener must be changed The Controller function is usually handled by a computer With the GPIB interface board and its software your personal computer plays all three roles e Controller to manage the GPIB e Talker to send data e Listener to receive data The Controller In Charge and System Controller Although there can be multiple Controllers on the GPIB only one Controller at a time is active or Controller In Charge CIC Active control can be passed from the current CIC to an idle Controller Only one device on the bus the System Controller can make itself the CIC The GPIB interface board is usually the System Controller GPIB Signals and Lines The interface system
98. hen the D input is low The signal AS 25 clocks the result of the decoding circuitry AS 25 is the address strobe signal delayed 25 nsec The delay assures that the decoding has been completed and the result is valid The clocked output signal is labeled MCYC If MCYC is false the GPIB 1014P is prevented from taking any action until a new address cycle begins If MCYC is true the GPIB 1014P is able to respond if DSO goes low DS1 is not monitored for the purpose of distinguishing 16 bit transfers from 8 bit transfers so the GPIB 1014P responds to BYTE 0 1 or BYTE 2 3 accesses The upper byte is not used during a write cycle and returns a hex value of FF during a read cycle When the master releases AS MCYC is cleared and the GPIB 1014P is ready for a new data transfer cycle GPIB 1014P User Manual 6 2 National Instruments Corporation Section Six Theory of Operation Clock and Reset Circuitry An LS240 receives the 16 MHz utility SYSCLK provided on the VMEbus The Read Write State Machine uses the 16 MHz clock to control the timing of the signal DTACK and the TLC inputs RD and WR see Timing Control Logic This clock is divided to 8 MHz for the CLOCK signal used by the TLC The VMEbus signal SYSRESET initializes the TLC the interrupter and the timing control circuitry Timing Control Logic When the GPIB 1014P is addressed see Address Decoding in this section AS 25 clocks the local signal MCYC true If another module is as
99. hidden registers 4 5 Internal Counter Register ICR 4 35 interrupt configuration VMEbus interrupt priority code 3 5 to 3 6 interrupt request line selection 3 5 overview 3 5 Interrupt Mask Register 1 IMR1 4 8 to 4 13 interrupt status ID vector selection configuring 3 7 Interrupt Status Register 1 ISR1 4 8 to 4 13 Interrupt Status Register 2 ISR2 4 14 to 4 18 interrupter definition 2 9 description of 2 4 interrupter logic 6 3 to 6 4 programming considerations 5 7 to 5 8 INV Invert Bit 4 40 ISRI See Interrupt Status Register 1 ISR1 ISR2 See Interrupt Status Register 2 ISR2 ISS Individual Status Select Bit 4 40 J jumpers and switches GPIB cable shield grounding 3 8 interrupt status ID vector selection 3 7 parts locator diagram 3 2 for Supervisor or Non privileged access 3 3 VMEbus base address 3 4 VMEbus interrupt configuration 3 5 to 3 6 VMEbus interrupt line selection 3 5 VMEbus interrupt priority code selection 3 6 GPIB 1014P User Manual Index 6 National Instruments Corporation Index L LA Listener Active Bit 4 21 lines See signals and lines Listen command codes for 4 29 description 4 33 Listen in Continuous Mode command codes for 4 29 description 4 33 LLO Local Lockout command 4 26 Local Unlisten command codes for 4 29 description 4 33 LOK Lockout Bit 4 16 LOKC Lockout Change Bit 4 17 LOKC IE Lockout Change Interrupt Enable Bit 4 17 lon Liston On
100. hieved by passing messages through the interface system Types of Messages The GPIB carries device dependent messages and interface messages e Device dependent messages often called data or data messages contain device specific information such as programming instructions measurement results machine status and data files e Interface messages manage the bus itself They are usually called commands or command messages Interface messages perform such tasks as initializing the bus addressing and unaddressing devices and setting device modes for remote or local programming The term command as used here should not be confused with some device instructions which can also be called commands Such device specific instructions are actually data messages Talkers Listeners and Controllers A Talker sends data messages to one or more Listeners The Controller manages the flow of information on the GPIB by sending commands to all devices Devices can be Listeners Talkers and or Controllers A digital voltmeter for example is a Talker and may be a Listener as well The GPIB is a bus like an ordinary computer bus except that the computer has its circuit cards interconnected via a backplane bus whereas the GPIB has standalone devices interconnected via a cable bus The role of the GPIB Controller can also be compared to the role of the CPU of a computer but a better analogy is to the switching center of a city telephone system T
101. ice Clear Interrupt Enable Bit 4 11 DET Device Execute Trigger Bit 4 10 DET IE Device Execute Trigger Interrupt Enable Bit 4 10 DHDC DAC Holdoff on DCAS Bit 4 42 DHDT DAC Holdoff on DTAS Bit 4 42 DI Data In Bit 4 12 to 4 13 DI IE Data In Interrupt Enable Bit 4 12 to 4 13 DIR See Data In Register DIR DIR 7 0 Data In Bits 7 through 0 4 6 Disable System Control command codes for 4 29 description 4 34 DL Disable Listener Bit 4 44 DLO Disable Listener 0 Bit 4 43 DLI Disable Listener 1 Bit 4 45 DMAI DMA Input Enable Bit 4 16 DMAO DMA Out Enable Bit 4 16 DO Data Out Bit 4 12 DO IE Data Out Interrupt Enable Bit 4 12 documentation for GPIB 1014P E 7 vi don t care bits definition 4 2 DT Disable Talker Bit 4 44 DTO Disable Talker 0 Bit 4 43 DTI Disable Talker 1 Bit 4 45 National Instruments Corporation Index 3 GPIB 1014P User Manual Index E electrical characteristics See physical and electrical characteristics END IE End Received Interrupt Enable Bit 4 10 to 4 11 End of String Register EOSR 4 46 END or EOS sending receiving 5 7 END RX End Received Bit 4 10 to 4 11 EOI End or Identify Bit 4 45 EOI end or identify line E 3 EOS7 EOSO End of String Bits 7 through 0 4 46 EOSR See End of String Register EOSR ERR Error Bit 4 11 to 4 12 ERR IE Error Interrupt Enable Bit 4 11 to 4 12 Execute Parallel Poll command codes for 4 29 description 4 34
102. ided herein does not cover damages defects malfunctions or service failures caused by owner s failure to follow the National Instruments installation operation or maintenance instructions owner s modification of the product owner s abuse misuse or negligent acts and power failure or surges fire flood accident actions of third parties or other events outside reasonable control Copyright Under the copyright laws this publication may not be reproduced or transmitted in any form electronic or mechanical including photocopying recording storing in an information retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation Trademarks Product and company names listed are trademarks or trade names of their respective companies WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS National Instruments products are not designed with components and testing intended to ensure a level of reliability suitable for use in treatment and diagnosis of humans Applications of National Instruments products involving medical or clinical treatment can create a potential for accidental injury caused by product failure or by errors on the part of the user or application designer Any use or application of National Instruments products for or involving medical or clinical treatment must be performed by properly trained and qualified medical personnel and all traditi
103. inor Bit The MJMN bit is used to determine whether the information in the other ADSR bits applies to the TLC major or minor Talker Listener function MJMN is set to 1 when the TLC GPIB minor Talk address or minor Listen address is received MJMN is cleared on receipt of the TLC major Talk or major Listen address Note Only one Talker Listener can be active at any one time Thus the MJMN bit indicates which if either of the TLC Talker Listener functions is addressed or active MJMN is always zero unless a dual primary addressing mode Mode 1 or Mode 3 is enabled see Address Mode Register later in this section 4 22 National Instruments Corporation Section Four Register Bit Descriptions Address Mode Register ADMR VMEbus Address Attributes Bit Tw 6w 5 4w 7 6 5 4 3 2 1 0 W Mnemonic ton lon TRMI1 0 Base Address 9 hex Write Only Description Talk Only Bit Setting ton programs the TLC to be a GPIB Talker If ton is set the lon ADMI and ADMO bits must be cleared This method must be used in place of the addressing method when the TLC will be only a Talker Note Clearing ton does not by itself take the TLC out of GPIB Talker Active state TACS It is also necessary to execute the Chip Reset or Immediate Execute pon auxiliary command Listen Only Bit Setting lon programs the TLC to be a GPIB Listener If lon is set ton ADMI and ADMO should be cleared Note Clearing lo
104. it indicates that the TLC as a GPIB Listener has accepted a data byte from the GPIB Talker 4 14 National Instruments Corporation Section Four Register Bit Descriptions Interrupt Status Register 2 ISR2 VMEbus Address Base Address 5 hex Attributes Read Only Bits are cleared when read Interrupt Mask Register 2 IMR2 VMEbus Address Base Address 5 hex Attributes Write Only 7 6 5 4 3 2 1 0 R 0 Skate DMAO DMA GONE LOKCIE REMC IE ADSCIE W ISR2 consists of six interrupt status bits and two TLC internal status bits IMR2 consists of five interrupt enable bits and two TLC internal control bits If the Interrupt Enable bit is true when the corresponding status condition or event occurs a hardware interrupt request is generated Bits in ISR2 are set and cleared regardless of the status of the bits in IMR2 If a condition occurs which requires the TLC to set or clear a bit or bits in ISR2 at the same time ISR2 is being read the TLC holds off setting or clearing the bit or bits until the read is finished Bit Mnemonic Description Tr INT Interrupt Bit This bit is the logical OR of all the enabled interrupt status bits in both ISRI and ISR2 each one ANDed with its interrupt enable bit refer below There is no corresponding mask bit for INT If the INT 1 the INT output pin of the TLC signal GPIB IR is asserted Note Program the INT output pin of the TLC to be active high see description of AU
105. l Poll Register PPR PPU Parallel Poll Unconfigure command 4 26 programming Controller function becoming controller in charge CIC and active controller 5 2 to 5 3 going from active to idle 5 4 going from active to standby 5 3 going from standby to active 5 4 sending remote multiline messages commands 5 3 initialization 5 1 to 5 2 interrupts 5 7 to 5 8 parallel polls 5 9 to 5 10 sample programs 68000 code C 2 to C 4 COMMAND SEND CSEND C 17 DATA SEND DSEND C 13 to C 14 INITIALIZE INIT C 5 to C 6 INTERFACE CLEAR IFC C 7 overview C 1 PASS CONTROL PASSC C 19 READ C 11 to C 12 RECEIVE RCV C 9 to C 10 REMOTE ENABLE REN C 8 WRITE C 15 to C 16 sending receiving messages 5 7 serial polls 5 8 Talker and Listener addressed implementation 5 5 to 5 7 overview 5 5 programmed implementation 5 5 GPIB 1014P User Manual Index amp National Instruments Corporation R READ sample program C 11 to C 12 RECEIVE RCV sample program C 9 to C 10 registers format for description of 4 2 GPIB TLC interface registers chart 2 3 interface registers Address Mode Register ADMR 4 22 to 4 24 Address Status Register ADSR 4 20 to 4 21 Auxiliary Mode Register AUXMR 4 27 to 4 34 Command Data Out Register CDOR 4 7 Command Pass Through Register CPTR 4 25 to 4 26 Data In Register DIR 4 6 hidden registers 4 34 to 4 46 Interrupt Mask Register 1 IMR1 4 8 to 4 13 Interrupt Status Register 1 ISR
106. lker Listener Controller GPIB Adapter TLC Chip Reset TLC Write Talker Only Bit Talker Only Talker Primary Addressed State Bit Talker Primary Addressed State Talker Primary Idle State Three State Timing Bit Transmit Receive Mode Bits 1 through 0 Unconfigure Bit Unaligned Transfer Universal Command Group Unlisten command Untalk command Write Transmit End with End Of String Bit F 8 National Instruments Corporation Appendix G Customer Communication For your convenience this appendix contains forms to help you gather the information necessary to help us solve technical problems you might have as well as a form you can use to comment on the product documentation Filling out a copy of the Technical Support Form before contacting National Instruments helps us help you better and faster National Instruments provides comprehensive technical assistance around the world In the U S and Canada applications engineers are available Monday through Friday from 8 00 a m to 6 00 p m central time In other countries contact the nearest branch office You may fax questions to us at any time Corporate Headquarters 512 795 8248 Technical support fax 800 328 2203 512 794 5678 Branch Offices Phone Number Australia 03 879 9422 Austria 0662 435986 Belgium 02 757 00 20 Denmark 45 76 26 00 Finland 90 527 2321 France 1 48 14 24 00 Germany 089 741 31 30 Italy 02 48301892 Japan 03 3788 1921 Mexico 95 800
107. lowing three characteristics of the interrupter must be set see Interrupt Request Line Selection in Section Three for details e The interrupt request IRQ line is selected via a hardware jumper e The interrupt priority is determined by three switches The encoded value of the switches must match the interrupt request line e A Status ID byte is set by an 8 switch DIP This byte is used by the operating system to determine the appropriate interrupt handler The uPD7210 TLC is the only source of interrupts on the GPIB 1014P The TLC generates interrupts on any of the 13 conditions specified by the ISRI and ISR2 bits For one of these conditions to drive the selected IRQ line the following criteria must be satisfied The interrupt condition must be true e The interrupt condition must be enabled bits in IMR1 and IMR2 e The uPD7210 interrupt signal must be programmed to be active high see Auxiliary Register B in Section Four After an interrupt is generated the operating system will ask the interrupting source for a Status ID byte so that it can branch to the appropriate interrupt handler The status of the TLC interrupt is then found by reading the appropriate TLC status registers The status bits in ISR1 or ISR2 are all automatically cleared when the register is read even if the conditions are still true If two conditions are true at the same time that is more than one bit in ISRI or ISR2 is set software copy of the registe
108. ltn in the form of a pulse and places the TLC in continuous mode In continuous mode the local message rdy is issued when the Acceptor Not Ready State ANRS is initiated unless data block transfer end is detected END RX bit equals one When END is detected the TLC is placed in the RFD Holdoff state preventing generation of the rdy message In continuous mode the DI bit is not set when a data byte is received The continuous mode caused by the Listen in Continuous Mode command is released when the Listen auxiliary command is issued or the TLC enters the Listener Idle State LIDS Local Unlisten The Local Unlisten command generates the local message lun in the form of a pulse continues GPIB 1014P User Manual 4 34 National Instruments Corporation Section Four Register Descriptions Table 4 5 Auxiliary Commands Detailed Description continued Command Code COM4 COM0 43210 Description Execute Parallel Poll The Execute Parallel Poll command sets the local message Request Parallel Poll rpp The rpp message is cleared when the TLC enters either Controller Parallel Poll State CPPS or Controller Idle State CIDS The transition of the TLC interface function is not guaranteed if the local messages rpp and Go To Standby gts are issued simultaneously when the TLC is in Controller Active State CACS and Source Transfer State STRS or Source Delay State Clear IFC These commands generate the local message requ
109. ly Bit 4 22 LPAS Listener Primary Addressed State Bit 4 20 M messages types of E 1 uPD7210 interface registers chart 4 4 MJMN Major Minor Bit 4 21 MLA My Listen Address command 4 26 mnemonics for registers alphabetical list with definitions F 1 to F 8 clues to understanding 4 3 MSA PPD My Secondary Address or Parallel Poll Disable command 4 26 MSA PPE My Secondary Address or Parallel Poll Enable command 4 26 MTA My Talk Address command 4 26 multiline GPIB commands table D 2 to D 3 4 25 to 4 26 N NDAC not data accepted signal E 2 Non Valid Secondary Command or Address command codes for 4 28 description 4 32 NRED not ready for data signal E 2 O operating environment A 1 optional equipment for GPIB 1014P 1 3 National Instruments Corporation Index 7 GPIB 1014P User Manual Index P P 3 1 Parallel Poll Response Bits 3 through 1 4 37 Parallel Poll Register PPR 4 36 to 4 37 parallel polls conducting 5 9 to 5 10 overview 5 9 responding to 5 10 parts list and schematic diagrams B 1 to B 8 PASS CONTROL PASSC sample program C 19 PEND Pending Bit 4 19 physical and electrical characteristics A 1 2 1 description of E 3 GPIB connector and signal assignment illustration E 4 linear configuration illustration E 5 star configuration illustration E 5 pin assignments See signals power requirement A 1 PPC Parallel Poll Configure command 4 25 PPR See Paralle
110. m is provided in Section Two see Figure 2 4 Signal names in the following discussion are referenced in terms of logic value true or false and asserted or not asserted and also in terms of logic level TTL high or low Both positive and negative logic symbols are used in the schematic diagram The terms clear negate unassert reset and set false are synonymous as are set assert and set true Since in the circuit implementation some positive true signals are derived from the inverted output of flip flops these terms are not synonymous with the device signals CLR clear and PR preset VMEbus Interface Low power Schottky Transistor Transistor Logic LSTTL Advance Low power Schottky Transistor Transistor Logic ALSTTL or Fast Transistor Transistor Logic FTTL logic devices buffer address data control and status signals to or from the VMEbus All drivers drive the proper amount of current as required by the VMEbus specification and all receivers meet the bus loading limits as called out by the VMEbus specification Data Lines An F245 octal bus transceiver connects VMEbus data lines D00 through D07 to the GPIB 1014P During interrupter Status ID cycles or read cycles to the GPIB 1014P the F245 is directed to allow the GPIB 1014P to drive the data bus During write cycles the direction of the F245 is reversed to allow the Talker Listener Controller TLC registers to receive data from the VME data bus The F245 transceiver i
111. mask registers for enabling and disabling the interrupt from the TLC on the occurrence of 13 specific GPIB conditions or events The status of these conditions can be read from the ISRI and ISR2 registers The status bits in these registers function independently of the corresponding mask bits that is they are set and cleared regardless of whether an interrupt request is enabled for the condition An important fact to remember is that ISRI and ISR2 are always cleared when read even if the condition which caused the bit to be initially set remains true Data to and from the GPIB is pipelined through the CDOR and DIR respectively An 8 MHz clock is used as the CLOCK input to the TLC For proper GPIB timing the internal counter register must be programmed to eight The TLC RESET pin is driven by the GPIB 1014 RESET signal The AUXMR is used to issue special commands to the TLC and write to the five hidden registers The Parallel Poll Register PPR locally configures the TLC for polling Auxiliary Registers A B and E AUXRA B E provide a means to control a variety of diverse functions such as enabling handshake holdoffs transmitting END when the EOS byte is sent setting the END RX bit when EOS is received and enabling high speed transfers Two special purpose transceivers a 75160 for the data signals and a 75162 for the handshake and interface management signals interface the TLC to the GPIB Three signals from the TLC T R1 through T R3 and t
112. ment under the FCC Rules If necessary consult National Instruments or an experienced radio television technician for additional suggestions The following booklet prepared by the FCC may also be helpful How to Identify and Resolve Radio TV Interference Problems This booklet is available from the U S Government Printing Office Washington DC 20402 Stock Number 004 000 00345 4 Preface The GPIB 1014P is a single height circuit board which interfaces the VMEbus to the IEEE 488 General Purpose Interface Bus GPIB The GPIB 1014P provides a means to implement VMEbus test and measurement systems with standard interconnecting cables Organization of the Manual This manual describes the mechanical and electrical aspects of the GPIB 1014P and contains information concerning its operation and programming The manual is divided into the following sections Section One General Information describes the GPIB 1014P lists the contents of your GPIB 1014P kit and explains how to unpack the GPIB 1014P kit Section Two General Description contains the physical and electrical specifications for the GPIB 1014P and describes the characteristics of key interface board components Section Three Configuration and Installation describes the steps needed to configure the GPIB 1014P hardware and to verify that it is functioning properly Section Four Register Bit Descriptions contains detailed descriptions of the GPIB Interface registers of the
113. n contains forms you can use to request help from National Instruments or to comment on our products and manuals e The ndex contains an alphabetical list of key terms and topics in this manual including the page where you can find each one Abbreviations Used in This Manual The following abbreviations are used in the text of this manual A C hex in kbytes Mbytes MHz usec nsec sec VDC GPIB 1014P User Manual ampere Celsius degree hexadecimal inch 1000 bytes meter million bytes millimeter megahertz microsecond nanosecond second volt volts direct current vi National Instruments Corporation Preface Related Documents The following manuals provide information that may be helpful as you read this manual ANSI IEEE Std 488 1978 IEEE Standard Digital Interface for Programmable Instrumentation ANSI IEEE Std 1014 1987 IEEE Standard for a Versatile Backplane Bus VMEbus uPD7210 GPIB IFC User Manual UPD7210 Intelligent GPIB Interface Controller Engineering Data Sheet How to Interface a Microcomputer System to a GPIB amp The NEC uPD7210 TLC Customer Communication National Instruments wants to receive your comments on our products and manuals We are interested in the applications you develop with our products and we want to help if you have problems with them To make it easy for you to contact us this manual contains comment and configuration forms for you to complete These forms a
114. n does not by itself take the TLC out of Listener Active state LACS It is also necessary to execute the Chip Reset or Immediate Execute pon auxiliary command Transmit Receive Mode Bits 1 through 0 TRMI and TRMO control the function of the TLC T R2 and T R3 output pins in the following manner TRMI TRMO T R2 T R3 0 0 EOI OE TRIG 0 1 CIC TRIG 1 U CIC EOI OE 1 1 CIC PE National Instruments Corporation 4 23 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic 3 2w 0 1 Ow ADM I 0 GPIB 1014P User Manual Section Four Description Key EOI OE GPIB EOI signal output enable CIC Controller In Charge TRIG Trigger PE Pull up Enable For proper operation set both TRM1 and TRMO which selects T R2 CIC and T R3 PE Reserved Bits Write zeros to these bits Address Mode Bits 1 through 0 These bits state the addressing mode currently in effect that is the manner in which the information in ADRO and ADRI is interpreted see Address Register 0 and Address Register 1 later in this section If both bits are zero then the TLC does not respond to GPIB address commands Instead the ton and lon bits are used to program the Talker and Listener functions respectively The ton and lon bits must be cleared if mode 1 2 or 3 addressing is selected and the AMD 1 0 bits must be cleared if either of the bits ton or lon are set Mode ADMI ADMO Title 0 0 0 ton lon 1 0 1 Normal dual addressing 2 1 0 Exte
115. n reset Read ISR1 Bitis cleared immediately after it is read The APT bit indicates that a secondary GPIB address has been received and is available in the CPTR for inspection Note The application program must check this bit when using TLC address mode 3 When APT is set the DAC message is held and the GPIB handshake stops until either the Valid or Non Valid auxiliary command is issued The secondary address can be read from the CPTR Device Execute Trigger Bit Device Execute Trigger Interrupt Enable Bit DET is set by DTAS DET is cleared by pon Read ISR1 Notes DTAS GPIB Device Trigger Active State pon power on reset Read ISR1 Bit is cleared immediately after it is read The DET bit indicates that the GPIB Device Execute Trigger DET command has been received while the TLC was a GPIB Listener the TLC has been in DTAS End Received Bit End Received Interrupt Enable Bit END RX is set by LACS amp EOI EOS amp REOS amp ACDS END RX is cleared by pon Read ISR1 National Instruments Corporation 4 11 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic 3r DEC 3w DEC IE 2r ERR 2w ERR IE GPIB 1014P User Manual Section Four Description Notes LACS GPIB Listener Active State EOI GPIB End Or Identify Signal EOS GPIB End Of String message REOS Reception Of GPIB EOS allowed AUXRA 2 w ACDS GPIB Accept Data State pon power on reset Read ISR1 Bitis cle
116. n terms of the IEEE 488 standard codes Table 2 3 GPIB 1014P IEEE 488 Interface Capabilities Complete Source Handshake capability Complete Acceptor Handshake capability DAC and RFD Holdoff on certain events Complete Talker capability Basic Talker Serial Poll Talk Only mode Unaddressed on MLA Send END or EOS Dual primary addressing Complete Listener capability Basic Listener Listen Only mode Unaddressed on MTA Detect END or EOS Dual extended addressing with software assist Complete Extended Listener capability Basic Listener Listen Only mode Unaddressed on MSA TPAS Detect END or EOS Dual extended addressing with software assist TES Complete Extended Talker capability Basic Extended Talker Serial Poll Talk Only mode Unaddressed on MSA LPAS Send END or EOS Dual primary addressing continues GPIB 1014P User Manual 2 10 National Instruments Corporation Section Two General Description Table 2 3 GPIB 1014P IEEE 488 Interface Capabilities continued Complete Service Request capability Complete Remote Local capability with software interpretation Remote Parallel Poll configuration E E Local Parallel Poll configuration with software assist Complete Device Clear capability with software interpretation Complete Device Trigger capability with software interpretation C1 2 3 4 5 Complete Controller capability System Controller Send IFC and take charge Send REN Respond to SRQ Send interface messages
117. n the SPMR 6 Load the Parallel Poll response in the Parallel Poll Register PPR if local configuration is used If using remote configuration clear the PPR 7 Clear power on pon by issuing the Immediate Execute pon auxiliary command to the TLC to bring TLC on line 8 Execute the desired TLC auxiliary commands The GPIB 1014P as GPIB Controller The GPIB 1014P Controller function is generally in one of two modes idle or in charge When in charge the Controller function is either active asserting ATN or standby not asserting ATN The following paragraphs discuss the various transitions between these two modes Becoming Controller In Charge CIC and Active Controller The TLC can become CIC either by being the System Controller and taking control by issuing the Set IFC auxiliary command or by being passed control of the GPIB from the current Active Controller To take control issue the Set IFC auxiliary command wait for a minimum of 100 usec and then issue the Clear IFC auxiliary command The ensuing GPIB IFC message initializes the GPIB interface functions of all devices on the bus As soon as any existing CIC goes to idle dropping ATN if it was active the TLC becomes CIC and Active Controller and asserts the GPIB ATN line In addition to asserting IFC the Set IFC auxiliary command also causes the GPIB transceivers for IFC and REN to be configured as GPIB line drivers thus allowing the IFC and REN lines from the GPIB 10
118. nd codes for 4 28 description 4 30 IMRI See Interrupt Mask Register 1 IMR1 initialization of GPIB 1014P 5 1 to 5 2 INITIALIZE INIT sample program C 5 to C 6 installation cabling 3 10 to 3 11 hardware installation tests 7 2 to 7 3 prerequisites for 3 1 unpacking the GPIB 1014P 1 3 to 1 4 verification of system compatibility 3 9 verification testing 3 10 INT Interrupt Bit 4 14 to 4 15 INTERFACE CLEAR IFC sample program C 7 interface registers Address Mode Register ADMR 4 22 to 4 24 Address Status Register ADSR 4 20 to 4 21 Auxiliary Mode Register AUXMR 4 27 to 4 34 Command Data Out Register CDOR 4 7 Command Pass Through Register CPTR 4 25 to 4 26 Data In Register DIR 4 6 hidden registers Address Register 0 ADR 4 44 Address Register 1 ADR1 4 45 Auxiliary Register 0 ADRO 4 43 National Instruments Corporation Index 5 GPIB 1014P User Manual Index Auxiliary Register A AUXRA 4 38 to 4 39 Auxiliary Register B AUXRB 4 40 to 4 41 Auxiliary Register E AUXRE 4 42 End of String Register EOSR 4 46 Internal Counter Register ICR 4 35 overview 4 34 Parallel Poll Register PPR 4 36 to 4 37 Interrupt Mask Register 1 IMR1 4 8 to 4 13 Interrupt Status Register 1 ISR1 4 8 to 4 13 Interrupt Status Register 2 ISR2 4 14 to 4 18 UPD7210 interface registers chart 4 4 overview 4 3 to 4 4 Serial Poll Mode Register SPMR 4 19 Serial Poll Status Register SPSR 4 19 writing to
119. nd the IEEE 1014 bus address signals A1 through A3 are decoded internally to access the appropriate register Data on the IEEE 1014 bus are strobed into write only registers at the trailing edge of WR Data in the read only registers are placed on the IEEE 1014 bus in a minimum access time after TLC CS and RD are both true Most of the TLC GPIB interface functions can be implemented or activated from either side that is the TLC can be programmed to do these functions by the VMEbus master or it can be addressed to do them by the GPIB Controller In terms of the IEEE 488 standard the distinction between these two modes of operation is generally the same as that between local and remote interface messages respectively The ADSR is the primary register for monitoring the current status of the TLC that is to determine if it is a GPIB Talker GPIB Listener GPIB Active Controller or in GPIB remote or local mode The CPTR provides a means to read the GPIB data bus directly and is used to recognize interface messages that are not automatically decoded and implemented by the TLC The Address Register ADR is used to program two address registers ADRO and ADRI which contain the GPIB addresses recognized by the TLC and Talker and Listener disabling bits The manner in which the TLC uses these registers depends on the address mode established in the ADMR A bit in ADRI indicates if END was set on the last byte received IMRI and IMR2 are interrupt
120. nded single addressing 3 1 1 Extended dual addressing In mode 1 ADRO and ADRI contain the major and minor addresses respectively for dual primary GPIB address applications that is the TLC responds to two GPIB addresses a major address and a minor address The MJMN bit in the ADSR indicates which address was received In applications where the TLC needs to respond to only one address the major Talker and Listener function is used and the minor Talker and Listener function should be disabled The minor Talker and Listener function can be disabled by setting the Disable Talker DT and Disable Listener DL bits in ADRI set ADR and ADR1 In mode 2 ADM1 1 ADMO 0 the TLC recognizes two sequential GPIB address bytes a primary followed by a secondary Both GPIB address bytes must be received in order to enable the TLC to talk or listen In this manner mode 2 addressing uses the Extended Talker and Extended Listener functions as defined in IEEE 488 without requiring computer program intervention In mode 2 ADRO and ADRI contain the TLC primary and secondary GPIB addresses respectively 4 24 National Instruments Corporation Section Four Register Bit Descriptions Bit Mnemonic Description In mode 3 ADM1 1 ADMO 1 the TLC handles addressing just as it does in mode 1 except that each major or minor GPIB primary address must be followed by a secondary address All secondary GPIB addresses must be verified by computer program wh
121. ndicates that the contents of the CDOR have been lost ERR is set when data is sent over the GPIB without a specified Listener or when a byte is written to the CDOR during SIDS or during the SDYS to SIDS transition Data Out Bit Data Out Interrupt Enable Bit DO is set as TACS amp SGNS becomes true DO is cleared by Read ISR1 TACS SGNS Notes TACS GPIB Talker Active State SGNS GPIB Source Generate State Read ISR1 Bitis cleared immediately after it is read The DO bit indicates that the TLC is ready to accept another data byte from the VMEbus for transmission onto the GPIB when the TLC is the GPIB Talker The DO bit is cleared when a byte is written to the CDOR and also when the TLC ceases to be the Active Talker Data In Bit Data In Interrupt Enable Bit DI is set by LACS amp ACDS amp Continuous Mode National Instruments Corporation 4 13 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic GPIB 1014P User Manual Section Four Description DI is cleared by pon Read ISR1 Finish Handshake amp Holdoff Mode Read DIR Notes LACS GPIB Listener Active State ACDS GPIB Accept Data State Continuous Mode Listen In Continuous Mode auxiliary command in effect pon power on reset Read ISRI Bit is cleared immediately after it is read Finish Handshake Finish Handshake auxiliary command issued Holdoff Mode RED holdoff state Read DIR Read Data In Register The DI b
122. nds Take control Universal unlisten Universal untalk User Specified Constants Select ADRO Select ADR1 GPIB address of GPIB 1014P System Controller set to 0 if not System Controller GPIB 1014P User Manual Sample Programs Appendix C Program Variables Buffers even cmdbuf 100 Command buffer for interface messages cmdct X word 0 Number of commands to be sent datbuf 100 Data buffer for device dependent messages count word 0 Current number of commands transferred datct word 0 Number of data bytes to be sent cic byte O Controller In Charge flag non zero if CIC ola byte Listen address passed to WRITE 0 sre byte 0 REN flag zero to not set REN non zero to set REN tctadr byte 0 TCT address of new Active Controller vseoi byte 0 SEOI flag zero to not send non zero to send END message with last DSEND byte GPIB 1014P User Manual C 4 National Instruments Corporation Appendix C National Instruments Corporation Sample Programs KKK KKK k k k k k k KKK INITIALIZE INIT KKK ok ko k KK k k k k KKK Summary nitialize the GPIB 1014P hardware Assumptions on entry User specified constants MA and SC have been initialized Mode 1 primary addressing is used Low speed timing is used Interrupts are not used Status byte will be set elsewhere Remote Parallel Poll configurati
123. nnect the GPIB 1014P to other GPIB devices Connect the cable to the GPIB 1014P at the standard GPIB connector labeled J1 at the top of the interface board The GPIB connector protrudes through the metal front cover plate GPIB 1014P User Manual 3 10 National Instruments Corporation Section Three Configuration and Installation Figure 3 8 shows the signals present on the GPIB cable connector DIOS DIO6 DIO7 DIO8 REN GND TW PAIR W DAV GND TW PAIR W NRFD GND TW PAIR W NDAC GND TW PAIR W IFC GND TW PAIR W SRQ GND TW PAIR W ATN SIGNAL GROUND Figure 3 8 GPIB Cable Connector National Instruments Corporation 3 11 GPIB 1014P User Manual Section Four Register Bit Descriptions This section presents detailed information on the use of the GPIB 1014P Talker Listener Controller registers Register Map The register map for the GPIB 1014P is shown in Table 4 1 This table gives the register name the register address the type of the register and the size of the register in bits Table 4 1 GPIB 1014P Register Map GPIB Interface Register Group Data In Register address 1 Read only Command Data Out Register address 1 Write only Interrupt Status Register 1 address 3 Read only Interrupt Mask Register 1 address 3 Write only Interrupt Status Register 2 address 5 Read only Interrupt Mask Register 2 address 5 Write only Serial Poll Status Register address Read only Serial Poll Mode Regi
124. ns of other GPIB devices are reset to their idle states Comments IFC1 National Instruments Corporation link a6 4 movi d1 a6 4 movb SIFC AUXMR movb 50 d1 subb 1 d1 bne IFC1 movb CIFC AUXMR movi a6 4 d1 unlk a6 rts Link Save di Set the IFC signal Wait at least 100 microseconds 18 clock cycles Clear IFC Restore di C 7 GPIB 1014P User Manual Sample Programs 68000 Code REN tstb sre L beq RENI movb SREN AUXMR L bra REN2 REN1 movb CREN AUXMR L REN2 rts GPIB 1014P User Manual Appendix C REMOTE ENABLE REN Summary Set or clear GPIB Remote Enable signal Assumptions on entry User specified sre is non zero if REN is to be asserted and is zero if REN is to be unasserted GPIB 1014P is System Controller and Active Controller Actions Check sre flag if non zero true send REN else send clear REN Status on return REN is asserted or unasserted Comments Turn on the REN signal if sre is non zero Else turn off REN if sre is zero C 8 National Instruments Corporation Appendix C National Instruments Corporation Sample Programs ok ok ko k k k k k k k k k k OK RECEIVE RCV ok ok KK k k k k k k k k k OK Summary Called by READ to receive data if GPIB 1014P is Controller In Charge Called directly from main program to receive data if GPIB 1014P is Idle Controller A
125. nsfer rates approaching 1 Mbyte sec can be obtained with very high performance microprocessors and driver software The actual transfer rate for any particular GPIB system is a function of several factors including the following Response time of the GPIB devices involved e Microprocessor speed and operating system and application program overhead e Interrupt service response time GPIB 1014P Functional Description In the simplest terms the GPIB 1014P can be thought of as a bus translator converting messages and signals present on the VMEbus into appropriate GPIB messages and signals Expressed in GPIB terminology the GPIB 1014P implements GPIB interface functions for communicating with other GPIB devices and device functions for communicating with the central processor and memory Expressed in VMEbus terminology the GPIB 1014P is an interface to the outside world National Instruments Corporation 2 5 GPIB 1014P User Manual General Description Section Two Figure 2 1 and Figure 2 2 show typical applications for the GPIB 1014P In Figure 2 2 the GPIB 1014P is used to interface an assortment of test instruments to a VMEbus computer system which then functions as an intelligent System Controller This is the traditional role of the GPIB In Figure 2 2 the GPIB 1014P is used along with other National Instruments interface boards to connect a VMEbus computer to other processors in order to transfer information or to perform other
126. o LS2521 comparators receive VMEbus address lines A04 through A15 and the address modifier lines AM4 AM3 AMI and AMO for decoding An FTTL gate receives AM5 AM2 and LWORD which are also used in decoding An ALS244 buffer receives address lines AO through A03 These addresses are latched when AS goes high provided the GPIB 1014P is not active in a data transfer cycle by holding MDTACK low The GPIB 1014P holds MDTACK true while it is driving the VMEbus signal DTACK Latching these addresses assures that the proper address will be present at the TLC for internal decoding when addresses are pipelined Address Decoding The GPIB 1014P occupies a 16 byte space you determine the base address by setting the switches on U28 and U29 see Section Three Configuration and Installation The GPIB 1014P only responds if the address modifier codes indicate 16 bit addressing This code is either 29 or 2D depending on whether you choose supervisory or non privileged access An onboard jumper selects the access mode see Access Mode in Section Three An F20 NAND gate an S02 NOR gate and two LS2521 8 bit comparators decode the GPIB 1014P base address and address modifier codes When the base address is matched the address modifier codes indicate 16 bit addressing AMO through AMS 29 or 2D and LWORD and IACK are both high then both LS2521 outputs become true and the D input of flip flop U24 becomes high If one of these conditions is not met t
127. ogic with standard TTL logic level When DAV is true for example it is a TTL low level 0 8V and when DAV is false it is a TTL high level 2 2 0V Je DIO5 DIO6 DIO7 DIO8 REN GND TW PAIR W DAV GND TW PAIR W NRFD GND TW PAIR W NDAC GND TW PAIR W IFC GND TW PAIR W SRQ GND TW PAIR W ATN 24 SIGNAL GROUND Sai SI 6 18 8 20 9 21 24 j E Figure E 1 GPIB Connector and the Signal Assignment GPIB 1014P User Manual E 4 National Instruments Corporation Appendix E Multiline Interface Messages Figure E 2 Linear Configuration National Instruments Corporation E 5 GPIB 1014P User Manual Multiline Interface Messages Appendix E SISI Te Figure E 3 Star Configuration Configuration Requirements To achieve the high data transfer rate that the GPIB was designed for the physical distance between devices and the number of devices on the bus are limited The following restrictions are typical e A maximum separation of four meters between any two devices and an average separation of two meters over the entire bus e A maximum total cable length of 20 m e No more than 15 devices connected to each bus with at least two thirds powered on GPIB 1014P User Manual E 6 National Instruments Corporation Appendix E Multiline Interface Messages Bus extenders are available from National Instruments and other manufacturers for use when these limits must be exceeded
128. on will be used Actions Pulse IEPON to put hardware in known reset state Disable interrupts and clear status Set hardware registers to desired values Status on return The following registers are cleared ISR1 2 IMR1 2 SPMR SPSR PPR AUXRA AUXRE Other registers are configured as described The GPIB 1014P interface functions are reset to idle and are enabled C 5 GPIB 1014P User Manual Sample Programs Appendix C 68000 Code Comments INIT movb IEPON AUXMR Initialize and Enable TLC Functions movb 0 IMR1 L Disable TLC interrupts movb 0 IMR2 L tstb ISR1 L Clear status bits by reading registers tstb ISR2 L movb MODE1 TRM ADMR L Set address mode Talker Listener inactive and proper T R signal mode movb MA SELO ADR L Set GPIB address mode 1 primary only with Talker Listener enabled movb DT1 DL1 SEL1 ADR L Disable secondary address recognition movb ICR 8 AUXMR L Set clock divider for 8MHz low speed rts GPIB 1014P User Manual C 6 National Instruments Corporation Appendix C 68000 Code Sample Programs INTERFACE CLEAR IFC Summary Initialize the interface function of other GPIB devices Assumptions on entry GPIB 1014P has been initialized Actions Assert GPIB IFC Wait at least 100 microseconds Unassert IFC Status on return GPIB 1014P is Active Controller Interface functio
129. onal Instruments Corporation Section Five Programming Considerations Going from Active to Idle Controller Going from Active to Idle GPIB Controller also known as passing control requires that the TLC be the Active Controller initially in order to send the necessary GPIB command messages After the TLC has become the GPIB Active Controller it must complete the following procedures to pass control 1 Write the GPIB Talk address of the device being passed control to the CDOR 2 In response to the next CO status write the GPIB TCT message to the CDOR 3 As soon as the TCT command message is accepted by all devices on the GPIB the TLC automatically unasserts ATN and the new Controller asserts ATN The GPIB 1014P as GPIB Talker and Listener The TLC can be either GPIB Talker or Listener but not both simultaneously Either function is deactivated automatically if the other is activated The TA LA and ATN bits in the ADSR together indicate the specific state of the TLC ATN TA LA 0 1 0 Addressed Talker cannot send data 1 1 0 Active Talker can send data 0 0 1 Addressed Listener cannot receive data 1 0 1 Active Listener can receive data The status bits Address Status Change ADSC Command Output CO Address Pass Through APT Data Out DO and Data In DI are used to prompt the program possibly with an interrupt request when a change of state occurs The following paragraphs discuss several aspects of data transfe
130. onal medical safeguards equipment and procedures that are appropriate in the particular situation to prevent serious injury or death should always continue to be used when National Instruments products are being used National Instruments products are NOT intended to be a substitute for any form of established process procedure or equipment used to monitor or safeguard human health and safety in medical or clinical treatment FCC DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and if not installed and used in strict accordance with the instructions in this manual may cause interference to radio and television reception This equipment has been tested and found to comply with the following two regulatory agencies Federal Communications Commission This device complies with Part 15 of the Federal Communications Commission FCC Rules for a Class A digital device Operation is subject to the following two conditions 1 This device may not cause harmful interference in commercial environments 2 This device must accept any interference received including interference that may cause undesired operation Canadian Department of Communications This device complies with the limits for radio noise emissions from digital apparatus set out in the Radio Interference Regulations of the Canadian Department of Communications DOC Le pr sent appareil num rique n met pas de bruits radio lec
131. onnector P1 continued Signal Used Signal Not Used Signal Used Signal Not Used CI DUS D09 D10 D11 D12 D13 D14 D15 GND SYSFAIL BERR SYSRESET LWORD AMS Verification Testing A verification test can be run to ensure that the board has not been damaged during shipment and also to ensure that the board has been configured correctly This requires an interactive control program or an equivalent mechanism such as front panel control switches or front panel emulator that provides a way to load and read memory and UO addresses The tests presented in Section Seven of this manual consist of a series of steps written in a pseudo processor independent language with instructions The steps generally involve writing data to specific GPIB 1014P device registers followed by reading other GPIB 1014P registers to verify that the programming is correct These tests exercise virtually all of the major functions of the GPIB 1014P including I O communications and GPIB communications All functions except GPIB communications can be performed as stand alone operations that is without another GPIB device To completely check the GPIB functions you must use a bus tester or analyzer such as National Instruments GPIB 400 or GPIB 410 that can monitor and control GPIB signal lines emulate GPIB Talker Listener and Controller devices and single step through the Source and Acceptor Handshakes Cabling Optional cables are available to co
132. ontrol Code 001 Binary Bits 7 5 Attributes Write Only Accessed through AUXMR 4 3 2 1 0 Es CLK3 CLK2 CLKI CLKO W Bit Mnemonic Description 4w 0 Reserved Bit Write zero to this bit 3 0w CLK 3 0 Clock Bits 3 though 0 The contents of the ICR are used to divide internal counters that generate TLC state change delay times used by the IEEE 488 specification The most familiar of these times T1 is the minimum delay between placing the data or command bytes on the GPIB DIO lines and asserting DAV These delay times vary depending on the type of transfer in progress and the value of the AUXRB bit TRI For proper operation ICR should be set to eight because the TLC is clocked at 8 MHz GPIB 1014P User Manual 4 36 National Instruments Corporation Section Four Register Descriptions Parallel Poll Register PPR VMEbus Address Base Address B hex AUXMR Control Code 011 Binary Bits 7 5 Attributes Write Only Accessed through AUXMR 4 3 2 1 0 W Writing to the Parallel Poll Register is done via the AUXMR Writing the binary value 011 into the Control Code CNT 2 0 and a bit pattern into the command code portion COM 4 0 of the AUXMR causes the command code to be written to the Parallel Poll Register PPR When COMI 4 0 is written to the PPR the bits are named as shown above This 5 bit command code determines the manner in which the TLC responds to a Parallel Poll When using the remote Parallel Poll Confi
133. ontrol synchronously or asynchronously Table 2 4 indicates the GPIB 1014P IEEE 1014 compliance levels Table 2 4 GPIB 1014P IEEE 1014 Compliance Levels Bus Slave Compliance Levels D08 O 8 bit data path to TLC A16 Responds to 16 bit short I O addresses when specified on the address modifier lines ADO Accommodates Address Only cycles Interrupter Compliance Levels D08 O Provides an 8 bit status ID byte on DOO through D07 ROAK Releases its interrupt request line when the interrupt handler acknowledges the interrupt Il through I7 Full support of all seven interrupt priority levels and interrupt acknowledge daisy chain GPIB 1014P User Manual 2 12 National Instruments Corporation Section Three Configuration and Installation This section describes the configuration and installation of the GPIB 1014P Configuration Before installing the GPIB 1014P in the VMEbus backplane the following options must be configured with hardware jumpers or switches that are located on the GPIB 1014P interface board e Access Mode W2 e VMEbus Base Address U28 U29 e VMEbus Interrupt Configuration W3 e Interrupt Status ID Vector U7 e GPIB Cable Shield Grounding W1 National Instruments Corporation 3 1 GPIB 1014P User Manual Section Three Configuration and Installation VME s Interrup Line Selection Figure 3 1 shows the locations of the GPIB 1014P configuration jumpers and switches i c 2 5 9 o
134. ples to implement common GPIB functions Optional cables are supplied for interconnection with other devices on the GPIB Three versions of the GPIB 1014P are manufactured by National Instruments and are designated GPIB 1014P 1 GPIB 1014P 2 and GPIB 1014P 1S The three boards are functionally identical with the exception of the front panel The GPIB 1014P 1 is equipped with a single high 3U metal front cover plate the GPIB 1014P 2 has a double high 6U metal front cover plate and the GPIB 1014P 1S has no front panel GPIB 1014P User Manual 1 2 National Instruments Corporation Section One General Information What Your Kit Should Contain Your GPIB 1014P kit contains one of the following boards e GPIB 1014P 1 e GPIB 1014P 2 e GPIB 1014P 1S Optional Equipment You can contact National Instruments to order the following optional equipment e Single shielded Type X1 GPIB cables 1 m 2 m 4 m or 8 m e Double shielded Type X2 GPIB cables 1 m 2 m or 4 m To meet FCC emission limits for this Class A device you must use a shielded Type X1 or X2 GPIB cable Operating this equipment with a non shielded cable may cause interference to radio and television reception in commercial areas e GPIB Monitor Analyzer GPIB 400 GPIB 410 Unpacking Follow these steps when unpacking your GPIB 1014P 1 Your GPIB 1014P board is shipped packaged in an antistatic plastic bag to prevent electrostatic damage to the board
135. pt acknowledge cycle intended for the GPIB 1014P Three bits Il through I3 represent the interrupt priority code of the GPIB 1014P The encoded value of these three bits must correspond to the interrupt request line used 1 through 7 by the board Il is the least significant bit Three switches located at U28 set these bits Press the side labeled 0 to select a logical zero for the corresponding address bit Press the side labeled 1 to select a logical one Figure 3 5a shows the switch configuration for using IRQ2 while Figure 3 5b shows the switch configuration for using IRQ4 The default setting for the GPIB 1014P is IRQ2 National Instruments Corporation 3 5 GPIB 1014P User Manual Configuration and Installation Section Three Key B the side you press down for Interrupt Priority Code selectior E not involved in Interrupt Priority Code selection This side down for logic ks This side down for logic 0 a Switch configuration using IRQ2 Default setting This side down for logic E This side down for logic 0 b Switch configuration using IRQ4 Figure 3 5 VMEbus Interrupt Priority Code Selection GPIB 1014P User Manual 3 6 National Instruments Corporation Section Three Configuration and Installation Interrupt Status ID Vector Selection Switches located at U7 configure the interrupt status ID vector which is provided by the GPIB 1014P during an interrupt acknowledge cycle This interrupt vector consists o
136. r Bit Descriptions Section Four Command Data Out Register CDOR VMEbus Address Base Address 1 hex Attributes Write Only 7 6 5 4 3 2 1 0 CDO7 CDO6 CDOS CDO4 CDO3 CDO2 CDOI CDOO W The Command Data Out Register CDOR is used to move data from the VMEbus to the GPIB when the TLC is the GPIB Talker or the Active Controller Outgoing data is separately latched by this register and is not destroyed by a read of the DIR which is located at the same address When a byte is written to the CDOR the TLC GPIB Source Handshake SH function is initiated and the byte is transferred to the GPIB Bit Mnemonic Description 7 0w CDO 7 0 Command Data Out Bits 7 through 0 GPIB 1014P User Manual 4 8 National Instruments Corporation Section Four Register Bit Descriptions Interrupt Status Register 1 ISR1 VMEbus Address Base Address 3 hex Attributes Read Only Bits are cleared when read Interrupt Mask Register 1 IMR1 VMEbus Address Base Address 3 hex Attributes Write Only 7 6 5 4 3 2 1 0 R C cer arr CRE D amp Ec ERR 30 W ISRI is composed of eight interrupt status bits IMRI is composed of eight interrupt enable bits which directly correspond to the interrupt status bits in ISR1 As a result ISR1 and IMRI service eight possible interrupt conditions where each condition has an interrupt status bit and an interrupt enable bit associated with it If the Interrupt Enable bit is true when the correspon
137. r must be maintained if the program is going to analyze the conditions one at a time Serial Polls Conducting Serial Polls The TLC as CIC serially polls other devices as described in the IEEE 488 specification From the programming point of view the TLC must first become Active Controller to send the addressing and enabling commands to the device being polled make itself a GPIB Listener by issuing the Listen auxiliary command and then go to standby with the Go To Standby auxiliary command in order to read the status byte GPIB 1014P User Manual 5 6 National Instruments Corporation Section Five Programming Considerations Responding to a Serial Poll The CIC can conduct Serial Polls to determine which device is asserting the GPIB SRQ signal to request service Before requesting the service the recommended practice is to wait until the PEND bit in the SPSR is Zero indicating that the TLC is not presently in the middle of a Serial Poll SPAS 0 If PEND 0 write the desired Status Byte STB into the SPMR with the rsv bit set At that time PEND sets and remains set until the Serial Poll completes Once rsv is set the TLC waits until any current Serial Poll is complete and then asserts the GPIB SRQ signal In response to that signal the CIC starts the poll addressing the TLC to talk When the CIC unasserts ATN the TLC unasserts SRQ and transfers the STB message onto the GPIB data bus with DIO7 the RQS signal asserted While
138. re in Appendix G Customer Communication at the end of this manual National Instruments Corporation vil GPIB 1014P User Manual Contents Section One General Information sss duellanti 1 1 What Your Kit Should Contain oai esse eee eee 1 3 Optional Equipment ssi ari 1 3 Dee EE 1 3 Section Two General Description nonton bilia iena 2 1 Physical Characteristics carla rr 2 1 Electrical ignis sa siliinestonne edt nun es le eine oe de nie o eddie za 2 1 VMEbus Charaeteristies js ria aa reina 2 2 VMEbus SIave Address ing lira iii ani 2 2 Kale CR EE 2 3 ISS sle Ee Eege 2 4 VMEbus EE 2 5 IST AdS silla ili edi ria 2 5 Data Lragster Features leale lai ia 2 5 GPIB 1014P Functional Description zero barale 2 5 Section Three Configuration and Installation 3 1 CConfreuratiola Ed 3 1 ACCESS MOUE E a tt AU 3 3 MMEbus Base ASS ER ne alari 3 3 VMEbus Interrupt Configuration Licia 3 5 Interrupt Request Line Selection eee 3 5 Interrupt Priority Code sisi eran 3 5 Interrupt Status ID Vector Selection sse 3 7 GPIB Cable Shield Grounding sg sees teat reete tin eerte 3 8 FEE RR e rama do Nc een SEA 3 9 Verification of System Compatibility ss 3 9 Verification KE alan il lele 3 10 Cabins oed dest det atium metet nasa 3 10 Section Four Register Bit Descriptions 4 Resister Mp cssc utu itu ue e D Rb Se ean teen edit 4 1 A S168 tee EEN 4 2 Register Description Format lele loi 4 2 Tempore
139. ription 4 2w 0 Reserved Bits Write zeros to these bits lw DHDC DAC Holdoff on DCAS Bit Setting DHDC enables DAC holdoff when the TLC enters Device Clear Active State DCAS Clearing DHDC disables DAC Holdoff on DCAS Issuing the Finish Handshake auxiliary command releases the Holdoff Ow DHDT DAC Holdoff on DTAS Bit Setting DHDT enables DAC holdoff when the TLC enters Device Trigger Active State DTAS Clearing DHDT disables DAC Holdoff on DTAS Issuing the Finish Handshake auxiliary command releases the Holdoff National Instruments Corporation 4 43 GPIB 1014P User Manual Register Descriptions Section Four Address Register 0 ADRO VMEbus Address Base Address D hex Attributes Read Only 7 6 5 4 3 2 1 0 R ADRO reflects the internal GPIB address status of the TLC as configured using the ADMR In addressing Mode 2 ADRO indicates the address and enable bits for the primary GPIB address of the TLC In dual primary addressing Modes 1 and 3 ADRO indicates the TLC major primary GPIB address Refer to description of ADMR for information on addressing modes Bit Mnemonic Description Tr X Don t Care Bit Reads as a zero or one 6r DTO Disable Talker 0 If DTO is set it indicates that the mode 2 primary or mode 1 and 3 major Talker is not enabled that is the TLC does not respond to a GPIB talk address matching AD 5 0 1 0 If DTO 0 the TLC responds to a GPIB talk address matching bits AD 5 0 1 0 5r DLO Disabl
140. rograms 68000 Code Appendix C Comments READ movb movb movb addw bsr movb movb movw movi bsr movb READ1 bne subw bsr movb rts cmdbuf L cmdbuf L 2 Put Untalk and Unlisten commands before UNT cmdbuf L UNL cmdbuf L 1 2 cmdct L CMD LTN AUXMR L GTS AUXMR L datct d0 datbuf a0 RCV TCS AUXMR L btst NATN ADSR READ1 1 cmdct CMD LUN AUXMR L GPIB 1014P User Manual Talker address in the buffer Command routine will address the Talker Program GPIB 1014P to be a Listener so it can take control synchronously later then go to standby and drop ATN Take control Preset d0 register with byte count Preset a0 register with buffer address Receive routine will read data Wait for ATN indefinitely Prepare to unaddress all Talkers and Listeners using CMD Send Local Unlisten command National Instruments Corporation Appendix C National Instruments Corporation Sample Programs ok ok KK k k k k k k k k k KKK OK DATA SEND DSEND KKK ko k ok ok k ko k KK k k k kk OK Summary Called by WRITE to transmit data messages if the GPIB 1014P is Controller In Charge Called directly from the main program if the GPIB 1014P is not CIC Assumptions on entry The GPIB 1014P is Standby or Idle Controller GPIB 1014P is or will be addressed to talk If the GPIB 1014P is Idle Controller the current CIC will go to stan
141. rs Programmed Implementation of Talker and Listener When there is no Controller in the GPIB system the ton and lon address modes refer to the description of the ADMR are used to activate the TLC GPIB Talker and Listener functions If used ton or lon should be set during TLC initialization When the TLC is GPIB Active Controller the Listen and Local Unlisten programmed auxiliary commands are used to activate and de activate the TLC GPIB Listener function Addressed Implementation of the Talker and Listener The TLC when GPIB Active Controller can address itself by sending its own GPIB Talk or Listen address using the CO bit and the CDOR When another device on the GPIB is acting as Controller the TLC is addressed with GPIB command messages to become a Talker or Listener National Instruments Corporation 5 5 GPIB 1014P User Manual Programming Considerations Section Five Address Mode 1 If the TLC ADMR has been configured for Address Mode 1 the TLC responds to the reception of two primary GPIB addresses major and minor Upon receipt of its major or minor MTA or its major or minor MLA from the GPIB Active Controller the TLC is addressed as Talker or Listener If the TLC has received its GPIB Talk Address the TA bit in the ADSR is set the ADSC bit in ISR2 is set and the DO bit in ISR1 is set If the TLC has received its GPIB Listen address the LA bit in the ADSR is set the ADSC bit in ISR2 is set and the DI bit in ISR1 is set
142. s for a recovery time of 250 nsec The timing control for a write operation is similar to a read operation When STRT and the VMEbus signal WRITE are true the TLC WR is driven true and the data bus receivers are enabled immediately The state machine counts a data setup time of 250 nsec before driving the WR signal false and asserting LDTACK thus asserting DTACK Data is latched into the TLC on the trailing edge of the WR signal The DTACK signal remains asserted until the bus master releases DSO and DS1 and the F245 releases the VME data bus After a recovery time of 250 nsec the state machine is ready to begin the next operation Accesses to the GPIB 1014P during this recovery time are recognized but are delayed until the recovery time has elapsed Interrupter Logic The interrupter circuitry permits the GPIB 1014P to request service The circuitry consists of four flip flops an F85 4 bit magnitude comparator three 25 nsec digital delay gates and some miscellaneous gates National Instruments Corporation 6 3 GPIB 1014P User Manual Theory of Operation Section Six When the TLC drives its INT line the interrupter immediately pulls one of the interrupt request lines low see VMEbus Interrupt Request Line in Section Three The F85 comparator compares the address lines A01 through A03 with the priority you select on U28 and sets the A B output high if there is a match during an interrupt acknowledge cycle Note The priority
143. s Section Four Bit Mnemonic Description 3w S Status Bit Polarity Bit The S bit is used to indicate the polarity of the TLC local ist individual status message If S 1 the status is in phase meaning that if during a Parallel Poll response S ist 1 and U 0 the TLC responds to the Parallel Poll by driving one of the eight GPIB DIO lines low thus asserting it to a logic one If S 1 and ist 0 the TLC does not drive the DIO line If S 0 the status is in reverse phase meaning that if during a Parallel Poll ist 0 and U is 0 the TLC responds to the Parallel Poll by driving one of the eight GPIB DIO lines low If S 0 and ist 1 the TLC does not drive the DIO line Refer to the description of AUXRB and the Set Clear auxiliary commands for more information 3w P 3 1 Parallel Poll Response Bits 3 through 1 PPR bits 3 through 1 designated P 3 1 contain an encoded version of the Parallel Poll Response P 3 1 indicate which of the eight DIO lines is asserted during a Parallel Poll equal to N 1 The GPIB 1014P normally drives the GPIB DIO lines using three state drivers During Parallel Poll responses however the drivers automatically convert to Open Collector mode as required by IEEE 488 For example if P 3 1 2010 binary GPIB DIO line DIO3 is driven low asserted if the GPIB 1014P is parallel polled and S ist Some examples of configuring the Parallel Poll Register are as follows Written to the AUXMR 7 6 54 32 1 0
144. s Section Four Table 4 4 Auxiliary Command Summary continued Function Code COM4 COMO0 43210 Auxiliary Command 10000 ES Go To Standby Listen Listen in Continuous Mode Local Unlisten Set IFC Clear IFC Set REN 17 Clear REN 10100 EN Disable System Control CNT 2 0 set to 000 binary Represents all eight bits of the Auxiliary Mode Register GPIB 1014P User Manual 4 30 National Instruments Corporation Section Four Register Descriptions Table 4 5 shows the functions that are executed when the AUXMR Control Code CNT 2 0 is loaded with 000 binary and the Command Code COM 4 0 is loaded Table 4 5 Auxiliary Commands Detailed Description Command Code COM4 COM0 43210 Description Immediate Execute Pon This command generates a local pon message that places the following GPIB interface functions into these idle states AIDS Acceptor Idle State CIDS Controller Idle State LIDS Listener Idle State LOCS Local State LPIS Listener Primary Idle State NPRS Negative Poll Response State PPIS Parallel Poll Idle State PUCS Parallel Poll to Unaddressed to Configure State SIDS Source Idle State SIIS System Control Interface Clear Idle State SPIS Serial Poll Idle State SRIS System Control Remote Enable Idle State TIDS Talker Idle State TPIS Talker Primary Idle State If the command is sent while a pon message is already active by either an external reset pulse or the Chip Reset auxiliary comm
145. s enabled when either the EV or the STB signal is high The EV signal is asserted to allow the interrupter to drive the data bus with a Status ID byte while the STB signal is asserted to enable the F245 during a data transfer cycle Control Signals Note An asterisk implies that the signal is active low The GPIB 1014P receives the VMEbus control signals DTACK DSO IACKIN and WRITE with LS240 buffers while an ALS244 buffer receives DS1 WRITE and AS The slave monitors DTACK to make certain the VME data bus has been released before beginning a data transfer FTTL gates drive IRQ1 through IRQ7 DTACK and IACKOUT The DTACK and IRQ drivers have open collector outputs The GPIB 1014P does not drive the other control signals National Instruments Corporation 6 1 GPIB 1014P User Manual Theory of Operation Section Six Two onboard signals LDTACK and IDTACK determine the control of DTACK The Read Write State Machine drives LDTACK which is used during read and write cycles while the interrupter circuitry controls IDTACK which is used during Status ID cycles DTACK is asserted when either of these signals is true DTACK is released when both LDTACK and IDTACK are false and DSO and DS1 are both high Since the GPIB 1014P does not request control of the bus the VMEbus daisy chain bus grant signals BGOIN through BG3IN are connected directly to the corresponding BGOOUT through BG3OUT lines Address Lines Tw
146. serting DTACK when MC YC becomes true that is the address is pipelined to the GPIB 1014P the GPIB 1014P waits for DTACK to be released and for DSO to be asserted The GPIB 1014P then asserts STRT after delaying a minimum of 85 nsec in order to meet the TLC address set up time If DSO is never asserted the cycle is an Address Only ADO cycle In this case MCYC is cleared when AS goes high and the GPIB 1014P takes no further action For more information on ADO cycles see JEEE Standard for a Versatile Backplane Bus VMEbus An LS74A D type flip flop and an LS393 dual 4 bit counter implement a state machine to control the timing during Read Write cycles The timing control begins when STRT becomes true If the VMEbus signal WRITE is false indicating a read cycle the TLC RD signal is driven true and the data bus drivers are enabled immediately The state machine then uses the VMEbus utility SYSCLK to count a minimum delay of 250 nsec which corresponds to the read access time of the TLC At this time the local signal LDTACK becomes true signaling the DTACK assert release circuitry to drive the VMEbus signal DTACK low This indicates that valid data is present on the data bus The data remains valid until DSO is released at which time the signals DEN and LDTACK go high The DTACK assert release circuitry releases DTACK once it sees that the bus driver has been released DEN is high and that DS1 is high The state machine then delay
147. ses the TLC as a Listener DMA Input Enable Bit The DMA feature is not implemented Do not set this bit Command Out Bit Command Out Interrupt Enable Bit CO is set when CACS amp SGNS becomes true CO is cleared by Read ISR2 CACS SGNS Notes CACS GPIB Controller Active State SGNS GPIB Source Generate State Read ISR2 Bitis cleared immediately after it is read CO 1 indicates CDOR is empty and that another command can be written to it for transmission to the GPIB without overwriting a previous command National Instruments Corporation 4 17 GPIB 1014P User Manual Register Bit Descriptions Bit Mnemonic 2w LOKC 2r LOKC IE lw REMC Ir REMC IE Or ADSC Ow ADSC IE GPIB 1014P User Manual Section Four Description Lockout Change Bit Lockout Change Interrupt Enable Bit LOKC is set by any change in LOK LOKC is cleared by pon Read ISR2 Notes LOK ISR2 5 r pon power on reset Read ISR2 Bit is cleared immediately after it is read LOKC is set whenever there is a change in the LOK bit ISR2 5 r REMS RELS Remote Change Bit Remote Change Interrupt Enable Bit REMC is set by any change in REM REMC is cleared by pon Read ISR2 Notes REM ISR2 4 r pon power on reset Read ISR2 Bit is cleared immediately after it is read REMC is set whenever there is a change in the REM bit ISR2 4 r REMS RELS Addressed Status Change Bit Addressed Status Change Interrupt
148. ss and mnemonic for the register The right side of the equation contains a hex value Converting the hex value to binary results in a representation of the bit pattern in the register For example a hex value of FF corresponds to a bit pattern of 11111111 40 hex corresponds to a bit pattern of 01000000 Equations not followed by a question mark are instructions to the user to load the value shown into the designated register Equations followed by a question mark are instructions to the user to read the register and verify that the value in the register is the one indicated The column to the left of each test step contains the relative register address Comments written to the right of each test step briefly describe the action taken and sometimes suggest the purpose The test procedures are designed to check the most elemental levels of functioning first and then progress to tests of higher complexity For this reason users are advised to perform the tests in the order given The tests should be performed without connecting the GPIB 1014P to another GPIB device All GPIB cables should be removed If the GPIB 1014P does not perform as described in the test procedures users are advised to carefully perform the following steps 1 Verify that the test instructions have been followed correctly and all cables are disconnected 2 Examine any read and write routines being used in connection with the checkout procedure for errors 3 Reche
149. ssages when the GPIB 1014P is Controller In Charge DSEND is called when the interface is Idle Controller Assumptions on entry GPIB 1014P is CIC One Listener is addressed and its address is placed in the variable ola The data to be sent is placed in datbuf The variable datct contains the number of bytes to send Actions Set up cmdbuf and cmdct and call CMD to address the GPIB 1014P as Talker to address the Listener and to unaddress all other devices Go to standby and unassert ATN Transfer the contents of datct to the dO register Load a0 register with the address of datbuf Call DSEND to write the data When the last byte has been sent take control Call CMD to unaddress all devices Status on return The GPIB 1014P is Active Controller All GPIB devices are unaddressed C 15 GPIB 1014P User Manual Sample Programs Appendix C 68000 Code Comments WRITE movw 4 cmdct L Put Untalk Unlisten MTA and OLA movb UNT cmdbuf L commands in the buffer movb UNL cmdbuf L 1 movb MA 100 cmdbuf L 2 movb ola cmdbuf L 3 bsr CMD Call CMD to address GPIB devices movb GTS AUXMR L Go to standby and drop ATN movw datct d0 Preset d0 register with byte count movl datbuf a0 Preset a0 register with address of buffer ber DSEND Source Handshake Data will write data WRI
150. ssued the TLC assumes that the My Secondary Address MSA message has been received which causes e The LA bit to be set and the TA bit to be cleared LADS TIDS 1 if LPAS was set or the TA bit to be set and the LA bit to be cleared TADS LIDS 1 if TPAS was set The GPIB DAC message to be sent true and the GPIB handshake to be finished 7 When the Non Valid auxiliary command is issued the TLC assumes that the Other Secondary Address OSA message has been received which causes e The TLC Talker or Listener function to go to its idle state TIDS 1 or LIDS 1 if the either the TPAS or LPAS bit was set The GPIB DAC message to be sent true and the handshake to be finished Until a GPIB Primary Command Group PCG message is received that is as long as the subsequent messages are secondary addresses the APT bit is set and a DAC holdoff is in effect each time a GPIB secondary address is received In this way the GPIB CIC can address several devices having the same primary address without repeating the primary address each time If a PCG message is received before a secondary address is received the TPAS and LPAS bits are cleared Sending Receiving Messages When the GPIB 1014P is a GPIB Talker or Listener data device dependent messages can be sent or received To send data wait until the GPIB 1014P has been programmed or addressed to talk and the CDOR is empty When this occurs the DO bit in the ISR1 is set indicating t
151. ssumptions on entry GPIB 1014P is Standby or Idle Controller GPIB 1014P is or will be addressed to listen The GPIB Talker has been or will be addressed The Talker will send END with last byte if the number of bytes sent is less than the byte count The dO register contains the byte count The a0 register contains the address of the data buffer The user specified variable cic is set properly Actions Release any holdoff in progress Set up handshake holdoffs as r ired by Controller status cic Wait for GPIB END message or byte count If END set dO register to number of bytes received Holdoff handshake Status on return a NRFD handshake holdoff is in effect The number of bytes transferred is in bx bc C 9 GPIB 1014P User Manual Sample Programs 68000 Code Appendix C Comments RCV1 RCV2 RCV3 RCV5 RCV6 link movi movi movb tst beq movb bra movb clr movb btst beq btst bne movb addw cmpw bne bra movb movw movb movl movl unlk rts a6 4 d1 a6 4 d2 a6 8 FH AUXMR L b cic L RCV1 Save di Save d2 Release any handshake holdoff in progress Is GPIB 1014P Controller In Charge AUXRA 0202 AUXMR L Yes Set HLDE and BIN in AUXRA RCV2 AUXRA AUXMR L di ISR1 L d2 END DI d2 RCV3 END d2 RCV5 DIR a0 1 d1 d0 d1 RCV3 RCV6 DIR a0 d1 d0 AUXRA 1 AU
152. ster address Write only Address Status Register address Read only Address Mode Register address Write only Command Pass Through Register address Read only Auxiliary Mode Register address Write only Hidden Registers Internal Counter Register address Write only Parallel Poll Register address Write only Auxiliary Register A address Write only continues National Instruments Corporation 4 1 GPIB 1014P User Manual Register Bit Descriptions Section Four Table 4 1 GPIB 1014P Register Map continued Auxiliary Register B Base address B Write only Auxiliary Register E Base address B Write only Address Register 0 Base address D Read only Address Register Base address D Write only Address Register 1 Base address F Read only End Of String Register Base address F Write only Register Sizes All program registers on the GPIB 1014P are 8 bit registers Register Description Format The remainder of this section discusses each of the GPIB 1014P registers in the order shown in Table 4 1 Each register group is introduced followed by a detailed bit description of each register The individual register description gives the address type word size and bit map of the register followed by a description of each bit The register bit map shows a diagram of the register with the most significant bit bit 7 for an 8 bit register shown on the left and the least significant bit bit 0 shown on the right A rectangle is us
153. t Mask Register 2 Interrupt Bit Invert Bit Interrupt Request Interrupt Status Register 1 Interrupt Status Register 2 Individual Status Select Bit Individual Status Listener Listener Active Bit Listener Active State L function Listener Addressed State L function Listener Address Group Local DTACK Listener Extended Listener Idle State Local Lockout Local Master Reset Bit Local State Lockout Bit Lockout Change Bit Enable Interrupt on Lockout Change Bit Listen Only Bit Listen Only Listener Primary Addressed State Bit Listener Primary Addressed State Local Poll Enabled Listener Primary Idle State Listen Local Unlisten Local With Lockout State Low Word My Cycle DMA Acknowledge Major Minor Bit My Listen Address My Secondary Address My Talk Address F 5 GPIB 1014P User Manual Mnemonics Key Mnemonic Type N nba LM NDAC RM NPRS ST NRFD RM NUL RM O OSA RM OTA RM P P 3 1 B PACS ST PEND B pof LM pon LM PP F PPAS ST PPC RM PPD RM PPE RM PPIS ST PPR RM PPSS ST PPU RM PUCS ST R rdy LM REM B REMC B REMC IE B REMS ST REN RM REOS B RFD RM RL F RMW VBO ROAK B rpp LM RQS RM GPIB 1014P User Manual Appendix F Definition New Byte Available Not Data Accepted Negative Poll Response State Not Ready for Data Null byte Other Secondary Address Other Talk Address Parallel Poll Response Bits 3 through 1 Parallel Poll Addressed to Configure State Pending Bit
154. t ete I EN ds seb atus 7 1 GPIB 1014P Hardware Installation Tests sss 7 2 Appendix A Specifica ti ns occid ob ah aU au ndis petu at dI Cad e dodi A 1 Appendix B Parts List and Schematic Diagrams 1 1 sees B 1 Appendix C Sample Programs soe eee ee batte nie C 1 Appendix D Multiline Interface Command Messages sse D 1 Appendix E Operation of the GPIB lle E 1 Types or Messages tee ele E 1 Talkers Listeners and Controllers eee E 1 The Controller In Charge and System Controller sees E 2 GPIB Si2nals and Linessara le elle ia E 2 BIN S cele Lian E 2 hands Wake De ud oe usan oett acf alia E 2 NRED otr ady Tor data alora E 2 KIRSTEN E 2 DAV data valid arti loi hill at E 3 Interface Management Lines sornione elia ini E 3 ATN attention siano RED REED dl E 3 IPC nterfdee EE EEN E 3 REN remoterenable s aria alia t etr TREES iti E 3 Re Te EE E 3 BOL end Beete E E 3 Physical and Electrical Characteristics orlo eri E 3 Configuration Requirements earn eee E 6 Related DOGURelt iii iaia east ne E 7 Appendix F Mnemonics EE F 1 National Instruments Corporation xiii GPIB 1014P User Manual Contents Appendix G Customer Communication G 1 S EE Index 1 Figures Figure 1 1 GPIB 1014P Interface Board svariati 1 2 Figure 2 1 GPIB 1014P with a VMEbus Computer ee eee eee 2 6 Figure 2 2 GPIB 1014P in a Multiprocessor Application
155. te Control Data Out Register Control Data Out Bits 7 through 0 Controller In Charge Bit Controller Idle State Clock Bits 3 through 0 Continue Bit Control Code Bits 2 through 0 Command Out Enable Interrupt on Command Output Bit Command Code Bits 4 through 0 Controller Parallel Poll State Command Pass Through Bit Command Pass Through Enable Bit Enable Interrupt on Command Pass Through Bit Command Pass Through Register Command Pass Through Bits 7 through 0 Controller Parallel Poll Wait State Controller Standby State Controller Standby Hold State Controller Service Not Requested State Controller Service Requested State Controller Synchronous Wait State Controller Transfer State C function Data Byte Data Accepted DAC holdoff release Data Valid Device Clear Device Clear Active State Device Clear Idle State Device Clear Device Clear Bit Enable Interrupt on Device Clear Bit Device Clear Received Data Enable Device Execute Trigger Bit Enable Interrupt on Device Execute Trigger Bit DAC Holdoff on DCAS Data Accepted Holdoff on Device Trigger Active State Bit Data In Bit Data In Bits 7 through 0 Enable Interrupt on Data In Bit Data In Register Data In Bits 7 through 0 F 3 GPIB 1014P User Manual Mnemonics Key Mnemonic Type DL B DLO B DLI B DMA SF DO B DSO VBS DT F DT B DTO B DTI B DTACK VBS DTAS ST DTIS ST E END RM END IE B END RX B EOI B EOI RM EOS RM EOS 7 0 B EOSR R ERR
156. tener Controller TLC integrated circuit Each of the 16 interface registers is addressed relative to the GPIB 1014P VMEbus base address which is set with DIP switches refer to Base Address in Section Three Figure 4 1 shows the uPD7210 Interface registers the bit mnemonics of each its read write accessibility and its relative address Figure 4 2 shows the hidden GPIB interface registers and illustrates the method of writing to those registers via the Auxiliary Mode Register A detailed function description of all 16 interface registers is provided in the paragraphs following the figures GPIB 1014P User Manual 4 4 National Instruments Corporation Section Four Register Bit Descriptions Contents of Read Register Bit Bit Bit Bit fa era a Contents of Write Register Address Offset or oe os ow 06 92 on o Ferr oer oer purs pec eRe 96 Lo o ssors pwao war coi oxc TT c Cus i menm o o o no Note X indicates a don t care bit Figure 4 1 uPD7210 Interface Registers National Instruments Corporation 4 5 GPIB 1014P User Manual Register Bit Descriptions Section Four lt lt Control Code an Command Cod R bei Pea ES W When CNT2 CNTO is ICR is loaded with FOR EE CR RM 0 0 1 0 cea cx ari ax PPR is loaded with EE Pes ere ESS AUXRA is loaded with sea e AUXRB is loaded with e esa SS Iss INV TRI SPEOI ABLE AUXRE is loaded with a EET eren S
157. the Serial Poll is in progress SPAS 1 the CIC normally reads the STB only once however it can read it any number of times provided that it asserts ATN between each one byte read RQS is set only during the first read After the first read rsv also is cleared PEND is cleared when the CIC asserts ATN to terminate the poll The GPIB EOI line is asserted along with the status byte that is the END message is sent during the serial poll if bit B1 of the AUXRB is set National Instruments Corporation 5 9 GPIB 1014P User Manual Programming Considerations Section Five Parallel Polls Parallel Polls are used by the GPIB Active Controller to check the status of several devices simultaneously The meaning of the status returned by the devices being polled is device dependent There are two general ways in which Parallel Polls are useful e When the GPIB Controller sees SRQ asserted in a system with several devices it can quickly determine which one needs to be serially polled usually using only one Parallel Poll e In systems in which the Controller response time requirement to service a device is low and the number of devices is small Parallel Polls can replace Serial Polls entirely provided that the Controller polls frequently Although the Controller can obtain a Parallel Poll response quickly and at any time there can be considerable front end overhead during initialization to configure the devices to respond appropriately This is
158. tic transmission of the GPIB END message at the same time as the EOS message when the TLC is in Talker Active State TACS If XEOS is set and the byte in the CDOR matches the contents of the EOSR the EOI line is sent true along with the data 2w REOS END on EOS Received Bit The REOS bit permits or prohibits setting the END bit ISR1 4 r at reception of the EOS message when the TLC is in Listener Active State LACS If REOS is set and the byte in the DIR matches the byte in the EOSR the END bit ISR1 4 r is set National Instruments Corporation 4 39 GPIB 1014P User Manual Register Descriptions Bit Mnemonic 1 Ow HLDE HLDA GPIB 1014P User Manual Section Four Description Holdoff on END Bit Holdoff on All Bit HLDE and HLDA together determine the GPIB data receiving mode The four possible modes are as follows HLDE HLDA Data Receiving Mode 0 0 Normal handshake 0 1 RFD holdoff on All Data 1 0 RFD holdoff on END 1 1 Continuous In Normal Handshake mode the local message rdy is generated when data is received from the GPIB When the received data is read from the DIR rdy is generated in Acceptor Not Ready State ANRS the RFD message is transmitted and the GPIB handshake continues In RFD Holdoff on All Data HLDA mode RFD is not sent true after data is received until the Finish Handshake FH auxiliary command is issued Unlike Normal Handshake mode the RFD HLDA mode does not generate the rdy message even
159. timing during the GPIB Source Handshake function after transmission of the first byte Clearing TRI sets the T1 timing to low speed in all cases Send Serial Poll EOI Bit The SPEOI bit permits or prohibits the transmission of the END message in Serial Poll Active State SPAS If SPEOI is set EOI is sent true when the TLC is in SPAS otherwise EOI is sent false in SPAS Ow CPT ENABLE Command Pass Through Enable Bit GPIB 1014P User Manual The CPT ENABLE bit permits or prohibits the detection of undefined GPIB commands and permits or prohibits the setting of the CPT bit ISR1 7 r on receipt of an undefined command When CPT ENAB is set and an undefined command has been received the DAC message is held and the Handshake stops until the Valid auxiliary command is issued The undefined command can be read from the CPTR and processed by the software 4 42 National Instruments Corporation Section Four Register Descriptions Auxiliary Register E AUXRE VMEbus Address Base Address B hex AUXMR Control Code 110 Binary Bits 7 5 Attributes Write Only Accessed through AUXMR 4 3 2 1 0 W Writing to Auxiliary Register E AUXRE is done via the AUXMR Writing the binary value 110 into the Control Code CNT 2 0 and a bit pattern into the lower five bits COM 4 0 of the AUXMR causes the two lowest order bits to be written to AUXRE The 2 bit code DHDC and DHDT determines how the TLC uses DAC Holdoff Bit Mnemonic Desc
160. tine calls Program interrupt is not used status checking is by register polling Constants and variables listed in the User Specified Constants section of the listings must be initialized to correct values In operands containing expressions is used in place of logical OR for convenience An arithmetic addition yields the same result for the instances here National Instruments Corporation C 1 GPIB 1014P User Manual Sample Programs BASE DIR CDOR ISR1 IMR1 ISR2 IMR2 SPSR SPMR ADSR ADMR CPTR AUXMR ADRO ADR ADR1 EOSR 68000 Code OxFF1000 BASE 0x1 BASE 0x1 BASE 0x3 BASE 0x3 BASE 0x5 BASE 0x5 BASE 0x7 BASE 0x7 BASE 0x9 BASE 0x9 BASE 0xB BASE 0xB BASE 0xD BASE 0xD BASE OxF BASE OxF GPIB 1014P User Manual GPIB 1014P Sample Functions for Driver INIT Initialize the GPIB 1014P IFC Send Interface Clear REN Set Clear Remote Enable RCV Receive READ Read Data DSEND Data Send WRITE Write Data CSEND Command Send CMD Write Commands PASSC Pass Control Base address of GPIB 1014P interface Data In Register read Control Data Out Register write Interrupt Status Register 1 read Interrupt Mask Register 1 write Interrupt Status Register 2 read Interrupt Mask Register 2 write Serial Poll Status Register read Serial Poll Mask Register write Address Status Register read Addr
161. triques d passant les limites applicables aux appareils num riques de classe A prescrites dans le r glement sur le brouillage radio lectrique dict par le minist re des communications du Canada Instructions to Users These regulations are designed to provide reasonable protection against harmful interference from the equipment to radio reception in commercial areas Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense There is no guarantee that interference will not occur in a particular installation However the chances of interference are much less if the equipment is installed and used according to this instruction manual If the equipment does cause interference to radio or television reception which can be determined by turning the equipment on and off one or more of the following suggestions may reduce or eliminate the problem e Operate the equipment and the receiver on different branches of your AC electrical system e Move the equipment away from the receiver with which it is interfering e Reorient or relocate the receiver s antenna e Be sure that the equipment is plugged into a grounded outlet and that the grounding has not been defeated with a cheater plug Notice to user Changes or modifications not expressly approved by National Instruments could void the user s authority to operate the equip
162. ts believes that the information in this manual is accurate The document has been carefully reviewed for technical accuracy In the event that technical or typographical errors exist National Instruments reserves the right to make changes to subsequent editions of this document without prior notice to holders of this edition The reader should consult National Instruments if errors are suspected In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it EXCEPT AS SPECIFIED HEREIN NATIONAL INSTRUMENTS MAKES NO WARRANTIES EXPRESS OR IMPLIED AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE CUSTOMER S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA PROFITS USE OF PRODUCTS OR INCIDENTAL OR CONSEQUENTIAL DAMAGES EVEN IF ADVISED OF THE POSSIBILITY THEREOF This limitation of the liability of National Instruments will apply regardless of the form of action whether in contract or tort including negligence Any action against National Instruments must be brought within one year after the cause of action accrues National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control The warranty prov
163. y GPIB Talk address In Mode 3 addressing extended mode TPAS 1 indicates that the secondary address being received as the next GPIB command message may represent the TLC extended secondary GPIB Talk address Listener Active Bit LA is set whenever the TLC has been addressed or programmed as a GPIB Listener that is the TLC is in the Listener Active State LACS or the Listener Addressed State LADS The TLC can be addressed to listen either by sending its own listen or extended listen address while it is Controller In Charge CIC or by receiving its listen address from an external CIC It can also be programmed to listen using the lon bit in the Address Mode Register ADMR If the TLC is addressed to Listen it is automatically unaddressed to Talk LA is cleared by pon or by issuing the Chip Reset auxiliary command Talker Active Bit TA is set whenever the TLC has been addressed or programmed as the GPIB Talker that is the TLC is in the Talker Active State TACS the Talker Addressed State TADS or the Serial Poll Active State SPAS The TLC can be addressed to talk either by sending its own talk or extended talk address while it is CIC or by receiving its talk address from an external CIC It can also be programmed to talk using the ton bit in the Address Mode Register ADMR If the TLC is addressed to talk it is automatically unaddressed to listen TA is cleared by pon or by issuing the Chip Reset auxiliary command Major M
Download Pdf Manuals
Related Search
Related Contents
Evolis R3411 printer ribbon Hilti 3508711 Installation Guide Addams Family Gold User Manual Catalogue commercial MANUAL PARA INSCRIPCIONES INDIVIDUALES MANUALE D`INSTALLAZIONE Daitem D4000 ダウンロード - iON Air Pro ASSE DA STIRO ELETTRICA Copyright © All rights reserved.
Failed to retrieve file