User’s Guide Shop online at www.omega.com e-mail: info@omega.
OMEGAnet ® Online Service www.omega.com Internet e-mail info@omega.com Servicing North America: USA: ISO 9001 Certified Canada: One Omega Drive, P.O. Box 4047 Stamford CT 06907-0047 TEL: (203) 359-1660 e-mail: info@omega.com 976 Bergar Laval (Quebec) H7L 5A1, Canada TEL: (514) 856-6928 e-mail: info@omega.
OME-A-822PGH/PGL Enhanced Multi-Function Card Hardware Manual OME-A-822PGL/PGH Hardware Manual ---- 1
Tables of Contents 1. Introduction_________________________________________________________ 4 1.1 General Description __________________________________________________ 4 1.2 Features _____________________________________________________________ 4 1.3 Specifications _________________________________________________________ 5 1.3.1 Power Consumption : ________________________________________________________ 5 1.3.2 Analog Inputs ______________________________________________________________ 5 1.
2.4.9 A/D Software Trigger Control Register _________________________________________ 23 2.4.10 D/O Output Latch Register __________________________________________________ 24 2.5 Digital I/O __________________________________________________________ 25 2.6 8254 Timer/Counter __________________________________________________ 26 2.7 A/D Conversion ______________________________________________________ 27 2.7.1 A/D conversion flow________________________________________________________ 28 2.7.
1. Introduction 1.1 General Description The OME-A-822PGL/PGH is a high performance, multifunction analog, digital I/O board for PC AT compatible computers. The OME-A-822PGL provides low gain (0.5,1, 2, 4, 8). The OME-A-822PGH provides high gain (0.5,1,5,10,50,100,500,1000). The OME-A-822PGL/PGH contains a 12-bit ADC with up to 16 single-ended or 8 differential analog inputs. The maximum sample rate of the A/D converter is 100Ksample/sec.
1.3 Specifications 1.3.1 z z Power Consumption : +5V @960 mA maximum, OME-A-822PGL/PGH Operating temperature : -20°C to 60°C 1.3.2 Analog Inputs z Channels : 16 single-ended or 8 differential z Input range : (software programmable) OME-A-822PGL:bipolar : ±10V,±5V, ±2.5V, ±1.25V, ±0.0625V unipolar : 0 to 10V, 0 to 5V, 0 to 0.2.5V, 0 to 1.25.V OME-A-822PGH:bipolar : ±10,±5V,±1V, ±0.5V, ±0.1V, ±0.05V, ±0.01V, ± 0.005V unipolar : 0 to 10V, 0 to 1V, 0 to 0.1V, 0 to 0.
1.3.4 DA Converter z z z z Channels : 2 independent type : 12 bit multiplying , Analog device AD-7541 Linearity : +/- 1/2 bit Output range : 0 to 5V or 0 to 10V jumper selected , may be used with other AC or DC reference input. Maximum output limit +/- 10V z Output drive : +/- 5mA z settling time : 0.6 microseconds to 0.01% for full scale step 1.3.5 Digital I/O z Output port : 16 bits, TTL compatible Output Low: VOL=05.Vmax @IOL = 8 mA max Output High: VOH = 2.
1.3.7 z z z z z z Type : 82C54 -8 programmable timer/counter Counters : Counter1 and counter2 are cascaded as a 32 bit pacer timer. Counter0 is a user available timer/counter. The software driver also uses counter0 to implement a machine independent timer. Clock input frequency : DC to 10 MHz Pacer output : 0.00047Hz to 0.5MHz Input ,gate : TTL compatible Internal Clock : 2 MHz 1.3.
1.4 Applications z z z z z z z z Signal analysis FFT & frequency analysis Transient analysis Production testing Process control Vibration analysis Energy management Industrial and laboratory. measurement and control 1.5 Product Check List The OME-A-8322PGL/PGH includes the following items: z OME-A-822PGL/PGH multifunction card z OME-A-822PGL/PGH CD ROM Attention ! If any of these items are missing or damaged, please contact our customer service department.
Hardware Configuration 2. 2.
2.2 I/O Base Address Setting The OME-A-822PGL/PGH occupies 16 consecutive locations in I/O address space. The base address is set by DIP switch SW1. The default address is 0x220.
The PC I/O port map is given below. ADDRESS Device ADDRESS DEVICE 000-1FF PC reserved 320-32F XT Hard Disk 200-20F Game/control 378-37F Parallel Printer 210-21F XT Expansion Unit 380-38F SDLC 238-23F Bus Mouse/Alt. Bus Mouse 3A0-3AF SDLC 278-27F Parallel Printer 3B0-3BF MDA/Parallel Printer 2B0-2DF EGA 3C0-3CF EGA 2E0-2E7 AT GPIB 3D0-3DF CGA 2E8-2EF Serial Port 3E8-3EF Serial Port 2F8-2FF Serial Port 3F0-3F7 Floppy Disk 300-31F Prototype Card 3F8-3FF Serial Port 2.
2.3.2 JP2 : D/A Int/Ext Ref Voltage Selection Ch 1 = INT Ch 2 = INT (default) JP2(vref) Ch 1 =EXT (ExtRef1) Ch 2 =EXT (ExtRef2) JP2(vref) Ch 1 = INT Ch 2 =EXT (ExtRef2) JP2(vref) Ch 1 =EXT (ExtRef1) Ch 2 = INT JP2(vref) If JP2 is set to internal reference, then JP1 should be set to -5V or -10V internal reference voltage. If JP2 is set to external reference, then ExtRef1, CN3 pin 31, is the external reference voltage for D/A channel 1.
2.3.4 JP4 : A/D Trigger Source Selection INTTRG Internal Trigger (default) INTTRG External Trigger EXTTRG EXTTRG The OME-A-822PGL/PGH supports two trigger types, internal trigger and external trigger. The external trigger comes from ExtTrg, CN3 pin 17. There are two types of internal triggers, software trigger and pacer trigger. More detailed information is given in section 2.4.8. 2.3.
2.3.6 JP6 : User Timer/Counter Clock Input Selection Internal 2M Clock (default) INTCLK External Clock EXTCLK INTCLK EXTCLK The OME-A-822PGL/PGH has 3 independent 16 bit timer/counters. The cascaded counter1 and counter2 are used as a pacer timer. Counter0 can be used as a user programmable timer/counter. The user programmable timer/counter can be set to 2M internal clock or external clock ExtCLK, CN3 pin 37. The block diagram is given in section 2.6. The clock source must be very stable.
2.3.7 JP7 : DMA DACK Selection, JP8 : DMA DRQ Selection DRQ NO DMA DMA 1 (default) DACK 1 2 1 2 5 6 5 6 JP7 JP8 DRQ DACK 1 2 1 2 5 6 5 6 DMA 3 JP7 JP8 DRQ DACK 1 2 1 2 5 6 5 6 JP7 JP8 The DMA channel can not shared. The OME-A-822 software driver can support 8 different boards in one PC based system, but only two of these boards can use the DMA transfer function.
2.4 I/O Register Address The OME-A-822PGL/PGH occupies 16 consecutive PC I/O addresses. The following table lists the registers and their locations.
2.4.1 8254 Counter The 8254 Programmable timer/counter has 4 registers from Base+0 through Base+3. For detailed programming information on the 8254 , please refer to Intel‘s “Microsystem Components Handbook”. Address Read Write Base+0 8254 Counter 0 8254 Counter 0 Base+1 8254 Counter 1 8254 Counter 1 Base+2 8254 Counter 2 8254 Counter 2 Base+3 Reserved 8254 Counter Control 2.4.
2.4.
2.4.4 D/I Input Buffer Register (READ) Base+6 : D/I Input Buffer Low Byte Data Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 D7 D6 D5 D4 D3 D2 D1 D0 (READ) Base+7 : D/I Input Buffer High Byte Data Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 D15 D14 D13 D12 D11 D10 D9 D8 D/I 16 bits input data : D15..D0, D15=MSB, D0=LSB The OME-A-822PGL/PGH provides 16 TTL compatible digital inputs. The low 8 bits are stored in the address BASE+6.
2.4.6 A/D Gain Control Register (WRITE) Base+9 : A/D Gain Control Register Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 X X X X GAIN3 GAIN2 GAIN1 GAIN0 The only difference between the OME-A-822PGL and OME-A-822PGH is the GAIN control function. The OME-A-822PGL provides gains of 1/2/4/8 and the OME-A-822PGH provides gains of 1/10/100/1000. The gain control register control the gain of the A/D input signal. Bipolar/Unipolar will affect the gain factor.
OME-A-822PGH GAIN CONTROL CODE TABLE BI/UN Settling Time GAIN Input Range GAIN3 GAIN2 GAIN1 GAIN0 BI 23 us 1 +/- 5V 0 0 0 0 BI 28 us 10 +/- 0.5V 0 0 0 1 BI 140 us 100 +/- 0.05V 0 0 1 0 BI 1300 us 1000 +/- 0.005V 0 0 1 1 UNI 23 us 1 0 to 10V 0 1 0 0 UNI 28 us 10 0 to 1V 0 1 0 1 UNI 140 us 100 0 to 0.1V 0 1 1 0 UNI 1300 us 1000 0 to 0.01V 0 1 1 1 BI 23 us 0.5 +/- 10V 1 0 0 0 BI 28 us 5 +/- 1V 1 0 0 1 BI 140 us 50 +/- 0.
2.4.
The software driver provides three data transfer methods, polling, interrupt and DMA. The polling subroutine, A-822_AD_PollingVar() or A-822_AD_PollingArray(), set the A/D mode control register to 0x01. This control word enables software trigger and polling transfer. The interrupt subroutine, A-822_AD_INT_START(…), sets the A/D mode control mode register to ox06. This control word enables pacer trigger and interrupt transfer.
2.4.10 D/O Output Latch Register (WRITE) Base+D : D/O Output Latch Low Byte Data Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 D7 D6 D5 D4 D3 D2 D1 D0 (WRITE) Base+E : D/O Output Latch High Byte Data Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 D15 D14 D13 D12 D11 D10 D9 D8 D/O 16 bits output data : D15..D0, D15=MSB, D0=LSB The OME-A-822PGL/PGH provides 16 TTL compatible digital outputs. The lower 8 bits are stored in address BASE+D.
2.5 Digital I/O The OME-A-822PGL/PGH provides 16 digital input channels and 16 digital output channels. All levels are TTL compatible. The connection diagram and block diagram are given below: Output Latch Register Base+D Latch D0..D7 D0..D7 Power on reset Reset CN2 Reset DI DGND 17..18 DGND 9..16 D8..D15 Base+E TTL 1..8 Latch External Device Output Latch Register OME-A-822PGL/PGH Input Buffer Register Base+6 Read D0..D7 D0..D7 D8..D15 Base+7 Read OME-A-822PGL/PGH CN1 TTL 1..8 17..
2.6 8254 Timer/Counter The 8254 Programmable timer/counter has 4 registers from Base+0 through Base+3. For detailed programming information about the 8254 , please refer to Intel‘s “Microsystem Components Handbook”.The block diagram is shown below. VCC 10K CN3.33 CN3.16 Gate JP6 CN3.37 Cin 2M Cout Counter 0 PACER CLK CN3.35 Cin : clock input Cout : clock output INTCLK : internal clock CN3 : connector CN3 VCC Counter 1 Cin Gate Cout 10K Counter 2 4M 2M INTCLK Cin Gate Cout CN3.
2.7 A/D Conversion This section explains how to perform A/D conversions. The A/D conversion can be triggered 3 ways, by software trigger, by pacer trigger or by external trigger to the A/D converter. At the end of A/D conversion, it is possible to transfer data by 3 ways, those are polling , interrupt and DMA. Before using the A/D conversion functions, the user should be aware of the following issues: z z z A/D data register BASE+4/BASE+5 stores the A/D conversion data (sec. 2.4.
2.7.1 A/D conversion flow Before using the A/D converter, the user should configure the following hardware settings: 1. select single-ended or differential input (JP3) (refer to Sec. 2.9 first) 2. select internal trigger or external trigger (JP4) 3. select IRQ level if needed (JP5) 4. select DMA channel if needed (JP7,JP8) 5. select internal clock or external clock for counter0 if needed (JP6) The user must decide which A/D conversion mode will be used.
2.7.2 A/D Conversion Trigger Modes OME-A-822PGL/PGH supports three trigger modes. 1 : Software Trigger : Write any value to the A/D software trigger control register, BASE+A, to initiate an A/D conversion cycle. This mode is very simple but it is very difficult to achieve a precise sample rate. 2 : Pacer Trigger Mode : The block diagram of the pacer timer is shown in section 2.6. The pacer timer can provide a very precise sample rate.
2.7.4 Using software trigger and polling transfer If the user needs to control the A/D converter without the A-822 software driver, software trigger and polling transfer is suggested. The program steps are listed below: 1. send 0x01 to the A/D mode control register (software trigger + polling transfer) (refer to Sec. 2.4.8) 2. send channel number to the multiplexer control register (refer to Sec. 2.4.7) 3. send the gain control code value to the gain control register (refer to Sec 2.4.6) 4.
2.8 D/A Conversion The OME-A-822PGL/PGH provides two 12 bit D/A converters. Before using the D/A converter function, you should address the following items: z z z z z z D/A output register, BASE+4/BASE+5/BASE+6/BASE+7, (sec. 2.4.3) JP1 jumper set to internal reference voltage -5V or -10V (sec. 2.3.1) JP2 jumper set to internal or external reference voltage (sec. 2.3.
2.9 Analog Input Signal Connection The OME-A-822 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. Differential connections are very useful for low level signals (millivolt), since they better reject electrical noise that can affect the quality of the measurement.
Figure 1-A If the source is grounded, a second ground connection on the card could result in a ground loop.
Figure 2 Figure 3 OME-A-822PGL/PGH Hardware Manual ---- 34
Figure 4 R is a shunt resistor. A 250Ω shunt resistor converts 4-20mA to 1-5Vdc. Signal Shielding z z The signal shielding is the same for the connections shown in Figure 1 to Figure 4 Use a single connection to frame ground (not A.GND or D.GND) Vin OME-A-822PGL/PGH A.GND D.
2.10 Using OME-DB-8225 CJC Output The OME-DB-8225 daughter board contains built-in cold junction compensation (CJC) circuitry that provides a 10mV per Deg C output. With 0.0 Volts @ -273 Deg C. The OME-A-822 should be protected from drafts and direct sunlight in order to accurately reflect room temperature. CJC Calibration: 1. Connect the OME-A-822PGL/PGH to the OME-DB-8225 CN1 2. Set the OME-A-822PGL/PGH to single-ended Mode 3. Set the JP1 jumper to 1-2 and the JP2 jumper to 2-3 ( single-ended mode) 4.
3. Connector The OME-A-822PGL/PGH provides three connectors. Connector 1, CN1 contains the 16 digital inputs. Connector 2, CN2, contains the 16 digital outputs. Connector 3, CN3, contains the analog inputs, analog outputs and timer/counter I/O. 3.1 CN1/CN2/CN3 Pin Assignment CN1 : Digital Input Pin Assignment.
SINGLE-ENDED SIGNAL MODE CN3 : Analog input, Analog output and Timer/Counter Pin Assignment.
DIFFERENTIAL SIGNALS CN3 : Analog input, Analog output and Timer/Counter Pin Assignment.
3.2 Daughter Board The OME-A-822PGL/PGH can be connected with many different daughter boards. The daughter boards are described below: 3.2.1 OME-DB-8225 The OME-DB-8225 provides an 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-A-822PGL/PGH can connect to an OME-DB-8225 through a 37-pin D-sub connector on CN3. 3.2.
4. Calibration The OME-A-822PGL/PGH is factory calibrated for optimum performance. Recalibration is suggested for high vibration environments. The following items are required for calibrating the OME-A-822PGL/PGH. z z z One 6 digit multimeter One stable voltage source (4.9988V) Diagnostic program : this program included with the OME-A822PGL/PGH. 4.1 Description of Variable Resistors There are seven variable resistors(VRs) on the OME-A-822PGL/PGH used for calibration, they are described below. VR Num.
4.2 D/A Calibration 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Run the A82XDIAG.EXE program Press the “Right Arrow Key” to select “CALIBRATION”. Press the “Down Arrow Key” to select “G. D/A REFERENCE”. Press the “Enter Key” Connect VREF, pin 11 of CN3, to a DVM (Digital Volt Meter) Adjust VR5 until the DVM=4.9988V Press the “ESC Key” Select and Execute “A. D/A REFERENCE 1” item Connect D/A channel 0, pin 30 of CN3, to the DVM Adjust VR3 until the DVM=4.9988V Press the “ESC Key” 12. Select and Execute “B.
4.3 A/D Calibration 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Run the A82XDIAG.EXE Press “Right Arrow Key” to select “CALIBRATION” Press the “Down Arrow Key” to select “C. A/D REFERENCE” item. Press the “Enter Key” Input a stable 4.9988V to A/D channel 0, pin 1 of CN3 Adjust VR2 until the A/D data shown on the screen is between 4094 to 4095 Press the “ESC Key” Select and Execute the “D.
5. Diagnostic Utility 5.1 Introduction The A82XDIAG.EXE diagnostic utility is a menu-driven program which allows complete testing of the OME-A-822PGL/PGH board. To run the diagnostic utility, change to the subdirectory used in the installation process (C:\OME-A-822 for example). Then type "A82XDIAG" to start the application. These steps are shown below: C:\>CD A822 C:\A822>CD DIAG C:\A822\DIAG>A82XDIAG A configuration file, named OME-A-82X.
Although you can continue by pressing any key, it is recommended that the jumper situation be corrected since many operations in the A82XDIA utility check the I/O base address and report an error if the configuration file and the actual jumper settings do not match.
5.2 Running The Diagnostic Utility The initial screen of A82XDIAG is shown below. There are five main menus in the initial screen. They are Setup, Calibration, FunctionTest, sPecialTest and Help. Use the Left or Right key to select the main menu. Then use the Up or Down key to select the menu item. Alternately, the user can press the command key to highlight the menu item. A command key in a menu item is the character that is highlighted.
5.2.1 Setup The Setup menu allows the user to setup the board configuration. There are six functions in this muen, Card type, Base Addresss, DMA no, IRQ no, Save option, eXit.
DMA no and IRQ no selection screen OME-A-822PGL/PGH Hardware Manual ---- 48
5.2.2 CALIBRATION The CALIBRATION menu contains ten submenu items: they are, D/A Reference voltage, D/A Channel 0 gain, D/A channel 1 gain, A/D Gain, A/D Offset, A/D Bipolar Offset, A/D Unipolar Offset. These items relate to the calibration of the OME-A-822PGL/PGH. The CALIBRATION main menu, is a graphic representation of the OME-A-822PGL/PGH board layout. In order to maintain the specified performance, it may be required to calibrate the board after working with it for an extended period of time.
5.2.3 FUNCTION TEST The FUNCTION TEST main menu contains seven submenus: they are D/A TEST, Digital I/O, A/D MULTIPLEX, A/D use IRQ, A/D use DMA, A/D GAIN, Timer 0. The main menu is shown below. The “D/A TEST” menu, is shown below.
Test Screen z z z z z z Assume D/A output range 0 to 5V Send D/A output to both channels simultaneously Press pause screen, press
again release screen Press key to increase screen delay Press key to decrease screen delay Press key to quit OME-A-822PGL/PGH Hardware Manual ---- 51
Test Screen z z z z z z z z z z Connect CN1 to CN2 16 bit up counter is sent to 16 channel DO 16 channel DO is connected to 16 channel DI 16 channel DI are readback and show on the screen If DO equals DI then OK shown on screen If DO does not equal DI then Error shown on screen Press pause screen, press
again release screen Press key to increase the screen delay Press key to decrease the screen delay Press key to quit OME-A-822PGL/PGH Hardware Manual ---- 52
Test Screen z z z z Assume 16 channel single-ended, bipolar, gain=1, analog input signals Input range from -5V to +5V Continue to scan 16 channels Press key to quit OME-A-822PGL/PGH Hardware Manual ---- 53
Test Screen z z z z z z z z z z z Assume single-ended, bipolar, gain=1 Use key to select the next channel Use key to select the previous channel Use / key to adjust C1 Use / key to adjust C2 The sample rate = The pacer timer rate = 2000/(C1*C2) K Use key to pause screen, use next
key to release screen Use to quit The A/D mode control register=0x06 Æ select pacer trigger and use interrupt transfer One cycle samples 1000 A/D data points Minimu
Test Screen z z z z z z z z z z z Assume single-ended, bipolar, gain=1 Use key to select the next channel Use key to select the previous channel Use / key to adjust C1 Use / key to adjust C2 Sample rate = pacer timer rate = 2000/(C1*C2) K Use key to pause screen, use next
key to release screen Use to quit A/D mode control register=0x02 Æ select pacer trigger and use DMA transfer One cycle samples 1000 A/D data points Minimum, Maximum and Ave
Test Screen z z z z z Assume single-ended, bipolar, gain=1, A/D channel 0 connected to D/A channel 0 Use / key to adjust gain control code Use / key to adjust D/A output value Use software trigger and polling transfer mode Press key to quit OME-A-822PGL/PGH Hardware Manual ---- 56
Test Screen z z Assume JP6 set to internal 2M clock If the counter0 is functioning normally, the value will increment automatically.
5.2.4 SPECIAL TEST The SPECIAL TEST menu contains four submenu items: they are D/A Volt Set, DIO Bit Pattern, IRQ Clock Test and DMA Clock Test. These functions are reserved for factory testing.
5.2.5 Help The Help menu will display the software version as shown below.
WARRANTY/DISCLAIMER OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period of 13 months from date of purchase. OMEGA’s WARRANTY adds an additional one (1) month grace period to the normal one (1) year product warranty to cover handling and shipping time. This ensures that OMEGA’s customers receive maximum coverage on each product. If the unit malfunctions, it must be returned to the factory for evaluation.
Where Do I Find Everything I Need for Process Measurement and Control? OMEGA…Of Course! Shop online at www.omega.