Omega OME-PCI-1002 User Manual

Pci data acquisition board

Advertisement

Quick Links

User' s Guide
Shop online at
www.omega.com
e-mail: info@omega.com
OME-PCI-1002
PCI Data Acquisition Board
Hardware Manual

Advertisement

Table of Contents
loading

Summary of Contents for Omega OME-PCI-1002

  • Page 1 User’ s Guide Shop online at www.omega.com e-mail: info@omega.com OME-PCI-1002 PCI Data Acquisition Board Hardware Manual...
  • Page 2 Toll Free in United Kingdom: 0800-488-488 e-mail: sales@omega.co.uk It is the policy of OMEGA to comply with all worldwide safety and EMC/EMI regulations that apply. OMEGA is constantly pursuing certification of its products to the European New Approach Directives. OMEGA will add the CE mark to every appropriate device upon certification.
  • Page 3: Table Of Contents

    Table of Contents INTRODUCTION..........................5 ......................5 ENERAL ESCRIPTION ......................... 6 LOCK IAGRAMS ............................ 7 EATURES ........................... 8 PECIFICATIONS 1.4.1 Power Consumption ......................8 Analog Inputs........................8 1.4.2 1.4.3 D/I and D/O ..........................9 1.4.4 A/D Trigger Methods ......................9 1.4.5 Interrupt Channel ........................
  • Page 4 8254 T ........................36 IMER ........................36 TRIGGER A/D C ........................38 ONVERSION 4.4.1 A/D Conversion Trigger Modes..................... 40 4.4.2 A/D Transfer Modes....................... 40 4.4.3 Software trigger and Polling technique................. 41 SOFTWARE AND DEMO PROGRAM..................44 DIAGNOSTIC PROGRAM......................45 -ON P &...
  • Page 5: Introduction

    A/D buffer and a data transfer rate of 2.7M words per second in non-burst mode. This powerful A/D control mechanism offers flexibility for various applications while minimizing system I/O overhead. The OME-PCI-1002 series is fully “Plug and Play” compatible and can operate at the full speed of the PCI bus (33MHz). This important feature makes the OME-PCI-1002 a high performance, cost effective solution for most data acquisition applications.
  • Page 6: Block Diagram

    PCI Interface System Status Local System Controller Control Interrupt Digital Inputs 16 bits DI 16 bits DO Digital Outputs Pacer 4MHz Generator A/D control logic 12-bit A/D Gain Analog Inputs Data Converter Buffer Figure 1-1. The OME-PCI-1002 series block diagram.
  • Page 7: Features

    1.3 Features • Bus: 5V PCI (Peripherals Component Interface) bus. 1. A/D: • One A/D converter with maximum 110K samples/second. • 32 single-ended / 16 differential programmable inputs for OME-PCI-1002L/H. • Three different A/D trigger methods. • Three different external trigger methods. •...
  • Page 8: Specifications

    1.4 Specifications 1.4.1 Power Consumption • +5V @ 960mA maximum, OME-PCI-1002L/H • Operating temperature : 0°C to +70°C 1.4.2 Analog Inputs • Channels: ( software programmable ) • 32 single-ended inputs/16 differential inputs, jumper selectable. • Gain control : ( software programmable ) OME-PCI-1002H, Gains - 1, 10, 100, 1000.
  • Page 9: D/I And D/O

    2. Pacer trigger: 16-bit programmable timer/counter 3. External trigger: Pre-trigger, Post-trigger, external Pacer trigger Pacer or software trigger External trigger Start Start Normal trigger mode Post-trigger mode External trigger External trigger Start Start External pacer trigger mode Pre-trigger mode Figure 1-2. Trigger methods of OME-PCI-1002.
  • Page 10: Interrupt Channel

    1.4.5 Interrupt Channel • Interrupt: INTA (Automatically assigned by PCI-controller). • Enable/Disable: Via PCI control register and add-on control register. • Interrupt source: (Selected by on-board control register) 1. A/D conversion interrupt 2. Pacer 0 interrupt (Timer 0) 3. Pacer 1 interrupt (Timer 1) 4.
  • Page 11: Applications

    Temperature monitor. Vibration analysis. Energy management. Industrial and laboratory measurement and control. Process Control Signal Analysis Multi-I/O signals Transition Temperature OME-PCI-1002 Speech Analysis Frequency series Vibration Other Laboratory PCI interface Process Monitor Single-task or multitask Figure 1-4. OME-PCI-1002 series multifunction cards.
  • Page 12: Product Check List

    1.6 Product Check List In addition to this manual, the package includes the following items: • One OME-PCI-1002 card • One CD-ROM Release Notes The release notes contain the latest information updates. We strongly suggest that you read them first.
  • Page 13: Hardware Configuration

    2. Hardware Configuration 2.1 Board Layout CON3 CON1 CON2 Figure 2-1. OME-PCI-1002 board layout.
  • Page 14: Jumper Setting

    2.2 Jumper Setting There is only one jumper on the OME-PCI-1002. JP1 is used to select the analog input type. For single-ended inputs, users should connected pin 1, 3 and pin 2, 4. For differential inputs, Pin 3, 5 and Pin 4, 6 should be connected.
  • Page 15: System Block

    2.4 System Block Diagram 8254 Timer A/D Buffer Data Interrupt Trigger Converter controller Logic Interface Controller Dispatch Multiplexers, controller Gain Amp. NVRA Scale Adj. External Trigger PCI BUS Figure 2-2. OME-PCI-1002 System Function Block.
  • Page 16: Daughter Boards

    The OME-DB-8225 provides a on-board CJC (Cold Junction Compensation) circuit for thermocouple measurement and a terminal block for easy signal connection. The CJC is connected to A/D channel_0. The OME-PCI-1002 can connect CON3 direct to the OME-DB-8225 through a 37-pin D-sub connector. Refer to the OME-DB-8225 user manual for details.
  • Page 17: Ome-Db-16P Isolated Input Board

    2.5.5 OME-DB-16P Isolated Input Board The OME-DB-16P is a 16-channel isolated digital input daughter board. The optically isolated inputs of the OME-DB-16P consist of a bi-directional optocoupler with a resistor for current sensing. You can use the OME-DB-16P to sense DC signal from TTL levels up to 24V or use the OME-DB-16P to sense a wide range of AC signals.
  • Page 18: Ome-Db-16R Relay Board

    2.5.6 OME-DB-16R Relay Board The OME-DB-16R, 16-channel relay output board consists of 16 form C relays that can be switched under program control. Applying 5 volts to the appropriate relay channel through the 20-pin flat connector can energize the relays. Each relay has its own LED that will light when the relay is energized.
  • Page 19: Analog Input Signal Connection

    2.6 Analog Input Signal Connection The OME-PCI-1002 can measure signals in the single-ended or differential mode. In the differential mode each channel has a unique signal HIGH and signal LOW connection. In the single-ended mode all channels have a unique signal HIGH connection but share a common LOW or ground connection.
  • Page 20 Figure 2-3A If the source is grounded, a second ground connection on the card could result in a ground loop. Figure 2-3B...
  • Page 21 Figure 2-4 Figure 2-5...
  • Page 22 R is a shunt resistor. A 250Ω shunt resistor converts 4-20mA to 1-5Vdc. Signal Shielding The signal shielding connections in Figure 2-3 to Figure 2-6 are all the same Use a single connection to frame ground (not A.GND or D.GND) OME-PCI-1002 A.GND D.GND Frame Ground...
  • Page 23: Jumper Setting

    2.7 Jumper Settings There is only one jumper on the OME-PCI-1002. JP1 is used to select the analog input type. For single-ended inputs, users should connect Pin-1, 3 and Pin-2, 4. For differential inputs, Pin-3, 5 and Pin-4, 6 should be connected.
  • Page 24: The Connectors

    2.8 The Connectors CON1: Digital output connector pin assignment. Name Name Digital output 0 Digital output 1 Digital output 2 Digital output 3 Digital output 4 Digital output 5 Digital output 6 Digital output 7 Digital output 8 Digital output 9 11 12 Digital output 10 Digital output 11...
  • Page 25 CON3: Analog input/output connector pin assignment. (For OME-PCI-1002H/L) Name Name Analog input 0/0+ Analog input 16/0- Analog input 1/1+ Analog input 17/1- Analog input 2/2+ Analog input 18/2- Analog input 3/3+ Analog input 19/3- Analog input 4/4+ Analog input 20/4- Analog input 5/5+ Analog input 21/5- Analog input 6/6+...
  • Page 26: I/O Registers

    3. I/O Registers 3.1 How to Find the I/O Address The Plug & Play BIOS will assign a valid I/O address to all OME-PCI-1002 cards in the system during the computer’s power-on stage. The ID numbers of OME-PCI-1002 are shown below: •...
  • Page 27 /* Step1: Detect all OME-PCI-1002 card first */ wRetVal=P1002_DriverInit(&wBoards); printf("There are %d OME-PCI-1002 Cards in this PC\n",wBoards); /* Step2: save resource of all OME-PCI-1002 cards installed in this PC */ for (i=0; i<wBoards; i++) P1002_GetConfigAddressSpace(i,&wBase,&wIrq,&wPLX); printf("\nCard_%d: wBase=%x, wIrq=%x, wPLX=%x", i,wBase,wIrq,wPLX);...
  • Page 28: The I/O Address Map

    3.2 The I/O Address Map The OME-PCI-1002 registers are given below. The address of each register is determined by adding the offset to the base address of the corresponding section. Section Offset Name Access Length PCI interrupt control 8/16/32 bits...
  • Page 29: Section 1

    2. If your system supports “Shared IRQ”, several peripherals may share the same IRQ at the same time. You must use Bit-2 to find out if an IRQ was generated from the OME-PCI-1002 or a different device! 3. For more information about the PCI interrupt control, please refer to...
  • Page 30: Section 2

    3.2.2 Section 2 This group of registers is used by the add-on control logic. 64 bytes of I/O locations are used. Their detailed descriptions are shown below 3.2.2.1 The 8254 Registers The 8254, programmable timer/counter, is used to generate periodic interrupts, A/D trigger and the machine independent timer.
  • Page 31: The Status Register

    3.2.2.4 The Status Register Address 10h is used is the status register. Reading from this address will return the data from the status register. The format of status register is: Bit7-6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Gain 8245 8245 8245 Analog A/D Busy...
  • Page 32 3.2.2.6 Clear Interrupt Reading from 1Ch will clear the add-on interrupt. 3.2.2.7 The Analog Input Selection Register The analog input channel selection register uses address 10h and address 14h is used by the analog gain control selection register. Write 0-31 to port 10h to select the channel number (for differential input, write 0-15).
  • Page 33 Bit 1-0 Interrupt source A/D trigger method selection register selection register 3.2.2.8.1 Interrupt Source Selection There are four interrupt sources selectable for the OME-PCI-1002 (see section 1.4.4). [Bit4,Bit3,Bit2] Description [ 0, 0, 0 ] No interrupt source, disable all interrupts.
  • Page 34 3.2.2.8.2 Trigger Method Selection There are several trigger methods that can be selected by the user (see section 1.4.5): [Bit1,Bit0 ] Descriptions [ 0, 0 ] General trigger mode. 8254 timer 0 trigger (internal pacer trigger ) or software trigger. [ 0, 1 ] External clock trigger mode.
  • Page 35: Function Operation

    4. Function Operation 4.1 Digital I/O The OME-PCI-1002 series provides 16 digital input channels and 16 digital output channels. All signals are TTL compatible. The connector and block diagrams are given below: BaseAddr+20h read signal. DI port Local Data Bus D0 ...
  • Page 36: The Block Diagram

    4.2 The 8254 Timer The OME-PCI-1002 series provide 3 independent 16-bit timer/counters. Each timer has a different function. Timer 0 is used as Pacer 0. Timer 1 is used as Pacer 1. Timer 2 is used as the machine independent timer. The block diagram is given as follows:...
  • Page 37 Recover time 100ns ∞ Note: The OME-PCI-1002 is designed only for time sensitive triggers (trigger is dependent only on the time of the falling edge of signal). For a level sensitive external trigger (trigger is dependent on the level of the input signal), the user can build the following...
  • Page 38: A/D Conversion

    All modes are selected by a control register on the OME-PCI-1002 and are supported by the utility software. Below are key points for successfully collecting A/D data: A/D data register, BASE+30h, stores the A/D conversion data.
  • Page 39 If the user calls P1002_Delay(), counter 0 will be reserved and can not be used as a user programmable timer/counter. The A/D converter requires a trigger signal to start an A/D conversion cycle. The OME-PCI-1002 supports three trigger modes, software, pacer and external trigger.
  • Page 40: A/D Conversion Trigger Modes

    4.4.1 A/D Conversion Trigger Modes The OME-PCI-1002 supports three trigger modes. 1 : Software Trigger : Write any value to A/D software trigger control register, BASE+1Ch, will initiate a A/D conversion cycle. This mode is very simple but very difficult to control sampling rate.
  • Page 41: Software Trigger And Polling Technique

    Software Trigger and Polling Techniques The steps below should be followed for software triggering and polling: 1. Send 00h to A/D mode control register (software trigger + polling transfer) 2. Send channel number to multiplexer control register. 3. Send the gain control code value to gain control register. 4.
  • Page 42 l=inp(wBaseAddr+2*4); /* delay starting two clks */ h=inp(wBaseAddr+2*4); for (count=32767;count>0;count--){ outp(wBaseAddr+12,0x80); /* latch counter_2 */ l=inp(wBaseAddr+8); h=inp(wBaseAddr+8); if (h>=0x80) return NoError; return TimeOut; //-------------------------------------------------------- void AdPolling(UCHAR channel, UCHAR gain, WORD delay) outp(wBaseAddr+0x18,0); // Select Mode 0 outp(wBaseAddr+0x10,channel); outp(wBaseAddr+0x14,gain); P1002_Delay(delay); outp(wBaseAddr+0x1c,01); // A/D software tirgger void SetupTimer(WORD wChannel, WORD wCoef) WORD cmd;...
  • Page 43 P1002_DriverInit(&wBoards); printf("\n(1) Threr are %d OME-PCI-1002 Cards in this PC",wBoards); if ( wBoards==0 ) putch(0x07); putch(0x07); putch(0x07); printf("(1) There are no OME-PCI-1002 card in this PC !!!\n"); exit(0); printf("\n(2) Show the Configuration Space of all OME-PCI-1002:"); for(i=0; i<wBoards; i++) P1002_GetConfigAddressSpace(i,&wBaseAddr,&wIrq,&wPLX);...
  • Page 44: Software And Demo Program

    5. Software and Demo Program 1. Demo programs for DOS • …\1002\BC\LARGE\DEMO> ← demo program • …\1002\BC\LARGE\LIB> ←library and driver • DEMO1: Digital output. • DEMO2: Digital output and Digital input test by itself. • DEMO3: A/D Polling for channel 0. •...
  • Page 45: Diagnostic Program

    Step 4: The I/O base address of all OME-PCI-1002 cards installed in the system will be displayed. Step 5: Verify that the total number of boards is correct Step 6: If more than one card, install a 20-pin flat cable on one of the OME-PCI-1002...
  • Page 46: D I/O Test

    6.3 D I/O Test Step 1: Power-off the PC. Step 2: Install one OME-PCI-1002 card with a 20-pin flat cable between CON1 & CON2. Step 3: Power-on the PC then run DEMO2.EXE. Step 4: The DO and DI are displayed as TEST OK or TEST ERROR.
  • Page 47 Department will issue an Authorized Return (AR) number immediately upon phone or written request. Upon examination by OMEGA, if the unit is found to be defective, it will be repaired or replaced at no charge. OMEGA’s WARRANTY does not apply to defects resulting from any action of the purchaser, includ- ing but not limited to mishandling, improper interfacing, operation outside of design limits, improper repair, or unauthorized modification.
  • Page 48 Where Do I Find Everything I Need for Process Measurement and Control? OMEGA…Of Course! Shop online at www.omega.com TEMPERATURE Thermocouple, RTD & Thermistor Probes, Connectors, Panels & Assemblies Wire: Thermocouple, RTD & Thermistor Calibrators & Ice Point References Recorders, Controllers & Process Monitors...

This manual is also suitable for:

Ome-pci-1002hOme-pci-1002l

Table of Contents