manualshive.com logo in svg
background image

KPCI-PIO32IOA and KPCI-PDISO8A User’s Manual

I/O Address Mapping

B-5

Interrupt example scenario

The following example is one possible scenario that may help you to understand and use the 
KPCI-PIO32IOA and KPCI-PDISO8A 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. (Refer also to 

Section 4

, “

External Interrupts

.”) 

1. At some point, computer software sets interrupt-enable bit 12 of the interrupt control/status 

register to logic-high. (The term “software” here refers to the combination of the application 
programming interface (API)/driver—normally, DriverLINX—and the application program. 
To understand how to program interrupt-triggered data acquisition through DriverLINX, 
refer to your DriverLINX documentation.) This status, detected by board firmware, enables 
the board to process data using external interrupts. It changes general-purpose inputs PC6 
and PC7 of port group 3 into external interrupt request and external interrupt enable inputs 
INT_REQ and INT_ENN.

2. At some point, computer software sets latching polarity bit 6 for port group 0 to determine 

whether that data at port group 0 latches on the rising or falling edge of INT_REQ.

Table B-3 

Bit functions for interrupt control/status register

Interrupt Control/Status Register Bit

Status for this Bit

1

Bit 

Number

Bit Function

Where the Bit is Set

and Cleared

When the Bit Value = 0 

When the Bit Value = 1 

Bit 06

Selects polarity for the 
external interrupt signal.

Set and cleared by 
computer software.

Sets rising edge for 
external interrupt signal.

Sets falling edge for 
external interrupt signal.

Bit 12

Configures the board for 
external interrupt service.

Set and cleared by 
computer software.

Interrupts disabled. Data 
transfer and processing via 
polling or upon software 
command, only. All inputs 
are general purpose inputs.

Interrupts enabled. Data 
transfer and processing in 
response to an external 
signal, only. The highest 
two inputs of port A are 
INT_REQ and INT_ENN 
instead of IP6 and IP7.

Bit 17

Interrupt-pending. 
Indicates whether or not an 
external interrupt signal 
has been received at the 
board INT_REQ input.

Automatically set high 
when board firmware 
detects an interrupt. Must 
acknowledge (write 1) to 
clear.

Register status awaits 
detection of interrupt 
signal by firmware. 
Computer CPU is 
presently doing other tasks 
(not processing 
KPCI-PIO32IOA or 
KPCI-PDISO8A data).

Interrupt signal has been 
received. Computer CPU is 
processing, or is about to 
process, KPCI-PIO32IOA 
or KPCI-PDISO8A data 
via an ISR.

3

Bit 23

Interrupt-missed. Indicates 
whether or not at least one 
KPCI-PIO32IOA or 
KPCI-PDISO8A external 
interrupt signal has been 
sent and missed while 
interrupt-pending bit 17 is 
high.

Automatically set high 
when board firmware 
detects missed interrupt.

2

  

Must acknowledge (write 
1) to clear.

Interrupts have not been 
missed OR register status 
awaits missed-interrupt 
detection by firmware.

1

One or more interrupts 
have been missed.

3

1

All bits listed in this table are cleared to logic-low on power-up.

2

Although this bit has both software read and software write capability, computer software writes should only be used to 

clear

 the bit.

3

This status is correct only if bit 17 is deliberately cleared by computer software at the conclusion of each board ISR (each ISR that is used to process board 
data).

Содержание KPCI-PIO32IOA

Страница 1: ...KPCI PIO32IOA KPCI PDISO8A PCI Bus Isolated 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...

Страница 2: ...in the Keithley Software Failure to notify Keithley of a nonconformity during the warranty shall relieve Keithley of its obligations and liabilities under this warranty Other Software OEM software th...

Страница 3: ...Keithley Instruments Inc All rights reserved Cleveland Ohio U S A Second Printing August 2002 Document Number KPCIPIO32IOA 901 01B Windows and WindowsNT are registered trademarks of Microsoft Corporat...

Страница 4: ...Addenda are numbered sequentially When a new Revision is created all Addenda associated with the previous Revision of the manual are incorporated into the new Revision of the manual Each new Revision...

Страница 5: ...s that a shock hazard exists when voltage levels greater than 30V RMS 42 4V peak or 60VDC are present A good safety practice is to expect that hazardous voltage is present in any unknown circuit befor...

Страница 6: ...components in mains circuits including the power transformer test leads and input jacks must be purchased from Keithley Instru ments Standard fuses with applicable national safety approvals may be use...

Страница 7: ...rs 3 4 Installing the KPCI PIO32IOA and KPCI PDISO8A boards 3 4 Configuring and checking the board and DriverLINX installations 3 6 Configuring the combined board and DriverLINX installations 3 6 Chec...

Страница 8: ...board as a PCI resource 5 11 I O test 5 12 Block diagram 5 14 Technical support 5 15 A Specifications B I O Address Mapping General PCI address assignments B 2 Register assignments B 3 Control and dat...

Страница 9: ...figuration 3 9 Figure 3 3 Connections to STP 36 screw terminal connector accessory 3 11 Figure 3 4 Typical KPCI PIO32IOA and KPCI PDISO8A input output connections 3 13 5 Troubleshooting Figure 5 1 Pro...

Страница 10: ...nal Interrupts Table 4 1 Connector pins used for external interrupt function 4 2 Table 4 2 External interrupt responses 4 4 5 Troubleshooting Table 5 1 Basic troubleshooting information 5 2 Table 5 2...

Страница 11: ...1 Overview...

Страница 12: ...ns which must be done after the software is installed Installing the board Configuring the combined board and software installations Checking the combined board and software installation Installing ac...

Страница 13: ...at could damage the board Such damage may invalidate the warranty How to move around the electronic version of the manual When reading the electronic PDF version of this manual use Acrobat Reader View...

Страница 14: ...2 General Description...

Страница 15: ...ow Relay outputs are solid state opto isolated N O form A 16 for the KPCI PIO32IOA 8 for the KPCI PDISO8A Outputs can switch both DC voltages 60V DC maximum and AC voltages 30V RMS maximum with a maxi...

Страница 16: ...digital ground pin is 1A The 5V supply is not isolated and is available for use only when isolation is not required by the application Control inputs and relay outputs interface via standard 36 pin co...

Страница 17: ...3 Installation...

Страница 18: ...ams is provided in the Keithley Full Line Catalog The KPCI PIO32IOA and KPCI PDISO8A have fully functional driver support for use under Windows NOTE DriverLINX must be installed to run any application...

Страница 19: ...data creating report files and exchanging information with other Windows programs It pro vides libraries for controlling most popular GPIB instruments OCX and ActiveX controls plug directly into Test...

Страница 20: ...the LabVIEW application program and DriverLINX then install the DriverLINX VIs If you do not install the VIs during the same session in which you install DriverLINX refer to your Read this first docum...

Страница 21: ...atic electricity voltage differences between the wrapped board and the environment Wear a grounded wrist strap A grounded wrist strap discharges static electricity from the wrapped board as soon as yo...

Страница 22: ...batch file directly from the CD ROM by double clicking on Y DrvLINX4 Help KPCIISO BAT where Y the letter of your CD ROM drive 3 On the Windows 98 Me Plug and Play Wizard click Wizard and follow the s...

Страница 23: ...now if possible to make reference easier NOTE Acrobat Reader must already be installed If necessary you can first install Acrobat Reader directly from the CD ROM by double clicking X Acrobat setup exe...

Страница 24: ...The KPCI PIO32IOA board has two 36 pin mini D type I O connectors for I O while the KPCI PDISO8A board has one 36 pin mini D type I O connector for I O Figure 3 1 shows the configuration of the KPCI...

Страница 25: ...mber Signal 1 5V 19 GND 1 5V 19 GND 2 20 2 20 3 IP7 21 IP7 3 IP15 21 IP15 4 IP6 22 IP6 4 IP14 22 IP14 5 IP5 23 IP5 5 IP13 23 IP13 6 IP4 24 IP4 6 IP12 24 IP12 7 IP3 25 IP3 7 IP11 25 IP11 8 IP2 26 IP2 8...

Страница 26: ...specified connector will require appropriate cable and tooling to make a reliable insulation displacement connection Using the STP 36 screw terminal connector accessory The screw terminals of the STP...

Страница 27: ...ted cables Figure 3 3 Connections to STP 36 screw terminal connector accessory KPCI PDISO8A board STP 36 KPCI PIO32IOA board STP 36 STP 36 Cable CAB 1284CC 0 5 1 2 Meter Long or CAB 1284CC 2 0 2 Meter...

Страница 28: ...nal protection should be provided to reduce repetitive stresses on the KPCI card source and load Non isolated power pins CAUTION The KPCI card provides fuse protected 5V and ground for conve nient use...

Страница 29: ...DC logic high 1V DC logic low Outputs can switch both DC voltages 60V DC maximum and AC voltages 30V RMS maximum with a maximum load current of 350mA An output relay is turned on closed when the corr...

Страница 30: ...livering the desired current I O considerations De bouncing inputs using the low pass filter The optional on card low pass filter can be used to de bounce the inputs A low pass filter for a given chan...

Страница 31: ...ce that is to be switched should be as stiff as possible For example a volt age source should have very low output impedance While software writes to the output channels will actuate each channel at n...

Страница 32: ...4 External Interrupts...

Страница 33: ...ds and the corresponding screw terminal on the STP 36 screw terminal accessory are identified in Table 4 1 Through DriverLINX you can independently configure the input port so that an external inter r...

Страница 34: ...that are present at one or more ports You can do so with a board external interrupt subject to the following limitations A KPCI PIO32IOA and KPCI PDISO8A external interrupt signal signals the driver t...

Страница 35: ...x don t care External Inputs at J101 Interrupt Control Status Register Status after Edge Transition INT Enable Bit 12 Polarity Bit 6 Bit 6 Bit 5 Enable Pins 3 21 Edge Pins 4 22 Pending Bit Bit 17 PCI...

Страница 36: ...5 Troubleshooting...

Страница 37: ...arger power supply Board does not respond to the AIO Panel DriverLINX is not installed properly or is not configured properly Refer to Configuring the combined board and DriverLINX installations on pa...

Страница 38: ...contacts If you do not have a grounded wrist strap periodically discharge static elec tricity by placing one hand firmly on a grounded metal portion of the computer chassis NOTE In the following proce...

Страница 39: ...d 13 If OK board not found as PCI resource in any slot tested try it in unused slot if available 14 Find OK board as PCI resource or have no extra slot 15 Replace defective slot connectors 14 Get Keit...

Страница 40: ...ter functions satisfactorily by itself Proceed as follows a Remove all KPCI PIO32IOA and KPCI PDISO8A boards from the host computer b Turn ON power to the host computer c Perform any necessary diagnos...

Страница 41: ...oard contacts have been wiped adequately and are properly mated Do the following a Turn OFF power to the host computer b Remove and reseat the board a few times in the suspect PCI slot connector This...

Страница 42: ...tor as follows a Turn OFF the computer b Remove the OK board c Have a qualified service person replace the defective PCI slot connector d Skip to step 27 16 Continuing from step 8 check whether Driver...

Страница 43: ...own data acquisition program errors b Repeat steps 17 and 18 If no programming errors are found after thorough debugging then the cause of your problem may be outside the scope of these diagnostics Re...

Страница 44: ...ars 4 In the Device Manager look for a DriverLINX drivers item 5 If you find a DriverLINX drivers item with a sign to the left of the item click the sign A second level list may appear containing one...

Страница 45: ...until you find a faulty board Replace the faulty board with the OK board To repair the faulty board or obtain a new one contact Keithley as described in Technical support Then continue with step 27 H...

Страница 46: ...lows a Insert a blank diskette or any diskette that you are sure is unbootable into the A drive b Turn ON the computer and allow it to start the boot cycle The boot cycle stalls at a text screen listi...

Страница 47: ...f the slot in which your board is installed d Remove the diskette and allow the boot cycle to finish I O test WARNING To avoid a possible shock hazard always turn OFF your computer and any external ci...

Страница 48: ...O channels simultaneously 2 Turn OFF the host computer 3 Insert the test connector which you prepared in step 1 into the J101 or J102 on the board depending on which channels you wish to test 4 Turn...

Страница 49: ...T PROTECTION OPTO ISOLATION OPTIONAL LPF 60V ISOLATION N Channels LOGIC HV TRANSIENT PROTECTION OPTO ISOLATION OPTIONAL LPF LOGIC INPUT CHANNEL N 60V ISOLATION SERIAL RAM HV TRANSIENT PROTECTION OPTO...

Страница 50: ...oblem or its symptoms The RMA number on the outside of the package KPCI PIO32IOA and KPCI PDISO8A board configuration Model Serial Revision code Interrupt level setting Number of channels ____________...

Страница 51: ...ipment to ATTN RMA _______ Repair Department Keithley Instruments Inc 28775 Aurora Road Cleveland Ohio 44139 Telephone 1 888 KEITHLEY FAX 440 248 6168 NOTE If you are submitting your equipment for rep...

Страница 52: ...A Specifications...

Страница 53: ...Logic High 2 5 60 VDC Voltage Input Logic Low 1 0 VDC Response Time 0 6 1 0 ms Isolation 2 60 V pk AC Inputs with optional filtering 3 PARAMETER MIN TYP MAX UNIT Low Pass Filter Time Constant 175 ms A...

Страница 54: ...VIRONMENTAL Operating Temperature 0 to 50 C Storage Temperature 20 to 70 C Humidity non condensing 0 to 80 at 35 C DIMENSION 18 1cm x 10 8cm x 1 9cm 7 1in x 4 25in x 0 75in WEIGHT KPCI PIO32IOA 0 13kg...

Страница 55: ...ess Mode Select For B5 and B6 see table below Bit 4 0 These bits to be ignored B6 B5 Control byte 0 0 No input latching on rising interrupt edge 0 1 Latch group inputs on rising interrupt edge 1 0 No...

Страница 56: ...or For KPCI PIO32IOA only Pin Signal Pin Signal Pin Signal Pin Signal 1 5V 19 GND 1 5V 19 GND 2 20 2 20 3 IP7 21 IP7 3 IP15 21 IP15 4 IP6 22 IP6 4 IP14 22 IP14 5 IP5 23 IP5 5 IP13 23 IP13 6 IP4 24 IP4...

Страница 57: ...B I O Address Mapping...

Страница 58: ...O calls to an ISA bus digital I O board Appendix B discusses the following General PCI address assignments Control and data register address assignments inside the I O space as follows Assignments for...

Страница 59: ...0 has been disabled by system BIOS Control and data registers The control and data register map for the input ports follows The control port consists of bits that allow some additional features to imp...

Страница 60: ...transfer and processing Two status bits are used to determine whether one or more interrupts are pending or were missed during data processing Two control bits pro vide for the selection of interrupt...

Страница 61: ...mputer software Sets rising edge for external interrupt signal Sets falling edge for external interrupt signal Bit 12 Configures the board for external interrupt service Set and cleared by computer so...

Страница 62: ...terrupt requests occur during this time However if the above conditions are not met while the interrupt pending bit is set the fol lowing occurs a The rising or falling edges of interrupt signals have...

Страница 63: ...s to an ISA bus digital I O board such as the PIO 96 or PIO 24 General approach to manipulating control and data registers This subsection outlines some general program tasks needed to use the data an...

Страница 64: ...C Glossary...

Страница 65: ...load and up to a specific frequency Darlington A high gain current amplifier composed of two bipolar transistors typically integrated in a sin gle package DLL See Dynamic Link Library Direct memory ac...

Страница 66: ...ion for OLE Custom Control Pass through operation See target mode PCI Abbreviation for Peripheral Component Interconnect It is a standard for a local bus Port See input output port Port I O call A sof...

Страница 67: ...d as a signal 0 8V and below A high signal state is defined as a signal 2 0V and above 1Microsoft Press Computer Dictionary Third Edition Refer to Sources below Sources Keithley Instruments Inc Catalo...

Страница 68: ...definition C 2 memory assignments B 2 Bus controller AMCC S5933 B 2 B 7 Bus mastering definition C 2 Byte definition C 2 C Checking board DriverLINX installation 3 6 resources 3 5 Common digital See...

Страница 69: ...nd task definition C 2 G GPIB definition C 3 Grounding handling to protect board 3 4 to protect board 3 4 3 10 H Help getting Keithley See technical support I I O 8255 PPI chip emulation 2 2 current c...

Страница 70: ...uration direct Ports configuration direct B 2 B 7 configuration on power up reset 2 3 configuration PIO Control Panel See PIO Control Panel using in bit tests Power 5 VDC for external circuits 3 14 Po...

Страница 71: ...CI 3160 B 7 LabView installation 3 4 options 3 2 options synopsis 2 3 Symptoms and possible causes 5 2 System requirements 2 2 Systematic problem isolation 5 3 T Target mode B 2 definition C 3 Technic...

Страница 72: ...e 65 82110 Germering 089 84 93 07 40 Fax 089 84 93 07 34 GREAT BRITAIN Unit 2 Commerce Park Brunel Road Theale Berkshire RG7 4AB 0118 929 7500 Fax 0118 929 7519 INDIA Flat 2B Willocrissa 14 Rest House...

Отзывы: