PCI4400. Hardware Manual. Analog Data Acquisition Board for IBM PC AT with PCI bus. RTD USA BME Laboratories. PCI4400 Hardware Manual

Similar documents
AD3500/ADA3500 User s Manual

AD3300/ADA3300 User s Manual


DM5416 User s Manual. Real Time Devices, Inc. Accessing the Analog World. Publication No /20/96

DM408/DM5408 User s Manual

PCI4520 -High-speed Bus Master 12bit Analog Data Acquisition Slot Board for IBM PC with PCI bus

AD2110/ADA2110 User s Manual

DA800 User s Manual Real Time Devices, Inc.

PCL-818L High-performance DAS card with programmable gain

Register Map for the PCIM-DAS16JR/16

PCI-1751U. 48-bit Digital Input/Output Card with Universal PCI Bus. User Manual

CPCI-AD32. Intelligent DSP Based 32 Channel Analog Input Card for 3U CompactPCI systems REFERENCE MANUAL Version 1.

DM210/DM5210 User s Manual

PCI bit Digital Input/ Output Card for PCI Bus. User s Manual

CHAPTER 1 GENERAL INFORMATION

TPMC Channel Motion Control. User Manual. The Embedded I/O Company. Version 1.0. Issue 1.3 March 2003 D

Registers Format. 4.1 I/O Port Address

PCL-1800 High-speed DAS card with programmable gain

Chapter 1 Introducing the OM-USB-1608FS-Plus... 6 Functional block diagram... 6

DaqBoard/1000. Series 16-Bit, 200-kHz PCI Data Acquisition Boards

Temperature measurement board, optically isolated, 16/8/4 channels for thermocouples, Pt100, RTD, 18-bit

DT3016. High-Speed, Multifunction PCI Data Acquisition Board. Overview. Key Features. Supported Operating Systems

OP8/16 Optoisolated Digital Input Board User's Manual

Low Cost Multifunction I/O 100 ks/s, 12-Bit, 8 Analog Inputs

PCI-ADC. PCI Multi-function Analogue/Digital Interface Card. User Manual

ATC-AD8100K. 8 Channel 100 khz Simultaneous Burst A/D in 16 bits IndustryPack Module REFERENCE MANUAL Version 1.

DIGIDATA 1200 THEORY AND OPERATION

IP-THERMISTOR. 6 CHANNELS TEMPERATURE 8-CHANNEL VOLTAGE Industry Pack module HARDWARE REFERENCE MANUAL. Revision 1.0 JANUARY, 2008

AD12-16(PCI)EV. Features. Analog Input Board for PCI AD12-16(PCI)EV 1. Ver.1.02

DM5806/DM6806 User s Manual

16AIO 16-Bit Analog Input/Output Board With 32 Input Channels, 4 Output Channels and 16-Bit Digital I/O Port

16-Channel 16-Bit PMC Analog I/O Board

AIO AH-PCI. Features. Packing List. 12-bits Analog I/O Board (High Gain) for PCI AIO AH-PCI 1. Ver.1.04

AD16-16(PCI)EV. Features. High-Resolution Analog Input Board for PCI AD16-16(PCI)EV 1. Ver.1.02

USER S MANUAL. Series IP330A Industrial I/O Pack 16-Bit High Density Analog Input Module

16AIO Bit Analog Input/Output Board. With 16 Input Channels and 8 Output Channels

Features. High-precision Analog input board (Low Profile size) for PCI Express AI-1616L-LPE AI-1616L-LPE 1. Ver.1.01

A 40-pin connector provides access to 24 DIO connections.

PMC-16AIO 16-Bit Analog Input/Output PMC Board With 32 Input Channels, 4 Output Channels and 16-Bit Digital I/O Port

PCI-DAS6402/16 Specifications

GPIO-MM User Manual. FPGA-based PC/104 Counter/Timer and Digital I/O Module. User Manual v1.04

PC-CARD-DAS16/12 Specifications

A variety of ECONseries modules provide economical yet flexible solutions. Waveform Generation

IP-AD Channel 500 khz Simultaneous IndustryPack Module REFERENCE MANUAL Version 1.4 June 2003

CPCI-16AIO Channel 16-Bit Analog I/O CPCI Board With 8 Input Channels, 8 Output Channels, and Auto calibration

PC-CARD-DAS16/16 Specifications

PC104P-16AIO Bit Analog Input/Output PC104-Plus Board

PMC-DA Channel 16 Bit D/A for PMC Systems REFERENCE MANUAL Version 1.0 June 2001

PCI Bit, 1 MS/s Analog Input Board. User's Guide. November Rev 8 Measurement Computing Corporation

TPMC500. Optically Isolated 32 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2014

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

Chapter 1 Introducing the OM-USB-1608G Series...6 Functional block diagram...7

AD16-16(PCI)EV. Features. High-Resolution Analog Input Board for PCI AD16-16(PCI)EV 1. Ver.1.01

Technical Manual SMART TRAC DM6420 Multi I/O Card

AD12-16(PCI)EV. Features. Analog Input Board for PCI AD12-16(PCI)EV 1. Ver.1.01

TPMC x ADC, 16x/0x DAC and 8x Digital I/O. Version 1.0. User Manual. Issue May 2018

Model PCL Six Channel D/A Output Card

Advanced NI-DAQmx Programming Techniques with LabVIEW

UNIT - II PERIPHERAL INTERFACING WITH 8085

PCI-12AIO 12-Bit Analog Input/Output PCI Board

Analog Input Sample Rate

PMC-12AIO. 12-Bit PMC Analog Input/Output Board

PMC-12AI Channel, 12-Bit Analog Input PMC Board. With 1,500 KSPS Input Conversion Rate

TPMC815 ARCNET PMC. User Manual. The Embedded I/O Company. Version 2.0. Issue 1.2 November 2002 D

GPIO-MM User Manual. FPGA-based PC/104 Counter/Timer and Digital I/O Module. User Manual v1.0 Personality 0x22

AIO UE3-PE. Features. 1MSPS 12-bit Analog I/O Board for PCI Express AIO UE3-PE 1. Ver.1.01

CPCI-12AI Channel, 12-Bit Analog Input CPCI Board With 1,500 KSPS Input Conversion Rate

TPMC810. Isolated 2x CAN Bus. Version 1.1. User Manual. Issue June 2009

DIAMOND-MM-32-AT 16-Bit Analog I/O PC/104 Module with Autocalibration

TPMC Channel Isolated Serial Interface RS422/RS485. Version 1.0. User Manual. Issue July 2009

Specifications

PCIe-862x Series Board User Manual

PCI-DAS1602/12 Specifications

Register Map and Descriptions

PCI-HPDI32A-COS User Manual

PMC-16AI Channel, 16-Bit Analog Input PMC Board. With 500 KSPS Input Conversion Rate. Features Include: Applications Include:

High-speed 2-channel IN / 2-channel OUT data I/O system

DMM-16R-AT / DMM-16RP-AT

Question Bank Microprocessor and Microcontroller

CPCI-SIP-PLX. Slave 2- IndustryPack Carrier for 3U CompactPCI systems REFERENCE MANUAL Version 1.2 August 2008

AIO LN-USB. Features. N Series for USB Multifunction DAQ Unit (8ch AI, 2ch AO, 16ch DIO) AIO LN-USB 1. Ver.1.01

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

DIAMOND-MM-48-AT Autocalibrating 16-bit Analog I/O PC/104 Module With Relays and Optocouplers

USB-201-OEM. Analog and Digital I/O. User's Guide

MOTENC Axis PCI Motion & I/O Control Board. Reference Manual Rev 1A, April Copyright 2004 VITAL Systems Inc

ACR8000 Hardware Manual

