background image

DAQCard

-DIO-24

User Manual

Low-Cost Digital I/O PC Card 

DAQCard-DIO-24 User Manual

October 1997 Edition

Part Number 320788D-01

© Copyright 1994, 1997 National Instruments Corporation. All rights reserved.

Summary of Contents for DAQCard-DIO-24

Page 1: ...DAQCard DIO 24 User Manual Low Cost Digital I O PC Card DAQCard DIO 24 User Manual October 1997 Edition Part Number 320788D 01 Copyright 1994 1997 National Instruments Corporation All rights reserved ...

Page 2: ...5 76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 5734815 Italy 02 413091 Japan 03 5472 2970 Korea 02 596 7456 Mexico 5 520 2635 Netherlands 0348 433466 Norway 32 84 84 00 Singapore 2265886 Spain 91 640 0085 Sweden 08 730 49 70 Switzerland 056 200 51 51 Taiwan 02 377 1200 United Kingdom 01635 523545 National Instruments Corporate Headquarter...

Page 3: ...ISED 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 contro...

Page 4: ...al area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Notices to User Changes or modifications not expressly approved by National Instruments could void the user s authority to operate the equipment under the FCC Rules This device complies with the FCC rules only if used with shielded interface cables of suitable qual...

Page 5: ...O 24 1 1 What You Need to Get Started 1 2 Software Programming Choices 1 2 National Instruments Application Software 1 3 NI DAQ Driver Software 1 3 Register Level Programming 1 5 Optional Equipment 1 5 Custom Cables 1 6 Unpacking 1 7 Chapter 2 Installation and Configuration Software Installation 2 1 Hardware Installation 2 1 Card Configuration 2 2 Chapter 3 Hardware Overview Functional Overview 3 ...

Page 6: ...ns and Defaults 4 4 Cable Connector 4 5 Digital I O Signal Connections 4 7 Power Connections 4 8 Timing Specifications 4 9 Mode 1 Input Timing 4 10 Mode 1 Output Timing 4 11 Mode 2 Bidirectional Timing 4 12 Cabling 4 13 Appendix A Specifications Appendix B Register Level Programming Appendix C OKI 82C55A Data Sheet Appendix D PC Card Questions and Answers for Windows 3 1 Appendix E Customer Commun...

Page 7: ...cations for Mode 1 Input Transfer 4 10 Figure 4 5 Timing Specifications for Mode 1 Output Transfer 4 11 Figure 4 6 Timing Specifications for Mode 2 Bidirectional Transfer 4 12 Figure B 1 Control Word Formats B 3 Figure B 2 Port C Pin Assignments in Mode 1 Input B 13 Figure B 3 Port C Pin Assignments in Mode 1 Output B 17 Figure B 4 Port C Pin Assignments in Mode 2 B 20 Tables Table 4 1 Signal Conn...

Page 8: ...st data acquisition and control for applications in laboratory testing production testing and industrial process monitoring and control Organization of This Manual The DAQCard DIO 24 User Manual is organized as follows Chapter 1 Introduction describes the DAQCard DIO 24 lists what you need to get started describes software programming choices and optional equipment and explains how to unpack your ...

Page 9: ...sed in this manual including abbreviations acronyms metric prefixes mnemonics and symbols The Index alphabetically lists the topics in this manual including the page where you can find each one Conventions Used in This Manual The following conventions are used in this manual Angle brackets containing numbers separated by an ellipses represent a range signal or port for example ACH 0 7 stands for A...

Page 10: ...rally input from the keyboard sections of code programming examples and syntax examples This font is also used for the proper names of disk drives paths directories programs subprograms subroutines device names functions variables filenames and extensions and for statements and comments taken from program code NI DAQ NI DAQ refers to the NI DAQ software for PC compatibles or Macintosh unless other...

Page 11: ...hardware that plugs into or is connected to your computer Use these manuals for hardware installation and configuration instructions specification information about your DAQ hardware and application hints Software manuals Examples of software manuals you may have are the LabVIEW and LabWindows CVI manual sets and the NI DAQ manuals a 4 6 1 or earlier version of NI DAQ supports LabWindows for DOS A...

Page 12: ...ociation PCMCIA If you are a Macintosh user the PC Card Development Kit available from Apple through APDA 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 c...

Page 13: ...s you can easily connect digital signals to the DAQCard DIO 24 The pin assignments for this connector are compatible with standard 24 channel digital I O applications The DAQCard DIO 24 is packaged with NI DAQ software the National Instruments complete driver with a library of DAQ functions for DOS and Windows or Macintosh applications Using NI DAQ you can quickly and easily start your application...

Page 14: ...g production testing and industrial process monitoring and control For detailed DAQCard DIO 24 specifications see Appendix A Specifications What You Need to Get Started To set up and use your DAQCard DIO 24 card you will need the following DAQCard DIO 24 card DAQCard DIO 24 User Manual One of the following software packages and documentation ComponentWorks LabVIEW for Macintosh LabVIEW for Windows...

Page 15: ...g LabWindows CVI with National Instruments DAQ hardware is included with the NI DAQ software kit The LabWindows CVI Data Acquisition Library is functionally equivalent to the NI DAQ software Using ComponentWorks LabVIEW or LabWindows CVI software will greatly reduce the development time for your data acquisition and control application NI DAQ Driver Software The NI DAQ driver software is included ...

Page 16: ...nt versions so that you can change platforms with minimal modifications to your code Whether you are using conventional programming languages ComponentWorks LabVIEW LabWindows CVI or other application software your application uses the NI DAQ driver software as illustrated in Figure 1 1 Figure 1 1 The Relationship between the Programming Environment NI DAQ and Your Hardware LabWindows CVI Windows ...

Page 17: ...gramming and can save weeks of development time Optional Equipment National Instruments offers a variety of products to use with your DAQCard DIO 24 including cables connector blocks and other accessories as follows Cables and cable assemblies shielded and ribbon Connector blocks shielded and unshielded 50 68 and 100 pin screw terminals Signal condition eXtension for instrumentation SCXI modules a...

Page 18: ... follows Madison Corporation part number 10482 The 50 pin connector on the optional PSH27 50F D1 cable available for the DAQCard DIO 24 is a 50 position female polarized ribbon socket connector with strain relief The manufacturer part numbers National Instruments uses for this header are as follows 3M Electronic Products Division part number 3425 H650 strain relief part number 3448 3050 AMP Corpor...

Page 19: ...antistatic vinyl envelope When you are not using the DAQCard DIO 24 you should store it in this envelope Because the DAQCard DIO 24 is enclosed in a fully shielded case no additional electrostatic precautions are necessary Caution For your own safety and to protect the DAQCard DIO 24 NEVER attempt to touch the pins of the connectors ...

Page 20: ...re packages refer to the appropriate release notes After you have installed your application software refer to your NI DAQ release notes and follow the instructions given there for your operating system and application software package If you are a register level programmer refer to Appendix B Register Level Programming Hardware Installation You can install your DAQCard DIO 24 in any available Typ...

Page 21: ...g the cable always grasp the cable by the connector Never pull directly on the I O cable to unplug it from the DAQCard DIO 24 Figure 2 1 A Typical Configuration for the DAQCard DIO 24 Card Configuration The DAQCard DIO 24 is completely software configurable Refer to your software documentation for configuration information If you are a register level programmer refer to Appendix B Register Level P...

Page 22: ...ble Peripheral Interface The 82C55A PPI is the heart of the DAQCard DIO 24 This chip has 24 programmable I O pins that represent three 8 bit ports port A port B and port C The chip also has three modes of operation simple I O mode 0 strobed I O mode 1 and bidirectional bus I O mode 2 In mode 0 you can program port A port B and the upper and lower four bit nibbles of port C as input or output lines...

Page 23: ...ontrol registers The components making up the DAQCard DIO 24 PC Card I O channel interface circuitry are shown in Figure 3 2 Figure 3 2 PC Card I O Channel Interface Circuitry Block Diagram When the card is inserted the software selects the interrupt level that the DAQCard DIO 24 uses Two software controlled registers determine which events if any generate interrupts You can program the 82C55A to ...

Page 24: ...s software controls as the board enable signal and uses lines A0 through A4 plus timing signals to generate the onboard register select signals and read write signals The data buffers control the direction of data transfer on the bidirectional data lines based on whether the transfer is a read or write The DAQCard DIO 24 uses only 8 bit transfers The interrupt control circuitry routes any enabled ...

Page 25: ... Figure 4 1 shows the pin assignments for the DAQCard DIO 24 digital I O connector Caution Connections that exceed any of the maximum ratings of input or output signals on the DAQCard DIO 24 can damage the card and the computer Maximum ratings for each signal are given in this chapter under the discussion of that signal National Instruments is NOT liable for any damages resulting from any such sig...

Page 26: ...ational Instruments Corporation Figure 4 1 Digital I O Connector Pin Assignments 5 V PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB0 PB7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 SHIELD GND 25 26 27 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 ...

Page 27: ... port A for handshaking some or all of lines PC 3 7 are used as port A handshaking control lines depending on the mode you select mode 1 input mode 1 output or mode 2 Table 4 1 Signal Connection Descriptions Pin Signal Name Description 1 8 PC 7 0 Port C Bidirectional data lines PC7 is the MSB PC0 the LSB 8 16 PB 7 0 Port B Bidirectional data lines PB7 is the MSB PB0 the LSB 17 24 PA 7 0 Port A Bid...

Page 28: ...ine at logic low instead of logic high at startup or when it is being allowed to float connect a 4 7 kΩ resistor from the digital line to ground in parallel with the external device For example if you have the DAQCard DIO 24 connected to a CB 50 I O connector block and want to pull down PC7 to logic low you can connect a 4 7 kΩ resistor from pin 1 to any even numbered ground pin on the 50 pin conn...

Page 29: ...rd 50 pin female 100 in centerline cable connector with a center polarization key Figure 4 2 shows the pinout for this 50 pin female cable connector Figure 4 2 Cable Connector Pin Assignments Note Use the key at pin 25 to orient the connector Ignore any pin 1 marking on the connector GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND 49 50 47 48 45 ...

Page 30: ...und These signals are connected to the computer ground signal 17 19 21 23 25 27 29 31 PB 7 0 Port B Bidirectional data lines PB7 is the MSB PB0 is the LSB 33 35 37 39 41 43 45 47 PA 7 0 Port A Bidirectional data lines PA7 is the MSB PA0 is the LSB 49 5 V 5 Volts This pin provides 5 VDC The 5 V supply is fused by a thermal resettable fuse rated at 1 0 A which is the maximum current available Note t...

Page 31: ...imum 0 8 V maximum voltage Maximum input 1 µA minimum 1 µA maximum current 0 Vin 5 V Digital output specifications referenced to GND Output logic high 3 7 V minimum voltage at Iout 2 5 mA Output logic low 0 4 V maximum at voltage Iout 2 5 mA Figure 4 3 shows an example of connections to the digital input and output ports In this figure port A of the 82C55A is configured for digital output and port...

Page 32: ...sulting from any such signal connections Power Connections Pin 25 of the I O connector provides 5 V from the PC Card I O channel power supply This pin is referenced to GND and can be used to power external digital circuitry that draws up to 1 0 A The 5 V power supply is fused by a thermal resettable fuse rated at 1 0 A Note that the thermal resettable fuse will begin to open after exceeding 1 0 A ...

Page 33: ... for another input ACK Input Acknowledge Input A low signal on this handshaking line indicates that the data written to the selected port has been accepted This signal is a response from the external device that it has received the data from the DAQCard DIO 24 OBF Output Output Buffer Full A low signal on this handshaking line indicates that data has been written to the selected port INTR Output I...

Page 34: ...s for an input transfer in mode 1 Figure 4 4 Timing Specifications for Mode 1 Input Transfer Name Description Minimum Maximum T1 STB pulse width 100 T2 STB 0 to IBF 1 150 T3 Data before STB 1 20 T4 STB 1 to INTR 1 150 T5 Data after STB 1 50 T6 RD 0 to INTR 0 200 T7 RD 1 to IBF 0 150 All timing values are in nanoseconds T3 T5 T6 T7 T4 T1 T2 STB IBF INTR RD DATA ...

Page 35: ... specifications for an output transfer in mode 1 Figure 4 5 Timing Specifications for Mode 1 Output Transfer Name Description Minimum Maximum T1 WR 0 to INTR 0 250 T2 WR 1 to output 200 T3 WR 1 to OBF 0 150 T4 ACK 0 to OBF 1 150 T5 ACK pulse width 100 T6 ACK 1 to INTR 1 150 All timing values are in nanoseconds T2 T3 WR OBF INT DATA T4 T6 T5 ACK T1 ...

Page 36: ...iming Specifications for Mode 2 Bidirectional Transfer Name Description Minimum Maximum T1 WR 0 to INTR 0 150 T2 Data before STB 1 20 T3 STB pulse width 100 T4 STB 0 to IBF 1 150 T5 Data after STB 1 50 T6 ACK 0 to OBF 1 150 T7 ACK pulse width 100 T8 ACK 0 to output 150 T9 ACK 1 to output float 20 250 T10 RD 1 to IBF 0 150 All timing values are in nanoseconds T2 T1 WR OBF INTR ACK DATA T6 T7 T3 T4 ...

Page 37: ...le for your DAQCard DIO 24 connects directly to the CB 50 connector block Signal input and output wires can be attached to screw terminals on the connector block and are thereby connected to the DAQCard DIO 24 I O connector The CB 50 or CB 50LP is useful for initial prototyping of an application or in situations where DAQCard DIO 24 interconnections are frequently changed When a final field wiring...

