Page 1
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Page 2
KPCI-3160 PCI Bus Digital I/O Board User’s Manual A G R E A T E R M E A S U R E O F C O N F I D E N C E Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 3
This warranty will be honored provided the defect has not been caused by use of the Keithley Hardware not in accordance with the instructions for the product. This warranty shall be null and void upon: (1) any modification of Keithley Hardware that is made by other than Kei- thley and not approved in writing by Keithley or (2) operation of the Keithley Hardware outside of the environmental specifications therefore.
Page 5
Revision C (Document Number 98110) ....................August 2000 Revision D (Document Number 98110) .................... February 2001 All Keithley product names are trademarks or registered trademarks of Keithley Instruments, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders.
Page 6
Keithley products are designed for use with electrical signals that The instrument and accessories must be used in accordance with its are rated Installation Category I and Installation Category II, as de- specifications and operating instructions or the safety of the equip-...
Page 7
Keithley Instru- symbol on an instrument indicates that the user should re- ments. Standard fuses, with applicable national safety approvals, fer to the operating instructions located in the manual.
Configuring the combined board and DriverLINX installations ............... Checking the combined board and DriverLINX installations ..............Connecting the KPCI-3160 board ........................Identifying I/O connector pin assignments on the KPCI-3160 I/O connector ........... Connecting interface accessories ......................3-10 Wiring I/O to your external circuits ......................
Page 9
Troubleshooting Identifying symptoms and possible causes ......................Systematic problem isolation ..........................General problem isolation procedure ......................Specified tests ..............................5-11 Checking for board as a PCI resource ...................... 5-11 I/O bit tests ............................... 5-12 Technical support ............................. 5-26 Specifications I/O Address Mapping General PCI address assignments ........................
Page 10
Using additional accessories with the KPCI-3160 ................... 3-16 Figure 3-5 Contact-closure monitoring at a KPCI-3160 board input ................ 3-17 Figure 3-6 De-bounce circuit for an input of a KPCI-3160 board ................3-17 Troubleshooting Figure 5-1 Problem isolation flowchart ........................Figure 5-2 Mating connector wiring for loop-back test .....................
Page 11
General Description Table 2-1 System requirements ..........................Installation Table 3-1 Pin descriptions for KPCI-3160 I/O connector (P101) ................Table 3-2 Port-group 0 pin-to-pin correspondence between CONN-3160-D1 50-pin and 100-pin connectors, STP-100U 100-pin connector, and the KPCI-3160 I/O connector ..................... 3-11...
The manual is intended for data acquisition system designers, engineers, technicians, scientists, and other users responsible for setting up, cabling, and wiring signals to KPCI-3160 boards. To follow the information and instructions contained in this manual, you must be familiar with the operation of Windows 95, 98, or NT, with basic data-acquisition principles, and with your appli- cation.
KPCI-3160 User’s Manual Overview • 10 point Times Italic distinguishes the following: – Emphasis in general. – Cross-references to other documents, such as other manuals or books. – NOTE statements. • 10 POINT TIMES UPPER CASE distinguishes the following: – Switches, such as ON and OFF.
3, and I/O addresses (needed by advanced programmers, only) are defined in “I/O Address Mapping,” Appendix System requirements The system capabilities required to run the KPCI-3160 board, and to use the DriverLINX soft- ware supplied with the board, are listed in Table 2-1. Table 2-1 System requirements Pentium or higher processor on motherboard with PCI bus version 2.1.
INT_ENN, and external interrupt request input, INT_REQ. • The KPCI-3160 can output higher currents than the industry standard 8255 chip. Output cur- rent capabilities of 15mA (source) and 64mA (sink) allow it to control many LEDs, up to 22 modules, and Keithley relay boards.
Installing the software Software options The KPCI-3160 has two software options. The user can select a fully integrated data acquisition software package (e.g., TestPoint or LabVIEW). The user can also run a custom program in Visual C/C++, Visual Basic, or Delphi using DriverLINX (included with the hardware). A sum- mary of the pros and cons of using integrated packages or writing custom programs is provided in the Keithley Full Line Catalog.
flow execution. LabVIEW can be used to create professional applications with minimal programming. Virtual instruments (VIs) compatible with LabVIEW are available for the KPCI-3160. Installing DriverLINX Refer to the Read this first document that accompanies your board for installation instructions.
Installing application software and drivers Installing the TestPoint support It is anticipated that, in the future, TestPoint will implicitly support the KPCI-3160 board with- out installing additional drivers. Check with the following concerning current availability of TestPoint support for the KPCI-3160: •...
Page 22
Ensure that your computer has sufficient resources, particularly power resources, to run your KPCI-3160 board. Check the capacity of the computer power supply and the power require- ments of your computer and presently installed boards. Then check the additional power require- ments for this board.
Installation KPCI-3160 User’s Manual Configuring and checking the board and DriverLINX installations This subsection helps you to do the following: • Configure the combined board and DriverLINX installations, using the DriverLINX Plug and Play Wizard. • Check the combined board and DriverLINX installations by checking the ability to start the DriverLINX PIO Control Panel.
2. If you are unable to start the AIO Panel utility, then check to ensure that the installation is properly configured and DriverLINX is properly installed. Refer to the subsection “Config- uring the KPCI-3160” in the DriverLINX manual Using DriverLINX with your Hardware— Keithley KPCI-3160. To access this manual on-line, do the following: a.
Installation KPCI-3160 User’s Manual Identifying I/O connector pin assignments on the KPCI-3160 I/O connector The board has a 100-pin mini-D type I/O connector. Figure 3-1 Table 3-1 define and describe the pin assignments for the KPCI-3160 I/O connector (P101). Figure 3-2 shows the location of the KPCI-3160 I/O connector.
KPCI-3160 User’s Manual Installation Table 3-1 Pin descriptions for KPCI-3160 I/O connector (P101) Pin Number Signal Description For port group 0, pins 76 to 83 PA0 to PA7 The eight I/O bits of port A (an identical port A being For port group 1, pins 26 to 33 available for each of the four port groups).
KPCI-PIO96 and PIO-96J boards. These four connectors allow all accessories that work with both KPCI-PIO96 and PIO-96J boards to be used with the KPCI-3160 board. (Refer to the next subsection.) The correspondence between the pins of the CONN-3160-D1 50-pin connectors...
Page 28
3-11 Using an STP-100U accessory The STP-100U is an adapter accessory for the KPCI-3160 which simply brings all 100 pins of the connector to screw terminals. Pin assignments are the same as for the CONN-3160-D1 P1 connector. This differs from the KPCI-3160’s P101 connector, see cabling caution below.
3-12 Installation KPCI-3160 User’s Manual Table 3-2 Port-group 0 pin-to-pin correspondence between CONN-3160-D1 50-pin and 100-pin connectors, STP-100U 100-pin connector, and the KPCI-3160 I/O connector Pin of either the CONN-3160-D1 or Pin of CONN-3160-D1 STP-100U 100-pin Pin of KPCI-3160 Port-Group 0...
Page 30
KPCI-3160 User’s Manual Installation 3-13 Table 3-3 Port-group 1 pin-to-pin correspondence between CONN-3160-D1 50-pin and 100-pin connectors, STP-100U 100-pin connector, and the KPCI-3160 I/O connector Pin of either the CONN-3160-D1 or Pin of CONN-3160-D1 STP-100U 100-pin Pin of KPCI-3160 Port-Group 1...
3-14 Installation KPCI-3160 User’s Manual Table 3-4 Port-group 2 pin-to-pin correspondence between CONN-3160-D1 50-pin and 100-pin connectors, STP-100U 100-pin connector, and the KPCI-3160 I/O connector Pin of either the CONN-3160-D1 or Pin of CONN-3160-D1 STP-100U 100-pin Pin of KPCI-3160 Port-Group 2...
Page 32
Table 3-6. For more information about these products, refer to your data-acquisition or full-line Keithley cata- log or consult with your Keithley dealer. Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Monitoring contact closure at an input To ensure that the KPCI-3160 reliably monitors an open contact as an input-high condition, con- nect a 10kW pull-up resistor between the input line and a +5VDC source. See Figure 3-5.
Page 35
Do not draw more than 2.0A, total, from the board to power external circuits, distributed as follows: • Do not draw more than 1A, total, at the KPCI-3160 I/O connec- tor between pin 51 (+5VDC) and pin 100 (digital ground).
• INT_ENN (external interrupt enable, active low) • INT_REQ (external interrupt request, edge triggered) The interrupt pins on the I/O connector of the KPCI-3160 board, and the corresponding pins on the J4 connector of the CONN-3160-D1 accessory, are identified in Table 4-1.
(or at two specific times, if both positive-edge and negative-edge triggering are used), specific data that are present at one or more ports. You can do this with a KPCI-3160 external interrupt, subject to the following limitations: •...
External Interrupts KPCI-3160 User’s Manual Table 4-2 External-interrupt responses Interrupt Control/Status Interrupt Control/ Register Port Group Status Register Interrupt Control Bits Control Register External Inputs at Status after Edge (x = don’t care) (x = don’t care) P101 Transition* INT Enable...
Troubleshooting KPCI-3160 User’s Manual If your KPCI-3160 board is not operating properly, use the information in this section to isolate the problem before calling Keithley Applications Engineering. If you then need to contact an applications engineer, refer to “Technical support.”...
NOTE In the following procedure, the term “board” always refers to a KPCI-3160 board. The procedure never directs you to install or remove any type of PCI board other than a KPCI-3160 board. Figure 5-1, the number in brackets in each flowchart block (e.g .
Page 43
Troubleshooting KPCI-3160 User’s Manual Figure 5-1 Problem isolation flowchart Start [1] Board damaged? [2] Replace [3] Computer board check o.k.? [4] Have board [4] Fix computer known to be o.k.? To “Verify” To “Verify” [5-7] Check if o.k. board [4] Get Keithley...
Page 44
KPCI-3160 User’s Manual Troubleshooting To further isolate the problem to the KPCI-3160 board or to the host computer, use the following steps: 1. Check if board damage is seen on inspection. Proceed as follows: NOTE If more than one KPCI-3160 board is installed in your computer, dis- connect, remove, and check all KPCI-3160 boards.
Page 45
– You have a PCI slot that was unused before you started the problem isolation scheme. Proceed as follows: a. Turn OFF power to the host computer. b. Move the OK KPCI-3160 board to the slot that was unused before you started the problem isolation scheme. c. Reinstall the cover of the computer.
Page 46
Read the instructions in “Technical support,” and then contact Keithley for help in isolating the cause of your problem. 15. Replace the defective slot connector, as follows: a. Turn OFF the computer. b. Remove the OK board.
Page 47
Check each external I/O connection, one at a time, for short circuits and open circuits and immediately correct any faults as you find them. c. If KPCI-3160 boards were installed in more than one PCI slot, repeat steps 22a and 22b until all external circuits have been checked and all faults have been corrected.
Page 48
Turn OFF the computer. h. Install one of the original KPCI-3160 boards in a PCI slot known to be satisfactory. i. Reinstall the computer cover. j. Perform step 3, only, of the procedure “Checking for board as a PCI...
Page 49
• If, in step 26e, you cannot write and read all I/O bits to and from the first original KPCI-3160 board that you test, you have located the faulty board; replace it with the OK board. (To repair the faulty board or obtain a new one, contact Keithley as described in “Technical...
The following procedure provides details to help you determine whether Windows 95/98 Plug and Play finds your KPCI-3160 board as a PCI resource. 1. Determine the PCI resources that Plug and Play detects before any KPCI-3160 boards are installed. Proceed as follows: a.
Do not connect any external circuits to the board at this point. 3. Again determine the PCI resources detected by your computer, after the KPCI-3160 board is installed. Windows 95/98 Plug and Play should find and configure the new board as a PCI resource if all of the following are true: •...
After connecting a CONN-3160-D1 accessory to your KPCI-3160 board, you insert the loopback connector into connector J1 of the CONN-3160-D1 accessory. Then, you use a DriverLINX graphical interface (AIO Panel) to configure the bits of port group 0, port A as outputs and the bits of port group 0, ports B and C, as inputs.
Page 53
5-14 Troubleshooting KPCI-3160 User’s Manual Perform the loop-back test as follows: 1. Prepare a loop-back test connector, using a female 50-pin connector that mates with any of the 50-pin connectors on the CONN-3160-D1 accessory. This can be purchased as 3M part no.
If you wish to use a different resistance value, the substi- tute resistance value must be at least 700 ohms. 2. Turn OFF the host computer. 3. Connect a CONN-3160-D1 accessory to your KPCI-3160 board. Refer to “Using a CONN- 3160-D1 accessory”...
Page 55
Figure 5-3. (If you have other DriverLINX devices installed in addition to the KPCI-3160, they will also be listed. In that case, select the KPCI-3160 and the proper device number before proceeding.) Figure 5-3 An AIO Panel example...
The on-screen digital I/O controller works as follows: • Channels 0 to 11 refer to the twelve 8-bit general-purpose registers in the KPCI-3160. Bits displayed on the Digital Input Panel and the Digital Output Panel are numbered 0-7 for every channel. Refer to Table 5-4.
Page 57
5-18 Troubleshooting KPCI-3160 User’s Manual Table 5-4 (cont.) Channel information Logical channel DriverLINX function KPCI-3160 external connector Digital Input/Output Port Digital input/output lines Group 2 PB0-PB7 Digital Input/Output Port Digital input/output lines Group 2 PC0-PC7 Digital Input/Output Port Digital input/output lines...
Page 58
KPCI-3160 User’s Manual Troubleshooting 5-19 9. Under Digital I/O Configuration Panel, configure channels 0 to 2 as shown in Figure 5-5. Figure 5-5 Configuring the digital I/O channels as inputs and outputs KEITHLEY Digital I/O Configuration Panel Channel Configuration Input...
Page 59
5-20 Troubleshooting KPCI-3160 User’s Manual Figure 5-7 Proper response of channel 1 input bits when channel 0 output bits are set to bit pattern A KEITHLEY Digital Input Panel Channels Input bits • • • • • • • •...
Page 60
KPCI-3160 User’s Manual Troubleshooting 5-21 Figure 5-9 Configuring channel 0 for output bit pattern B KEITHLEY Digital Output Panel Channels Output Bits 17. In the Digital Output Panel under Output Bits, set the bits of channel 0 for bit pattern B as...
Page 61
5-22 Troubleshooting KPCI-3160 User’s Manual Figure 5-11 Proper response of channel 2 bits when channel 0 output bits are set to bit pattern B KEITHLEY Digital Input Panel Channels Input Bits • • • • • • • • 21. In the Digital Input Panel under Input bits observe the bit pattern.
Troubleshooting 5-23 Output set test The output set test checks whether logic levels measured at all KPCI-3160 output pins agree with output bit patterns set by software, using a DriverLINX graphical interface (AIO Panel). NOTE This test is performed without user circuits being connected to the outputs.
Page 63
Figure 5-12. (If you have other DriverLINX devices installed in addition to the KPCI-3160, they will also be listed. In that case, select the KPCI-3160 and the proper device number before proceeding.) Figure 5-12 An AIO Panel example 8.
Page 64
KPCI-3160 User’s Manual Troubleshooting 5-25 9. Under Digital I/O Configuration Panel, configure channels 0 to 2 for output as shown in Figure 5-13. Figure 5-13 Configuring the digital I/O channels as inputs and outputs KEITHLEY Digital I/O Configuration Panel Channel Configuration...
Page 65
5-26 Troubleshooting KPCI-3160 User’s Manual 14. Each bit set to ON in the AIO Panel should output a logic-high signal at the corresponding I/O terminal, corresponding typically to 4 volts (minimum of 2.2 volts) at a DMM/DVM. Each bit set to OFF in the AIO Panel should output a logic-low signal at the corresponding I/O terminal, corresponding typically to 0 volts (maximum of 0.8 volts) at a DMM/DVM.
Troubleshooting 5-27 Technical support Before returning any equipment for repair, call Keithley for technical support at: 1-888-KEITHLEY Monday - Friday, 8:00 a.m. - 5:00 p.m., Eastern Time An applications engineer will help you diagnose and resolve your problem over the telephone.
Page 67
If you are submitting your equipment for repair under warranty, you must include the invoice number and date of purchase. To enable Keithley to respond as quickly as possible, you must include the RMA number on the outside of the package.
Page 69
Digital I/O Each channel of the KPCI-3160 may be fully loaded provided the total sourcing current does not exceed the ratings of the KPCI-3160 and accessories/circuits used, i.e. each channel of Port A may simultaneously source 15mA for a total of 120mA with no risk of output driver overheating. Details of current capability via on-board power is discussed below.
Page 70
KPCI-3160 User’s Manual Specifications KPCI-3160 100-Pin Connector 3160 Data Group 0 3160 Data Group 1 3160 Data Group 2 3160 Data Group 3 Pin # Signal Pin # Signal Pin # Signal Pin # Signal General POWER REQUIREMENTS: +5V, 0.07A min.
LINX entirely and write their own drivers. Alternatively, advanced users may wish to program the KPCI-3160 at the register level using an ActiveX hosting language. Finally, some users may wish to reuse an existing application program that makes port I/O calls to an ISA-bus digital I/O board.
In the 8255 and 82C55 chips, the contents of data and control registers must be transferred eight bits at a time. However, in the KPCI-3160 the contents of data and control registers may be transferred either 8 bits or 32 bits at a time.
I/O Address Mapping KPCI-3160 User’s Manual Control and data register addressing The four I/O port groups use a total of four combined data-plus-control registers. The address of each register is offset from BADDR1 at a separate 32-bit boundary. Refer to Table B-1;...
Although this bit has both software read and software write capability, computer software writes should only be used to clear the bit. This status is correct only if bit 17 is deliberately cleared by computer software at the conclusion of each KPCI-3160 ISR (each ISR that is used to process KPCI-3160 data).
Page 76
The following example is one possible scenario that may help you to understand and use the KPCI-3160 interrupt feature. (This example is simplified, and some details may not apply to your specific system or to your requirements.) It illustrates the workings of the interrupts and bits 6, 12, 17, and 23 of the interrupt control/status register.
Page 77
KPCI-3160 User’s Manual I/O Address Mapping b. When the first rising or falling edge is missed, the problem is recorded as follows: 1. Board firmware detects the missed interrupt, causing interrupt-missed bit 23 of the interrupt control/status register to be set to logic high.
• You are an advanced user needing to use the KPCI-3160 with an operating system other than Microsoft Windows 95/98 or Windows NT 4.0 or greater. In this situation, you must write a new driver.
Click on the Properties button. A Keithley KPCI-3160 Board Properties dialog box appears. h. In the Keithley KPCI-3160 Board Properties dialog box click the Resources tab. A Resource Settings list appears. i. In the Resource Settings list, two I/O space ranges should appear, each labeled Input/ Output Range.
Page 80
If your operating system is Window NT, you need to provide a special driver and probably need to revise your existing port I/O application program before it can manipulate KPCI-3160 port I/0. (You then find the needed PCI BIOS-assigned base address using Windows NT Diagnostics, instead of the Windows 95/98 Device Manager).
Page 82
Glossary KPCI-3160 User’s Manual Address A number specifying a location in memory where data is stored. See application programming interface. Application programming interface A set of routines used by an application program to direct the performance of a procedure by the computer’s operating system.
Page 83
KPCI-3160 User’s Manual Glossary Foreground task An operation, such as a task that occurs in the single or synchronous mode, that cannot take place while another program or routine is running. FIFO First-in/first-out memory buffer. The first data into the buffer is the first data out of the buffer.
Page 84
Microsoft Press Computer Dictionary, Third Edition. Refer to “Sources” below. Sources: Keithley Instruments, Inc., Catalog and Reference Guide (full line catalog), glossary, 1998 Microsoft Press Computer Dictionary, Third Edition (ISBN: 1-57231-446-X) by Microsoft Press. Reproduced by permission of Microsoft Press. All rights reserved.
Page 85
3-15 CACC-2000 accessory 3-16 definition Checking Application program board + DriverLINX installation ISA card port I/O call, using with KPCI-3160 resources TestPoint or LabVIEW 2-3, Common, digital. See grounding, signal, I/O pin Application programming interface assignment definition Computer requirements. See system requirements...
Page 86
3-4, 3-10 definition Data register assignments Delphi DriverLINX driver for Help, getting Keithley. See technical support 3-2, Digital common. See grounding, signal, I/O pin assignment Direct I/O. See ports, configuration, direct Direct Memory Access definition 8255 PPI chip emulation...
Page 87
I/O connector Mode mating, type to use control register 3-8, 5-3, 5-14 I/O space mapping. See registers Moving around manual, electronic IEEE-488 cross references, using definition moving from the point of reference to the Input/Output (I/O) referenced text definition returning from the referenced text to the point Input/output port of reference definition...
Page 88
3-18 included with board 2-3, Problem isolation installation, DriverLINX 3-2, flowchart ISA card port I/O call, using with KPCI-3160 systematic LabView Problems. See troubleshooting installation, Program options checking during troubleshooting options synopsis 2-3,...
Page 89
Unwrapping board Wiring external circuit. See connections loop-back connector. See connections Wrist strap, to protect board. See grounding to protect Visual Basic board DriverLINX driver for Write/read port configuration. See AIO Panel, using in 3-2, Visual C++ bit tests. See also registers DriverLINX driver for Visual C/C++ DriverLINX driver for...
Page 90
Specifications are subject to change without notice. All Keithley trademarks and trade names are the property of Keithley Instruments, Inc. All other trademarks and trade names are the property of their respective companies. Keithley Instruments, Inc. 28775 Aurora Road • Cleveland, Ohio 44139 • 440-248-0400 • Fax: 440-248-6168 1-888-KEITHLEY (534-8453) •...
Page 91
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...