APCI-ADADIO. Introduction. Warning. Features. Getting Started

32-CHANNEL 16-BIT TRANSDUCER INPUT PMC

12AI Channel, 12-Bit Analog Input PMC Board. With 1,500 KSPS Input Conversion Rate

DaqBoard/2000 Series 16-Bit, 200-kHz PCI & CompactPCI Data Acquisition Boards

USB-2527 Specifications

Overview: Functional Description:

DM7820 User's Manual Versatile High Speed Digital I/O

MOTENC-Lite 4-Axis PCI Motion & I/O Control Board. Reference Manual Rev 1.1, June 20, Copyright 2005 VITAL Systems Inc

MSI-P440 USER MANUAL

128 Kb Dual-Port SRAM with PCI Bus Controller (PCI-DP)

TPMC Channel Isolated Serial Interface RS232. Version 1.0. User Manual. Issue August 2017

PCI to SH-3 AN Hitachi SH3 to PCI bus

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

User s Guide OMB-DAQBOARD-2000 SERIES. High Performance PCI-Based Data Acquisition Boards. Shop online at omega.com

Transcription:

PCI4400 Analog Data Acquisition Board for IBM PC AT with PCI bus RTD USA BME Laboratories Hardware Manual RTD USA BME Laboratories 1998 1

RTD USA BME Laboratories 1998 2

1. OVERVIEW... 7 1.1. ANALOG-TO-DIGITAL CONVERSION... 8 1.2. DIGITAL-TO-ANALOG CONVERSION... 9 1.3. 8254 TIMER/COUNTERS... 9 1.4. DIGITAL I/O... 9 1.5. HIGH-SPEED DIGITAL INPUT... 9 1.6. SYNCBUS...10 1.7. WHAT COMES WITH YOUR BOARD...10 1.8. BOARD ACCESSORIES...10 1.9. HARDWARE ACCESSORIES...10 1.10. USING THIS MANUAL...10 1.11. WHEN YOU NEED HELP...10 2. BOARD INSTALLATION...11 2.1. BOARD INSTALLATION...11 2.2. EXTERNAL I/O CONNECTIONS...12 2.3. CONNECTING THE ANALOG INPUT PINS...15 2.3.1. Ground Referenced Single-Ended (GRSE) input mode...16 2.3.2.Non Referenced Single-Ended (NRSE) input mode...18 2.3.3. Differential (DIFF) input mode...19 2.4. CONNECTING THE ANALOG OUTPUTS...20 2.5. CONNECTING THE TIMER/COUNTERS AND DIGITAL I/O...20 2.6. RUNNING THE DIAGNOSTICS PROGRAM...20 3. HARDWARE DESCRIPTION...21 3.1. THE OPERATION OF ANALOG INPUT AND HIGH-SPEED DIGITAL INPUT SECTION...21 3.1.1. Overal Description...21 3.1.2 Channel Gain Latch (CGL) and Channel Gain Table (CGT)...21 3.1.3. A/D Converter...23 3.1.4. A/D FIFO - Sample Buffer...23 3.1.5. Data Transfer...23 3.1.6. High-Speed Digital Input section...23 3.2. ANALOG OUTPUT...24 3.3. TIMER/ COUNTERS...24 3.4. DIGITAL I/O...25 4. CONFIGURATION REGISTERS AND REGISTER ADDRESS SPACES OF PCI4400...27 4. 1. PCI CONFIGURATION REGISTERS...28 4. 2. LOCAL ADDRESS SPACE 0 (LAS0)...30 4.2.1. Local Address Space 0 + 0h: Function Select register (Write only)...30 4.2.2. Local Address Space 0 + 2h: Function argument register (Write only)...30 4.1.3. Local Address Space 0 +4h: User Input read / User Output Write (Read/write)...51 4.2.4. Local Address Space 0 +8h: FIFO Status Register / A/D Conversion Start (Read/write)...52 4.2.5. Local Address Space 0 +Ah: Software update D/A1 (Write only)...53 4.2.6. Local Address Space 0 +Ch: Software update D/A2 (Write only)...53 4.2.7. Local Address Space 0 +12h: Simultaneous Software Update D/A1 and D/A2 (Write only).53 4.2.8. Local Address Space 0 +14h: Pacer Clock Software Start trigger / Pacer Clock Software Stop trigger...53 4.2.9. Local Address Space 0 +16h: Timer Counter Status Register (Read only)...54 4.2.10. Local Address Space 0 +18h: Interrupt Status/Mask Register Read/write)...55 RTD USA BME Laboratories 1998 3

4.2.11. Local Address Space 0 +1Ah: Interrupt Clear Register (Read/Write)...58 4.2.12. Local Address Space 0 +1Ch: Interrupt Overrun Register (Read/Write)...59 4.3. LOCAL ADDRESS SPACE 1 (LAS1)...60 4.3.1. Local Address Space 1 +0h: Read A/D FIFO (Read only)...60 4.3.2. Local Address Space 1 +2h: Read High Speed Digital Input FIFO (Read only)...60 4.3.3. Local Address Space 1 +4h: Write D/A1 FIFO (Write only)...61 4.3.4. Local Address Space 1 +6h: Write D/A2 FIFO (Write only)...61 4.4. LOCAL ADDRESS SPACE 2 (LAS2)...62 4.4.1. Local Address Space 2 +0h,1h,2h, 4h,5h,6h, 8h,9h,Ah, Ch,Dh,Eh : Timer/Counter 0,1,2...63 4.4.2. Local Address Space 2 +3h, 7h, Bh, Fh: Timer/Counter control word...63 4.4.3. Local Address Space 2 +10h - Digital I/O chip Port 0, Bit Programmable Port (Read/Write)64 4.4.4. Local Address Space 2 +11h - Digital I/O chip Port 1, Byte Programmable Port (Read/Write)...64 4.4.5. Local Address Space 2 + 12h - Read/Program Port 0 Direction/ Mask/ Compare Registers (Read/Write)...64 4.4.6. Local Address Space 2 + 13h - Read Digital IRQ Status/Program Digital Mode (Read/Write)66 5. A/D CONVERSION...68 5.1. BEFORE STARTING CONVERSIONS: INITIALIZING THE BOARD...68 5.1.1. Before Starting Conversions (single-channel mode): Programming Channel, Gain, Input Range and Type using Channel Gain Latch (CGL)...68 5.1.2. Before Starting Conversions (multi-channel mode): Programming the Channel-Gain Table (CGT)...68 5.1.3. 16-Bit A/D Table...68 5.1.4. Channel Select, Gain Select, Input Range and Input Type...69 5.1.5. Pause bit...69 5.1.6. D/Ax update bits...69 5.1.7. Skip bit...69 5.1.8. 8-Bit Digital Table...70 5.1.9. Setting Up A/D part and Digital part of Channel Gain Table...70 5.1.10. Using the Channel Gain Table for A/D Conversions...71 5.1.11. Channel-gain Table and Throughput Rates...71 5.2. A/D CONVERSION MODES...71 5.2.1. Start A/D Conversion signal...71 5.2.2. Pacer Clock Start/Stop Trigger Select....72 5.2.3. Types of Conversions...74 5.3. READING THE CONVERTED DATA...76 5.4. USING THE A/D DATA MARKERS...76 5.5. PROGRAMMING THE PACER CLOCK...76 5.5.1. Selecting 16-bit or 32-bit Pacer Clock...77 5.5.2. Programming Steps...77 5.6. PROGRAMMING THE BURST CLOCK...78 5.7. PROGRAMMING THE ABOUT COUNTER...79 5.7.1. Using the About Counter to Create Large Data Arrays...79 6. D/A CONVERSION...80 6.1. 1024 SAMPLE BUFFER...82 6.2. D/A CYCLED OR NOT CYCLED MODE...83 6.3. D/A UPDATE COUNTERS...83 6.4. D/A DATA MARKERS...83 7. INTERRUPS...84 7.1. THE OPERATION OF PRIORITY INTERRUPT CONTROLLER...84 7.2. ADVANCED DIGITAL INTERRUPTS...84 RTD USA BME Laboratories 1998 4

