Home

OME-PIO-DA Hardware Manual

image

Contents

1. INT CHAN 0 INTO HIGH now Ni COUNT Lrtt find a LOW pulse INTO If inport wBase 7 1 0 the INTO is still fixed in LOW gt need to generate a high pulse outportb wBase 0x2a 1 INVO select the non inverted input d INT CHAN O INTO LOW X INT CHAN 0 generate a high pulse xj now int state 0 now INTO LOW xJ else now int state 1 now INTO HIGH don t have to generate high pulse else now INTO is changed to HIGH a INT CHAN O INTO HIGH now X COUNT Htt find a High pulse INTO If inport wBase 7 1 1 the INTO is still fixed in HIGH need to generate a high pulse outportb wBase 0x2a 0 INVO select the inverted input b INT CHAN 0 INTO LOW gt x7 INT CHAN 0 generate a high pulse now int state 1 now INTO HIGH i else now int state 0 now INTO LOW ay don t have to generate high pulse if wIrq 8 outportb A2 8259 0x20 outportb Al_8259 0x20 a INT_CHAN_O OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 13 2 3 5 Multiple Interrupt Source Assume INTO is initial Low active High INT 1 is initial High active Low as follows INTO amp INT1 INTO SINT are return to P are active at normal at the the same time same time INT1 is return INT1 is active to normal Refer to
2. 55 Aid DEMOS ERR ER SE AU HE 56 4 5 DEMOS teneo elc dad eod eMe a elis M RM T 58 AiO DEMOS a NU RUINIS 60 AT DEMO PEE 61 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 2 1 INTRODUCTION The OME PIO DA16 OME PIO DA8 and OME PIO DA4 are multi channel D A boards for the PCI bus for IBM or compatible PC The OME PIO DA 16 8 4 offers 16 8 4 channels double buffered analog output The output range may be configured in different ranges 10V 5V 0 10V 0 5V voltage output or 4 20mA 0 20mA current loop sink The innovative design eliminates several drawbacks of the conventional D A boards For examples 1 designed without jumpers and without trim pot 2 The calibration is performed under software control eliminating manual trim pot adjustments The calibration data is stored in EEPROM 3 Each channel can be selected as voltage or current output 4 High channel count output can be implemented in half size Note This card need 12V power supply usually found in PC 1 1 Features e PCI bus e 16 8 4 channels 14 bit analog output e Unipolar or bipolar outputs available from each converter e Output type Unipolar or bipolar and output range 0 5V 5V 0 10V 10V can be software programmable e 4 20mA or 0 20mA current sink to ground for each converter e Two pacer timer interrupt source e Double buffered D A latches e Software calibration e 16 channels of DI 16 channels of DO e SMD sho
3. X for i 0 i 16 i fDeltaV i 20 0 wP10V i wN10V i fDeltal 1 20 0 w20mA 1 w00mA 1 printf n n a 1 23V Voltage output to each channel for i 0 i 16 i j 1 23 10 0 fDeltaV i wN10V i pio dal6 da i j OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 61 getch printf Anin b 1 23mA Current output to each channel for i20 i 16 i i j 1 23 Deltal i w0O0mA i pio dal6 da i j getch outportb wBase 5 0 disable all interrupt outportb wBase 3 0 all D O are Low outportb wBase 2 0 all AUX as D I PIO DriverClose OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 ween 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 customers receive maximum coverage on each product If the unit malfunctions it must be returned to the factory for evaluation OMEGA s Customer Service 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
4. high byte of DO port OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 55 4 4 DEMO3 DEMO3 INT CHAN 1 timer interrupt demo initial high El It is designed to be a machine independent timer stepl Run DEMO3 EXE Jo xJ include PIO H define A1 8259 0x20 define A2 8259 0xA0 static void interrupt irq service void pio dal6 cO char cConfig char cLow char cHigh void pio dal6 cl char cConfig char cLow char cHigh void pio dal6 c2 char cConfig char cLow char cHigh void init intl high WORD wBase wIrq int COUNT L COUNT H irqmask now int state int main i i B int T WORD wBoards wRetVal tl1 t2 t3 t4 t5 t60 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards ur step2 enable all D I O port nc de i printf Anin 2 DEMO3 Interrupt 1Hz init intl pru COUNT L 0 COUNT H 0 prin for 77 gotoxy 1 10 test interrupt initialize printf nINT count d COUNT L if kbhit 0 break outportb wBaset5 0 PIO DriverClose R tf n n Show the count of Low pulse n disable all Use INT CHAN 1 as internal interrupt signal void init intl high DWORD dwVal disable outportb wBaset 5 0 if wIrq 8 irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxf
5. to Sec 4 1 for more information The Aux 0 1 are used as interrupt sources The interrupt service routine has to read this register for interrupt source identification Refer to Sec 2 3 for more information 3 3 6 Interrupt Polarity Control Register Read Write wBase 0x2A Oe ie ioe se 3 Note Refer to Sec 3 1 for more information about wBase INVO0 1 0 gt select the inverted signal from INTO 1 INV0 1 1 gt select the non inverted signal from INTO 1 outportb wBase 0x2a 0 select the inverted input from all 2 channels id outportb wBase 0x2a 3 select the non inverted input from all 2 channels outportb wBase 0x2a 2 select the inverted input of INTO select the non inverted input from the others Refer to Sec 2 3 for more information Refer to DEMO3 4 5 6 C for more information OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 45 3 3 7 Digital Input Read wBase 0xf8 gt Low byte of D I port Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 DI7 DI6 DIS DI4 DI3 DI2 DII DIO Read wBase 0xfc gt High byte of D I port Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 Note Refer to Sec 3 1 for more information about wBase wDiLoByte inportb wBase 0xf8 read D I states DI 7 DIO wDiHiByte inportb wBase 0xfc read D I states DI15 DI8 wDiValue wDiHiByte lt lt 8 wDiLoByte Ref
6. 1 enable all D I O operation of card_1 OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 39 3 1 3 Show PIO PISO Show_PIO_PISO wSubVendor wSubDevice wSubAux e wSubVendor gt subVendor ID of board to find e wSubDevice gt subDevice ID of board to find e wSubAux gt subAux ID of board to find This function will show a text string for these special subIDs This text string is the same as that defined in PIO H The demo program is given as follows wRetVal PIO_DriverInit amp wBoards Oxff OxffOxff find all PIO PISO printf AnThrer are d PIO PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for i 0 i lt wBoards i PIO GetConfigAddressSpace i amp wBase wlrq amp wSubVendor amp wSubDevice wSubAux amp wSlotBus amp wSlotDevice printf nCard d wBase x wlrq x SUubDID x 3x x SlotID x x i wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee 40 3 2 The Assignment of I O Address The plug amp play BIOS will assign the proper I O address to the OME PIO PISO series card If there is only one OME PIO PISO board the user can identify the board as card_0 If there are two OME PIO PISO boards in the system it will be difficult to identify which board is card_0 The software driver can support 16
7. The current output of OME PIO DA16 8 4 is always in 0 22mA range If the user needs to output 4 20mA the software is the same as described in Sec 2 6 Because the user wants to output 4 20mA Tout will be in the 4 20mA range So the DaValue will be about from 0x2600 to Ox3fff This means the resolution is about 13 bits OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee 24 2 6 8 No VR 8 No Jumper Design In the conventional 12 bit D A board for example OME A 626 A 628 there are jumpers for the following functions 1 select the reference voltage internal 10 5 or external 2 select unipolar bipolar 0 10V or 10V 3 select different output range 0 10V or 0 5V And there are many VRs for the following functions 1 voltage output offset adjustment 2 voltage output full scale adjustment 3 current output offset adjustment 4 current output full scale adjustment There are so many VRs and jumpers this make the QC and re calibration very difficult Every step must be performed manually making is difficult to calibrate these D A boards The design of the OME PIO DA 16 8 4 removed all these VRs and jumpers but still maintain the same precision and performance There is a 14 bit D A converter and software calibration to provide at least the same performance amp precision as OME A 626 A 628 as follows Configuration Equivalent Bit Resolution 10V 10V 14 bit 1 22mV 0V 10V 13 bit 1 22mV
8. wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards x7 step2 enable all D I O port outportb wBase 1 RESET gt 1 printf n n 2 DEMO5 Interrupt test init_high interrupt initialize INT_CHAN 0 1 is high now printf Anin Show the count of Low pulse n INTO L INTO H INT1 L INT1 H 0 for gotoxy 1 10 printf nINTO x x INT1 x x INTO H INTO L INT1 H INT1 L if kbhit 0 break outportb wBase 5 0 disable all interrupt PIO DriverClose Use INT CHAN 0 amp INT CHAN 1 as internal interrupt signal o void init high DWORD dwVal disable outportb wBase 5 0 disable all interrupt if wIrq 8 irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxff 1 lt lt wIrq setvect wIrq 8 irq service else irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxfb IRQ2 irqmask inportb A2 825941 outportb A2 825941 irqmask amp Oxff 1 lt lt wIrq 8 setvect wIrg 8 0x70 irq service CLK source 4 MHz pio dal6 _c0 0x36 0x20 0x4e COUNTERO mode3 div 20000 program Cout0 200Hz x pio dal6 c1 0x76 0x90 0x01 COUNTER1 mode3 div 400 pio dal6 c2 0xb6 0x64 0x00 COUNTER2 mode3 div 100 OME PIO DA 16 8 4 User s Manu
9. 2003 eee 41 3 3 The I O Address Map The I O addresses of OME PIO PISO series card are automatically assigned by the main board ROM BIOS The VO address can also be re assigned by user It is strongly recommended to the user to not change the VO address The plug amp play BIOS will assign proper I O address to each OME PIO PISO series card very well The I O addresses of the OME PIO DA 16 8 4 cards are given as follows WBase 0 RESET control register Same 0 wBase 2 Aux control register wBase 5 INT mask control register Same 3 WBase 0x2a INT polarity control register wBasetOxce IA API wBaset0xe0 wBase Oxed wBasetOxe8 wBasetOxec pp wBase 0xf0 wBase Oxt4 Note Refer to Sec 3 1 for more information about wBase OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 42 3 3 1 RESET Control Register Read Write wBase 0 Note Refer to Sec 3 1 for more information about wBase When the PC is first power up the RESET signal is in Low state This will disable all D I O operations The user has to set the RESET signal to High state before any D I O command outportb wBase RESET High gt all D I O are enable now outportb wBase 0 RESET Low gt all D I O are disable now 3 3 2 AUX Control Register Read Write wBase 2 Note Refer to Sec 3 1 for more information about wBase Aux 0 gt this Aux is used as a D I Aux 1 gt this Aux is used as a D O When the PC i
10. DEMO1 D O demo for OME PIO DA16 8 4 e stepl Run DEMO1 EXE step2 Check the LEDs of OME DB 24C will turn on sequentially zy include PIO H void pio dal6 do WORD wDo WORD wBase wIrq int main inb Xj WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards wRetVal PIO DriverInit amp wBoards 0x80 0x04 0x00 for OME PIO DA16 8 4 printf n 1 Threr are d OME PIO DA16 8 4 Cards in this PC wBoards if wBoards 0 exit 0 printf Anin The Configuration Spac for i1 0 i lt wBoards i E E z js PIO GetConfigAddressSpace i amp wBase amp wIrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf NnCard bd wBase x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice PEINTE gt 0 ShowPioPiso wSubVendor wSubDevice wSubAux PIO GetConfigAddressSpace 0 amp wBase amp wIrq amp t1 amp t2 amp t3 amp t4 amp t5 select card 0 step2 enable all D I O port outportb wBase 1 RESET gt 1 printf n n 2 DEMO1 D O test j 1 for gotoxy 1 8 pio dal6 do j printf AnDO gt 4x j delay 10000 if kbhit 0 break j j 1 jej amp 0xOffff if j 0 j 1
11. DEMOS C for source program All of these falling edge amp rising edge can be detected by DEMOS C Note when the interrupt is active the user program has to identify the active signals These signals may be active at the same time So the interrupt service routine has to service all active signals at the same time OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 14 pr A Note 1 The hold time of INT CHAN 0 amp INT CHAN 1 must long xy enoug uA ies 2 The ISR must read the interrupt status again to Ray identify the active interrupt source 3 The INT CHAN 0 amp INT CHAN 1 can be active at the same IR time Y J x void interrupt irq service now ISR can not know which interrupt is active ay new_int_state inportb wBase 7 amp 0x03 read all interrupt signal state int c new int state now int state compare new state to old state if int c amp 0x01 1 INT CHAN 0 is active XJ if new int state amp 1 0 INTO change to low now INTO L else INTO change to high now INTO H invert invert l generate high pulse if int c amp 0x02 2 INT CHAN 1 is active x if new int state amp 2 0 INT1 change to low now X INT1 L else INT1 change to high now 4 INT1 H invert invert 2 generate high pulse now int state new int state update interrupt status outportb wBase 0x2a in
12. Have the following contacting OMEGA information available BEFORE contacting OMEGA 1 Purchase Order number under which the product 1 Purchase Order number to cover the COST was PURCHASED of the repair 2 Model and serial number of the product under 2 Model and serial number of the product and warranty and 3 Repair instructions and or specific problems 3 Repair instructions and or specific problems relative to the product relative to the product OMEGA s policy is to make running changes not model changes whenever an improvement is possible This affords our customers the latest in technology and engineering OMEGA is a registered trademark of OMEGA ENGINEERING INC Copyright 2002 OMEGA ENGINEERING INC All rights reserved This document may not be copied photocopied reproduced translated or reduced to any electronic medium or machine readable form in whole or in part without the prior written consent of OMEGA ENGINEERING INC Where Do I Find Everything Need for Process Measurement and Control OMEGA Of Course Shop online at www omega com TEMPERATURE Pag Thermocouple RTD amp Thermistor Probes Connectors Panels amp Assemblies Wire Thermocouple RTD amp Thermistor A Calibrators amp Ice Point References A Recorders Controllers amp Process Monitors A Infrared Pyrometers PRESSURE STRAIN AND FORCE 4 Transducers amp Strain Gages A Load Cells amp Pressure Gages 4 Displacement Tra
13. Output 14 18 Voltage Output 14 37 Current Output 15 19 Voltage Output 15 OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 2 8 Daughter Boards 2 8 1 OME DB 37 The OME DB 37 is a general purpose daughter board for D sub 37 pins It is designed for easy wire connection I ARA B 2 8 2 OME DN 37 The OME DN 37 is a general purpose daughter board for OME DB 37 with DIN Rail Mounting This board is designed for easy wire connection OME DN 37 2 8 3 OME DB 8125 The OME DB 8125 is a general purpose screw terminal board It is designed for easy wire connection There are one OME DB 37 amp two 20 pin flat cable headers in the OME DB 8125 OME DB 8125 OME DB 37 or 20 pin flat cable header OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee 3l 2 8 4 OME DB 16P Isolated Input Board The OME DB 16P is a 16 channels isolated digital input daughter board The optically isolated inputs of the OME DB 16P consist of a bi directional opto coupler 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 You can use this board to isolate the computer from large common mode voltage ground loops and transient voltage spike that often occur in industrial environments OME PIO DA16 8 4 Opto Isolated OME PIO DA 16 8 4 AC or DC Signal OV to 24V OME PIO
14. PIO DriverClose JR E void pio dal6 do WORD wDo outportb wBaset 0xf8 wDo Oxf8 low byte of DO port outportb wBase 0xfc wDo gt gt 8 Oxfc high byte of DO port OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 54 4 3 DEMC2 DEMO2 D I O demo for OME PIO DA16 8 4 stepl Connect CON1 amp CON2 with a 20 pin 1 to 1 flat cable Ky step2 Run DEMO2 EXE x tinclude PIO H void pio dal6 di WORD wDi void pio dal6 do WORD wDo WORD wBase wIrq int main int Ly ki WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards Ey step2 enable all D I O port ay outportb wBase 1 RESET gt 1 printf n n 2 DEMO2 D I O test j 1 for pio dal6 do j amp k pio dal6 di gotoxy 1 9 printf DO 4x DI 4x j k if k 3 printf Test Error j else printf lt Test Ok E j j25j amp 0xOffff if 3 0 j 1 if kbhit 0 break PIO DriverClose tf void pio dal6 di WORD wDi int in l in h in l inportb wBase 0xe0 amp 0x0ff in h inportb wBase 0xe4 80x0ff wDi in h lt lt 8 in 1 eX xy void pio dal6 do WORD wDo outportb wBaset 0xf8 wDo Oxf8 low byte of DO port outportb wBase 0xfc wDo gt gt 8 Oxfc
15. any action of the purchaser including but not limited to mishandling improper interfacing operation outside of design limits improper repair or unauthorized modification This WARRANTY is VOID if the unit shows evidence of having been tampered with or shows evidence of having been damaged as a result of excessive corrosion or current heat moisture or vibration improper specification misapplication misuse or other operating conditions outside of OMEGA s control Components which wear are not warranted including but not limited to contact points fuses and triacs OMEGA is pleased to offer suggestions on the use of its various products However OMEGA neither assumes responsibility for any omissions or errors nor assumes liability for any damages that result from the use of its products in accordance with information provided by OMEGA either verbal or written OMEGA warrants only that the parts manufactured by it will be as specified and free of defects OMEGA MAKES NO OTHER WARRANTIES OR REPRESENTATIONS OF ANY KIND WHATSOEVER EXPRESS OR IMPLIED EXCEPT THAT OF TITLE AND ALL IMPLIED WARRANTIES INCLUDING ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE HEREBY DISCLAIMED LIMITATION OF LIABILITY The remedies of purchaser set forth herein are exclusive and the total liability of OMEGA with respect to this order whether based on contract warranty negligence indemnification strict liability or otherwise shall not ex
16. boards max Therefore the user can install 16 boards of OME PIO PSIO series in one PC system How to find the card_0 amp card_1 The simplest way to identify which card is card_0 is to use wSlotBus wSlotDevice as following 1 Remove all OME PIO DA 16 8 4 from this PC 2 Install one OME PIO DA16 8 4 into the PC s PCI slotl run PIO_PISO EXE amp record the wSlotBusl wSlotDevicel 3 Remove all OME PIO DA 16 8 4 from this PC 4 Install one OME PIO DA16 8 4 into the PC s PCI slot2 run PIO_PISO EXE record the wSlotBus2 amp wSlotDevice2 5 Repeat 3 amp 4 for all PCI slot record all wSlotBus amp wSlotDevice The records may be as follows PC s PCI slot WslotBus WSlotDevice Slot 1 0 0x07 Slot 2 0 0x08 Slot 3 0 0x09 Slot 4 0 0x0A PCI BRIDGE Slot 5 1 0x0A Slot 6 1 0x08 Slot 7 1 0x09 Slot 8 1 0x07 The above procedure will record all wSlotBus amp wSlotDevice in the PC These values will be mapped to this PC s physical slot This mapping will not be changed for any PIO PISO cards So it can be used to identify the specified PIO PISO card as following Step 1 Record all wSlotBus amp wSlotDevice Step2 Use PIO GetConfigAddressSpace to get the specified card s wSlotBus amp wSlotDevice Step3 The user can identify the specified OME PIO PISO card if you compare the wSlotBus amp wSlotDevice in step2 to step1 OME PIO DA16 8 4 User s Manual Ver 2 1 Nov
17. in release note as follows 1 Where you can find the software driver amp utility 2 How to install software amp utility 3 Where is the diagnostic program 4 FAQ Attention If any of these items is missing or damaged please contact Omega Engineering immediately Save the shipping materials and the box in case you want to ship or store the product in the future OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 eee 2 Hardware configuration 2 1 Board Layout O w c D Q U O N S N S 0000000000 O 0000000000 O B000000000 O BO000000000O O N CON1 16 channels D O CON2 16 channels D A CON3 16 8 4 channels D A converted voltage current output OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 Yvd Old INO LI 8vd Old 3N0 LI 9LWd Old INO LI NOO 2 2 Counter Architecture There is one 8254 Timer Counter chip on the OME PIO DA 16 8 4 card The block diagram is given as follows O 4MHz INTO O OUTO GATEO CounterO CLK1 lt OUT1 GATE1 Counter1 INT1 O 4 OUT2 GATE2 Counter2 It provides two interrupt source one is 16 bits timer output INTO and the other one is 32 bits timer output INT1 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 2 3 Interrupt Operation There are two interrupt sources in OME PIO DA 16 8 4 These two signals are named as INTO and INT1 Their signal sources ar
18. wBase 0x2a 1 INVO select the non inverted input b INT CHAN O INTO LOW gt ar INT CHAN 0 generate a high pulse now int state 0 now INTO LOW xI else now int state 1 now INTO HIGH don t have to generate high pulse else now INTO is changed to HIGH c INT CHAN 0 INTO HIGH now X COUNT Htt find a HIGH pulse INTO If inport wBase 7 1 1 the INTO is still fixed in HIGH need to generate a high pulse outportb wBase 0x2a 0 INVO select the inverted input d INT CHAN 0 INTO LOW gt x7 INT CHAN 0 generate a high pulse 4 now int state 1 now INTO HIGH i else now int state 0 now INTO LOW ey don t have to generate high pulse if wIrq 8 outportb A2 8259 0x20 outporth Al 8259 0x20 a INT_CHAN_O OME PIO DA 16 8 4 User s Manual Ver 2 1 Novw 2003 1 1 12 2 3 4 Initial_low active high Interrupt source If the INTO 8254 counter0 output is an initial low active high signal depend on 8254 counter mode the interrupt service routine should use INVO to invert non invert the INTO for high pulse generation as follows Refer to DEMO4 C Initial set now int state 0 initial state for INTO i outportb wBase 0x2a 1 select the non inverted INTO void interrupt irq service if now int state 1 now INTO is changed to LOW c
19. 5V 5V 13 bit 1 22mV 0V 5V 12 bit 1 22mV OmA 20mA 13 bit 2 70uA 4mA 20mA 13 bit 2 70uA e All these VRs and jumpers are removed e All calibrations can be done by software e All channel configurations can be selected by software no need to change any hardware e The Precision is at least the same as OME A 626 A628 e All these 16 channels can be configured and used in the different configuration at the same time For example channel_0 10V channel_1 4 20mA channel _2 0 5V e All these features can be implemented in a small compact reliable and half size PCB OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 25 2 6 9 Factory Software Calibration It is recommended to use a 16 bit A D card to calibration the OME PIO DA16 8 4 The OME I 7000 series is a set of precision remote control modules The 1 7017 is 8 channel 16 bit precision A D module 24 bit sigma delta A D converter we use two OME I 7017 for voltage output calibration and another two OME I 7017 for current output calibration The steps for channel_n voltage calibration are given as follows Step 1 DaValue 0 Step 2 send DaValue to OME PIO DA16 8 4 channel_n Step 3 measure the I 7017 channel_n If this value is just gt 10V than goto step 5 Step 4 incrememt DaValue goto step 2 Step 5 MinV n DaValue 1 Step 6 DaValue 0x3 fff Step 7 send DaValue to OME PIO DA16 8 4 channel_n Step 8 measure the I 7017
20. Base 0xf4 wDaValue gt gt 8 0x02 output high byte of D A data and select channel 2 on this converter outportb wBase 0xe0 0 select DA_0 udi after this procedure wDaValue will be sent to channel 2 Refer to DEMO6 C DEMO7 C DEMOS C and DEMO C for more information OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 48 3 3 11 D A Data Output write wBase 0xf0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 D7 D6 D5 D4 D3 D2 D1 DO write wBase 0xf4 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 Al AO D13 D12 Dil D10 D9 D8 Note Refer to Sec 3 3 10 For more information about A1 A2 Each D A converter has four channels of analog output When write data to D A converter has to indicate which channel is desire by Al and AO D A programming sequence 1 Send data to D A converter This data will be buffered 2 Select D A converter Start convert outportb wBase 0xf0 wDaValue output low byte of D A data T5 outportb wBase 0xf4 wDaValue gt gt 8 0x02 output high byte of D A data and select channel 2 on this converter outportb wBase 0xe0 0 select DA_0 after this procedure wDaValue will be sent to channel 2 pio dal6 da 2 wDaValue send wDaValue to channel 2 ui void pio dal6 da char cChannel no int iVal 1 iVal iVal cChannel_no 4 0x4000 cChannel_no 0 15 el outportb wBa
21. DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 32 2 8 5 OME DB 16R Relay Board The OME DB 16R 16 channel relay output board consists of 16 form C relays for efficient switch of load by programmed control It is connector and functionally compatible with 785 series board but with industrial type terminal block The relay are energized by apply 5 volt signal to the appropriated relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay light when their associated relay is activated To avoid overloading your PC s power supply this board provides a screw terminal for external power supply Form C Relay Normal Open Normal Close Note Channel 16 Form C Relays Relay Switching up to 0 5A at 110ACV or IA at 24DCV OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 33 2 8 6 OME DB 24PR DB 24POR DB 24C OME DB 24PR 24 power relay SA 250V OME DB 24POR 24 PhotoMOS relay 0 1A 350VAC OME DB 24C 24 open collector 100mA per channel 30V max The OME DB 24PR 24 channel power relay output board consists of 8 form C and 16 form A electromechanical relays for efficient switching of load programmed control The contact of each relay can control a SA load at 250ACV 30VDCV The relay is energized by applying a 5 volt signal to the appropriate relay channel on the 20 pin flat cable connector just used 16 relays or 50 pin flat cable connector OPTO 22 compatible for OM
22. Digital Output 13 15 Digital Output 14 16 Digital Output 15 17 PCB ground 18 PCB ground 19 PCB 5V 20 PCB 12V All signals are TTL compatible CON 2 Digital input connector Pin assignment Pin Name Pin Name 1 Digital Input 0 2 Digital Input 1 3 Digital Input 2 4 Digital Input 3 3 Digital Input 4 Digital Input 5 7 Digital Input 6 Digital Input 7 9 Digital Input 8 10 Digital Input 9 11 Digital Input 10 12 Digital Input 11 13 Digital Input 12 14 Digital Input 13 15 Digital Input 14 16 Digital Input 15 17 PCB ground 18 PCB ground 19 PCB 5V 20 PCB 12V All signals are TTL compatible OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 CON3 Analog Output Connector Pin Assignment Pin Name Pin Name 1 Voltage Output 0 20 Current Output 0 2 Voltage Output 1 21 Current Output 1 3 Voltage Output 2 22 Current Output 2 4 Voltage Output 3 23 Current Output 3 5 Analog ground 24 Analog ground 6 Voltage Output 4 25 Current Output 4 7 Voltage Output 5 26 Current Output 5 8 Voltage Output 6 27 Current Output 6 9 Voltage Output 7 28 Current Output 7 10 Analog ground 29 Analog ground 11 Voltage Output 8 30 Current Output 8 12 Voltage Output 9 31 Current Output 13 Voltage Output 10 32 Current Output 10 14 Voltage Output 11 33 Current Output 11 15 Analog ground 34 Current Output 12 16 Voltage Output 12 35 Current Output 13 17 Voltage Output 13 36 Current
23. E DIO 24 series Twenty four enunciator LEDs one for each relay light when their associated relay is activated To avoid overloading your PC s power supply this board needs a 12VDC or 24VDC external power supply Normal Open Form A Relay 000 20Pin cable To 20pin os OME DB 24PR n CONI D O W OME PIO DA 16 8 4 Note A 50 Pin connector OPTO 22 compatible for OME DIO 24 OME DIO 48 OME DIO 144 OME PIO D144 OME PIO D96 OME PIO D56 OME PIO D48 OME PIO D24 A 20 Pin connector for 16 channel digital output OME A 82X OME A 62X OME DIO 64 OME ISO DA16 DA8 OME PIO D56 OME PIO DA16 8 4 OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 34 Channel 16 Form A Relays 8 Form C Relays Relay switching up to 5A at 110ACV 5A at 30DCV 2 8 7 Daughter Board Comparison Table 20 pin flat cable 50 pin flat cable DB 37 header header Header OME DB 37 No No Yes OME DN 37 No No Yes OME ADP 37 PCI No Yes Yes OME ADP 50 PCI No Yes No OME DB 24P No Yes No OME DB 24PD No Yes Yes OME DB 16P8R No Yes Yes OME DB 24R No Yes No OME DB 24RD No Yes Yes OME DB 24C Yes Yes Yes OME DB 24PR Yes Yes No OME DB 24PRD No Yes Yes OME DB 24POR Yes Yes Yes OME DB 24SSR No Yes Yes Note There are no 50 pin flat cable headers on the OME PIO DA16 8 4 board The OME PIO DA16 8 4 has one DB 37 connector and
24. L 33 0 1 61 37 29 00 FAX 33 0 1 30 57 54 27 Toll Free in France 0800 466 342 e mail salesWomega fr Daimlerstrasse 26 D 75392 Deckenpfronn Germany TEL 49 0 7056 9398 0 FAX 49 0 7056 9398 29 Toll Free in Germany 0800 639 7678 e mail info omega de One Omega Drive River Bend Technology Centre Northbank Irlam Manchester M44 5BD United Kingdom TEL 44 0 161 777 6611 FAX 44 0 161 777 6622 Toll Free in United Kingdom 0800 488 488 e mail salesWomega 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 The information contained in this document is believed to be correct but OMEGA Engineering Inc accepts no liability for any errors it contains and reserves the right to alter specifications without notice WARNING These products are not designed for use in and should not be used for patient connected applications OME PIO DA16 DA8 DA4 User s Manual OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee Tables of Contents 1 INTRODUCTION oc M 3 dl 2EEATURES isco bs sires erc e dre ea d ese cec att meas eid iere Se A heces ee RE e eu eoe tees 3 1 2 SPECIFICATIONS 5 ee oa tibet 4 1 3 ORDER DESCRIPTION rre ten
25. User s Guide omega com Shop online at www omega com e mail info omega com OME PIO DA16 DA8 DA4 PCI Bus Analog Output Board Hardware Manual omega com SEOMEGA OMEGAnet Online Service Internet e mail www omega com info omega com USA ISO 9001 Certified Canada Servicing North America One Omega Drive P O Box 4047 Stamford CT 06907 0047 TEL 203 359 1660 FAX 203 359 7700 e mail info omega com 976 Bergar Laval Quebec H7L 5A1 Canada TEL 514 856 6928 FAX 514 856 6886 e mail info omega ca For immediate technical or application assistance USA and Canada Mexico Benelux Czech Republic France Germany Austria United Kingdom ISO 9002 Certified Sales Service 1 800 826 6342 1 800 TC OMEGA Customer Service 1 800 622 2378 1 800 622 BEST Engineering Service 1 800 872 9436 1 800 USA WHEN TELEX 996404 EASYLINK 62968934 CABLE OMEGA En Espa ol 001 203 359 7803 e mail espanol omega com FAX 001 203 359 7807 info omega com mx Servicing Europe Postbus 8034 1180 LA Amstelveen The Netherlands TEL 31 0 20 3472121 FAX 31 0 20 6434643 Toll Free in Benelux 0800 0993344 e mail sales amp omegaeng nl Frystatska 184 733 01 Karvin Czech Republic TEL 420 0 59 6311899 FAX 420 0 59 6311114 Toll Free 0800 1 66342 e mail info omegashop cz 11 rue Jacques Cartier 78280 Guyancourt France TE
26. al Ver 2 1 Nov 2003 wen 58 program Cout2 100Hz note the 8254 need extra 2 clock for initialization for if inportb wBase 7 3 3 break wait CoutO amp Cout2 high note Cout0 2 high INVO 1 must select the inverted Cout0 2 INT CHAN 0 Cout0 init low active high INT CHAN 1 Cout2 init low active high outportb wBase 0x2a 0 INVO 0 INV1 0 inverted now int state 3 now CoutO amp Cout2 is high outportb wBase 5 3 enable INT CHAN 0 1 interrupt enable Pt Note 1 The hold time of INT CHAN 0 INT CHAN 1 must long JE enoug E 2 The ISR must read the interrupt status again to JE identify the active interrupt source 5 3 The INT CHAN 0 amp INT CHAN 1 can be active at the same LX time void interrupt irq service now ISR can not know which interrupt is active new int state inportb wBaset7 amp 0x03 read all interrupt signal state int c new int state now int state if int c amp 0x01 1 if new int state amp l 0 INTO L else INTO H invert invert 1 int c amp 0x02 2 if new int state amp 2 0 INT1 L else INT1_H invert invert 2 now int state new int state outportb wBase 0x2a invert if compare new_state to old_state INT CHAN 0 is active INTO chan
27. am PIO PISO EXE will detect amp show all PIO PISO cards installed in this PC Refer to Sec 4 1 for more information OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wenn 36 3 1 1 PIO Driverlnit PIO DriverInit amp wBoards wSubVendor wSubDevice wSubAux e wBoards 0 to N number of boards found in this PC e wSubVendor subVendor ID of board to find e wSubDevice gt subDevice ID of board to find e wSubAux gt subAux ID of board to find This function can detect all OME PIO PISO series card in the system It is implemented based on the PCI plug amp play mechanism 1 It will find all OME PIO PISO series cards installed in this system amp save all their resource information in the library Sample program 1 find all OME PIO DA16 8 4 in this PC wSubVendor 4180 wSubDevice 00 wSubAux 0x00 for PIO_DA16 8 4 wRetVal PIO_DriverInit amp wBoards wSubVendor wSubDevice wSubAux printf There are d OME PIO DA 16 Cards in this PC n wBoards step2 save resource of all OME PIO DA16 8 4 cards installed in this PC for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wlrq amp wID1 amp wID2 amp wID3 amp wID4 amp wID5 printf nCard 96d wBase x wIrq x i wBase wlrq wConfigSpace i 0 wBaseA ddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card j Sample program 2 find all OME PIO PISO 1n this PC refer to Sec 4 1 for more informa
28. ardware Trim pot adjustment For example channel n MinV n MaxV n Minl n Maxl n 0 134 16297 8180 15943 1 137 16293 8172 15976 2 132 16296 8199 15949 3 134 16391 8177 15963 4 135 16298 8165 15955 5 131 16292 8150 15947 6 136 16295 8172 15968 7 134 16297 8163 15961 8 134 16294 8188 15959 9 132 16295 8169 15948 10 135 16298 8172 15946 11 133 16296 8177 15975 12 131 16292 8159 15942 13 134 16297 8173 15973 14 132 16293 8168 15949 15 133 16295 8175 15965 If the user want to send Vout volt to channel n the calibrated hex value DaValue sent to D A converter is give as follows DeltaV n 20 0 MaxV n MinV n DeltaV n volt per count at channel n DaValue Vout 10 0 DeltaV n MinV n DaValue Hex value send to D A pio dal6 da n DaValue send DaValue to channel n zi If the user want to send Iout mA to channel n the calibrated hex value DaValue sent to D A converter is give as follows Refer to DEMO9 C Deltal n 20 0 MaxI n MinI n Deltal n mA per count at channel n DaValue Iout Deltal n MinlI n DaValue Hex value send to D A pio dal6 da n DaValue send DaValue to channel n Refer to DEMO7 C and DEMO C for more information OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 21 Output Range and Resolution 2 6 1 The voltage output range of OME PIO DA 16 8 4 is always in 10 1V and the current
29. board OME PIO DA4 PCI bus 4 channel D A board 1 3 1 Options OME DB 16P 16 channel isolated D I board OME DB 16R 16 channel relay board OME DB 24PR 24 channel power relay board OME DB 24POR 24 channel Photo MOS output board OME DB 24C 24 channel open collector output board OME ADP 20 PCI extender 20 pin header to 20 pin header for PCI Bus I O 1 4 PCI Data Acquisition Family We provide a family of PCI bus data acquisition cards These cards can be divided into three groups as follows 1 PCI series first generation isolated or non isolated cards OME PCI 1002 1202 1800 1802 1602 multi function family non isolated OME PCI P16R16 P16C16 P16POR16 P8R8 D I O family isolated OME PCI TMC 12 timer counter card non isolated 2 PIO series cost effective generation non isolated cards OME PIO D168 D144 D96 D64 D56 D48 D24 D I O family OME PIO DA16 DA8 DA4 D A family 3 PISO series cost effective generation isolated cards OME PISO 813 A D card OME PISO P32C32 P64 C64 A64 P32A32 D I O family OME PISO P8R8 P8SSR8AC P8SSR8DC D I O family OME PISO 730 D I O card OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 nen 5 1 5 Product Check List In addition to this manual the package includes the following items e One piece of OME PIO DA 16 8 4 card e One piece of software floppy diskette or CD e One piece of release note It is recommended to read the release note firstly All important information will be given
30. ceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold by OMEGA is not intended to be used nor shall it be used 1 as a Basic Component under 10 CFR 21 NRC used in or with any nuclear installation or activity or 2 in medical applications or used on humans Should any Product s be used in or with any nuclear installation or activity medical application used on humans or misused in any way OMEGA assumes no responsibility as set forth in our basic WARRANTY DISCLAIMER language and additionally purchaser will indemnify OMEGA and hold OMEGA harmless from any liability or damage whatsoever arising out of the use of the Product s in such a manner RETURN REQUESTS INQUIRIES Direct all warranty and repair requests inquiries to the OMEGA Customer Service Department BEFORE RETURNING ANY PRODUCT S TO OMEGA PURCHASER MUST OBTAIN AN AUTHORIZED RETURN AR NUMBER FROM OMEGA S CUSTOMER SERVICE DEPARTMENT IN ORDER TO AVOID PROCESSING DELAYS The assigned AR number should then be marked on the outside of the return package and on any correspondence The purchaser is responsible for shipping charges freight insurance and proper packaging to prevent breakage in transit FOR WARRANTY RETURNS please have the FOR NON WARRANTY REPAIRS consult OMEGA following information available BEFORE for current repair charges
31. channel_n If this value is just gt 10V than goto step 10 Step 9 increment DaValue goto step 7 Step 10 MaxV n DaValue Note MinV n amp MaxV n are discribed in Sec 2 6 The steps for channel n current calibration are given as follows Step 1 DaValue 0x1 fff Step 2 send DaValue to OME PIO DA 16 8 4 channel n Step 3 measure the I 7017 channel n If this value is just gt OmA than goto step 5 Step 4 incrememt DaValue goto step 2 Step 5 Minl n Da Value 1 Step 6 DaValue 0x3fff Step 7 send DaValue to OME PIO DA16 8 4 channel n Step 8 measure the I 7017 channel n If this value is just gt 20mA than goto step 10 Step 9 increment DaValue goto step 7 Step 10 MaxI n DaValue Note MinI n amp MaxI n are discribed in Sec 2 6 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 2 6 10 User Software Calibration User can perform calibration with a voltage meter and a current meter Stepl Run DEMO12 EXE Step2 Select card number OQME PIO DA16 OME PIO DA8 OME PIO DA4 that you want to calibrate Step3 Select which item MinV n MaxV n MinI n MaxlI n that you want to calibrate Step4 To measure the analog output by voltage meter or current meter and decide to increment or decrement DaValue The DaValue will send to D A converter at once By the measured result user can find the proper value of DaValue that mapping to accurate output value Step5 Repeat step 4 for each channel After this pr
32. ct non inverted input INT CHAN 1 INT1 low gt INT CHAN 1 generate high pulse now int state 0 now INT1 low Xy else now int state 1 now INT1 high don t have to gen high pulse K else now INT1 Cout2 changed to high INT CHAN 1 INT1 high now Eu COUNT H t find a low pulse INTI if inportb wBaset 7 amp 2 2 INT1 is still fixed in high gt need to generate a high pulse Raf outportb wBase 0x2a 0 INV1 select inverted input xy INT CHAN 1 INT1 low gt is INT CHAN 1 generate high pulse now int state 1 now INT1 high E else now int state 0 now INT1 low y don t have to gen high pulse if wIrq 8 outportb A2 8259 0x20 outportb Al 8259 0x20 Rea Sana TE void pio dal6 cO char cConfig char cLow char cHigh COUNTERO outportb wBase 0xcc cConfig outportb wBaset 0xc0 cLow outportb wBase 0xc0 cHigh OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 57 4 5 DEMOS DEMO5 INT CHAN 0 amp INT CHAN 1 timer interrupt demo E ls It is designed to be a machine independent timer stepl Run DEMO5 EXE PA ap include PIO H define Al 8259 0x20 define A2 8259 0xA0 static void interrupt irq service WORD wBase wIrq int irqmask now int state new int state int c int INTO L INTO H INT1 L INT1 f int bO bl invert int main int Iys WORD
33. e D A converters on OME PIO DA 16 8 4 have 14 bits of resolution so the digital data value range from 0x0000 to 0x3fff And the hardware is designed to output voltage range from 10 1 10 1 as follows 0x0000 gt about 10 1 volt Ox3FFF gt about 10 1 volt In the conventional design there will be some VRs to adjust to let 0x0000 10 0V amp Ox3fff 10 0V for voltage output Also these VRs have to be adjusted to let Ox 1 fff 0mA amp 0x3fff 20mA for current output In the conventional design these VRs are common for voltage current output So the user has to perform calibration when change from voltage to current Also If these VRs are changed the user has to perform calibration again This procedure is complex amp heavy load The OME PIO DA 16 8 4 use software calibration to replace this complex procedure as following e for each voltage output channel we find two hex value MaxV n and MinV n stored to on board EEPROM MaxV n mapping to accurate 10V and MinV n mapping to accurate 10V e For each current output channel we also find two hex value MaxI n and MinI n stored to on board EEPROM MaxI n mapping to accurate 20mA and MinI n mapping to accurate 0mA Hex Value Ideal Actual Calibration OX3FFF MaxV n Maxl n E DaValue Minl n MinV n 4 0X0000 10 1V 10 V OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 20 Therefore the software can calibrate the analog output without any h
34. e I eee ida Do Ene de ee Ro oe ke e Pee E e PEE EE PEE Ce vaio 5 1 4 PCLDATA ACQUISITION EAMILY etie eto eite da eer eee tee pee us eui Rock bk e Rods 5 155 PRODUCT CHECK DIS Dada netter eret imp e t ge a aad 6 2 HARDWARE CONFIGURATION eese eese ee tn tana a estet tn nasa ses eese tasas ses eese esn asses sete esa asas esee 7 2 H EBOARD 2A YOU Die initio iri evi aaa aueh is 7 2 2 COUNTER ARCHITECTURE ccccsessscccececsesssececececsesessececececsenssseseecescseseaseeeesesenensaaeseeeceesensaaeeeeees 8 2 3 INTERRUPT OPERATION iia ic eai ere caves 9 2 4 D I O BEOCK DIAGRAM ioro te tetro eeetter cette 16 2 5 D A ARCHITECTURE A eee ee e OE e E e te i ut ar ds 19 2 6 D A CONVERT OPERATION ccceccccesssscecesssececssececeessececeessececesssececsseeeceessececesseeeecsiseeceetaeeeenenaess 20 2 7 THECONNECTORS iic p ei I HERR OD RE IRE RR 29 2 8 DAUGHTER BOARDS iia 31 3 VO CONTROL REGISTER 5 5 eec toco eon nai ed eode no e npa nego er UR see aseo coins ssesdevens s sueesssetesseosves 36 3 1 How TO FIND THE I O ADDRESS eee eene en eene enne e enne enne nnns oran nn ee entes enne nennen 36 3 2 THE ASSIGNMENT OF I O ADDRESS cccccccecsssceceessccecesssececseeeceessceecessseecenseeeceesaeeecsesseeecnseeeeees 41 3 3 THE I O ADDRESS MAP oeeo i eee iaie e a e ae ea a a ee ea aaia a ea ai Ees aTi 42 4 DEMO PROGRAM PAPA stee ade gua 50 AM O EHE 52 AD DEMO REI need 54 43 DEMI
35. e given as follows INTO 8254 counter0 output Refer to Sec 2 2 INTI 8254 counter2 output Refer to Sec 2 2 If only one interrupt signal source is used the interrupt service routine doesn t have to identify the interrupt source Refer to DEMO3 C and DEMO4 C for more information If there are more than one interrupt source the interrupt service routine has to identify the active signals as follows Refer to DEMOS C and DEMO6 C 1 Read the new status of all interrupt signal source Compare the new status with old status to identify the active signals 2 3 If INTO is active service it 4 If INTI is active service it 5 Save the new status to old status Note If the interrupt signal is too short the new status may be as same as old status In that condition the interrupt service routine cannot identify which interrupt source is active So the interrupt signal must be hold active long enough until the interrupt service routine is executed This hold time is different for different O S The hold time can be as short as micro second or as long as second In general 20mS is enough for most operating systems OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 9 2 3 1 Interrupt Block Diagram of OME PIO DA16 8 4 wa INT_CHAN_O Level_trigger to PCI slot SRAN initial_low active_high The interrupt output signal of OME PIO DA 16 8 4 INT is Level Trigger Active_Low If
36. er to DEMO2 C for more information 3 3 8 Digital Output Write wBase 0xf8 gt Low byte of D O port Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 DO7 DO6 DOS DO4 DO3 DO2 DOI DOO Write wBase 0xfc gt High byte of D O port Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bitl Bit0 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DOS Note Refer to Sec 3 1 for more information about wBase outportb wBase 0xf8 wDoValue Control the DO state DO 7 DO0 outportb wBase 0xfc wDoValue gt gt 38 Control the DO state DO15 DO8 Refer to DEMO1 2 C for more information OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 46 3 3 9 Read Write 8254 Read Write wBase 0xc0 8254 counter 0 Read Write wBase 0xc4 8254 counter 1 Read Write wBase 0xc8 8254 counter 2 Read Write wBase 0xcc 8254 control word 8254 control word BCD 0 binary count 1 BCD count M2 M1 M0 000 modeO interrupt on terminal count 001 mode1 programmable one shot 010 mode2 rate generator 011 mode3 square wave generator 100 mode4 software triggered pulse 101 mode5 hardware triggered pulse RL1 RLO 00 counter latch instruction 01 read write low counter byte only 10 read write high counter byte only 11 read write low counter byte first then high cou SC1 SCO 00 counterO 01 counter1 10 counter2 11 read back command nter byte WORD pio dal6 cO char cConfig char cLow char cHigh COUNTER 0 out
37. f setvect wIrq 8 irq service else irqmask inportb A1 8259 1 disable all 1 lt lt wIrq ESET SS 1 47 INT1 is high now interrupt interrupt outportb Al 825941 irqmask amp Oxfb IRQ2 irqmask inportb A2 8259 41 outportb A2 8259 1 irqmask Oxff 1 lt lt wIrq 8 setvect wIrg 8 0x70 irq service CLK source 4 MHz pio dal6 c1 0x76 0x90 0x01 COUNTER1 mode3 div 400 pio dal6 c2 0xb6 0x10 0x27 COUNTER2 mode3 div 10000 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 ween 56 program Cout2 1Hz A note the 8254 need extra 2 clock for initialization xy for if inportb wBaset7 amp 2 2 break wait Cout2 high note Cout2 high INV1 must select the inverted Cout2 ud INT CHAN 1 Cout2 init low active high outportb wBase 0x2a 0 INV1 0 inverted Cout2 now int state 1 now Cout2 is high Xu outportb wBase 5 2 ENI 1 enable INT CHAN 1 as interrupt source e enable Jo EA void interrupt irq service if now_int_state 1 now INT1 Cout2 changed to low INT CHAN 1 INT1 high now COUNT L find a low pulse INTI if inportb wBaset 7 amp 2 0 INT1 is still fixed in low gt need to generate a high pulse outportb wBase 0x2a 2 INV1 sele
38. ge to low now INTO change to high now generate high pulse INT CHAN 1 is active INT1 change to low now INT1 change to high now generate high pulse update interrupt status generate a high pulse wIrq 8 i Pu Ey xj A Sf A xj EY y x7 S y A DE outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 46 DEMO8 DEMO8 D A Output without calibration E stepl Run DEMO8 EXE JE include PIO H void pio dal6 da int cChannel no int iVal WORD wBase wIrq int main int i j k WORD wBoards wRetVal tl1 t2 t3 t4 t5 t60 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards A step2 enable all D I O port outportb wBase 0x11 RESET gt 1 printf n n 2 A D Output without calibration test printf Anin a 1 23V Voltage output to each channel for i 0 i 16 i 3 1 23 16383 20 0 8192 pio dal6 da i j getch printf n n b 1 23mA Current output to each channel for i20 i 16 i 3 1 23 8192 20 8191 pio dal6 da i j getch outportb wBase 5 0 disable all interrupt outportb wBase 3 0 all D O are Low outportb wBase 2 0 all AUX as D I PIO DriverClose Jt void pio dal6 da int iChannel n
39. he INT CHAN 0 1 must be fixed in low level state normally and generate a high pulse to interrupt the PC The ENO 1 can be used to enable disable the INT CHAN 0 1 as follows Refer to Sec 3 3 4 EN0 1 0 gt INT CHAN 0 1 disable EN0 1 1 gt INT_CHAN_0 1 enable The INV0 1 can be used to invert non invert the INTO 1 as follows Refer to Sec 3 3 6 INV0 1 0 gt INT_CHAN_ 0 1 inverted state of INTO 1 INV0 1 1 gt INT CHAN 0 1 non inverted state of INTO 1 If the INT fixed in low level state the OME PIO DA16 8 4 will interrupt the PC continuously So interrupt service routine should use INV0 1 to invert non invert the INT0 1 to generate high pulse Refer to next section OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 11 2 3 3 Initial_high active low Interrupt source If the INTO 8254 counter0 output is an initial high active low signal depend on 8254 counter mode the interrupt service routine should use INVO to invert non invert the INTO for high_pulse generation as follows Refer to DEMO3 C Initial set now int state 1 initial state for INTO outportb wBase 0x2a 0 select the inverted INTO void interrupt irq service if now int state 1 now INTO is changed to LOW a INT CHAN 0 INTO HIGH now 5 COUNT Ltt find a LOW pulse INTO If inport wBase 7 1 0 the INTO is still fixed in LOW gt need to generate a high pulse outportb
40. l library file gt MSC declaration file gt MSC huge model library file gt BC declaration file gt BC large model library file gt BC declaration file gt BC huge model library file NOTE The library is validated for all OME PIO PISO series cards OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 Demo programs DEMO1 EXE D O demo program DEMOJ2 EXE D I O demo program DEMO3 EXE Single interrupt source initial high DEMO4 EXE Single interrupt source initial low DEMOS EXE Two interrupt source DEMO6 EXE Waveform generator without calibration DEMO7 EXE Waveform generator with calibration DEMOS EXE D A hex value output without calibration DEMOO EXE D A hex value output with calibration DEMO10 EXE Save EEPROM data to file DEMO11 EXE Download EEPROM data from file DEMO12 EXE User software calibration DEMO13 EXE Factory calibration Note Not all demo programs may be listed in this manual Please refer to software floppy disk or CD OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 4 1 PIO_PISO p uri Find all OME PIO PISO series cards in this PC system E step 1 plug all OME PIO PISO cards into PC xy step 2 run PIO PISO EXE if 2 include PIO H WORD wBase wIrq WORD wBase2 wIrg2 int main int 1144 31 323334 33 00 311 322 733 7443 WORD wBoards wRetVal WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice charra float ok e
41. nsducers A Instrumentation amp Accessories FLOW LEVEL 4 Rotameters Gas Mass Flowmeters amp Flow Computers A Air Velocity Indicators A Turbine Paddlewheel Systems A Totalizers amp Batch Controllers pH CONDUCTIVITY A pH Electrodes Testers amp Accessories A Benchtop Laboratory Meters 4 Controllers Calibrators Simulators amp Pumps 4 Industrial pH amp Conductivity Equipment DATA ACQUISITION A Data Acquisition amp Engineering Software 4 Communications Based Acquisition Systems 4 Plug in Cards for Apple IBM amp Compatibles A Datalogging Systems A Recorders Printers amp Plotters HEATERS 4 Heating Cable A Cartridge amp Strip Heaters 4 Immersion amp Band Heaters WF Flexible Heaters 4 Laboratory Heaters ENVIRONMENTAL MONITORING AND CONTROL 4 Metering amp Control Instrumentation 4 Refractometers 4 Pumps amp Tubing A Air Soil amp Water Monitors A Industrial Water Wastewater Treatment A pH Conductivity amp Dissolved Oxygen Instruments M4043 0104
42. o int iVal iVal iVal iChannel no 4 0x4000 iChannel no 0 15 outportb wBase 0xf0 iVal iVal 0x0000 Ox3 ff outportb wBase 0xf4 iVal gt gt 8 outportb wBase 0xe0 4 iChannel no 4 0xff OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 60 4 7 DEMO9 DEMO9 D A Output with calibration Ey stepl Run DEMO9 EXE PE include PIO H void pio dal6 da int cChannel no int iVal WORD wBase wIrq WORD wN10V 16 wP10V 16 w00mA 16 w20mA 16 EEP float fDeltaV 16 fDeltal 16 int main int Tp y K WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr stepl find address mapping of PIO PISO cards step2 enable all D I O port outportb wBase 0x11 RESET gt 1 outportb wBase 2 0x1c AUX 4 3 2 are D O othes D I outportb wBase 3 0 all D O are Low printf Anin 2 A D Output with calibration test for i20 i lt 64 it if i 16 EEP READ N10V i i amp j amp k j 8 k if 1 gt 16 amp amp 1 lt 32 EP READ i amp j amp k P10V i 16 j lt lt 8 k 1 gt 32 amp amp 1 lt 48 EP READ i amp J amp k 00mA i 32 j lt lt 8 k if EP READ i amp 3 amp k 20mA i 48 j lt lt 8 k
43. o low state The RESET signal is used to clear DO states Refer to Sec 3 3 1 for more information about RESET signal e The RESET is in Low state gt all DOs are clear to low state The block diagram of DO is given as follows RESET clear input Latch Clock input D O buffer CKT OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 18 2 5 D A Architecture Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output Voltage Output 9 Voltage Output 10 Voltage Output 11 Voltage Output 12 Voltage Output 13 Voltage Output 14 Voltage Output 15 d0 d13 Amp d14 d15 d0 d13 Wo d14 d15 Current Output Current Output Current Output Current Output Current Output Current Output Current Output Current Output Current Output Current Output 9 Current Output 10 Current Output 11 Current Output 12 Current Output 13 Current Output 14 Current Output d0 d13 br d14 d15 Amp SH 91 sng eed pejegng DA11 d0 d13 Wa d14 d15 The OME PIO DA16 8 4 offers 16 8 4 channels double buffered digital to analog output and provide voltage output amp current output simultaneously OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee 19 2 6 D A Convert Operation Th
44. ocedure the new data of MinV n MaxV n MinI n MaxlI n will be stored to on board EEPROM User can run DEMO10 EXE to back up the old calibration data to A DA16 DAT before new calibration If something error during the new calibration user can run DEMO11 EXE to download data from AADA16 DAT to EEPROM Note DEMO10 EXE save old calibration data DEMO11 EXE gt download old calibration data DEMO12 EXE gt perform new calibration OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 27 2 6 10 Voltage Output Connection External pom Internal Load 2 6 11 External Power Supply 9 36V Output Current Max 5mA i PURUS NA D A Converter Amp Vout DO D13 AGND NA Current Output Connection External e gt Internal Current Loop 1 4 bits Data D A Converter Vout DO D13 0 20mA Load LJ e AGND Y OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 14 bits Data 2 7 The Connectors CONI Digital Output Connector Pin Assignment Pin Name Pin Name 1 Digital Output 0 Digital Output 1 3 Digital Output 2 Digital Output 3 5 Digital Output 4 Digital Output 5 7 Digital Output 6 Digital Output 7 9 Digital Output 8 10 Digital Output 9 11 Digital Output 10 12 Digital Output 11 13 Digital Output 12 14
45. output range is always in 0 22mA as following En 5 o o o c c O 5 o o 3 go o oc gt c O Hex Value 22mA 22mA 10 1V WRN gt gt gt RAMA SSS SSSSSSNSNNSNNSSNNNSNNNNSNSSSSNSNSSSNSNSNNSNNNNNNNS SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSNNSNSNS JFZ TF G f7 J ISZ C L SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSISSSSSSSSSSNSSSSSSNSNSSSSSNNINSINSNS SSSA NSSSSSSSNNSNNNSNNSNSNNSSNNSNSNNNSNNSNNNSSNNSNNNSNNNNNNNSNNNSNNNSNNNSNNNSNNNSNNNNNNNNN NSSSSSSSSSSSNSSSNSNSSSNSSSSNSSSSNSNSSSNSSSSNSNSSNSNSSNSNSSNSSSNSSSSNSSSNSSSSNSNSSSSSSSSNSSSSSSSSSSNSNS follows is given as The resolution of each range g S gt gt gt gt lt lt 388588856 a ALAL e e t Ux Ol NI N a ea Sle el 2 23 2 a2 O 5 S 5 5 5 S tl ay a Al ay te Eom cep ee et pet ot m S gt SE 5 gt gt 8 eurn oo v Ml ol oo S Ty my Ty Fp ayn D vy tap 0 0 gt gt ISE Oj 1 S OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 2 6 2 The 10V Voltage Output The voltage output of OME PIO DA16 8 4 is always in 10 1V range If the user needs to output 10V range the software is same as described in Sec 2 6 Because the user wants to output 10V range Vout will be in 10V range the DaValue will be about from 0x0000 to Ox3fff This means the resolution is about 14 bit 2 6 3 The 5V Voltage Output The voltage ou
46. portb wBase 0xcc cConfig outportb wBase 0xc0 cLow outportb wBase 0xc0 cHigh return NoError WORD pio dal6 cl char cConfig char cLow char cHigh COUNTER 1 outportb wBase 0xcc cConfig outportb wBaset 0xc4 cLow outportb wBase 0xc4 cHigh return NoError WORD pio dal6 c2 char cConfig char cLow char cHigh COUNTER 2 outportb wBase 0xcc cConfig outportb wBaset 0xc8 cLow outportb wBase 0xc8 cHigh return NoError OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 3 3 10 D A Select There are 4 2 1 D A converters in respective OME PIO DA 16 8 4 card It is necessary to select which D A converter is desired after D A data had be sent D A channels allocate as follows Write Al AO WBase 0xe0 0 0 D A output channel 0 0 1 D A output channel 1 DA 0 1 0 D A output channel 2 1 1 D A output channel 3 Wbase 0xe4 0 0 D A output channel 4 0 1 D A output channel 5 DA 1 1 0 D A output channel 6 1 1 D A output channel 7 Wbase 0xe8 0 0 D A output channel 8 0 1 D A output channel 9 DA 2 1 0 D A output channel10 1 1 D A output channel 11 Wbase 0xec 0 0 D A output channel12 0 1 D A output channel 13 DA 3 1 0 D A output channell4 1 1 D A output channel 15 Note Refer to Sec 3 3 11 for more information about A1 A0 outportb wBase 0xf0 wDaValue output low byte of D A data outportb w
47. rr clrscr wRetVal PIO DriverInit swBoards 0xff 0xff 0xff for PIO PISO printf AnThrer are d PIO PISO Cards in this PC wBoards if wBoards 0 exit 0 printf Mn for i 0 i wBoards i PIO GetConfigAddressSpace i amp wBase wlrq amp wSubVendor wSubDevice wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x Sx Sx Slot ID x x i wBase wIrqg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice princR wy ShowPioPiso wSubVendor wSubDevice wSubAux PIO DriverClose NOTE the PIO_PISO EXE is valid for all PIO PISO cards The user can execute the PIO_PISO EXE to get the following information e List all PIO PISO cards installed in this PC e List all resources allocated to every PIO PISO cards e List the wSlotBus amp wSlotDevice for specified OME PIO PISO card identification Refer to Sec 3 2 for more information OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 52 4 1 1 PIO_PISO EXE for Windows User can find this utility on the CD or the floppy disk It is useful for all OME PIO PISO series card After executing the utility detail information for all OME PIO PISO cards that installed in the PC will be show as follows f PIO PISO series card 0x0001 OxD800 Board Name OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wen 4 2 DEMO
48. rt card e One D Sub connector two 20 pin flat cable connectors e Connects directly to OME DB 16P OME DB 16R OME DB 24C OME DB 24PR and OME DB 24POR e Automatically detected by Windows 95 98 2000 XP e No base address or IRQ jumper need to set OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 nen 3 1 2 Specifications Digital Inputs Outputs e All inputs outputs are TTL compatible e Logic high Voltage Vin 2 4 V Min e Logic low Voltage Vit 0 8V Max e Sink current Ior 8mA Max e Source current Ion 0 4mA Max Analog Outputs e D A converter Quad 14 bits MDAC e Channels 16 8 4 independent e Resolution 14 bits e Type double buffered multiplying e Integral linearity 0 006 FSR typical e Differential linearity 0 006 FSR typical Voltage Output Range e Unipolar 0 5V or 0 10V e Bipolar 10V or 5V e Current drive 5mA e Absolute accuracy 0 01 FSR typical Current Output Range e 0 20mA or 4 20mA e Absolute accuracy 0 1 FSR typical e Excitation voltage range 7V to 40V dc Power Consumption e OME PIO DA4 5VDC 600mA e OME PIO DA8 5VDC Y 800mA e OME PIO DAI16 5VDC 1400mA Environmental e Operating Temp 0 60 C e Storage Temp 20 C 80 C e Humidity 0 90 non condensing Dimension e 180mmx 115mm OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 1 3 Order Description OME PIO DA16 PCI bus 16 channel D A board OME PIO DAS PCI bus 8 channel D A
49. s first power on All Aux signal are in Low state All Aux are designed as D I for all PIO PISO series Please set all Aux in D I state 3 3 3 AUX data Register Read Write wBase 3 Note Refer to Sec 3 1 for more information about wBase When the Aux is used as D O the output state is controlled by this register This register is designed for feature extension so do not control this register OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wee 43 3 3 4 INT Mask Control Register Read Write wBase 5 bo b ob b p lo m fw Note Refer to Sec 3 1 for more information about wBase EN0 0 gt disable INTO as a interrupt signal default EN0 1 gt enable INTO as a interrupt signal EN1 0 gt disable INTI as a interrupt signal default EN1 1 gt enable INT1 as a interrupt signal outportb wBase 5 0 disable all interrupts outportb wBase 5 1 enable interrupt of INTO m outportb wBase 5 2 enable interrupt of INT1 El outportb wBase 5 3 enable all two channels of interrupt Refer to the following demo programs for more information DEMO3 C amp DEMO4 C gt single interrupt source DEMOS C amp DEMO6 C gt multiple interrupt sources OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 44 3 3 5 Aux Status Register Read Write wBase 7 Note Refer to Sec 3 1 for more information about wBase Aux0 INTO Aux1 INT1 Aux2 3 controll EEPROM Aux7 4 Aux ID Refer
50. se 0xf0 iVal 1Val 0x0000 Ox3fff outportb wBase 0xf4 iVal gt gt 8 outportb wBase 0xe0 4 cChannel no 4 0xff j Refer to DEMO6 C DEMO7 C DEMOS C and DEMO O C for more information OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 49 4 Demo Program It is recommended to read the release note first All importance information will be given in release note as follows Where you can find the software driver amp utility 2 How to install software amp utility de 4 FAQ Where is the diagnostic program The demo programs are provided on the software floppy disk or CD After the software installation the driver will be installed into disk as follows AICA A MSC BC TC LIB TC DEMO TC LIB Large TC LIB Huge TC LIB Large PIO H TC LIB Large TCPIO_L LIB TC LIB Huge PIO H TC LIB Huge TCPIO_H LIB MSC LIB Large PIO H MSC LIB Large MSCPIO_L LIB MSC LIB Huge PIO H MSC LIB Huge MSCPIO_H LIB BC LIB Large PIO H BC LIB Large BCPIO_L LIB BC LIB Huge PIO H BC LIB Huge BCPIO_H LIB gt for Turbo C 2 xx or above gt for MSC 5 xx or above gt for BC 3 xx or above gt for TC library gt for TC demo program gt TC large model library gt TC huge model library gt TC declaration file gt TC large model library file gt TC declaration file gt TC huge model library file gt MSC declaration file gt MSC large mode
51. se base address of the board control word e wlrq gt allocated IRQ channel number of this board e wSubVendor gt subVendor ID of this board e wSubDevice gt subDevice ID of this board e wSubAux gt subAux ID of this board e wSlotBus gt hardware slot ID1 of this board e wSlotDevice hardware slot ID2 of this board The user can use this function to save resource information of all OME PIO PISO cards installed in this system Then the application program can control all functions of OME PIO PISO series card directly The sample program source is given as follows step1 detect all OME PIO DA 16 8 4 cards first wSubVendor 0x80 wSubDevice 4 wSubAux 0x00 for PIO_DA16 8 4 wRetVal PIO_DriverInit amp wBoards wSubVendor wSubDevice wSubAux printf Threr are d OME PIO DA 16 8 4 Cards in this PC n wBoards step2 save resource of all OME PIO DA 16 8 4 cards installed in this PC for 1 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase amp wlrq amp t1 amp t2 amp t3 amp t4 amp t5 printf nCard_ d wBase x wIrq x i wBase wIrq wConfigSpace 1 0 wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card j step3 control the OME PIO DA 16 8 4 directly wBase wConfigSpace 0 0 get base address the card 0 outport wBase 1 enable all D I O operation of card 0 wBase wConfigSpace 1 0 get base address the card 1 outport wBase
52. ted D O 80 0280 08 00 00 Current sinking OME PISO A64 Rev3 0 64 x isolated D O 80 8280 08 00 50 Current sourcing OME PISO P64 Rev4 0 64 x isolated D I 80 0280 08 00 10 OME PISO P32C32 32 isolated D O 80 0280 08 00 20 Rev5 0 Current sinking 32 isolated D I OME PISO P32A32 32 isolated D O 80 8280 08 00 70 Rev3 0 Current sourcing 32 isolated D I OME PISO P8R8 8 x isolated D l 80 4200 08 00 30 Rev2 0 8 x 220V relay OME PISO P8SSR8AC 8 x isolated D l 80 4200 08 00 30 Rev2 0 8 x SSR AC OME PISO P8SSR8DC 8 x isolated D l 80 4200 08 00 30 Rev2 0 8 x SSR DC OME PISO 730 Rev2 0 16 x DI 16 xD O 80 C2FF 08 00 40 16 x isolated D l 16 isolated D O Current sinking OME PISO 730A 16 x DI 16 xD O 80 62FF 08 00 80 OME PISO 813 Rev2 0 32 x isolated A D 80 4280 0A 02 00 OME PISO DA2 Rev5 0 2 x isolated D A 80 4280 0B 03 00 Note If your board is a different version it may also have different Sub IDs However this will present no actual problem No matter which version of the board you select we offer the same function calls OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 3 1 2 PIO GetConfigAddressSpace PIO GetConfigAddressSpace wBoardNo wBase wlIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice e wBoardNo 0 to N gt totally N 1 boards found by PIO Drivelnit e wBa
53. the INTA generate a low_pulse the OME PIO DA 16 8 4 will interrupt the PC once a time If INT is fixed in low level the OME PIO DA 16 8 4 will interrupt the PC continuously So the INT_CHAN_0 1 must be controlled in a pules_type signals They must be fixed in low_level statue normally and generated a high_pulse to interrupt the PC The priority of INT CHAN_ 0 1 is the same If all these two signals are active at the same time then INT will be active only once a time So the interrupt service routine has to read the status of all interrupt channels for multi channels interrupt Refer to Sec 2 3 for more information DEMOS C gt for INT CHAN_0 amp INT CHAN 1 If only one interrupt source is used the interrupt service routine doesn t have to read the status of interrupt source The demo programs DEMO3 C DEMO4 C are designed for single channel interrupt demo as follows DEMO3 C gt for INT CHAN 1 only initial high DEMOA C gt for INT CHAN 1 only initial low OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 wee 10 2 3 2 INT_CHAN_0 1 INTO 1 INT CHAN 0 1 Inverted Noninverted select INVO 1 Enable Disable select ENOM The architecture of INT CHAN 0 and INT CHAN 1 is the same as above figure The only difference between INTO and INT1 is that INT CHAN_0 signal source from 8254 counterO output and INT CHAN 41 signal source from 8254 counter2 output T
54. tion wRetVal PIO DriverInit wBoards 0xff 0xff 0xff find all PIO PISO printf AnThrer are d PIO PISO Cards in this PC wBoards if wBoards 0 exit 0 printf Mn for i 0 i wBoards i PIO GetConfigAddressSpace i amp wBase wlrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x Sx Sx Slot ID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 1 1 e 37 The Sub IDs of OME PIO PISO series card are given as follows Rev3 0 16 x isolated D I 16 isolated D O Current sourcing OME PIO PISO series Description Sub vendo Sub_device Sub AUX card Old New Old New OME PIO D144 Rev4 0 144 x D I O 80 5C80 01 00 OME PIO D96 Rev4 0 96 x D I O 80 5880 01 10 OME PIO D64 Rev2 0 64 x D I O 80 4080 01 20 OME PIO D56 Rev6 0 24 x D I O 80 C080 01 40 16 x D l 16 D O OME PIO D48 Rev2 0 48 x D I O 80 0080 01 30 OME PIO D24 Rev6 0 24 x D I O 80 C080 01 40 OME PIO 821 Multi function 80 03 10 OME PIO DA16 Rev4 0 16 x D A 80 4180 04 00 00 OME PIO DA8 Rev4 0 8x D A 80 4180 04 00 00 OME PIO DA4 Rev4 0 4 x D A 80 4180 04 00 00 OME PISO C64 Rev4 0 64 x isola
55. tput of OME PIO DA 16 8 4 is always in 10 1V range If the user needs to output 5V range the software is same as described in Sec 2 6 Because the user wants to output 5V range Vout will be in 5V range the DaValue will be about from OxOfff to Ox2fff This means the resolution is about 13 bits 2 6 4 The 0 10V Voltage Output The voltage output of OME PIO DA 16 8 4 is always in 10V 1 range If the user needs to output 0 10V range the software is same as described in Sec 2 6 Because the user wants to output 0 10V range Vout will be in 0 10V range the DaValue will be about from Ox 1fff to Ox3fff This means the resolution is about 13 bits 2 6 5 The 0 5V Voltage Output The voltage output of OME PIO DA16 8 4 is always in 10 1V range If the user needs to output 0 5V range the software is same as described in Sec 2 6 Because the user wants to output 0 5V range Vout will be in 0 5V range the wDaValue will be about from Ox 1fff to Ox2fff This means the resolution is about 12 bits OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 eee 23 2 6 6 The 0 20mA Current Output The current output of OME PIO DA 16 8 4 is always in 0 22mA range If the user needs to output 0 20mA the software is the same as described in Sec 2 6 Because the user wants to output 0 20mA Tout will be in the 0 20mA range So the DaValue will be about from Ox1fff to Ox3fff This means the resolution is about 13 bits 2 6 7 The 4 20mA Current Output
56. two 20 pin flat cable headers OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 3 I O Control Register 3 1 How to Find the I O Address The plug 8 play BIOS will assign a proper I O address to every OME PIO PISO series card in the power up stage The IDs of the OME PIO DA16 8 4 series cards are given as follows lt REV 1 0 REV 3 0 gt lt REV 4 0 or above gt Vendor ID OxE159 Vendor ID OxE159 Device ID 0x02 Device ID 0x01 Sub vendor ID 0x80 Sub vendor ID 0x4180 Sub device ID 0x04 Sub device ID 0x00 e Sub aux ID 0x00 e Sub aux ID 0x00 We provide all necessary functions as follows 1 PIO_DriverInit amp wBoard wSubVendor wSubDevice wSubAux 2 PIO GetConfigAddressSpace wBoardNo wBase wlIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice 3 Show_PIO_PISO wSubVendor wSubDevice wSubAux All functions are defined in PIO H Refer to Chapter 4 for more information The important driver information is given as follows 1 Resource allocated information e wBase BASE address mapping in this PC e wlrq IRQ channel number allocated in this PC 2 PIO PISO identification information e wSubVendor subVendor ID of this board e wSubDevice subDevice ID of this board e wSubAux subAux ID of this board 3 PC s physical slot information e wSlotBus hardware slot ID1 in this PC s slot position e wSlotDevice hardware slot ID2 in this PC s slot position The utility progr
57. vert generate a high pulse if wIrq 8 outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 wen 15 2 4 D I O Block Diagram The OME PIO DA 16 8 4 provides 16 channels of digital input and 16 channels of digital output All signal levels are TTL compatible The connection diagram and block diagram are given as follows 16 bits sng ejeq e207 16 bits D O port 16 bits 16 bits CON2 CON1 The D I port can be connected to the OME DB 16P The OME DB 16P is a 16 channel isolated digital input daughter board The D O port can be connected to the OME DB 16R or OME DB 24PR The OME DB 16R is a 16 channel relay output board The OME DB 24PR is a 24 channel power relay output board OME PIO DA 16 8 4 User s Manual Ver 2 1 Nov 2003 2 4 1 DI Port Architecture CON2 When the PC is powered up all operation of DI port CON2 is disable The enable disable of DI port is controlled by the RESET signal Refer to Sec 3 3 1 for more information about RESET signal e The RESET is in Low state gt all DI operation is disable e The RESET is in High state gt all DI operation is enable RESET disable Buffer input gt Clock input D I buffer CKT OME PIO DA16 8 4 User s Manual Ver 2 1 Nov 2003 17 2 4 2 DO Port Architecture CON1 When the PC is powered up all of DO states are clear t

Download Pdf Manuals

image

Related Search

Related Contents

Kadex - FingerTec  PPI_FBFC_2006  取扱説明書  Zanussi ZOB35309XA  CytoViva User Manual  Fujitsu PRIMERGY TX300 S5  

Copyright © All rights reserved.
Failed to retrieve file