background image

www.omega.com  

e-mail: [email protected]

User’s Guide

OME-PIO-D144
PCI-Bus

Digital I/O Board

Hardware Manual

Shop online at

Summary of Contents for OME-PIO-D144

Page 1: ...www omega com e mail info omega com User sGuide OME PIO D144 PCI Bus Digital I O Board Hardware Manual Shop online at...

Page 2: ...court France TEL 33 0 1 61 37 29 00 FAX 33 0 1 30 57 54 27 Toll Free in France 0800 466 342 e mail sales omega fr Germany Austria Daimlerstrasse 26 D 75392 Deckenpfronn Germany TEL 49 0 7056 9398 0 FA...

Page 3: ...OME PIO D144 User s Manual OME PIO D144 User s Manual Ver 2 1 Sep 2001 PPH 009 21 1...

Page 4: ...24PR 24POR 24C 17 2 6 8 Daughter Board Comparison Table 18 2 7 PIN ASSIGNMENT 19 3 I O CONTROL REGISTER 21 3 1 HOW TO FIND THE I O ADDRESS 21 3 1 1 PIO_DriverInit 23 3 1 2 PIO_GetConfigAddressSpace 2...

Page 5: ...1 USE D O OF CN1 35 4 3 DEMO2 USE D O OF CN1 CN6 37 4 4 DEMO3 INTERRUPT DEMO1 39 4 5 DEMO4 INTERRUPT DEMO2 41 4 6 DEMO5 INTERRUPT DEMO3 43 4 7 DEMO 6 OUTPORT OF CN1 CN6 46 4 8 DEMO10 FIND CARD NUMBER...

Page 6: ...s D I or D O independently Each board 6 connector 6 3 ports 6 3 8 bits 144 bits 4 interrupt sources PC0 PC1 PC2 PC3 All signals are TTL compatible Operating Temperature 0 C to 60 C Storage Temperature...

Page 7: ...PIO D144 CN1 D Sub 37 PIN CN1_PA CN1_PC CN1_PB CN3 50 PIN CN3_PA CN3_PC CN3_PB CN6 50 PIN CN6_PA CN6_PC CN6_PB CN4 50 PIN CN4_PA CN4_PC CN4_PB CN5 50 PIN CN5_PA CN5_PC CN5_PB CN2 50 PIN CN2_PA CN2_PC...

Page 8: ...t are disable The enable disable of D I O is controlled by the RESET signal Refer to Sec 3 3 1 for more information about RESET signal The power on states are given as following All D I O operations a...

Page 9: ...is in Low state all D I O operation is disable The RESET is in High state all D I O operation is enable If D I O is configured as D I port D I external input signal If D I O is configured as D O port...

Page 10: ...ice routine does not have to identify the interrupt source Refer to DEMO3 C DEMO4 C If there are more than one interrupt source the interrupt service routine has to identify the active signals as foll...

Page 11: ...ow now_int_state 1 now int_signal is High application codes are given here _outpd wBase 0x2a 1 select the inverted signal else old state high change to low now now_int_state 0 now int_signal is Low ap...

Page 12: ...igh now now_int_state 1 now int_signal is High application codes are given here _outpd wBase 0x2a 1 select the inverted signal else old state high change to low now now_int_state 0 now int_signal is L...

Page 13: ...o normal at the same time CN1_PC0 CN1_PC1 are active at the same time CN1_PC2 CN1_PC3 are active at the same time Refer to DEMO5 C for source program All these four falling edge rising edge can be det...

Page 14: ...rt invert 1 4 IF PC1 is active if int_c 0x02 0 cc new_int_state 0x02 if cc 0 CNT_H2 else CNT_L2 invert invert 2 5 IF PC2 is active if int_c 0x04 0 cc new_int_state 0x04 if cc 0 CNT_H3 else CNT_L3 inve...

Page 15: ...7 pin connector The OME DN 50 is designed for 50 pin flat cable header They are designed for easy wire connection Both boards are DIN rail mountable 37 PIN cable OME DN 37 2 6 3 OME DB 8125 The OME DB...

Page 16: ...eaders One side of the OME ADP 37 PCI OME ADP 50 PCI can be connected to a 50 pin header The other side can be mounted on the PC chassis as following OME ADP 37 PCI 50 pin header to D Sub37 extender O...

Page 17: ...vels up to 24V or use the OME DB 24P 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 oft...

Page 18: ...activated Note Channel 24 From C Relay Relay Switching up to 0 5A at 110ACV or 1A at 24DCV OME PIO D144 50 Pin cable From C Relay Normal Open Normal Close Com OME DB 24R OME DB 24R OME DB 24RD 50 pin...

Page 19: ...ed 16 relays or 50 pin flat cable connector OPTO 22 compatible for DIO 24 series Twenty four enunciator LEDs one for each relay light when their associated relay is activated To avoid overloading your...

Page 20: ...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...

Page 21: ...PB7 22 PC7 4 PB6 23 PC6 5 PB5 24 PC5 6 PB4 25 PC4 7 PB3 26 PC3 8 PB2 27 PC2 9 PB1 28 PC1 10 PB0 29 PC0 11 GND 30 PA7 12 N C 31 PA6 13 GND 32 PA5 14 N C 33 PA4 15 GND 34 PA3 16 N C 35 PA2 17 GND 36 PA1...

Page 22: ...GND 9 PC3 10 GND 11 PC2 12 GND 13 PC1 14 GND 15 PC0 16 GND 17 PB7 18 GND 19 PB6 20 GND 21 PB5 22 GND 23 PB4 24 GND 25 PB3 26 GND 27 PB2 28 GND 29 PB1 30 GND 31 PB0 32 GND 33 PA7 34 GND 35 PA6 36 GND 3...

Page 23: ...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 informa...

Page 24: ...PISO P64 Rev 4 0 64 isolated D I 0280 00 10 OME PISO P32C32 Rev 5 0 32 isolated D O Current Sinking 32 isolated D I 80 08 20 OME PISO P32A32 Rev 3 0 32 isolated D O Current Sourcing 32 isolated D I 8...

Page 25: ...O ISO cards installed in this PC printf n for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf nCard_ d wBase x wIrq x subID x x x SlotI...

Page 26: ...y Find the configure address space of OME PIO D144 Step1 Detect all OME PIO D144 cards first wSubVendor 0x80 wSubDevice 0x01 wSubAux 0x00 for OME PIO D144 wRetVal PIO_DriverInit wBoards wSubVendor wSu...

Page 27: ...ram is given as follows wRetVal PIO_DriverInit wBoards 0xff 0xff 0xff find all PIO_PISO series card printf nThrer are d OME PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for i 0 i wBo...

Page 28: ..._PISO EXE record the wSlotBus1 wSlotDevice1 3 Remove all OME PIO D144 from this PC 4 Install one OME PIO D144 into the PC s PCI_slot2 run PIO_PISO EXE record the wSlotBus2 wSlotDevice2 5 Repeat 3 4 fo...

Page 29: ...ill be the same as D O The operation steps are given as follows 1 Remove all 50 pin flat cable between CN2 and CN3 2 Install all OME PIO D144 cards into this PC system 3 Power on and run DEM10 EXE 4 N...

Page 30: ...ta from D I port Write 8 bit data to D O port WBase 0xc4 Reserved Select the active I O port WBase 0xc8 Reserved I O Port 0 5 direction control WBase 0xcc Reserved I O Port 6 11 direction control WBas...

Page 31: ...3 Aux2 Aux1 Aux0 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 d...

Page 32: ...2A Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 CN1_PC3 CN1_PC2 CN1_PC1 CN1_PC0 Note Refer to Sec 3 1 for more information about wBase For Example CN1_PC0 0 select the non inverted signal f...

Page 33: ...s D I port outp wBase 0xc0 Val write to D O port Val inp wBase 0xc0 read from D I port 3 3 8 Active I O Port Control Register Read Write wBase 0xc4 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 D7 D...

Page 34: ...eighteen 8 bit I O ports in the OME PIO D144 Every I O port can be programmed as D I or D O port When the PC is first powered up all eighteen ports are used as D I port The I O port location is given...

Page 35: ...code TC LARGE DEMO demo program source code TC LARGE LIB PIO H library header file TC LARGE LIB PIO C library source file TC LARGE LIB A BAT compiler file TC LARGE LIB B BAT link file TC LARGE LIB PIO...

Page 36: ...ase 0x05 define AUX_SR wBase 0x07 define INT_PCR wBase 0x2a define RW_8BitDR wBase 0xc0 define ACT_IOPCR wBase 0xc4 define CN1_PA 0 define CN1_PB 1 define CN1_PC 2 define CN2_PA 3 define CN2_PB 4 defi...

Page 37: ...Base x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice select card_0 PIO_GetConfigAddressSpace 0 wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDe...

Page 38: ...se 0xc0 0xaa set CN1_PB 0xaa outp wBase 0xc4 2 select CN1_PC outp wBase 0xc0 0x5a set CN1_PC 0x5a c getch if c Q c q break printf nCN1 PA 0xAA PB 0x55 PC 0xA5 press Q to stop outp wBase 0xc4 0 select...

Page 39: ...vice wSubAux wSlotBus wSlotDevice printf nCard_ d wBase x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice select card_0 PIO_GetConfigAddressSpace 0 wBase...

Page 40: ...0x10 getch PA4 PB4 PC4 outp wBase 0xc0 0x20 getch PA5 PB5 PC5 outp wBase 0xc0 0x40 getch PA6 PB6 PC6 outp wBase 0xc0 0x80 getch PA7 PB7 PC7 PIO_DriverClose This demo program is designed for CN1 CN6 Th...

Page 41: ...ch 0x07 putch 0x07 printf 1 There are no OME PIO D144 card in this PC n exit 0 printf n 2 Show the Configuration Space of all OME PIO D144 for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wS...

Page 42: ...259 1 irqmask 0xff 1 wIrq 8 setvect wIrq 8 0x70 irq_service outp wBase 0x2a 0 select the non inverte input now_int_state 0 now int_signal is low outp wBase 5 1 enable interrupt enable void interrupt i...

Page 43: ...7 putch 0x07 printf 1 There are no OME PIO D144 card in this PC n exit 0 printf n 2 Show the Configuration Space of all OME PIO D144 for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wSubVend...

Page 44: ..._8259 1 irqmask 0xff 1 wIrq 8 setvect wIrq 8 0x70 irq_service outp wBase 5 1 enable interrupt now_int_state 1 now int_signal is low outp wBase 0x2a 1 select the inverte input enable void interrupt irq...

Page 45: ...scr PIO_DriverInit wBoards 0x80 0x01 0x00 printf n 1 Threr are d OME PIO D144 Cards in this PC wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf 1 There are no OME PIO D144 card in this PC...

Page 46: ..._8259 1 irqmask 0xff 1 wIrq irqmask inp A2_8259 1 outp A2_8259 1 irqmask 0xff 1 wIrq 8 setvect wIrq 8 0x70 irq_service invert 0x05 outp wBase 0x2a invert CN1_PC0 non inverte input CN1_PC1 inverte inpu...

Page 47: ...else CNT_L2 invert invert 2 if int_c 0x04 0 cc new_int_state 0x04 if cc 0 CNT_H3 else CNT_L3 invert invert 4 if int_c 0x08 0 cc new_int_state 0x08 if cc 0 CNT_H4 else CNT_L4 invert invert 8 now_int_st...

Page 48: ...wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf nCard_ d wBase x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice PIO_GetConfigAddressSpace 0 wBa...

Page 49: ...R CN4_PC outp RW_8BitDR i sleep 1 outp IO_SCR2 0x00 printf n for i 1 i 0x80 i i 1 printf nCN5 PA 02xH PB 02xH PC 02xH press Q to stop i i i outp Act_IOPCR CN5_PA outp RW_8BitDR i outp Act_IOPCR CN5_PB...

Page 50: ...IO D144 card in this PC n exit 0 printf n 2 The Configuration Space wBase for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf nCard_ d...

Page 51: ...0xc4 6 select CN2_PA val inp wBase 0xc0 0xff read CN3_PA if val 0x55 ok 0 outp wBase 0xc4 3 select CN2_PA outp wBase 0xc0 0xAA CN2_PA 0xAA outp wBase 0xc4 6 select CN3_PA val inp wBase 0xc0 0xff read...

Page 52: ...shall not exceed 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...

Page 53: ...city Indicators Turbine Paddlewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industria...

Reviews: