background image

PEX/PIO/PISO-DA Series Card 

Analog Output Boards

 

User  Manual/  Ver.  3.1/  Oct.  2013/  PMH-0010-31/  Page:  60 

 

6.3

 

  The I/O Address Map 

The I/O address for PEX-DAx, PISO-DAxU and PIO-DAxU series cards is automatically 

assigned by the ROM BIOS of the PC and provides Plug&Play capabilities for PIO/PISO 

series  cards.  The  PEX-DAx,  PISO-DAxU  and  PIO-DAxU  series  I/O  addresses  are 

mapped as follows: 

 

Table 6-3: Refer to 

Sec. 6.1.3

 for more information about wBase. 

Address 

Read 

Write 

wBase+0 

Reserved 

RESET\ control register 

wBase+2 

Reserved 

Aux control register 

wBase+3 

Aux data register 

Aux data register 

wBase+5 

Reserved 

INT mask control register 

wBase+7 

Aux pin status register 

Same 

wBase+0x2a 

Reserved 

INT polarity control register 

wBase+0xc0 

Read 8254-Counter0 

Write 8254-Counter0 

wBase+0xc4 

Read 8254-Counter1 

Write 8254-Counter1 

wBase+0xc8 

Read 8254-Counter2 

Write 8254-Counter2 

wBase+0xcc 

Read 8254 control word 

Write 8254 control word 

wBase+0xd4 

Read the Card ID 

Reserved 

wBase+0xe0 

Read the Low byte of D/I 

DA_0 chip select 

wBase+0xe4 

Read the High byte of D/I 

DA_1 chip select 

wbase+0xe8 

Read the Low byte of D/I 

(for PEX/PIO-DA only)

 

DA_2 chip select 

wBase+0xec 

Read the High byte of D/I 

(for PEX/PIO-DA only)

 

DA_3 chip select 

wBase+0xf0 

Read the Low byte of D/I 

(for PEX/PIO-DA only)

 

Write the Low byte of D/A 

wBase+0xf4 

Read the High byte of D/I 

(for PEX/PIO-DA only)

 

Write the High byte of D/A 

wBase+0xf8 

Read the Low byte of D/I 

(for PEX/PIO-DA only)

 

Write the Low byte of D/O 

wBase+0xfc 

Read the High byte of D/I 

(for PEX/PIO-DA only)

 

Write the High byte of D/O 

 

ГК

 

Атлант

 

Инжиниринг

 – 

официальный

 

представитель

 

в

 

РФ

 

и

 

СНГ

 

+7(495)109-02-08 [email protected] www.bbrc.ru 

Содержание PEX Series

Страница 1: ...AS 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...

Страница 2: ...Initial_Low Ative_High Interrupt Source 18 2 3 5 Multiple Interrupt Source 19 2 4 D I O BLOCK DIAGRAM 21 2 4 1 D I Port Architecture CON2 22 2 4 2 D O Port Architecture CON1 23 2 5 D A ARCHITECTURE 24...

Страница 3: ...52 6 1 HOW TO FIND THE I O ADDRESS 52 6 1 1 PIO_PISO EXE Utility for Windows 53 6 1 2 PIO_DriverInit 54 6 1 3 PIO_GetConfigAdressSpace 56 6 1 4 Show_PIO_PISO 57 6 2 THE ASSIGNMENT OF I O ADDRESS 58 6...

Страница 4: ...Oct 2013 PMH 0010 31 Page 4 7 2 DEMO PROGRAM FOR DOS 71 APPENDIX DAUGHTER BOARD 73 A1 DB 37 and DN 37 73 A2 DB 8125 73 A3 DB 16P Isolated Input Board 74 A5 DB 16R Relay Board 75 A6 DB 24PR DB 24POR D...

Страница 5: ...Related Information Product Page http www icpdas com root product solutions pc_based_io_board pci pio da4 html Documentation and Software for PIO DA series classic CD NAPDOS PCI PIO DA http ftp icpda...

Страница 6: ...their voltage output range is from 10 V to 10 V and their current output range is from 0 to 20 mA In addition These cards also feature the following advantages by ICP DAS s innovation 1 Accurate and e...

Страница 7: ...pin flat cable connectors Connects directly to DB 16P DB 16R DB 24C DB 24PR and DB 24POR PISO DA16U DA8U DA4U only Built in DC DC converter with 3000 VDC isolation Supports both 5 V and 3 3 V PCI bus...

Страница 8: ...FC A GND CN3 5 10 15 24 29 N A PIO DA4U PIO DA8U PIO DA16U V1 0 0xE0 E4 E8 EC 0xF0 F4 F8 FC A GND CN3 5 10 15 24 29 N A PIO DA4U PIO DA8U PIO DA16U V1 1 0xE0 E4 E8 EC 0xF0 F4 F8 FC A GND CN3 5 10 15...

Страница 9: ...te 0 71 V s Output Impedance 0 1 max Operating Mode Software Digital Input Channels 16 ch Compatibility 5 V TTL Input Voltage Logic 0 0 8 V max Logic 1 2 0 V min Response Speed 200 KHz 1 0 MHz Typical...

Страница 10: ...it for Version 1 1 or above Yes 4 bit I O Connector Female DB37 x 1 Male 20 bit ribbon x 2 Dimensions L x W 188 mmx 97 mm 188 mmx 97 mm Version 1 1 or above 180 mmx 97 mm Power Consumption 600 mA 5 V...

Страница 11: ...Page 11 2 Hardware Configuration 2 1 Board Layout PIO DAx Board Layout CON1 CON2 CON3 PCI BUS PIO DA16 PIO DA8 PIO DA4 1 2 19 20 1 2 19 20 DI DO Note CON1 16 channel D O CON2 16 channel D I CON3 4 8...

Страница 12: ...rsal PCI BUS 1 2 1 9 2 0 1 2 1 9 2 0 DI DO JP1 SW1 ON 1 2 3 4 PEX DA Board Layout CON1 CON2 CON3 PCI Express 1 2 1 9 2 0 1 2 1 9 2 0 DI DO JP1 SW1 ON 1 2 3 4 Note CON1 16 channel D O CON2 16 channel D...

Страница 13: ...ter chip on the PEX PIO PISO DA series board and provides two interrupt sources The first is a 16 bit timer output INT0 and the other one is a 32 bit timer output INT1 The block diagram is shown below...

Страница 14: ...tive signals in the following manner Refer to DEMO5 C and DEMO6 C 1 Read the new status of all interrupt signal sources 2 Compare the new status with the old status to identify the active signals 3 If...

Страница 15: ...d must be fixed at a low_level state normally and a high_pulse generated to interrupt the PC The priority of INT_CHAN_0 1 is the same If both of these signals are active at the same time then INT will...

Страница 16: ...mally and a high_pulse generated to interrupt the PC EN0 1 can be used to enable disable the INT_CHAN_0 1 in the following manner Refer to Sec 6 3 4 EN0 1 0 INT_CHAN_0 1 disabled EN0 1 1 INT_CHAN_0 1...

Страница 17: ...lse outportb wBase 0x2a 1 INV0 select the non inverted input b INT_CHAN_0 INT0 LOW INT_CHAN_0 generate a high_pulse now_int_state 0 now INT0 LOW else now_int_state 1 now INT0 HIGH don t have to genera...

Страница 18: ...se outportb wBase 0x2a 1 INV0 select the non inverted input d INT_CHAN_0 INT0 LOW INT_CHAN_0 generate a high_pulse now_int_state 0 now INT0 LOW else now_int_state 1 now INT0 HIGH don t have to generat...

Страница 19: ...these falling edge and rising edge can be detected using DEMO5 C Note When the interrupt is active the user program has to identify the active signals These signals may all be active at the same time...

Страница 20: ...read all interrupt signal state int_c new_int_state now_int_state compare new_state to old_state if int_c 0x01 1 INT_CHAN_0 is active if new_int_state 1 0 INT0 change to low now INT0_L else INT0 chan...

Страница 21: ...TL compatible The connection diagram and block diagram are as follows Local Data Bus D I port CON2 16 bits 16 bits D O port CON1 16 bits 16 bits The D I Port can be connected to a DB 16P which is a 16...

Страница 22: ...disabled The enabled disabled status of a DI port is controlled by the RESET signal Refer to Sec 6 3 1 for more information about the RESET signal The RESET signal is in the Low state all DI operation...

Страница 23: ...of all DO channels are cleared low The RESET signal is used to clear the DO states Refer to Sec 6 3 1 for more information about the RESET signal The RESET signal is in the Low state all DO channels a...

Страница 24: ...10 Current Output 11 Current Output 12 Current Output 13 Current Output 14 Current Output 15 Voltage Output 15 Voltage Output 14 Voltage Output 13 Voltage Output 12 Voltage Output 11 Voltage Output 1...

Страница 25: ...y used for voltage current output so the user has to perform some calibration when changing from voltage to current Also if these VRs are changed the user has to re perform the calibration This proced...

Страница 26: ...16293 8168 15949 15 133 16295 8175 15965 If the user wants to send Vout volts to Channel n the calibrated hex value DaValue sent to D A converter can be calculated in the following way DeltaV n 20 0...

Страница 27: ...22 mA as illustrated below Hex Value 0X0000 0X3FFF 0X2FFF 0X0FFF 0X1FFF 0X25D0 10 1V 10 1V 22mA 0V 5 05V 5 05V 5 05V 0V 22mA 0mA 4mA 10 1V Voltage Channel Output Current Channel Output The resolution...

Страница 28: ...range of 5 V so the DaValue will approximately be from 0x0fff to 0x2fff which means that the resolution is about 13 bits 2 6 4 0 10 V Voltage Output The voltage output for PEX DA and PISO PIO DAxU se...

Страница 29: ...t in the range of 4 20 mA the software calibration is the same as that described in Sec 2 6 Iout will be in the range of 4 20 mA so the DaValue will approximately be from 0x2600 to 0x3fff which means...

Страница 30: ...same performance and precision as the A 626 A 628 Configuration Equivalent Bits Resolution 10 V 10 V 14 bit 1 22 mV 0 V 10 V 13 bit 1 22 mV 5 V 5 V 13 bit 1 22 mV 0 V 5 V 12 bit 1 22 mV 0 mA 20 mA 13...

Страница 31: ...put calibration The steps required to calibrate the voltage for channel_n are as follows Step 1 DaValue 0 Step 2 Send the DaValue to channel_n on the PIO PISO card Step 3 Measure the voltage of channe...

Страница 32: ...of channel_n on the I 7017 If this value is 0 mA then go to Step 5 Step 4 Increase the DaValue the return to Step 2 Step 5 MinI n DaValue 1 Step 6 DaValue 0x3fff Step 7 Send the DaValue to channel_n o...

Страница 33: ...value for DaValue that is mapped to the accurate output value Step 5 Repeat Step 4 for each channel After this procedure the new data for MinV n MaxV n MinI n MaxI n will be stored in the onboard EEP...

Страница 34: ...D A Converter D0 D13 Vout Amp AGND Output Current Max 5mA Load Internal External 2 6 11 Voltage Output Connection 2 6 12 Current Output Connection Load 14 bits Data D A Converter D0 D13 Vout Amp AGND...

Страница 35: ...omputer The default Card ID is 0x0 For detail SW1 Card ID settings please refer to Table 2 7 Table 2 7 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 ON...

Страница 36: ...PEX PIO PISO DA Series Card Analog Output Boards User Manual Ver 3 1 Oct 2013 PMH 0010 31 Page 36 2 8 Pin Assignments 7 495 109 02 08 sales bbrc ru www bbrc ru...

Страница 37: ...computer To install your PEX DAx PISO DAxU and PIO DAxU series card complete the following steps Step 1 Installing DAQ card driver on your computer first Step 2 Configuring Card ID by the SW1 DIP Swi...

Страница 38: ...utput Boards User Manual Ver 3 1 Oct 2013 PMH 0010 31 Page 38 Step 3 Shut down and power off your computer Step 4 Remove all covers from the computer Step 5 Select an empty PCI PCI Express slot 7 495...

Страница 39: ...al Ver 3 1 Oct 2013 PMH 0010 31 Page 39 Step 6 Remove the PCI PCI Express slot cover form the PC Step 7 Remove the connector cover form the DAQ card Step 8 Carefully insert your DAQ card into the PCI...

Страница 40: ...aptive Phillips screw Step 10 Replace the computer cover Step 11 Power on the computer Confirm the PEX DAx PISO DAxU and PIO DAxU series card is mounted on the motherboard Follow the prompt message to...

Страница 41: ...s to install these drivers The recommended installation procedure for Windows is given in Sec 4 1 4 3 4 1 Driver Installing Procedure Follow these steps Step 1 Run the companion CD Insert the companio...

Страница 42: ...MH 0010 31 Page 42 Step 3 Please install the appropriate driver for your OS 1 Click the item UniDAQ 2 Click the item DLL for Windows 2000 and XP 2003 Vista 32 bit 3 Double Click UniDAQ_Win_Setup_x x x...

Страница 43: ...obtained from the following link and then click the Next button 10 Select No I will restart my computer later and then click the Finish button For detailed information about the UniDAQ driver install...

Страница 44: ...e computer and system should find the new card and then continue to finish the Plug Play steps Note Some Windows OS will load the driver automatically to complete the installation at boot Step 3 Selec...

Страница 45: ...Series Card Analog Output Boards User Manual Ver 3 1 Oct 2013 PMH 0010 31 Page 45 Step 4 Click the Finish button Step 5 Windows pops up Found New Hardware dialog box again 7 495 109 02 08 sales bbrc...

Страница 46: ...DAxU series card installed is correct on the computer as follows Step 1 Select the Start Control Panel and then double click the System icon on Windows Step 2 Click the Hardware tab and then click th...

Страница 47: ...ard 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 refer to Chapter 3 Hardware Insta...

Страница 48: ...t Test Wiring 1 Prepare for device One DN 37 optional wiring terminal board One CA 3710 optional cable Digital Multi Meter 2 Connect a DN 37 to the CON3 3 Connect the positive probe of Multi meter to...

Страница 49: ...ill be placed in the default path after completing installation Default Path C ICPDAS UniDAQ Driver Double click the UniDAQUtility exe Note The PEX DAx software is fully compatible with the PIO DAxU s...

Страница 50: ...Page 50 2 Get Digital Output Input Function test result Select the Port 0 Check channel 0 2 4 6 6 5 Click Digital Output item 4 Select the Port 0 8 The corresponding D I becomes red for channel 0 2 4...

Страница 51: ...be a little difference from the DA value because of the resolution limit of meter or the measurement error 4 995 Check the value on multi meter they should be identical to the values set in program 1...

Страница 52: ...ies card are given as follows Table 6 1 PIO DA4 PIO DA8 PIO DA16 PIO DA4 PIO DA8 PIO DA16 PIO DA4U PIO DA8U PIO DA16U PISO DA4U PISO DA8U PISO DA16U PEX DA4 PEX DA8 PEX DA16 Version 1 0 3 0 4 0 above...

Страница 53: ...he following Figure6 1 Details of how to identify the PEX DAx PISO DAxU and PIO DAxU series card of ICPDAS data acquisition boards based on the Sub vendor Sub device and Sub Aux ID are given in Table...

Страница 54: ...Implementation is based on the PCI Plug Play mechanism The function locates all PIO PISO series cards installed in this system and save the relevant resource information in the library Sample program...

Страница 55: ...ies cards printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 Step 2 Save the resource information for all PIO PISO cards installed in this PC printf n for i 0 i wBoards i PIO_Ge...

Страница 56: ...ctions of the PIO PISO series card Detect the configuration address space for your PEX PISO PIO DA series cards Step 1 Detect all PEX PISO PIO DA series cards wSubVendor 0x80 wSubDevice 4 wSubAux 0x00...

Страница 57: ...are the same as those defined in the PIO H include file The code for the demo program is as follows Detect all PIO_PISO series cards installed in this PC wRetVal PIO_DriverInit wBoards 0xff 0xff 0xff...

Страница 58: ...n one PC system Sometimes it is difficult to find the card number The easiest way to identify which card is card_0 is to use the wSlotBus and wSlotDevice functions in the following manner Step 1 Remov...

Страница 59: ...ned above can be used to record all wSlotBus and wSlotDevice information for all slots in the PC This mapping is fixed for each PC and can then be used to identify a specific PIO PISO card in the foll...

Страница 60: ...y control register wBase 0xc0 Read 8254 Counter0 Write 8254 Counter0 wBase 0xc4 Read 8254 Counter1 Write 8254 Counter1 wBase 0xc8 Read 8254 Counter2 Write 8254 Counter2 wBase 0xcc Read 8254 control wo...

Страница 61: ...RESET signal to a High state before any DI DO command applications 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...

Страница 62: ...se 5 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 0 EN1 EN0 EN0 0 Disable INT0 as an interrupt signal Default EN0 1 Enable INT0 as an interrupt signal EN1 0 Disable INT1 as an interrupt s...

Страница 63: ...rrupt sources Refer to Sec 2 3 for more information 6 3 6 Interrupt Polarity Register Read Write wBase 0x2A Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 0 INV1 INV0 INV0 1 0 select the in...

Страница 64: ...M0 BCD M2 M1 M0 000 mode0 interrupt on terminal count 001 mode1 programmable one shot 010 mode2 rate generator 011 mode3 square wave generator 100 mode4 software triggered pulse 101 mode5 hardware tri...

Страница 65: ...cConfig outportb wBase 0xc4 cLow outportb wBase 0xc4 cHigh return NoError WORD pio_da16_c2 char cConfig char cLow char cHigh COUNTER_2 outportb wBase 0xcc cConfig outportb wBase 0xc8 cLow outportb wBa...

Страница 66: ...0 wDiHiByte inportb wBase 0xe4 Read the D I state DI15 DI8 wDiValue wDiHiByte 8 wDiLoByte Refer to the DEMO2 C file for more information 6 3 10 Digital Output Register Write wBase 0xf8 Low byte of the...

Страница 67: ...D A output channel 5 1 0 D A output channel 6 1 1 D A output channel 7 wbase 0xe8 DA_2 0 0 D A output channel 8 0 1 D A output channel 9 1 0 D A output channel10 1 1 D A output channel11 wbase 0xec D...

Страница 68: ...e D A converter This data will be buffered 2 Select the D A converter Start the conversion For example outportb wBase 0xf0 wDaValue output low byte of D A data outportb wBase 0xf4 wDaValue 8 0x02 outp...

Страница 69: ...d on the driver software package you have selected Win98 Me NT 2K and 32 64 bit winXP 2003 Vista 7 8 Once driver installation is complete the related demo programs and development library and declarat...

Страница 70: ...llows Includes the BCB Delphi VB net VC net VB and VC demo programs with source code Analog Input Pacer Analog Input Pacer Continue Analog Input Pacer Scan Analog Input Pacer Scan Continue Analog Inpu...

Страница 71: ...ge MSCPIO_L LIB MSC large model library file MSC LIB Huge PIO H MSC declaration file MSC LIB Huge MSCPIO_H LIB MSC huge model library file BC for BC 3 xx or above BC LIB Large PIO H BC declaration fil...

Страница 72: ...l low DEMO5 EXE Two interrupt source DEMO6 EXE Waveform generator without calibration DEMO7 EXE Waveform generator with calibration DEMO8 EXE D A hex value output without calibration DEMO9 EXE D A hex...

Страница 73: ...ed for easy wire connection via pin to pin DN 37 The DN 37 is a general purpose daughter board for DB 37 pins with DIN Rail Mountings They are also designed for easy wire connection via pin to pin A2...

Страница 74: ...with resistor for current sensing You can use the DB 16P to sense DC signal from TTL levels up to 24 V or use the DB 16P to sense a wide range of AC signals You can use this board to isolate the compu...

Страница 75: ...block The relay is energized by applying 5 voltage signal to the appropriate relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay light when their associated relay i...

Страница 76: ...only uses 16 relays or 50 pin flat cable connector OPTO 22 compatible for the DIO 24 series There are 24 LEDs one for each relay which are illuminated when their associated relay is activated To avoi...

Отзывы: