Omega Engineering OME-PIO-D96 manual ShowPIOPISOwSubVendor,wSubDevice,wSubAux

Page 30

3.1.3Show_PIO_PISO

Show_PIO_PISO(wSubVendor,wSubDevice,wSubAux)

wSubVendor Æ subVendor ID of board to find

wSubDevice Æ subDevice ID of board to find

wSubAux Æ subAux ID of board to find

This function will output 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(&wBoards,0xff,0xff,0xff);

/*find all PIO_PISO*/

printf("\nThrer are %d PIO_PISO Cards in this PC",wBoards);

if (wBoards==0 ) exit(0);

 

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], SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice, wSubAux,wSlotBus,wSlotDevice);

printf(" --> "); ShowPioPiso(wSubVendor,wSubDevice,wSubAux);

}

OME-PIO-D96 User Manual (Ver.1.1, Mar/2003)

---- 28

Image 30
Contents User’sGuide Benelux CanadaMexico Czech RepublicOME-PIO-D96 Table of Contents Features IntroductionSpecifications Order DescriptionOptions PCI Data Acquisition Family Product Check ListOME-PISO-series cost-effective generation, isolated cards Hardware configuration Board LayoutEnable I/O Operation I/O port LocationRefer to DEMO1.C for demo program D/I/O Architecture Interrupt Operation Make sure the initial level is High or LowInterrupt Block Diagram of OME-PIO-D96 INTCHAN3INTCHAN0/1/2/3 Initialhigh, activelow Interrupt source COUNTL++Initiallow, activehigh Interrupt source Muliti Interrupt Source Read all interrupt state OME-DN-37 & OME-DN-50 Daughter BoardsOME-DB-37 OME-DB-8125OME-ADP-37/PCI & OME-ADP-50/PCI OME-DB-24P/24PD Isolated Input Board OME-DB-24R/24RD Relay Board OME-DB-24PR/24POR/24C Daughter Boards Comparison Table All signals are TTL compatible Pin AssignmentVCC GND OME-PIO/PISO identification information How to Find the I/O AddressResource-allocated information PC’s physical slot informationPIODriverInit PIODriverInit&wBoards, wSubVendor,wSubDevice,wSubAuxWSubVendor=0x80 wSubDevice=1 wSubAux=0x10 /* for PIOD96 Current sinking PIOGetConfigAddressSpace Enable all D/I/O operation of card0Enable all D/I/O operation of card1 ShowPIOPISO ShowPIOPISOwSubVendor,wSubDevice,wSubAuxAssignment of I/O Address Slot5 0x0A Slot6 0x08 Slot7 0x09 Slot8 0x07I/O Address Map Address Read WriteRESET\ Control Register AUX Control RegisterAUX data Register INT Mask Control Register Aux Status RegisterInterrupt Polarity Control Register INV3 INV2 INV1 INV07 I/O Selection Control Register Read/Write 8-bit data Register How to install software & utility? Demo programPiopiso PIOPISO.EXE for Windows DEMO1 DEMO2 DEMO3 COUNTL++ DEMO4 COUNTL++ DEMO5 CNTL1=CNTL2=CNTL3=CNTL4=0 Page WARRANTY/DISCLAIMER Temperature