background image

 
 

PIO-D48 Series Card 

User Manual 

48-channel OPTO-22 compatible DIO board              Version 3.4, Aug. 2015 

 

 

S

UPPORTS

 

Board includes PIO-D48, PIO-D48U, PIO-D48SU and PEX-D48.

 

 

W

ARRANTY

 

All products manufactured by ICP DAS are warranted against defective materials 
for a period of one year from the date of delivery to the original purchaser. 

 

W

ARNING

 

ICP DAS assumes no liability for damages consequent  to the use of this product. 
ICP DAS reserves the right to change this manual at any time without notice. The 
information furnished by ICP DAS is believed to be accurate and reliable. However, 
no responsibility is assumed by ICP DAS for its use,  nor for any infringements of 
patents or other rights of third parties resulting from its use. 

 

C

OPYRIGHT

 

Copyright ©  2013 by ICP DAS. All rights are reserved.

 

 

T

RADEMARK

 

Names are used for identification only and may be registered trademarks of their 
respective companies. 

 

C

ONTACT 

US 

If you have any question, please feel to contact us. We will give you quick 
response within 2 workdays.   
Email: [email protected][email protected]

   

Summary of Contents for PIO-D48

Page 1: ...the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor...

Page 2: ...2 7 1 Interrupt Block Diagram 15 2 7 2 INT_CHAN_0 16 2 7 3 INT_CHAN_1 17 2 7 4 INT_CHAN_2 18 2 7 5 INT_CHAN_3 19 3 HARDWARE INSTALLATION 20 4 SOFTWARE INSTALLATION 24 4 1 OBTAINING INSTALLING THE DRI...

Page 3: ...6 3 5 Read Write I O Port 41 6 3 6 Read Write 8254 43 6 3 7 Read Write Clock Int Control Register 45 6 3 8 Read Card ID Register 45 7 DEMO PROGRAMS 46 7 1 DEMO PROGRAM FOR WINDOWS 46 7 2 DEMO PROGRAM...

Page 4: ...o 2 nibble wide 4 bit parts All ports are configured as inputs upon power up or reset The PIO D48U D48SU and PEX D48 also adds a Card ID switch and pull high pull low resisters for DI on board Users c...

Page 5: ...4PD DB 24RD DB 24PRD DB 16P8R DB 24POR DB 24SSR DB 24C or any OPTO 22 Compatible daughter boards PIO D48 U PEX D48 One DB37 connector and one 50 pin box headers PIO D48SU One SCSI II 100 pin connector...

Page 6: ...e Logic 0 0 4 V max Logic 1 2 4 V min Output Capability Sink 64mA 0 8 V Source 32 mA 2 0 V Response Speed 1 MHz 500 KHz General Bus Type 5 V PCI 32 bit 33 MHz 3 3 V 5 V Universal PCI 32 bit 33 MHz PCI...

Page 7: ...l High Pull Low Pull High Pull Low Pull High Pull Low Pull High Pull Low Pull High Pull Low SW1 1 2 3 4 Only for PIO D48U CN1 50 pin DB 37 Pull High Pull Low 1 2 3 The board layout of the PEX D48 card...

Page 8: ...D48SU cards are shown below PIO D48SU CON1 1 2 3 SW1 1 2 3 4 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 JP2 Port0 JP3 Port2 JP4 Port1 JP5 Port3 JP6 Port4 JP7 Port5 Pull High Pull Low Pull Low Pull Low Pull Low Pul...

Page 9: ...JP2 Port3 pull high low by JP5 PB0 PB7 Port1 pull high low by JP3 Port4 pull high low by JP6 PC0 PC7 Port2 pull high low by JP4 Port5 pull high low by JP7 Connector of PEX D48 CN1 DB37 CN2 50 pin PA0...

Page 10: ...computer The default Card ID is 0x0 For detail SW1 Card ID settings please refer to Table 2 1 Table 2 1 Default Settings OFF 1 ON 0 Card ID Hex 1 ID0 2 ID1 3 ID2 4 ID3 0x0 ON ON ON ON 0x1 OFF ON ON O...

Page 11: ...all connectors on the PIO D48 D48U D48SU and PEX D48 are represented in Figure 2 1 and Figure 2 2 All signal sources for each digital input or output pin channel is TTL compatible Pin Assignments of...

Page 12: ...PIO D48 Series Card 48 channel OPTO 22 Compatible DIO Board User Manual Ver 3 4 Aug 2015 PMH 006 34 Page 11 Pin Assignments of the PIO D48SU CON1 100 pin SCSI connector for Port0 Port5 Figure 2 2...

Page 13: ...rations for each port are disabled D I O ports are all configured as Digital input ports D O latch register outputs are all high impedance Refer to Sec 2 6 The user has to perform some initialization...

Page 14: ...8 are demonstrated in Figure 2 3 The operation method used for the control signal is presented below RESET is in the Low state all D I O operation is disabled RESET is in the High state all D I O oper...

Page 15: ...ere are more than one interrupt source the interrupt service routine has to identify the active signals in the following manner 1 Read the new status of all interrupt signal sources refer to Sec 6 3 5...

Page 16: ...e priority of INT_CHAN_0 1 2 3 is the same If all these four signals are active at the same time then INT will be active only once per occasion So the interrupt service routine has to read the status...

Page 17: ...N_0 PC3 of port 2 CTRL_D3 0 CTRL_D2 0 INT_CHAN_0 PC3 PC7 of port 2 EN0 can be used to enable disable the INT_CHAN_0 as follows Refer to Sec 6 3 4 EN0 0 INT_CHAN_0 Disabled EN0 1 INT_CHAN_0 Enabled INV...

Page 18: ...of port 5 CTRL_D5 0 CTRL_D4 0 INT_CHAN_1 PC3 PC7 of port 5 EN1 can be used to enable disable the INT_CHAN_1 as follows Refer to Sec 6 3 4 EN1 0 INT_CHAN_1 Disabled EN1 1 INT_CHAN_1 Enabled INV1 can be...

Page 19: ...0 Cin0 PC0 of Port 2 CTRL_D1 1 Cin0 PC0 of Port 2 EN2 can be used to enable disable the INT_CHAN_2 as follows Refer to Sec 6 3 4 EN2 0 INT_CHAN_2 disabled EN2 1 INT_CHAN_2 enabled INV2 can be used to...

Page 20: ...in1 2 M clock source CTRL_D0 1 Cin1 32768 Hz clock source EN3 can be used to enable disable the INT_CHAN_3 as follows Refer to Sec 6 3 4 EN3 0 INT_CHAN_3 Disabled EN3 1 INT_CHAN_3 Enabled INV3 can be...

Page 21: ...t For detailed information about the driver installation please refer to Chapter 4 Software Installation Step 2 Configuring Card ID by the SW1 DIP Switch For detailed information about the card ID SW1...

Page 22: ...48 channel OPTO 22 Compatible DIO Board User Manual Ver 3 4 Aug 2015 PMH 006 34 Page 21 Step 3 Shut down and power off your computer Step 4 Remove all covers from the computer Step 5 Select an empty P...

Page 23: ...Ver 3 4 Aug 2015 PMH 006 34 Page 22 Step 6 Remove the PCI PCI Express slot cover form the PC Step 7 Remove the connector cover form the PIO D48 series card Step 8 Carefully insert your PIO D48 series...

Page 24: ...MH 006 34 Page 23 Step 9 Tighten the captive Phillips screw Confirm the PIO D48 series card is mounted on the motherboard Step 10 Replace the computer cover Step 11 Power on the computer Follow the pr...

Page 25: ...d on the supplied CD ROM or can be obtained from the ICP DAS FTP web site Install the appropriate driver for your operating system The location and addresses are indicated in the Table4 1 and Table4 2...

Page 26: ...re For detailed information about the PIO DIO series classic driver installation please refer to PIO DIO series classic driver DLL Software Manual The user manual is contained in CD NAPDOS PCI PISO DI...

Page 27: ...ting system to verify the installation 4 3 1 How do I get into Windows Device Manager Microsoft Windows 95 98 ME Step 1 On the desktop right click on My Computer and click Properties or open the Contr...

Page 28: ...anager and the press Enter Note that Administrator privileges are required for this operation If you are prompted for an administrator password or confirmation type the password or provide confirmatio...

Page 29: ...channel OPTO 22 Compatible DIO Board User Manual Ver 3 4 Aug 2015 PMH 006 34 Page 28 4 3 2 Check that the Installation Check the PIO D48 series card which listed correctly or not as illustrated below...

Page 30: ...confirm that PIO D48 series card well or not Before the self test you must complete the hardware and driver installation For detailed information about the hardware and driver installation please refe...

Page 31: ...OPTO 22 Compatible DIO Board User Manual Ver 3 4 Aug 2015 PMH 006 34 Page 30 2 Connect the Port0 PA0 PA7 with Port1 PB0 PB7 PIO D48SU 1 Use DN 100 wiring terminal board optional to connect the CON1 o...

Page 32: ...refer to Quick Start Guide of the PIO D48 http ftp icpdas com pub cd iocard pci napdos pci pio dio manual quickstart d48 pio d48_quic kstart_eng pdf to execute the self test 3 Execute the UniDAQ Util...

Page 33: ...Manual Ver 3 4 Aug 2015 PMH 006 34 Page 32 4 Get DIO function test result Select the Port 1 Check channel 0 2 4 6 3 Select the Port 0 5 The corresponding D I becomes black for channel 0 2 4 6 of D O...

Page 34: ...power on stage The fixed IDs for the PIO D48 series cards are given as follows Table 6 1 PIO D48 U Rev 1 x PIO D48 U PEX D48 Rev 2 0 or above Vendor ID 0xE159 Vendor ID 0xE159 Device ID 0x0002 Device...