7.2.1. Event Mode...84 7.2.2. Match Mode...84 7.2.3. Sampling Digital Lines for Change of State...85 8. TIMER/COUNTERS...86 8.1. TIMER/COUNTERS:OPERATING MODES...87 9. DIGITAL I/O...90 9.1. THE DIGITAL I/O CHIP...91 9.1.1 Port 0, Bit Programmable Digital I/O...91 9.1.2. Advanced Digital Interrupts: Mask and Compare Registers...91 9.1.3. Port 1, Port Programmable Digital I/O...92 9.1.4. Resetting the Digital Circuitry...92 9.1.5. Strobing Data into Port 0...92 9.2. HIGH-SPEED DIGITAL INPUT...92 9.3. DIGITAL INPUT DATA MARKERS...92 10. CALIBRATION...94 10.1. REQUIRED EQUIPMENT...94 10.2. A/D CALIBRATION...94 10.2.1. Bipolar Calibration...94 10.2.3. Unipolar Calibration...96 10.2.4. Gain Adjustment...97 10.3. D/A CALIBRATION...98 11. SPECIFICATIONS...100 11.1. COMPUTER INTERFACE...100 11.2. ANALOG INPUT CIRCUTIRY...100 11.3. A/D CONVERTER...100 11.4. A/D SAMPLE BUFFER...100 11.5. CHANNEL GAIN TABLE...101 11.6. CLOCKS AND COUNTERS...101 11.7. DIGITAL I/O...101 11.8. D/A CONVERTER AND D/A CIRCUITRY...101 11.9. DA SAMPLE BUFFER...101 RTD USA BME Laboratories 1998 5

RTD USA BME Laboratories 1998 6

1. Overview The PCI4400 board turns your PC (with PCI bus) into a high-speed, high-performance data acquisition and control system. Installed within a single PCI expansion slot in the computer, this board features: 8 differential, 16 single-ended analog input channels, 12-bit, 1.25Msample/s analog-to-digital converter, Programmable input ranges: +-5, +-10, or 0 to +10 volts, Programmable gains of 1, 2, 4, 8, 16, 32, 64 & 128, 1024 x 24 channel-gain scan memory with skip bit, Software, pacer clock and external trigger modes, Scan, burst and multiburst using the channel-gain table, 16-bit programmable high speed sample counter and 16-bit delay counter, 1024 sample A/D buffer for gap-free high speed sampling under Windows TM and DOS Pre-, post- and about-trigger modes, 8-bit High-Speed Digital Input with 1K FIFO, 8 bit programmable digital I/O lines with Advanced Digital Interrupt modes, 8 bit port programmable digital I/O lines, Twelve 16-bit timer/counters (three software configurable available to user) and on-board 8 MHz clock, Two 12-bit, 10 microsecond digital-to-analog output channels with 100 khz throughput, +-5, 0 to +5, +-10, or 0 to +10 volt analog output range, Two 1024 sample D/A buffers for gap-free high speed output under Windows TM and DOS 4-bit analog output data/trigger marker, three-line SyncBus for synchronized multi-board operation Built-in interrupt priority controller for several simultaneous interrupt source handling, PCI target Interface. The following paragraphs briefly describe the major functions of the PCI4400. A detailed discussion of board functions is included in subsequent chapters. The Figure 1.1 shows a simplified block diagram of the board. RTD USA BME Laboratories 1998 7

SyncBus Signals 3-line SyncBus Interface Control Logic EPLD User Clock User Gate User Out 8254 Timer/Counter Section 3 16bit User Timer/ Counter Pacer clock/ Burst Clock Timer/ Counter A/D, D/A1, D/A2 Sample Timer/ Counter Delay, About, D/A clock Timer/ Counter 1K*24bit Channel Gain Table Analog Inputs Channel Select from CGT Gain Select from CGT Analog Input Multiplexer Programmable Gain (1,2,4,8,16,32, 64,128) Digital I/O Lines (8) P1 Digital I/O Lines (8)P0 High-Speed Digital Inputs Digital I/O chip P1 - byte programmable P0 - bit programmable Analog Outputs Sample clock 12bit 1.25Ms/s A/D Converter Sample clock Digital Sampler Circuit Update clocks two 12bit 10 us D/A Converter A/D FIFO 1KW High-Speed Digital Input FIFO 1KB 1KW D/A FIFO 1KW PCI Interface PCI bus Figure 1.1 1.1. Analog-to-Digital Conversion The PCI4400 is software configurable on a channel-by-channel basis for up to 16 single-ended (Ground referenced or Non ground referenced) or 8 differential analog inputs. Software programmable unipolar and bipolar input ranges and gains allow easy interfacing to a wide range of sensors. Overvoltage protection to +-12 volts is provided at the inputs. The common mode input voltage for differential operation is +-10 volts. A/D conversions are typically performed in 0.8 microseconds, and the maximum throughput rate of the board is 1.25 MHz. In the case of multi-channel operation the Channel Gain Table FIFO controls RTD USA BME Laboratories 1998 8

the analog multiplexers, gain, and the A/D conversion. Conversions can be controlled by software command, by an on-board pacer clock, by using triggers to start and stop sampling, or by using the sample counter to acquire a specified number of samples. Several trigger sources can be used to turn the pacer clock on and off, giving you exceptional flexibility in data acquisition. Scan, burst, and multiburst modes are supported by using the channel-gain table. A first in, first out (FIFO) sample buffer helps your computer manage the high throughput rate of the A/D converter by acting as an elastic storage bin for the converted data. Even if the computer does not read the data as fast as conversions are performed, conversions can continue until the FIFO is full. The converted data can be transferred using the programmed I/O mode or interrupt mode. A special interrupt mode using a REP INS (Repeat Input String) instruction supports very high speed data transfers. By generating an interrupt when the FIFO's half-full flag is set, or a specified number of data are converted, a REP INS instruction can be executed, transferring data to PC memory and emptying the FIFO buffer at the maximum rate allowed by the data bus. 1.2. Digital-to-Analog Conversion The digital-to-analog (D/A) circuitry features two independent 12-bit analog output channels with individually programmable output ranges of -5 to +5 volts, 0 to +5 volts, -10 to +10 volts or 0 to +10 volts. Each channel has it's own 1024 sample FIFO buffer for data storage before being output. Data can be continuously written to the buffer producing a non-repetitive output waveform or a set of data can be written into the buffer and continuously cycled to produce a repeating waveform. Updating of the analog outputs can be done through software or by several different clocks and triggers. The outputs can be updated simultaneously or independently. 1.3. 8254 Timer/Counters Four 8254 programmable interval timers provide twelve (three each) 16-bit, 8 MHz timer/counters to support a wide range of board operations and user timing and counting functions. Nine of the 16-bit timer/counters are used for board operation. Two are used for the pacer clock, one is used for the burst clock, one is used for the A/D sample counter, one is used for the D/A1 sample counter, one is used for the D/A2 sample counter, one is used for the A/D delay counter, one is used for the A/D about counter, one is used for D/A output clock. The three remaining timer/counters are available for user functions. 1.4. Digital I/O The PCI4400 has 16 buffered TTL/CMOS digital I/O lines with eight independent, bit programmable lines at Port 0, and an 8-bit programmable port at Port 1. The bit programmable lines support RTD's two Advanced Digital Interrupt modes. An interrupt can be generated when any bit changes value (event interrupt), or when the lines match a programmed value (match interrupt). For either mode, masking can be used to monitor selected lines. Lines are pulled up by 10KOhm resistors. Port 0 and Port 1 are accessed through the rear CN2 Back-Plate 68 pin I/O connector. 1.5. High-Speed Digital Input The PCI4400 has 8 buffered TTL/CMOS high-speed digital input lines with a 1024 sample FIFO buffer. These lines are shared with the Digital I/O P0 port. Lines are pulled up by 10KOhm resistors and can be accessed through the rear CN2 Back-Plate 68 pin I/O connector. Several different clock sources can be used to sample the digital inputs or sampling can be synchronized to the A/D conversions.. RTD USA BME Laboratories 1998 9

1.6. SyncBus A Synchronization bus is provided to share clocking and triggering signals between multiple boards in one computer. 1.7. What Comes With Your Board You receive the following items in your board package: PCI4400 DAQ board DOS Software Support (Diagnostics and C example programs) Windows 95 Driver Hardware and Software manual If any item is missing or damaged, please call Real Time Devices' Customer Service Department at (814) 234-8087. If you require service outside the U.S., contact your local distributor. 1.8. Board Accessories In addition to the items included in your PCI4400 package, Real Time Devices offers a full line of software and hardware accessories. Call your local distributor or our main office for more information about these accessories and for help in choosing the best items to support your board's application. 1.9. Hardware Accessories Hardware accessories for the PCI4400 include the TB68 terminal board and the XK-CM20 flat ribbon cable assembly for external interfacing. 1.10. Using This Manual This manual is intended to help you install your new board and get it running quickly, while also providing enough detail about the board and its functions so that you can enjoy maximum use of its features even in the most complex applications. We assume that you already have an understanding of data acquisition principles and that you can customize the example software or write your own application programs. 1.11. When You Need Help This manual and the example programs in the software package included with your board provide enough information to properly use all of the board's features. If you have any problems installing or using this board, contact our Technical Support Department, (814) 234-8087, during regular business hours, eastern standard time or eastern daylight time, or send a FAX requesting assistance to (814) 234-5218. When sending a FAX request, please include your company's name and address, your name, your telephone number, and a brief description of the problem. You can also contact us through our E-mail address techsupport@rtdusa.com. RTD USA BME Laboratories 1998 10

2. Board Installation The PCI4400 is easy to install in your PC computer with PCI bus. This chapter tells you step-bystep how to install and connect the board. After you have installed the board and made all of your connections, you can turn your system on and run the board diagnostics program included on your example software disk to verify that your board is working. 2.1. Board Installation Keep the board in its anti-static bag until you are ready to install it in your computer. When removing it from the bag, hold the board at the edges and do not touch the components or connectors. Before installing the board in your computer, check the switch settings (SW1 and SW2) to configure the analog input lines. There are no other switch or jumpers to configure on the board. Chapter 3 explains the role of switches (SW1), (SW2) and reviews the factory settings and how and why to change them. To install the board: 1. Turn OFF the power to your PC. 2. Remove the top cover of the computer housing (refer to your owner s manual if you do not already know how to do this). 3. Select any unused PCI expansion slot (rev. 2.0 or greater) and remove the slot bracket. 4. Touch the metal housing of the computer to discharge any static buildup and then remove the board from its anti-static bag. 5. Holding the board by its edges, orient it so that its card edge (bus) connectors line up with the expansion slot connectors in the bottom of the selected expansion slot. 6. After carefully positioning the board in the expansion slot so that the card edge connectors are resting on the computer s bus connectors, gently and evenly press down on the board until it is secured in the slot. NOTE: Do not force the board into the slot. If the board does not slide into place, remove it and try again. Wiggling the board or exerting too much pressure can result in damage to the board or to the computer. 7. After the board is installed, secure the slot bracket back into place and put the cover back on your computer. The board is now ready to be connected via the external I/O connector at the rear panel of your computer. Be sure to observe the keying when connecting your external cable to the I/O connector. RTD USA BME Laboratories 1998 11

2.2. External I/O Connections Figure 2.1. shows the PCI4400 s CN2 68- pin male I/O connector at the backplate, and the Table 2.2.1. shows the pinouts while Table 2.2.2 gives the description of signals. Refer to these diagrams as you make your I/O connections. Pin2 Pin1 Pin68 Pin67 Figure 2.2.1 68-pin connector part number: Board = AMP 2-174341-5 Cable = AMP 786096-7 RTD USA BME Laboratories 1998 12

AIN 9 / AIN1-2 1 AIN 1 / AIN1+ AIN 10 / AIN2-4 3 AIN 2 / AIN2+ AIN 11 / AIN3-6 5 AIN 3 / AIN3+ AIN 12 / AIN4-8 7 AIN 4 / AIN4+ AGND 10 9 AINSENSE AIN 13 / AIN5-12 11 AIN 5 / AIN5+ AIN 14 / AIN6-14 13 AIN 6 / AIN6+ AIN 15 / AIN7-16 15 AIN 7 / AIN7+ AIN 16 / AIN8-18 17 AIN 8 / AIN8+ AGND 20 19 AGND Reserved 22 21 AOUT 1 Reserved 24 23 AOUT 2 AGND 26 25 Reserved AGND 28 27 AGND D/A 2 DATA MARKER 0 30 29 D/A 1 DATA MARKER 0 P1.7 / DIG TABLE 7 32 31 HIGH SPEED INPUT 7 / P0.7 P1.6 / DIG TABLE 6 34 33 HIGH SPEED INPUT 6 / P0.6 P1.5 / DIG TABLE 5 36 35 HIGH SPEED INPUT 5 / P0.5 P1.4 / DIG TABLE 4 38 37 HIGH SPEED INPUT 4 / P0.4 P1.3 / DIG TABLE 3 40 39 HIGH SPEED INPUT 3 / P0.3 P1.2 / DIG TABLE 2 42 41 HIGH SPEED INPUT 2 / P0.2 P1.1 / DIG TABLE 1 44 43 HIGH SPEED INPUT 1 / P0.1 P1.0 / DIG TABLE 0 46 45 HIGH SPEED INPUT 0 / P0.0 DGND 48 47 TRIGGER INPUT RESET 50 49 EXTERNAL PACER CLOCK INPUT DGND 52 51 EXTERNAL INTERRUPT INPUT USER INPUT 1 54 53 USER INPUT 0 USER OUTPUT 1 56 55 USER OUTPUT 0 DGND 58 57 TC OUT 0 EXTERNAL TC GATE 1 60 59 EXTERNAL TC CLOCK 1 TC OUT 2 62 61 TC OUT 1 EXTERNAL TC GATE 2 64 63 EXTERNAL TC CLOCK 2 DGND 66 65 +5 VOLTS DGND 68 67 +5 VOLTS Table 2.2.1 RTD USA BME Laboratories 1998 13

Pin Number Signal Name Signal Description Type 1,2,3,4,5,6,7,8,11, 12,13,14,15,16,17,18 AINx / AINx+/ AINx- Analog Input SE Analog input high sides / DIFF analog input high sides / DIFF analog inputs low sides. 10,19,20,26,27,28 AGND Analog Analog ground. 9 AINSENSE Analog Input Reference Signal in Non ground referenced Single Ended (NRSE) input mode. 21,23 AOUT x Analog Analog outputs. Output 22,24,25 Reserved - Not connected pins. 29,30 D/A x DATA Digital D/A 1 and D/A 2 data marker outputs. MARKER 0 Output 31,33,35,37,39,41, 43,45 High-speed inputs to digital input FIFO / Bit programmable Port 0 lines from digital I/O Chip. 32,34,36,38,40,42, 44,46 HIGH SPEED INPUT x / P0.x / Digital Input Data Markers P1.x / DIG TABLE x Digital Input / Output Digital Input / Output Port programmable Port 1 lines from digital I/O Chip / Outputs from digital part of channel gain table. 48,52,58,66,68 DGND Digital Digital ground. 47 TRIGGER INPUT Digital Input External trigger input to trigger A/D pacer clock. (LS TTL) 49 EXTERNAL PACER CLOCK INPUT Digital Input External pacer clock to clock A/D. (LS TTL) 51 EXTERNAL INTERRUPT INPUT Digital Input 53,54 USER INPUT x Digital Input 55,56 USER OUTPUT x Digital Output 57,61,62 TC OUT x Digital Output 59,63 EXTERNAL TC Digital CLOCK x Input 60,64 EXT GATE x Digital Input 50 RESET Digital Output Programmable rising or falling edge external Interrupt source. (LS TTL) User Input 0 and User Input 1 can be read by the LAS0+04h I/O read instruction.. (LS TTL) The source of these buffered lines can be programmed. (LS TTL) Buffered outputs from the user timer/counters. (LS TTL) External clock signals that go to the software programmable clock source select circuit for the user timer/counters. (LS TTL) External gate signals that go to the software programmable clock source select circuit for the user timer/counters. (LS TTL) Active low reset output line asserted when the host PC is in hardware reset, or the Board Clear Command is active. (LS TTL) 65,67 +5 VOLTS Power +5 Volts from the computer power supply to power front end boards. (Max. 2A) Table 2.2.2. - CN2 I/O Connector Signal Description RTD USA BME Laboratories 1998 14

2.3. Connecting the Analog Input Pins The PCI4400 provides flexible input connection capabilities to accommodate a wide range of sensors. You can mix several input modes: Ground Referenced Single-Ended (GRSE), Non Referenced Single-Ended (NRSE), Differential (DIFF) without ground reference, Differential with a dedicated ground, Differential with a separate ground reference through a 10 kohm resistor. These three modes of input configuration are software selectable. Inside the differential mode the differential without ground reference, differential with a dedicated ground or differential with a separate ground reference through a 10 kohm resistor can be done by setting the DIP switches on SW1 and SW2. The position of the SW1 and SW2 Switches can be seen in the Figure 2.3.1. RTD USA BME Laboratories 1998 15

AIN1/AIN1+ PCI4400 Data Acquisition Board AIN2/AIN2+ AIN3/AIN3+ AIN4/AIN4+ AIN5/AIN5+ AIN6/AIN6+ AIN7/AIN7+ AIN8/AIN8+ AIN9/AIN1- AIN10/AIN2- AIN11/AIN3- AIN12/AIN4- AIN13/AIN5- AIN14/AIN6- AIN15/AIN7- AIN16/AIN8- SW1-1... SW1-8 SW2-1... SW2-8 10k AINSENSE 10k AGND Figure 2.3.1. The Differential with a dedicated ground mode is actually a single ended mode, but you only have 8 channels and each channel has a dedicated ground pin and ground wire in the cable between the board and the signal conditioning card. This mode can be useful when the shielding of the signal is important. The analog input configurations are shown in the following diagrams. In the diagrams you can see the simplified block diagram of the analog input section of the board. The NRSEH, ADCDIFFH INSTGNDH, AINSENSEH are signals used internal to the board for controlling the analog input operation. The switches represent analog multiplexers. 2.3.1. Ground Referenced Single-Ended (GRSE) input mode This mode is suggested only for floating signal sources to avoid ground loops. To configure the GRSE analog input, connect the high side of the input signal to the selected analog input channel, AIN1 RTD USA BME Laboratories 1998 16

through AIN16, and connect the low side to any of the ANALOG GND pins available at the connector. If you use channels 9-16 be sure that the appropriate SW1-x and SW2-x switches are off. (See Figure 2.3.1.) In Figure 2.3.2 you can see the switch states of this mode. All of the analog inputs are routed to the positive (+) input of the instrumentation amplifier. The negative (-) input of the amplifier is connected to analog ground and the signal source is connected to analog ground. AIN1.. AIN8 PCI4400 Data Acquisition Board Input Multiplexers Instrumentation Amplifier Floating Signal Source + - AIN9.. AIN16 From Input Multiplexers + - ADCDIFFH=L To A/D Converter AINSENSE AGND INSTGNDH=H AINSENSEH=L NRSEH=L Figure. 2.3.2.Ground Referenced Single Ended input mode RTD USA BME Laboratories 1998 17

2.3.2.Non Referenced Single-Ended (NRSE) input mode This mode can be used for grounded signal sources or for floating sources. In the case of floating sources, an external 10 kohm resistor should be connected between the AINSENSE pin and an ANALOG GROUND pin. To configure the NRSE analog input, connect the high side of the input signal to the selected analog input channel, AIN1 through AIN16, and connect the low side to the AINSENSE pin available at the connector. If you use channels 9-16 be sure that the appropriate SW1-x and SW2-x switches are off. (See Figure 2.3.1.) In Figure 2.3.3 you can see the switch states of this mode. All of the analog inputs are routed to the positive (+) input of the instrumentation amplifier. The negative (-) input of the amplifier is brought out to CN2 connector pin 9 and the signal source ground is connected to this pin. AIN1.. AIN16 PCI4400 Data Acquisition Board Instrumentation Amplifier Grounded Signal Source + - Input Multiplexers From Input Multiplexers + - ADCDIFFH=L To A/D Converter AINSENSE INSTGND=L NRSEH=H AGND AINSENSEH=H Figure. 2.3.3 Non Referenced Single-Ended input mode RTD USA BME Laboratories 1998 18

2.3.3. Differential (DIFF) input mode For differential inputs, your signal source may or may not have a separate ground reference. When using the differential mode, you may need to close the selected channel s DIP switch on SW2 to provide a reference to ground for a signal source without a separate ground reference. (Figure 2.3.4.) When you close a DIP switch on SW2, make sure that the corresponding DIP switch on SW1 is open, or the resistor will be bypassed. If you want to use direct grounding the appropriate SW1 switch can be switched on. Connect the high side of the analog input to the selected analog input channel, AIN1+ through AIN8+, and connect the low side to the corresponding AIN- pin. In Figure 2.3.4 you can see the switch states of this mode. All of the AIN+ signals are routed to the positive (+) input of the instrumentation amplifier and all of AIN- signals are routed to the negative (-) input of the amplifier. AIN1+.. AIN8+ PCI4400 Data Acquisition Board Floating Signal Source + - Input Multiplexers AIN1-.. AIN8- Instrumentation Amplifier + - To A/D Converter 10k ADCDIFFH=H AINSENSE INSTGND=L NRSEH=X AGND SW2 DIP SW AINSENSEH=L Figure 2.3.4. Differential input mode RTD USA BME Laboratories 1998 19

2.4. Connecting the Analog Outputs For each of the two D/A outputs, connect the high side of the device receiving the output to the AOUT channel and connect the low side of the device to an ANALOG GND. 2.5. Connecting the Timer/Counters and Digital I/O For all of these connections, the high side of an external signal source or destination device is connected to the appropriate signal pin on the I/O connector, and the low side is connected to any DIGITAL GND. All digital I/O lines and timer/counter lines have a 10 kohm pull up resistor. 2.6. Running the Diagnostics Program Now that your board is ready to use, you will want to try it out. An easy-to-use diagnostics program (4400diag.exe) is included with your example software to help you verify your board s operation. RTD USA BME Laboratories 1998 20

3. Hardware Description This chapter describes the features of the PCI4400 hardware. The major circuits are the A/D, the D/A, the timer/counters, and the digital I/O lines. This chapter describes the hardware, which makes up these major circuits. 3.1. The Operation of Analog Input and High-Speed Digital Input Section 3.1.1. Overall Description Figure 3.1.1 shows the structure of the analog input section of the board. The board has 16 single-ended (ground referenced or non-ground referenced) or 8 differential inputs which are multiplexed. The input voltage range is software programmable for -5 to +5 volts, -10 to +10 volts, or 0 to +10 volts. Overvoltage protection to ±12 volts is provided at the inputs. The multiplexed signal can be amplified with programmable gain. Software programmable binary gains of 1, 2, 4, 8, 16, 32, 64, and 128 let you amplify lower level signals to more closely match the board s input ranges. The signal is then fed to the A/D converter and the converted data is written to the 1024 sample FIFO. The high-speed digital input lines (P0.0 - P0.7) can be simultaneously sampled along with the analog input lines. This mode is the Input Data Marker Mode, which can be used to sample digital data synchronized with analog signals. To use this mode the sampling signal for the high-speed digital input lines (programming function 206) must be set for A/D conversion signal. The sampled digital data is written to the High-Speed Digital Input FIFO. The channel type, the channel gain and other control bits may come from the channel gain latch or from the channel gain table. The Channel Gain Latch should be used for single-channel operation and the Channel Gain Table should be used in multi-channel operation. 3.1.2 Channel Gain Latch (CGL) and Channel Gain Table (CGT) For single channel applications, the Channel Gain Latch should be used to control the input channel and gain. This latch can be written at any time through software and is best suited for sampling that is strictly under software control or when the input channel is not changing. The Channel-Gain Table lets you sample channels in any order, at high speeds, with a different gain on each channel. This 1024 x 24-bit memory supports complex channel-gain scan sequences, including digital output control. Using the digital output control feature, you can control external input expansion boards such as the TMX32 to expand channel capacity to up to 512 channels. When used, these control lines are output on Port 1. When the digital lines are not used for this feature, they are available for other digital control functions. A skip bit is provided in the channel gain table to support different sampling rates on different channels. When this bit is set, an A/D conversion is performed on the selected channel but the result is not stored in the FIFO. To use the channel gain table, you must first load the table with the channel/gain information and then enable it for use. After this setup the read pointer of the channel gain table points to the first entry in the table. The first A/D conversion works according to the first entry of CGT. As soon as the conversion is started the channel gain table is incremented to the next entry. When the current conversion is done, the A/D data is written into the sample buffer and a conversion is started on the next entry in the table. When the channel gain table reaches the end, it will automatically reset back to the beginning and start over. Since the channel gain table uses a FIFO scheme, there is no need to tell the board how many entries are in the table. RTD USA BME Laboratories 1998 21

The channel gain table allows independent programming of the channel type (GRSE, NRSE or DIFF), the channel gain (1-128) and the input range (+-5V, +-10V or 0-10V). There are also control bits provided to allow pausing the channel gain table, skipping data storage and controlling the D/A update from the entries in the channel gain table. These functions will be discussed in more detail in chapter 5. Analog Inputs AIN1 AINM* *:Diff. M=8 Se.: M=16 Input MUX Program mable Gain A/D Converter 12bit Max. 1.25Ms/s Start of Conver. End of Conver. 1K*16bi t A/D FIFO Full Half Full Empty Data to Host PC A/D FIFO Status flags Conversion Signal Sources Control Logic Conversion Signal Channel Gain Table - Multichannel Operation / Channel Gain Latch - Single Channel (Analog trigger mode) Operation Multiplexer Analog CGT Enable Entry Number Max. 1023 0.. 16 1.. 128 Control bits Analog Channel Gain Table (CGT) Memory P1-0 P1-7 0 1 2 Digital Table Enable Channel Number P1 Digital Oputput Line driver Channel Gain 0.. 16 1.. 128 0.. 16 1.. 128 0.. 16 1.. 128 Entry Number 0 1 Control Section Control bits Control bits Control bits External MUX control 8 bit 0.. 31 0.. 31 Max. 1023 0.. 31 Digital Table Memory Figure 3.1.1. Channel Number Read CGT Channel Gain 0.. 16 1.. 128 Control bits Channel Gain Latch CGT Pointer Increment Logic Control Section End of Conversion Signal RTD USA BME Laboratories 1998 22

3.1.3. A/D Converter The 12-bit successive approximation A/D converter accurately digitizes dynamic input voltages in 0.8 microseconds, for a maximum throughput rate of 1.25 MHz. The converter IC contains a sampleand-hold amplifier, a 12-bit A/D converter, a 2.5-volt reference, a clock, and a digital interface to provide a complete A/D conversion function on a single chip. Its low power CMOS logic combined with a high precision, low noise design gives you accurate results. Conversions are controlled by software command, by pacer clock, by using triggers to start and stop sampling, or by the sample counter to acquire a specified number of samples. An on-board or external pacer clock can be used to control the conversion rate. Conversion modes are described in Chapter 5, A/D Conversions. 3.1.4. A/D FIFO - Sample Buffer A first in, first out (FIFO) 1024 sample buffer helps your computer manage the high throughput rate of the A/D converter by providing an elastic storage bin for the converted data. Even if the computer does not read the data as fast as conversions are performed, conversions will continue until a FIFO full flag is sent to stop the converter. The sample buffer does not need to be addressed when you are writing to or reading from it, internal addressing makes sure that the data is properly stored and retrieved. All data accumulated in the sample buffer is stored intact until the PC is able to complete the data transfer. Its asynchronous operation means that data can be written to or read from it at any time, at any rate. When a transfer does begin, the data first placed in the FIFO is the first data out. 3.1.5. Data Transfer The converted data can be transferred to PC memory in one of two ways. Data can be transferred using the programmed I/O mode or the interrupt mode. A special interrupt mode using a REP INS (Repeat Input String) instruction supports very high-speed data transfers. By generating an interrupt when the FIFO s half full flag is set or when the sample counter counts down to zero, a REP INS instruction can be executed, transferring data to PC memory and emptying the sample buffer at the maximum rate allowed by the data bus. 3.1.6. High-Speed Digital Input section Figure 3.1.2 shows the block diagram of the High-Speed Digital Input section. The sampling signal can be selected from several different sources including the A/D conversion signal. This will synchronize the digital inputs to the A/D sampling. The sampled data is written automatically to the High-Speed Digital Input FIFO. The digital data can be transferred to PC memory in one of two ways. Data can be transferred using the programmed I/O mode or the interrupt mode. A special interrupt mode using a REP INS (Repeat Input String) instruction supports very high-speed data transfers. User counter TC1 can be used to count the samples that are stored in the sample FIFO. By generating an interrupt when TC1 counts down to zero, a REP INS instruction can be executed, transferring data to PC memory and emptying the sample buffer at the maximum rate allowed by the data bus. RTD USA BME Laboratories 1998 23

High-Speed Digital Input - 8 bit P0-0 P0-7.... Software Command A/D Conversion Signal Multiplexer Digital Sampling Circuit Sampling 1K*8bit High- Speed Digital input FIFO Full Half Full Data to Host PC Flags to Host PC User Timer/Counter 0 User Timer/Counter 1 User Timer/Counter 2 External Pacer Clock External Trigger Software Selection Figure 3.1.2 3.2. Analog Output The digital-to-analog (D/A) circuitry features two independent 12-bit analog output channels with individually programmable output ranges of -5 to +5 volts, 0 to +5 volts, -10 to +10 volts or 0 to +10 volts. Each channel has it's own 1024 sample buffer for data storage before being output. Data can be continuously written to the buffer producing a non-repetitive output waveform or a set of data can be written into the buffer and continuously cycled to produce a repeating waveform. Data can be written into the output buffers by I/O instruction. Updating of the analog outputs can be done through software or by several different clocks and triggers. The outputs can be updated simultaneously or independently. 3.3. Timer/ Counters Four 8254 programmable interval timers provide twelve 16-bit, 8-MHz timer/counters to support a wide range of timing and counting functions. The 8254 at U40 are the Clock TC. Two of its 16-bit timer/counters, Counter 0 and Counter 1, are cascaded and reserved for the Pacer Clock. The pacer clock is described in Chapter 5. The third timer/counter in the Clock TC, Counter 2, is the Burst Clock. The 8254 at U41 are the Sample Counter TC. Counter 0 is the A/D sample counter, Counter 1 is the D/A1 update counter, and Counter 2 is the D/A2 update counter. The 8254 at U42 are the pacer clock control and D/A clock TC. Counter 0 is the Delay Counter, Counter 1 is the About Counter, and Counter 2 is the D/A clock. The 8254 at U43 are the User TC. All three counters on this chip are available for user functions. Each 16-bit timer/counter has two inputs, CLK in and GATE in, and one output, timer/counter OUT. The sources of User TC clock and gate inputs can be programmed. (See Chapter 4.) Each TC can be programmed as binary or BCD down counters by writing the appropriate data to the command word, as RTD USA BME Laboratories 1998 24

described in Chapter 4. The command word also lets you set up the mode of operation. The six programmable modes are: Mode 0 Event Counter (Interrupt on Terminal Count) Mode 1 Hardware-Retriggerable One-Shot Mode 2 Rate Generator Mode 3 Square Wave Mode Mode 4 Software-Triggered Strobe Mode 5 Hardware Triggered Strobe (Retriggerable) These modes are detailed in the 8254 Data Sheet, reprinted from Intel in Appendix C. 3.4. Digital I/O The 16 digital I/O lines can be used to transfer data between the computer and external devices. Eight lines are bit programmable and eight lines are byte, or port, programmable. Port 0 provides eight bit programmable lines which can be independently set for input or output. These ports support RTD s two Advanced Digital Interrupt modes. An interrupt can be generated when the lines match a programmed value or when any bit changes its current state. A Mask Register lets you monitor selected lines for interrupt generation. Port 1can be programmed as an 8-bit input or output port. Chapter 10 details digital I/O operations and Chapter 7 explains digital interrupts. RTD USA BME Laboratories 1998 25

RTD USA BME Laboratories 1998 26

4. Configuration Registers and Register Address Spaces of PCI4400 The PCI4400 is a PCI bus board with a PCI bus target interface. The board has two configuration register areas and three operation register areas. The configuration registers are the PCI Configuration Register and the Local Configuration Register. Both of these configuration areas are loaded automatically at power-up from an on-board EEPROM and should not be changed by the user. The three operation areas are defined as Local Address Space 0 (LAS0), Local Address Space 1 (LAS1) and Local Address Space 2 (LAS2). These spaces can be accessed by I/O instructions and read/write all of the control registers for the board. The base addresses of these spaces are assigned by the PCI BIOS at boot time and can be read back via PCI BIOS calls. LAS0 is a 32-byte long 16-bit wide register area, which contains the Function Select/Argument registers, status, command registers, and the registers of the built-in priority interrupt controller. The Function Select and Argument Registers are the main tools for setting up the board. LAS1 is an 8 byte long 16 bit wide register area for transferring A/D data, D/A data and High Speed Digital Input data to and from the board. Chip. LAS2 is a 32-byte long 8-bit wide register area for the Timer/Counter chips and the Digital I/O RTD USA BME Laboratories 1998 27

4. 1. PCI Configuration Registers The definition of the PCI configuration area is shown in Table 4.1. Table 4.2 shows the actual values stored in these configuration registers. These registers are written when the computer is first powered on by the PCI BIOS and should not be changed. All of these register locations can be accessed using standard PCI BIOS calls. The PCI BIOS automatically assigns address space and interrupt lines for each PCI board it finds at boot time. These registers must be read by any software trying to access the board to find the assigned address and interrupt. Configuration Address Offset PCI Writable Byte3 Byte2 Byte1 Byte0 00h No Device Identification Vendor Identification 04h Yes Status Command 08h No Class Code Revision 0Ch Yes (7..0) BIST Header Type PCI Latency Timer Cache Line Size 10h Yes PCI Base Address 0 for Memory Mapped Local Configuration Registers 14h Yes PCI Base Address 1 for I/O Mapped Local Configuration Registers 18h Yes PCI Base Address 2 for Local Address Space 0 1Ch Yes PCI Base Address 3 for Local Address Space 1 20h Yes PCI Base Address 4 for Local Address Space 2 24h Yes Reserved 28h No Reserved 2Ch No Subsystem ID Subsystem Vendor ID 30h Yes PCI Base Address for Local Expansion ROM 34h No Reserved 38h No Reserved 3Ch Yes (7..0) Max_Lat Min_Gnt Interrupt Pin Interrupt Line Table 4.1 RTD USA BME Laboratories 1998 28

Field Contents Comment Vendor Identification 1435h Value Assigned to Real Time Devices Inc. by the PCI Special Interest Group Device Identification 4400h Type number of the Board Class Code FF0000h No Applicable Class Code Cache Line Size 00h has no effect PCI Latency Timer 00h Not Supported Header Type 00h Single Function PCI Device BIST 00h The Built In Self Test is not Supported PCI Base Address 0 for Memory Mapped Assigned by Controls the operation of local system Local Configuration Registers the PCI BIOS PCI Base Address 1 for I/O Mapped Local Assigned by Controls the operation of local system Configuration Registers the PCI BIOS PCI Base Address 2 for Local Address Space 0 (LAS0) Assigned by the PCI BIOS LAS0 is the base address of the configuration/setup area of PCI4400 PCI Base Address 3 for Local Address Space 1 (LAS1) PCI Base Address 4 for Local Address Space 2 (LAS2) Assigned by the PCI BIOS Assigned by the PCI BIOS LAS1 is the base address of the A/D, D/A, and High-Speed Digital Input data transfer area of PCI4400 LAS2 is the base address of the Timer/Counter and the Digital I/O chip of PCI4400 Subsystem ID 00h No subsystem Subsystem Vendor ID 00h No subsystem PCI Base Address for Local Expansion 00000000h No external BIOS ROM Interrupt Line Assigned by Interrupt Line the PCI BIOS Interrupt Pin 01h INTA# Interrupt Min_Gnt 00h Bus mastering not supported Max_Lat 00h Bus mastering not supported Table 4.2 RTD USA BME Laboratories 1998 29

4. 2. Local Address Space 0 (LAS0) This I/O address space can be used to setup, configure and control the operation of the PCI4400 board. It can be accessed by word (16 bit) wide I/O instructions. Range size is 32 byte. Read Function Write Function Local Address Space 0 + Offset - Function Select 00h (16-bit) - Function Argument 02h (16-bit) Read User Inputs Write User Outputs 04h (16-bit) - - 06h (16-bit) Read FIFO Status Software A/D Start 08h (16-bit) - Software D/A1 Update 0Ah (16-bit) - Software D/A2 Update 0Ch (8-bit) - - 0Eh (16-bit) - - 10h (16-bit) - Software Simultaneous D/A1 and D/A2 Update 12h (16-bit) Software Pacer Start Software Pacer Stop 14h (16-bit) Read Timer Counters Status Read Interrupt Status Clear Interrupt set by the Clear Mask Read Interrupt Overrun Register Software High-Speed Digital Input sample Write Interrupt Enable Mask Register Set Interrupt Clear Mask 16h (16-bit) 18h (16-bit) 1Ah (16-bit) 1Ch (16-bit) Clear Interrupt Overrun Register - - 1Eh (16-bit) Table 4.1.1. 4.2.1. Local Address Space 0 + 0h: Function Select register (Write only) Write operation (16-bit) A write selects one of the following functions to be programmed via the Function Argument - LAS0 + 2 address. Simple functions without arguments also need a write to LAS0 + 2 but the data is irrelevant. See tables on the following pages. 4.2.2. Local Address Space 0 + 2h: Function argument register (Write only) Write operation (16-bit) A write loads the value in the selected register via the Function Select Register - LAS0 + 0. If the function selected by LAS0 + 0 has no argument, a write to this location is needed to terminate the RTD USA BME Laboratories 1998 30

function selection. In this case the data is irrelevant. See the various functions and arguments in the tables on the following pages. After power up or software reset of the board, the registers are set to their initial state. This initial state is designated in the following tables by this sign: The usage of the Function Select/Argument registers are very simple: 1. Write a 16-bit Function Code into the Function Select Register to select the desired function 2. Write the appropriate 16-bit data into the Function Argument Register. If a function does not require an argument value, you must still perform a write to the argument register however the data value does not matter. The following tables and texts show all of the Functions and explain the valid argument values. Function select register and arguments: The Table 4.1.2 shows the board reset Function. Function Function argument Function group Function name code (hex) Board Control Software Reset of the board 0x000F - Table 4.1.2. Function: 0x000F - Software Reset of the board Software Reset of the board resets all internal logic to the initial state at power-up of the board. The Table 4.1.3 shows the A/D conversion and the High-Speed Digital Input Control Functions. Function group Function name A/D Conversion Signal Select Burst Clock start trigger select Pacer Clock start trigger select Functio n code (hex) 0x0200 0x0201 0x0202 Function argument 0x0 = Software A/D Start (WR_LAS0+8h) 0x1 = Pacer Clock (Ext. Int. see Func.509) 0x2 = Burst Clock 0x3 = Advanced Digital Interrupt 0x4 = D/A 1 Data Marker 1 0x5 = D/A 2 Data Marker 1 0x6 = SyncBus 0 0x7 = SyncBus 1 0x8 = SyncBus 2 0x0 = Software A/D Start (WR_LAS0+8h) 0x1 = Pacer Clock 0x2 = External Trigger 0x3 = Advanced Digital Interrupt 0x4 = SyncBus 0 0x5 = SyncBus 1 0x6 = SyncBus 2 0x0 = Software Pacer Start (RD_LAS0+14h) 0x1 = External trigger RTD USA BME Laboratories 1998 31

A/D Conversion and High Speed Digital Input Control Pacer Clock Stop Trigger select 0x0203 About Counter Stop Enable 0x0204 0 = Stop enabled 1 = Stop disabled 0x2 = Advanced Digital interrupt 0x3 = User TC 2 out 0x4 = SyncBus 0 0x5 = SyncBus 1 0x6 = SyncBus 2 0x7 = Reserved 0x8 = Delayed Software Pacer Start 0x9 = Delayed external trigger 0xA = Delayed advanced digital interrupt 0xB = Delayed User TC 2 out 0xC = Delayed SyncBus 0 0xD = Delayed SyncBus 1 0xE = Delayed SyncBus 2 0xF = External Trigger Gated controlled mode 0x0 = Software Pacer Stop (WR_LAS0+14h) 0x1 = External Trigger 0x2 = Advanced Digital Interrupt 0x3 = About Counter 0x4 = User TC2 out 0x5 = SyncBus 0 0x6 = SyncBus 1 0x7 = SyncBus 2 0x8 = About Software Pacer Stop 0x9 = About External Trigger 0xA = About Advanced Digital Interrupt 0xB = Reserved 0xC = About User TC2 out 0xD = About SyncBus 0 0xE = About SyncBus 1 0xF = About SyncBus 2 Pacer Start Trigger Mode select Sampling Signal for High Speed Digital Input Select Clear High Speed Digital Input FIFO Clear A/D FIFO 0x020F - Table 4.1.3 0x0205 0x0 = Single Cycle Mode 0x1 = Trigger Repeat Mode 0x0206 0x0 = Software (Write LAS0+16h) 0x1 = A/D Conversion Signal 0x2 = User TC out 0x3 = User TC out 1 0x4 = User TC out 2 0x5 = External Pacer Clock 0x6 = External Trigger 0x020E - Function: 0x0200 - A/D Conversion Signal Select The A/D Conversion signal select Function is used to choose the A/D sampling signal: 0x0 = conversions are controlled by writing to LAS0+8h (data is irrelevant). 0x1 = conversions are controlled by the internal or an external pacer clock (CN2 pin 49). RTD USA BME Laboratories 1998 32

0x2 = conversions are controlled by the burst clock. 0x3 = conversions are controlled by the Digital I/O chip advanced digital interrupt output 0x4 = conversions are controlled by the D/A 1 digital output data marker 1 which is updated simultaneously with the analog output 1. The conversion is started at the rising edge of data marker. 0x5 = conversions are controlled by the D/A 2 digital output data marker 1 which is updated simultaneously with the analog output 2. The conversion is started at the rising edge of data marker. 0x6 = conversions are controlled by the SyncBus0 signal. 0x7 = conversions are controlled by the SyncBus1 signal. 0x8 = conversions are controlled by the SyncBus2 signal. Function: 0x0201 - Burst Clock start trigger select This function selects the signal that would trigger a Burst mode conversion. Burst mode means that one scan of the channel gain table will occur for each burst trigger received. The speed of the burst sampling is set by the burst clock. This mode is useful for simulating simultaneous sampling or for sampling a group of channels with one trigger pulse. 0x0 = burst clock is started by writing to LAS0+8h (data is irrelevant). 0x1 = burst clock is started by the internal or an external pacer clock (CN2 pin 49). 0x2 = burst clock is started by the External Trigger Input (CN2 pin 47). 0x3 = burst clock is started by the Digital I/O chip advanced digital interrupt output. 0x4 = burst clock is started by the SyncBus0 signal. 0x5 = burst clock is started by the SyncBus1 signal. 0x6 = burst clock is started by the SyncBus2 signal. Function: 0x0202 - Pacer Clock start trigger select This function selects the signal which will be used to start the Pacer Clock. The Pacer Clock is used to control the A/D sampling speed and can be selected to be the Internal Pacer Clock which is generated on the board or an External Pacer Clock which is fed into the board through connector CN2 pin 49.(Pacer clock selection is described in Function 0x0509) 0x0 = pacer clock is started by reading from LAS0+14h. 0x1 = pacer clock is started by an External Trigger Input signal (CN2 pin 47). 0x2 = pacer clock is started by the Digital I/O chip advanced digital interrupt output. 0x3 = pacer clock is started when the output of User TC Counter 2 reaches 0. 0x4 = pacer clock is started by the SyncBus0 signal. 0x5 = pacer clock is started by the SyncBus1 signal. 0x6 = pacer clock is started by the SyncBus2 signal. 0x7 = reserved. The following start trigger sources provide delayed triggering. When the trigger is issued, the A/D Delay Counter- U42 Counter 0, counts down and conversions are started when the A/D Delay Counter reaches 0. The A/D Delay Counter counts at the pacer clock rate. 0x8 = pacer clock is started by reading from LAS0+14h 0x9 = pacer clock is started by an External Trigger Input signal (CN2 pin 47). 0xA = pacer clock is started by the Digital I/O chip advanced digital interrupt output. 0xB = pacer clock is started when the output of User TC Counter 2 reaches 0. 0xC = pacer clock is started by SyncBus0 signal. 0xD = pacer clock is started by SyncBus1 signal. 0xE = pacer clock is started by SyncBus2 signal. RTD USA BME Laboratories 1998 33