ملخص المحتوى في الصفحة رقم 1
User’s Guide
Shop online at
www.omega.com
e-mail: info@omega.com
OME-PIO-D144
PCI-Bus Digital I/O Board
Hardware Manual
ملخص المحتوى في الصفحة رقم 2
® OMEGAnet Online Service Internet e-mail www.omega.com info@omega.com Servicing North America: USA: One Omega Drive, P.O. Box 4047 ISO 9001 Certified Stamford CT 06907-0047 TEL: (203) 359-1660 FAX: (203) 359-7700 e-mail: info@omega.com Canada: 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: Sales Service: 1-800-826-6342 / 1-800-TC-OMEGA ® Customer Service: 1-800-622-2378
ملخص المحتوى في الصفحة رقم 3
OME-PIO-D144 User’s Manual OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001, PPH-009-21) ----- 1
ملخص المحتوى في الصفحة رقم 4
Table of Contents 1. INTRODUCTION ........................................................................................................................4 1.1 SPECIFICATIONS ..................................................................................................................4 1.2 PRODUCT CHECK LIST ........................................................................................................4 2. HARDWARE CONFIGURATION ..........................................
ملخص المحتوى في الصفحة رقم 5
4. DEMO PROGRAM....................................................................................................................33 4.1 OME-PIO-D144.H ..............................................................................................................34 4.2 DEMO1: USE D/O OF CN1....................................................................................................35 4.3 DEMO2: USE D/O OF CN1~CN6........................................................................
ملخص المحتوى في الصفحة رقم 6
1. Introduction The OME-PIO-D144 consists of one D-Sub 37 & five 50-pin flat-cable connectors. There are three 8-bit ports - PA, PB & PC - in each connector. Every port consists of 8-bit programmable D/I/O. So the OME-PIO-D144 can provide 144 channels of TTL-compatible D/I/O. 1.1 Specifications • PC compatible PCI bus • One D-Sub37 connector and five 50-pin flat-cable connectors • Each port consists of three 8-bit ports - PA, PB & PC - in every connector • Each port can be p
ملخص المحتوى في الصفحة رقم 7
CN1 CN2 CN3 CN4 CN5 CN6 CN1_PA CN2_PA CN3_PA CN4_PA CN5_PA CN6_PA CN1_PB CN2_PB CN3_PB CN4_PB CN5_PB CN6_PB CN1_PC CN2_PC CN3_PC CN4_PC CN5_PC CN6_PC D-Sub 37 PIN 50-PIN 50-PIN 50-PIN 50-PIN 50-PIN OME-PIO-D144 PCI BUS 2. Hardware configuration 2.1 Board Layout OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001) ----- 5
ملخص المحتوى في الصفحة رقم 8
2.2 I/O Port Location There are 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 ports. The I/O port location is given as following: Connector of OME-PIO-D144 PA0 to PA7 PB0 to PB7 PC0 to PC7 CN1 CN1_PA CN1_PB CN1_PC CN2 CN2_PA CN2_PB CN2_PC CN3 CN3_PA CN3_PB CN3_PC CN4 CN4_PA CN4_PB CN4_PC CN5 CN5_PA CN5_PB CN5_PC CN6 CN6_PA CN6_PB CN6_PC Refer to Sec. 2.1 for bo
ملخص المحتوى في الصفحة رقم 9
2.4 D/I/O Architecture I/O select (Sec. 3.3.9) D/I/O RESET\ (Sec. 3.3.1) disable\ Data input Latch (Sec. 3.3.7) Clock input D/O latch CKT disable Data Buffer input (Sec. 3.3.7) Clock input D/I buffer CKT • The RESET\ 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
ملخص المحتوى في الصفحة رقم 10
2.5 Interrupt Operation The PC0, PC1, PC2, PC3 of CN1_PC can be used as interrupt signal source. Refer to Sec. 2.1 for PC0/1/2/3 location. The interrupt of OME-PIO-D144 is level-trigger . The interrupt signal can be programmed to inverted or non- & Active_High state. The programming procedure is as follows: inverted 1. make sure the initial level is High or Low 2. if the initial state is High select the inverted signal (Section. 3.3.6) 3. if the initial state is Low select the non-
ملخص المحتوى في الصفحة رقم 11
Example 1: assume initial level=Low, PC0 is used as interrupt source: Initial=Low Iniaial_sub() { now_int_state=0 _outpd(wBase+0x2a,0) /*(select the non-inverted signal)*/ ISR_sub() { If (now_int_state==0) /* old state=low change to high now */ { now_int_state=1; /* now int_signal is High */ /*** application codes are given here ***/ _outpd(wBase+0x2a,1); /* select the inverted signal */ } else
ملخص المحتوى في الصفحة رقم 12
Example 2: assume initial level=High, PC0 is used as interrupt source: Initial=High Inverted=Low Iniaial_sub() { now_int_state=1 _outpd(wBase+0x2a,1) /*(select the inverted signal)*/ ISR_sub() { If (now_int_state==0) /* old state=low change to high now */ { now_int_state=1; /* now int_signal is High */ /*** application codes are given here ***/ _outpd(wBase+0x2a,1); /* select the inverted signal */
ملخص المحتوى في الصفحة رقم 13
Example 3: assume CN1_PC0 is initial Low, active High, CN1_PC1 is initial High, active Low CN1_PC2 is initial Low, active High CN1_PC3 is initial High, active Low As follows: CN1_PC0 CN1_PC1 CN1_PC2 CN1_PC3 CN1_PC0 & CN1_PC0 & CN1_PC1 are CN1_PC1 are active at the same return to normal time. at the same time. CN1_PC2 & CN1_PC2 & CN1_PC3 are CN1_PC3 are active at the same return to normal time. at the same time. Refer to
ملخص المحتوى في الصفحة رقم 14
void interrupt irq_service() { char cc; int_num++; /* 1. Read interrupt signal status */ new_int_state=inp(wBase+0x07)&0xff; /* 2. Find the active signal */ int_c=new_int_state ^ now_int_state; /* 3. IF PC0 is active */ if ((int_c&0x01) != 0) { cc=new_int_state&0x01; if (cc !=0) CNT_H1++; else CNT_L1++; invert=invert ^ 1; } /* 4. IF PC1 is active */ if ((int_c&0x02) != 0) { cc=new_int_state&0x02;
ملخص المحتوى في الصفحة رقم 15
2.6 Daughter Boards 2.6.1 OME-DB-37 The OME-DB-37 is a general purpose daughter board with D-sub 37 pin connector. It is designed for easy wire connection. 37-PIN cable OME-DB-37 2.6.2 OME-DN-37 & OME-DN-50 The OME-DN-37 is a general purpose daughter board for D-sub 37 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
ملخص المحتوى في الصفحة رقم 16
2.6.4 OME-ADP-37/PCI & OME-ADP-50/PCI The OME-ADP-37/PCI & OME-ADP-50/PCI are extenders for the 50-pin headers. 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. OME-ADP-50/PCI: 50-pin header to 50-pin header extender. OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001) ---- 14
ملخص المحتوى في الصفحة رقم 17
2.6.5 OME-DB-24P/24PD Isolated Input Board The OME-DB-24P is a 24 channel isolated digital input daughter board. The optically isolated inputs of the OME-DB-24P consist of a bi-directional opto-coupler with a resistor for current sensing. You can use the OME-DB-24P to sense DC signal from TTL levels 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 spi
ملخص المحتوى في الصفحة رقم 18
2.6.6 OME-DB-24R/24RD Relay Board The OME-DB-24R, 24 channel relay output board, consists of 24 form C relays for efficient switching of load via programmed control. The relay are energized by apply 12V/24V signal to the appropriated relay channel on the 50-pin flat connector. There are 24 enunciator LED’s for each relay and they light when their associated relay is activated. From C Relay Normal Open Normal Close Com OME-DB-24R OME-PIO-D144 Note:
ملخص المحتوى في الصفحة رقم 19
2.6.7 OME-DB-24PR/24POR/24C OME-DB-24PR 24 × power relay, 5A/250V 24 × Photo MOS relay, 0.1A/350VAC OME-DB-24POR 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 via programmed control. The contact of each relay can control a 5A load at 250ACV/30VDCV. The relay is energized by applying a 5 voltage signal to the appropriate r
ملخص المحتوى في الصفحة رقم 20
2.6.8 Daughter Board Comparison Table 20-pin flat-cable 50-pin flat-cable D-sub 37-pin 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-24PRD No Yes Yes OME-DB-24POR Yes Yes Yes OME-DB-24SSR No Yes Yes OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001) ---- 18