Page 38: ...are typical at 25 C unless otherwise stated The operating temperature range is 0 to 70 C I O Connector I O Signals Rating Absolute max voltage input rating 0 5 to 5 5 V with respect to GND Input Signals Pins 1 24 Output Signals Pin 25 at 5 V 1 0 A max Level Min Max Input logic high voltage 2 2 V 5 3 V Input logic low voltage 0 3 V 0 8 V Input current 0 Vin 5 V 1 0 µA 1 0 µA ...

Page 39: ...xternal devices that you have connected to the fused supply present on the I O connector Physical PCMCIA type Type II I O connector 25 pin female PC Card I O connector 50 pin female ribbon cable connector on optional PSH27 50F D1 cable Environment Operating temperature 0 to 70 C Storage temperature 55 to 150 C Relative humidity 5 to 90 noncondensing Level Min Max Output high voltage Iout 2 5 mA 3 ...

Page 40: ...s in progress Application For example you can obtain higher transfer rates in a handshaking or data transfer application requiring an average rate than in a pattern generation data acquisition or waveform generation application requiring a constant sustainable rate Table A 1 shows maximum rates on two computer systems using register level programming with an efficient assembly language or C progra...

Page 41: ...ta add dx 0014h Add offset to base address for Ireg1 in al dx Dummy read from Ireg1 sub dx 0014h Restore base address The previous four lines are not necessary for measuring transfer rates dec cx Decrement the loop counter jnz short loop See if we need to loop C code address 0x0180 The port address ireg1address address 0x0014 for i 0 i 64 i Loop 64 times outp address data Send data inp ireg1addres...

Page 42: ...2 signals group A and group B One 8 bit configuration or control word determines the mode of operation for each group Group A control bits configure PA 0 7 and the upper 4 bits nibble of PC PC 4 7 Group B control bits configure PB 0 7 and the lower nibble of PC PC 0 3 These configuration bits are defined later in this appendix In addition to the registers on the 82C55A interface the DAQCard DIO 24...

Page 43: ...G Register Figure B 1 shows the two control word formats used to completely program the 82C55A The control word flag determines which control word format is being programmed When the control word flag is 1 bits 0 through 6 determine the I O characteristics of the 82C55A ports and the modes in which they operate that is mode 0 mode 1 or mode 2 When the control word flag is 0 bits 0 through 3 set or...

Page 44: ...reset option for the bits of port C In this table n represents the bit to be set or reset D0 D1 D2 D3 D4 D5 D6 D7 Group A Group B D0 D1 D2 D3 X X X D7 a Mode Set Word Format b Bit Set Reset Word Format Control Word Flag 1 mode set Port A 1 input 0 output Port C high nibble 1 input 0 output Port C low nibble 1 input 0 output Port B 1 input 0 output Mode Selection 0 mode 0 1 mode 1 Bit Set Reset 1 s...

Page 45: ...se bits must be set to zero for compatibility with future versions of this card However older software that sets these bits to 1 will still work with the DAQCard DIO 24 1 IRQ1 Interrupt Selection 1 If this bit and the INTEN bit in Interrupt Control Table B 2 Port C Set Reset Control Words Number Bit Set Control Word Bit Reset Control Word Bit Set or Reset in Port C 0 0XXX0001 0XXX0000 XXXXXXXn 1 0...

Page 46: ...host computer If this bit is cleared the card does not pass INTRA signals on to the host computer regardless of the INTEN setting Note that the 82C55A does not generate INTRA signals unless the INTEA bit mode 1 or INTE1 or INTE2 bit mode 2 on the 82C55A is set Interrupt Control Register 2 Bit Name Description 7 3 1 0 0 Reserved These bits must be set to zero for compatibility with future versions ...

Page 47: ...ompatibles If this option is not feasible for your application you can develop your own program to activate the card However this is fairly complicated and requires significantly more programming If you develop your own program consult the PC Card Standard Socket Services Specifications which explains how to activate a card using system level calls Request an I O window an interrupt level and a co...

Page 48: ...55A Modes of Operation The three basic modes of operation for the 82C55A are as follows Mode 0 Basic I O Mode 1 Strobed I O Mode 2 Bidirectional bus The three ports on the 82C55A are arranged into two groups group A and group B Group A contains one 8 bit data port port A and the upper nibble of port C Group B contains one 8 bit data port port B and the lower nibble of port C Note When group A is i...

Page 49: ...and one 4 bit control data port upper or lower nibble of port C If group A is configured in mode 1 it uses the most significant bit PC3 of the group B port C lines The 8 bit data ports can be either input or output both inputs and outputs are latched The 4 bit ports are used for control and status of the 8 bit data ports Interrupt generation enable and disable functions are available Mode 2 Mode 2...

Page 50: ...rections The 16 possible I O configurations are shown in Table B 3 Notice that bit 7 of the control word is set when programming the mode of operation for each port Table B 3 Mode 0 I O Configurations Control Word Bit Group A Group B Number 76543210 Port A Port C Port B1 Port C2 0 10000000 Output Output Output Output 1 10000001 Output Output Output Input 2 10000010 Output Output Input Output 3 100...

Page 51: ...pt levels see PC Card Initialization earlier in this appendix Main Set PC to 1 if you are using a PC or set MAC to 1 if you are using a Mac define PC 0 define MAC 0 If MAC 1 set base address and define rd and wrt if MAC define BASE_ADDRESS 0xa0000000L define rd a unsigned char unsigned char a define wrt a d unsigned char a unsigned char d 11 10010011 Input Output Input Input 12 10011000 Input Inpu...

Page 52: ...tc cnfg char valread Variable to store data read from a port Calculate register addresses porta BASE_ADDRESS PORTAoffset portb BASE_ADDRESS PORTBoffset portc BASE_ADDRESS PORTCoffset cnfg BASE_ADDRESS CNFGoffset EXAMPLE 1 wrt cnfg 0x80 Ports A B and C are outputs wrt porta 0x12 Write data to port A wrt portb 0x34 Write data to port B wrt portc 0x56 Write data to port C EXAMPLE 2 wrt cnfg 0x90 Port...

Page 53: ...of port C can be used as extra input or output lines The control word written to the CNFG Register to configure port B for input in mode 1 is shown as follows During a mode 1 data read transfer the status of the handshaking lines and interrupt signals can be obtained by reading port C The port C status word bit definitions for an input transfer are shown as follows Bit Name Description 7 6 I O Inp...

Page 54: ...the 82C55A for port B Controlled by bit set reset of PC2 1 IBFB Input Buffer Full for Port B High indicates that data has been loaded into the input latch for port B 0 INTRB Interrupt Request Status for Port B When INTEB is high and IBFB is high this bit is high indicating that an interrupt request is asserted At the digital I O connector port C has the following pin assignments when in mode 1 inp...

Page 55: ...0 If MAC 1 set base address and define rd and wrt if MAC define BASE_ADDRESS 0xa0000000L define rd a unsigned char unsigned char a define wrt a d unsigned char a unsigned char d Else if PC 1 set base address and define rd and wrt elif PC define BASE_ADDRESS 0x0220 define rd a unsigned char inp unsigned int a define wrt a d outp unsigned int a unsigned char d end define PORTAoffset 0x00 Offset for ...

Page 56: ...ort B valread rd portb Mode 1 Strobed Output The control word written to the CNFG Register to configure port A for output in mode 1 is shown as follows Bits PC4 and PC5 of port C can be used as extra input or output lines when port A uses mode 1 output The control word written to the CNFG Register to configure port B for output in mode 1 is shown as follows During a mode 1 data write transfer the ...

Page 57: ...upt Request Status for Port A When INTEA is high and OBFA is high this bit is high indicating an asserted interrupt request 2 INTEB Interrupt Enable Bit for Port B If this bit is high interrupts are enabled from the 82C55A for port B Controlled by bit set reset of PC2 1 OBFB Output Buffer Full for Port B Low indicates that the CPU has written data to port B 0 INTRB Interrupt Request Status for Por...

Page 58: ...tem For information on card activation base addressing and interrupt levels see PC Card Initialization earlier in this appendix Main Set PC to 1 if you are using a PC or set MAC to 1 if you are using a Mac define PC 0 define MAC 0 If MAC 1 set base address and define rd and wrt if MAC define BASE_ADDRESS 0xa0000000L define rd a unsigned char unsigned char a define wrt a d unsigned char a unsigned ...

Page 59: ...Wait until OBFA is set indicating rd ireg1 that the data last written to port A has been read wrt porta 0x12 Write data to port A EXAMPLE 2 Port B output wrt cnfg 0x84 Port B is an output in mode 1 while rd portc 0x02 Wait until OBFB is set indicating rd ireg1 that the data last written to port B has been read wrt portb 0x34 Write the data to port B Mode 2 Bidirectional Bus Mode 2 has an 8 bit bus...

Page 60: ...th port A only Bit Name Description 7 OBFA Output Buffer Full for Port A Low indicates that the CPU has written data to port A 6 INTE1 Interrupt Enable Bit for Output If this bit is set interrupts are enabled from the 82C55A for OBFA Controlled by bit set reset of PC6 5 IBFA Input Buffer Full for Port A High indicates that data has been loaded into the input latch for port A 7 6 5 4 3 2 1 0 OBFA I...

Page 61: ...dicating that an interrupt request is asserted for input transfers If INTE1 is high and OBFA is high this bit is high indicating that an interrupt request is asserted for output transfers 2 0 I O or Input Output Extra I O status lines port B available if port B is not configured for handshaking mode 1 Figure B 4 shows the pin assignments for port C when in mode 2 at the digital I O connector Figur...

Page 62: ...ng a Mac define PC 0 define MAC 0 If MAC 1 set base address and define rd and wrt if MAC define BASE_ADDRESS 0xa0000000L define rd a unsigned char unsigned char a define wrt a d unsigned char a unsigned char d Else if PC 1 set base address and define rd and wrt elif PC define BASE_ADDRESS 0x0220 define rd a unsigned char inp unsigned int a define wrt a d outp unsigned int a unsigned char d end def...

Page 63: ... service routine is entered Otherwise the host computer considers the interrupt a spurious interrupt and routes the request to the channel responsible for handling spurious interrupts To prevent this problem try using some other I O bit to send feedback to the device generating the interrupt In this way the interrupting device can be signaled that the interrupt service routine has been entered For...

Page 64: ...ar valread Variable to store data read from a port Calculate register addresses porta BASE_ADDRESS PORTAoffset portb BASE_ADDRESS PORTBoffset portc BASE_ADDRESS PORTCoffset cnfg BASE_ADDRESS CNFGoffset ireg1 BASE_ADDRESS IREG1offset ireg2 BASE_ADDRESS IREG2offset EXAMPLE 1 Set up interrupts for mode 1 input for port A Enable the appropriate interrupt bits wrt cnfg 0xB0 Port A is an input in mode 1...

Page 65: ... ireg1 0x01 Set IRQ0 to enable port A interrupts wrt cnfg 0x0D Set PC6 to enable interrupts from 82C55A wrt ireg2 0x04 Set INTEN bit EXAMPLE 6 Set up interrupts for mode 2 input transfers Enable the appropriate interrupt bits wrt cnfg 0xD0 Mode 2 input wrt ireg1 0x01 Set IRQ0 to enable port A interrupts wrt cnfg 0x09 Set PC4 to enable interrupts from 82C55A wrt ireg2 0x04 Set INTEN bit Interrupt H...

Page 66: ...t A is in mode 0 use PC3 to generate an interrupt if port B is in mode 0 use PC0 to generate an interrupt When you have configured the 82C55A you must set the corresponding interrupt enable bit in Interrupt Register 1 If you are using PC3 set IRQ0 if you are using PC0 set IRQ1 When the external signal becomes logic high an interrupt request occurs Although the host computer s interrupt monitoring ...

Page 67: ...ns the manufacturer data sheet for the OKI Semiconductor 82C55A CMOS programmable peripheral interface PPI This interface is used on the DAQCard DIO 24 Copyright OKI Semiconductor 1993 Reprinted with permission of copyright owner All rights reserved OKI Semiconductor Data Book Microprocessor Seventh Edition March 1993 ...

Page 68: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 2 National Instruments Corporation ...

Page 69: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 3 DAQCard DIO 24 User Manual ...

Page 70: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 4 National Instruments Corporation ...

Page 71: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 5 DAQCard DIO 24 User Manual ...

Page 72: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 6 National Instruments Corporation ...

Page 73: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 7 DAQCard DIO 24 User Manual ...

Page 74: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 8 National Instruments Corporation ...

Page 75: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 9 DAQCard DIO 24 User Manual ...

Page 76: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 10 National Instruments Corporation ...

Page 77: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 11 DAQCard DIO 24 User Manual ...

Page 78: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 12 National Instruments Corporation ...

Page 79: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 13 DAQCard DIO 24 User Manual ...

Page 80: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 14 National Instruments Corporation ...

Page 81: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 15 DAQCard DIO 24 User Manual ...

Page 82: ...Appendix C OKI 82C55A Data Sheet DAQCard DIO 24 User Manual C 16 National Instruments Corporation ...

Page 83: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 17 DAQCard DIO 24 User Manual ...

Page 84: ...ty to configure the National Instruments PC Cards No We recommend that you do not configure our PC Cards using PC Card Control or an equivalent PC Card configuration utility Use the configuration utilities included with the NI DAQ driver software to properly configure your DAQCard The appropriate utility is the NI DAQ Configuration Utility WDAQCONF for Windows 3 1 users What should I do if my comp...

Page 85: ...upt that is free to be used refer to the Resources section Resources How do I determine if I have a memory conflict If no PC Cards are working at all it is probably because a memory window is not usable Card Services uses a 4 kB memory window for its own internal use If the memory cannot be used then Card Services cannot read the Card Information Structure CIS from the DAQCard EPROM which means it...

Page 86: ... in the system For example in a system with two PCMCIA sockets at least three interrupts should be allocated for use by Card Services Keep in mind that utilities such as MSD EXE will sometimes report that an interrupt is in use when it really is not For example if the computer has one serial port COM1 and one parallel port LPT1 you know that IRQs 4 and 7 are probably in use In general IRQ5 is used...

Page 87: ...urce Conflicts How do I resolve conflicts between my memory manager and Card Services Card Services can usually use memory space that is not being used for real RAM on the system Even when this is the case you should still exclude the memory addresses used by Card Services from use by any memory manager that may be installed ...

Page 88: ...stems does not answer your questions we offer fax and telephone support through our technical support centers which are staffed by applications engineers Electronic Services National Instruments has BBS and FTP sites dedicated for 24 hour support with a collection of files and documents to answer most common customer questions From these sites you can also download the latest instrument drivers up...

Page 89: ...ed your software to obtain support Telephone Fax Australia 03 9879 5166 03 9879 6277 Austria 0662 45 79 90 0 0662 45 79 90 19 Belgium 02 757 00 20 02 757 03 11 Canada Ontario 905 785 0085 905 785 0086 Canada Quebec 514 694 8521 514 694 4399 Denmark 45 76 26 00 45 76 26 02 Finland 09 725 725 11 09 725 725 55 France 01 48 14 24 24 01 48 14 24 14 Germany 089 741 31 30 089 714 60 35 Hong Kong 2645 318...

Page 90: ...________________________________________________ _______________________________________________________________________________ National Instruments hardware product model __________ Revision ______________________ Configuration ___________________________________________________________________ National Instruments software product ____________________________Version ____________ Configuration _...

Page 91: ...______ Base I O address of other boards _____________________________________________________ DMA channels of other boards ______________________________________________________ Interrupt level of other boards _______________________________________________________ Other Products Computer make and model _________________________________________________________ Microprocessor ______________________...

Page 92: ...____________________________________________________ _______________________________________________________________________________ _______________________________________________________________________________ _______________________________________________________________________________ _______________________________________________________________________________ ___________________________...

Page 93: ...anual Glossary Numbers Symbols degree greater than less than less than or equal to negative of or minus Ω ohm per percent plus or minus positive of or plus Prefix Meaning Value p pico 10 12 n nano 10 9 µ micro 10 6 m milli 10 3 k kilo 103 M mega 106 G giga 109 ...

Page 94: ...ecific location or series of locations in memory AI analog input AO analog output B b bit one binary digit either 0 or 1 B byte eight related bits of data an eight bit binary number Also used to denote the amount of memory required to store one byte of data base address a memory address that serves as the starting address for programmable registers All other addresses are located by adding to the ...

Page 95: ... single ended or differential For digital signals you group channels to form ports Ports usually consist of either four or eight digital channels CIS card information structure clock hardware component that controls timing for reading from or writing to groups CMOS complementary metal oxide semiconductor counter timer a circuit that counts external pulses or clock pulses timing coupling the manner...

Page 96: ...tion board card or pad that can contain multiple channels and conversion devices Plug in boards PCMCIA cards and devices such as the DAQPad 1200 which connects to your computer parallel port are all examples of DAQ devices SCXI modules are distinct from devices with the exception of the SCXI 1200 which is a hybrid DGND digital ground differential input an analog input consisting of two terminals b...

Page 97: ...ccumulates in the FIFO for future retrieval With a larger FIFO longer latencies can be tolerated In the case of analog output a FIFO permits faster update rates because the waveform data can be stored on the FIFO ahead of time This again reduces the effect of latencies associated with getting the data from system memory to the DAQ device filtering a type of signal conditioning that allows you to f...

Page 98: ...esistance and capacitance between the input terminals of a circuit INTE1 interrupt enable bit for output INTE2 interrupt enable bit for input INTEA interrupt enable bit for port A INTEB interrupt enable bit for port B INTEN interrupt enable bit signal INTR interrupt request signal INTRA interrupt request status bit for port A INTRB interrupt request status but for port B interrupt a computer signa...

Page 99: ...olts hertz and meters K kilo the prefix for 1 024 or 210 used with B in quantifying data or computer memory kbytes s a unit for data transfer that means 1 000 or 103 bytes s kS 1 000 samples Kword 1 024 words of memory L LabVIEW laboratory virtual instrument engineering workbench latched digital I O a type of digital acquisition generation where a device or module accepts or transfers data after a...

Page 100: ...s computers electrical storms welders radio transmitters and internal sources such as semiconductors resistors and capacitors Noise corrupts signals you are trying to send or receive nonlatched digital I O a type of digital acquisition generation where software updates the digital lines or port states immediately or returns the digital value of an input line Also called immediate digital I O or no...

Page 101: ...Intel to replace ISA and EISA It is achieving widespread acceptance as a standard for PCs and work stations it offers a theoretical maximum transfer rate of 132 Mbytes s PCMCIA an expansion bus architecture that has found widespread acceptance as a de facto standard in notebook size computers It originated as a specification for add on memory cards written by the Personal Computer Memory Card Inte...

Page 102: ...zation of functions S s seconds S samples scan one or more analog or digital input samples Typically the number of input samples in a scan is equal to the number of channels in the input group For example one pulse from the scan clock produces one scan which acquires one new sample from every analog input channel in the group SCXI Signal Conditioning eXtensions for Instrumentation the National Ins...

Page 103: ...e measured in bytes s at which data is moved from source to destination after software initialization and set up operations the maximum rate at which the hardware can operate TTL transistor transistor logic V V volts VDC volts direct current VI virtual instrument 1 a combination of hardware and or software elements typically used with a PC that has the functionality of a classic stand alone instru...

Page 104: ... Instruments Corporation W working voltage the highest voltage that should be applied to a product in normal use normally well under the breakdown voltage for safety margin See also Breakdown Voltage WR write signal X XMS extended memory specification ...

Page 105: ...ogramming example B 14 to B 15 Mode 1 output programming example B 17 to B 18 Mode 1 strobed input B 12 to B 13 Mode 1 strobed output B 15 to B 17 Mode 2 B 8 Mode 2 bidirectional bus B 18 to B 20 Mode 2 programming example B 21 to B 22 single bit set reset feature B 9 A ACK signal table 4 9 B bits IBFA Mode 1 strobed input B 12 Mode 2 bidirectional bus B 19 IBFB B 13 INTE1 B 19 INTE2 B 20 INTEA Mo...

Page 106: ...directional bus B 19 Port C table B 4 control word formats 82C55A CNFG Register B 3 customer communication xiii E 1 to E 2 D DAQCard DIO 24 See also hardware overview custom cables 1 6 features 1 1 to 1 2 optional equipment 1 5 to 1 6 requirements for getting started 1 2 software programming choices 1 2 to 1 5 National Instruments application software 1 3 NI DAQ driver software 1 3 register level ...

Page 107: ...robed input B 13 Mode 1 strobed output B 16 INTEN bit B 5 Interrupt Control Register 1 B 4 to B 5 Interrupt Control Register 2 B 5 interrupt handling 82C55A programming considerations B 24 to B 25 programming examples B 22 to B 24 INTR signal table 4 9 INTRA bit Mode 1 strobed input B 13 Mode 1 strobed output B 16 Mode 2 bidirectional bus B 20 INTRB bit Mode 1 strobed input B 13 Mode 1 strobed out...

Page 108: ...cable connector table 4 6 description table 4 3 PC card initialization B 6 to B 7 PC Card I O channel interface circuitry 3 2 to 3 3 PC Card questions and answers for Windows 3 1 D 1 to D 4 configuration D 1 operation D 2 resource conflicts D 4 resources D 2 to D 3 PC 7 0 signal cable connector table 4 6 description table 4 3 physical specifications A 2 pin assignments See also Port C pin assignme...

Page 109: ...to B 7 register map B 2 single bit set reset feature B 3 to B 4 requirements for getting started 1 2 S SHIELD signal table 4 3 signal connections 4 1 to 4 13 cable connector 4 5 to 4 9 digital I O signal connections 4 7 to 4 8 pin assignments figure 4 5 pin descriptions table 4 6 power connections 4 8 to 4 9 cabling 4 13 digital I O 4 7 to 4 8 I O connector exceeding maximum ratings caution 4 1 pi...

Page 110: ...A 4 STB signal table 4 9 T technical support E 1 to E 2 telephone and fax support numbers E 2 timing specifications 4 9 to 4 12 mode 1 input timing figure 4 10 mode 1 output timing figure 4 11 mode 2 bidirectional timing figure 4 12 signal descriptions table 4 9 transfer rate specifications A 3 to A 4 U unpacking DAQCard DIO 24 1 7 W WR signal table 4 9 ...

Reviews: