Omega OME-PIO-D144 manual How to Find the I/O Address, Resource-allocated information

Page 23

3.I/O Control Register

3.1 How to Find the I/O Address

The plug & play BIOS will assign a proper I/O address to every OME-PIO/PISO series card in the power-on stage. The fixed IDs of OME-PIO/PISO series cards are given as following:

Vendor ID = 0xE159

< REV 4.0 or above > :

< REV 1.0 ~ REV 3.0 > :

VendorDeviceID =ID0xE159= 0x0002 (0x0001• VendorforID =Rev0xE1594.0 or above)

• Device ID = 0x0002

• Device ID = 0x0001

Sub-vendor ID = 0x80

Sub-vendor ID = 0x5C80

The sub IDs of OME-PIO-D144are given as following:

Sub-device ID = 0x01

Sub-device ID = 0x01

Sub-Vendor ID= 0x80

(0x5C80 for Rev 4.0 or above)

Sub-aux ID = 0x00

Sub-aux ID = 0x00

Sub-Device ID = 0x01

 

Sub-Aux ID = 0x00

 

We provide all necessary functions as following:

1.PIO_DriverInit(&wBoard, wSubVendor, wSubDevice, wSubAux)

2.PIO_GetConfigAddressSpace(wBoardNo,*wBase,*wIrq, *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 following:

1. Resource-allocated information:

wBase : BASE address mapping in this PC

wIrq: IRQ channel number allocated in this PC

2. PIO/PISO identification information:

wSubVendor: subVendor ID of this board

wSubDevice: subDevice ID of this board

wSubAux: subAux ID of this board

3. PC’s physical slot information:

wSlotBus: hardware slot ID1 in this PC’s slot position

wSlotDevice: hardware slot ID2 in this PC’s slot position

The utility program, PIO_PISO.EXE, will detect & show all OME-PIO/PISO cards installed in this PC.

OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001)

----- 21

Image 23
Contents User’sGuide Czech Republic CanadaMexico BeneluxOME-PIO-D144 Table of Contents Demo Program Product Check List SpecificationsAll signals are TTL compatible Board Layout Hardware configurationRefer to DEMO1.C for demo program Enable I/O OperationI/O Port Location O Architecture Make sure the initial level is High or Low If INT signal is Low now Æ select the non-inverted inputInterrupt Operation Refer to DEMO3.C for source code Refer to DEMO4.C for source code CN1PC0 CN1PC1 CN1PC2 CN1PC3 If PC1 is active OME-DB-8125 Daughter BoardsOME-DB-37 OME-DN-37 & OME-DN-50OME-ADP-37/PCI & OME-ADP-50/PCI OME-DB-24P OME-DB-24PD OME-DB-24P/24PD Isolated Input BoardOME-PIO-D144 OME-DB-24R/24RD Relay Board COM OME-DB-24PR OME-DB-24PR/24POR/24COME-DB-24PR Daughter Board Comparison Table GND Pin AssignmentVCC OME-PIO-D144 User’s Manual Ver.2.1, Sep/2001 PC’s physical slot information How to Find the I/O AddressResource-allocated information PIO/PISO identification informationOME-PISO-P8R8 OME-PIO-821OME-PISO-P32C32 OME-PISO-P32A32PIODriverInit&wBoards, wSubVendor,wSubDevice,wSubAux PIODriverInitPIOGetConfigAddressSpace ShowPIOPISO Slot5 0x0A Slot6 0x08 Slot7 0x09 Slot8 0x07 Assignment of I/O AddressOME-PIO-D144 User’s Manual Ver.2.1, Sep/2001 Address Read Write RESET\ Control RegisterRESET\ I/O Address MapCN1PC3 CN1PC2 CN1PC1 CN1PC0 AUX Control RegisterAUX data Register INT Mask Control RegisterInterrupt Polarity Control Register Aux Status RegisterActive I/O Port Control Register Read/Write 8-bit data RegisterCN6PC CN6PB CN6PA CN5PC CN5PB CN5PA 9 I/O Selection Control RegisterCN2PC CN2PB CN2PA CN1PC CN1PB CN1PA CN4PC CN4PB CN4PA CN3PC CN3PB CN3PA\TC\LARGE\LIB\PIO.H \TC\LARGE\\TC\LARGE\LIB\ \TC\LARGE\DEMO?\OME-PIO-D144.H Demo1 Use D/O of CN1 CN3 CN4 Demo2 Use D/O of CN1~CN6 PA/PB/PC COUNT=0 Demo3 Interrupt demo1Refer to Sec .5.1 for more information Demo4 Interrupt demo2 Refer to Sec .5.2 for more information Demo5 Interrupt demo3 CN1PC1 OME-PIO-D144 User’s Manual Ver.2.1, Sep/2001 Demo 6 Outport of CN1-CN6 OME-PIO-D144 User’s Manual Ver.2.1, Sep/2001 Demo10 Find Card Number OME-PIO-D144 User’s Manual Ver.2.1, Sep/2001 WARRANTY/DISCLAIMER Temperature