Page 35: ...s shown in the following Figure6 1 Details of how to identify the PIO D48 series cards of ICPDAS data acquisition boards based on the Sub vendor Sub device and Sub Aux ID are given in Table 6 1 and 6...

Page 36: ...demonstrated below The simplest way to identify which card is card_0 is to use wSlotBus and wSlotDevice in the following manner Step 1 Remove all PIO D48 series boards from the PC Step 2 Install one P...

Page 37: ...n be used to identify the specified PIO PISO card by following steps Step1 Using the wSlotBus and wSlotDevice information from Table 6 3 Step2 Enter the board number into PIO_GetConfigAddressSpace fun...

Page 38: ...or more information about wBase Address Read Write wBase 0 RESET Control Register wBase 5 INT mask control register Same wBase 7 Aux pin status register Same wBase 0x2a INT polarity control register S...

Page 39: ...tions are initiated For example outportb wBase 1 RESET High all D I O are enable now outportb wBase 0 RESET Low all D I O are disable now 6 3 2 INT Mask Control Register Read Write wBase 5 Bit 7 Bit 6...

Page 40: ...5 8 Enable interrupt of INT_CHAN_3 outportb wBase 5 0x0f Enable all four channels of interrupt 6 3 3 Aux Status Register Read Write wBase 7 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 AuxID7 AuxI...

Page 41: ...nterrupt_channel_0 INV0 1 select the non inverted signal from interrupt_channel_0 INV1 Control interrupt channel_1 INV2 Control interrupt channel_2 INV3 Control interrupt channel_3 For example select...

Page 42: ...rd settings All six ports are configured as D I ports when the power is first turned on Read Write wBase 0xcc Set Input Output mode for the port 0 1 2 Read Write wBase 0xdc Set Input Output mode for t...

Page 43: ...t_0 PA outportb wBase 0xc4 V2 write to port_1 PB outportb wBase 0xc8 V3 write to port_2 PC outportb wBase 0xdc 0x9B set input mode for the port 3 4 5 V1 inportb wBase 0xd0 read from port_3 PA V2 inpor...

Page 44: ...CD 0 Binary Count 1 BCD Count M2 M1 M0 0 0 0 Interrupt on terminal count 0 0 1 Programmable one shot 0 1 0 Rate generator 0 1 1 Square wave generator 1 0 0 software triggered pulse 1 0 1 Hardware trig...

Page 45: ...D7 D6 D5 D4 D3 D2 D1 D0 Read Write wBase 0xec 8254 control word Read Write wBase 0xe0 8254 counter 0 Read Write wBase 0xe4 8254 counter 1 Read Write wBase 0xe8 8254 counter 2 For example outportb wBas...

Page 46: ...n invert 1 invert CTRL D3 CTRL D2 interrupt source select Refer to Sec 2 7 2 01 disable PC3 PC7 of port 2 as interrupt source 10 INT_CHAN_0 PC3 of port 2 00 INT_CHAN_0 PC3 PC7 of port 2 CTRL D5 CTRL D...

Page 47: ...PCI PIO DIO Manual 7 Demo Programs 7 1 Demo Program for Windows All demo programs will not work properly if the DLL driver has not been installed correctly During the DLL driver installation process t...

Page 48: ...er files UniDAQ LIB Linkage library for VC only VB6 for Visual Basic 6 UniDAQ BAS Declaration files VC NET2005 for VC NET2005 32 bit UniDAQ H Header files UniDAQ LIB Linkage library for VC only VC NET...

Page 49: ...File The list of demo programs DEMO1 D O Demo DEMO2 D I Demo DEMO3 D I O Demo DEMO4 Timer Interrupt of INT_CHAN_3 DEMO5 Event Counter no interrupt of INT_CHAN_2 init_HIGH active_Low DEMO6 Event Counte...

Page 50: ...l purpose daughter board for DB 37 pins with DIN Rail Mountings The DN 50 is designed for 50 pin flat cable headers win DIN Rail mountings They are also designed for easy wire connection via pin to pi...

Page 51: ...7 pin cable e g CA 3710 etc to connect DB 8125 to CON1 of the PIO D48 U and PEX D48 A3 ADP 37 PCI and ADP 50 PCI The ADP 37 PCI and ADP 50 PCI are extender for the 50 pin header The one side of the AD...

Page 52: ...coupler with a resistor for current sensing You can use the DB 24P to sense DC signals from TTL levels up to 24 V or use the DB 24P to sense a wide range of AC signals You can also use this board to i...

Page 53: ...tage signal to the appropriate relay channel on the 50 pin flat cable connector There are 24 enunciator LEDs for each relay channel and the LED light will go on when their associated relay has been ac...

Page 54: ...D48U PEX D48 PIO D48 PIO D48U PEX D48 PIO D48SU Cable Daughter Boards 20 Pin Flat Cable 50 Pin Flat Cable 37 Pin D sub 100 Pin SCSI II DB 37 NO NO Yes NO DN 37 NO NO Yes NO ADP 37 PCI NO Yes Yes NO A...

Reviews: