Page 2
National Instruments Corporation 6504 Bridge Point Parkway Austin, TX 78730-5039 (512) 794-0100 (800) IEEE-488 (toll-free U.S. and Canada) Technical support fax: (512) 794-5678...
Limited Warranty The GPIB-COM is warranted against defects in materials and workmanship for a period of two years from date of shipment. National Instruments will repair or replace equipment which proves to be defective during the warranty period. This warranty includes parts and labor. A Return Material Authorization (RMA) number must be obtained from National Instruments before any equipment is returned for repair.
Page 4
Be sure that the equipment is plugged into a grounded outlet and that the grounding has not been defeated with a cheater plug. 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.
Organization of This Manual This manual is divided into the following sections: Section One, Introduction, contains a brief description of the GPIB-COM including a listing of its features, accessories, and components. Section Two, Configuration and Installation, describes how to configure and install the GPIB- COM into your system.
Switch and Jumper Settings... 2-3 Base I/O Address and Interrupt Selection... 2-3 Talk/Listen Modes ... 2-4 Talk/Listen Address and Special Function Selection... 2-5 Installation... 2-7 Special Considerations When Using the GPIB-COM... 2-8 Section Three Function Description ... 3-1 The GPIB-COM Interface ... 3-1 GPIB-COM Components...
Page 8
Modem Control Register ... 5-10 Line Status Register ... 5-12 Modem Status Register... 5-14 Programming the Serial Adapter ... 5-16 Polling Method ... 5-16 Interrupt-Driven Method... 5-16 The GPIB-COM Controller Function... 5-17 Appendix A Specifications ... A-1 Appendix B Multiline Interface Command Messages...
Page 9
Figure 2-2. Possible Settings for GPIB-COM Jumpers... 2-4 Figure 2-3. Jumper W1 Settings ... 2-4 Figure 2-4. Switch Setting for REN* OFF, IFC* ON, SRQ* ON, and Listen Address 5 ... 2-5 Figure 2-5. Listen Address Setting for Listen Address 10 Hex... 2-6 Figure 2-6.
IEEE-488 printers and plotters. It can be used with any serial port software on the PC. The GPIB-COM looks like a standard serial port to the IBM PC operating system and software. It can be used to interface IEEE-488 devices to any PC software that uses the serial ports.
Note: The GPIB-COM Diagnostic Test Diskette contains the com.exe diagnostic test that is described in Section Four, Running Diagnostic Tests. Make sure each of these items is in your kit. If any item is missing, contact National Instruments. GPIB-COM User Manual Figure 1-1.
Page 14
Note: DOS and BIOS only recognize base addresses 3F8 and 2F8. The GPIB-COM is shipped from the factory set to 3F8. It must be reconfigured to another base address if another device (such as a printer adapter card or a built-in serial port) is already at that address.
Base I/O Address and Interrupt Selection The base I/O address and interrupt line used by the GPIB-COM are determined by the jumpers located at positions W2 and W5. The jumpers are set at the factory for base I/O address 3F8 hex and interrupt level 4.
Figure 2-2. Possible Settings for GPIB-COM Jumpers Talk/Listen Modes If you are using your GPIB-COM with a listen-only printer or plotter, you can configure the GPIB-COM for a talk-only mode. In this mode, the GPIB-COM is always a Talker and never sends any interface commands.
GPIB controller responsibilities. In the talk/listen mode, the first five switches set the talk or listen address of the external device(s) that will be attached to the GPIB-COM. In the talk-only mode, the GPIB-COM does not send a talk or listen address.
Configuration and Installation Figure 2-5 shows the switch configuration needed when using a device with listen address 10 hex. The listen address varies with each device so check the listen address of your device and set these five bits accordingly.
5. Insert the GPIB-COM in an unused full-length slot with the IEEE-488 receptacle sticking out of the opening of the back panel. It may be a tight fit, but do not force the board into place. 6. Screw the right angle mounting bracket of the GPIB-COM to the back panel rail of your computer.
COM2 are accessed through DOS. Sometimes a timeout error may occur when writing through the GPIB-COM to a slow device such as a printer or a plotter. If this happens, use the MODE command to disable the timeout function by typing MODE COM1:12,,,,P. Some software applications use the COM port baud rate setting to control the data transmission speed.
Section Three Function Description This section contains a block diagram of the GPIB-COM, followed by a description of each of its functional components. The GPIB-COM Interface The GPIB-COM is a completely transparent interface between GPIB devices and any IBM PC software that uses serial ports.
Function Description Figure 3-1 shows a block diagram of the GPIB-COM. IRQ3 IRQ4 Address Bus IOW* IOR* Data Bus GPIB-COM User Manual Config. Interrupt Jumpers Control Config. Jumpers Address Decoding Direction Buffer Mode Control Logic Acceptor Source Handshake Handshake GPIB...
This circuitry converts PC serial port handshaking into GPIB handshaking. This process is completely software-transparent. Mode Control Logic This circuitry determines whether the GPIB-COM should be a Talker (and the target device a Listener) or a Listener (and the target device a Talker). Interrupt Control Logic This circuitry generates and masks interrupts on GPIB conditions which correspond to the conditions that would cause the INS8250A circuit to generate an interrupt.
These buffers control the direction in which data information travels. GPIB Transceivers The GPIB-COM is interfaced to the IEEE-488 bus by National Semiconductor 75160A and 75162A transceivers. These integrated circuits are specifically designed to provide power- up/power-down bus protection (glitch-free). The GPIB-COM counts as one IEEE-488 bus load, thereby allowing an additional 14 devices to be connected before exceeding the bus loading restrictions imposed by the IEEE-488.
GPIB printer or plotter. To run a GPIB-COM diagnostic test, connect a printer or plotter to the GPIB and run the program com.exe from the GPIB-COM diagnostic test diskette. The following message will appear on the...
National Instruments. -2 plotter test Select this test to verify the configuration of the GPIB-COM when connecting it to a GPIB HP-GL plotter. This test will send output to the plotter.
Instruments. -c change COM configuration This command is used to change the base address of the GPIB-COM to match the actual board settings. If you have changed the jumper settings to something different than the default settings, you must run this command.
Programming the GPIB-COM This section presents a description of the GPIB-COM Serial Port Emulator registers and information on programming the GPIB-COM. You need to use this section only if you are writing your own serial port device driver. The GPIB-COM Registers IBM's serial adapter is a plug-in card for the PC that handles RS-232 communication.
DLAB bit in Line Control Register = 0 The Transmitter Holding Register contains the character to be sent to the serial output, with bit 0 being the least significant and bit 7 the most significant. It functions identically on the GPIB-COM and the INS8250.
DLAB bit in Line Control Register = 0 The Receive Buffer Register contains the character received from the serial input, with bit 0 being the least significant and bit 7 the most significant. It functions identically on the GPIB-COM and the INS8250.
The 16-bit number formed by the Divisor Latch LSB and MSB is divided into a 1.8432 MHz clock to produce the baud rate. The Divisor Latch Registers are ignored by the GPIB-COM circuitry; however, they are available on the GPIB-COM and can be written to and read by software.
The modem status interrupt occurs when any of bits 0 through 3 of the Modem Status Register are set to logical 1. This bit is identical on the GPIB-COM and the INS8250, but bits 0 through 3 of the Modem Status Register are set for different conditions as noted under the Modem Status Register description.
Page 33
The transmitter holding register empty interrupt occurs when the INS8250 becomes ready to send another character. This bit functions identically on the GPIB-COM and the INS8250. Received Data Available Interrupt Enable Bit This bit enables a received data available interrupt when set. The...
MSB, and cleared to access the Transmitter Holding Register, the Receive Buffer Register, and the Interrupt Enable Register. This bit functions identically on the GPIB-COM and the INS8250. Set Break Control Bit When set, this bit causes the SOUT line of the serial cable to be forced to a logical 0 state.
STP and EVEN bits (bits 4 and 5). If this bit is clear, the INS8250 will not generate or check parity bits. This bit is ignored by the GPIB-COM. Stop Bit Control Bit This bit controls the number of stop bits sent and verified by the INS8250.
The RTS serial port output is the inverse of this bit. When this bit is set, it indicates that the Controller is ready to send data. On the GPIB-COM, this bit is used along with the DTR bit to control the CTS bit of the Modem Status Register.
Page 38
The DTR serial port output is the inverse of this bit. This bit is set when the Controller is ready to communicate. On the GPIB-COM, this bit is used along with the RTS bit to control the CTS bit of the Modem Status Register.
Shift Register onto the serial output line. On the GPIB-COM, there is no shift register so this bit behaves exactly the same as the THRE bit. Transmitter Holding Register Empty Bit...
Page 40
It is cleared when the processor reads the Line Status Register. On the GPIB-COM, this bit is set when the SRQ* line of the GPIB is asserted. When the special function selection DIP switch has been set to disable the SRQ feature, this bit is always clear.
The Modem Status Register gives the state of the modem control lines and tells whether any of these lines have changed state since the register was last read. This register is read only on the GPIB-COM. Writing to this register will not change its contents. The function of each bit in this register is explained below.
Page 42
This bit is set when the CTS input changes state and cleared when the processor reads the Modem Status Register. On the GPIB-COM, this bit is the logical AND of the DTR and RTS bits of the Modem Control Register.
Programming the GPIB-COM Section Five Programming the Serial Adapter The operation of the serial adapter is controlled by software, either IBM BIOS or an application. To transfer data to and from the serial port, the communications parameters must first be set up in the following manner: 1.
COM sets the THRE bit of the Line Status Register to 0, puts the contents of that register on the GPIB data lines, and begins the source handshake sequence. When the Listener releases NDAC*, the THRE bit is set back to 1 and the GPIB-COM waits for another byte to be written into the Transmitter Holding Register.
Page 56
User 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-COM User Manual Edition Date June 1990 Part Number: 320197-01 Please comment on the completeness, clarity, and organization of the manual.
Need help?
Do you have a question about the GPIB-COM and is the answer not in the manual?
Questions and answers