background image

PEX/PIO/PISO-DA Series Card 

Analog Output Boards

 

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

 

6.3.12 D/A Data Output Register 

(Write): wBase+0xf0   

Bit 7 

Bit 6 

Bit 5 

Bit 4 

Bit 3 

Bit 2 

Bit 1 

Bit 0 

D7 

D6 

D5 

D4 

D3 

D2 

D1 

D0 

 

(Write): wBase+0xf4   

Bit 7 

Bit 6 

Bit 5 

Bit 4 

Bit 3 

Bit 2 

Bit 1 

Bit 0 

A1 

A0 

D13 

D12 

D11 

D10 

D9 

D8 

 

Each D/A converter have four analog output channels. When writing data to the D/A 

converter, the

 

relevant

 

channel to be used is indicated by A1 and A0. 

 
D/A programming sequence: 

1. Send data to the 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); 

/* output high byte of D/A data and */

 

                                                                                            /* select channel 2 on this converter */ 

outportb(wBase+0xe0,0);                 

                  /* select DA_0 */

 

                                                                                         

/* after this procedure wDaValue will */ 

                                                                                       

  /* be sent to channel_2 */ 

pio_da16_da(2,wDaValue);

          /* send wDaValue to channel_2 */ 

 

void pio_da16_da(char cChannel_no,int iVal) 

iVal=iVal+(cChannel_no%4)*0x4000;             

/* cChannel_no: 0 - 15      */ 

outportb(wBase+0xf0,iVal);                                 

/* iVal: 0x0000 - 0x3fff    */

 

outportb(wBase+0xf4,(iVal>>8)); 

outportb(wBase+0xe0+4*(cChannel_no/4),0xff); 

 

Refer to the DEMO6/7/8/9.C files for more information. 

 

ГК

 

Атлант

 

Инжиниринг

 – 

официальный

 

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

 

в

 

РФ

 

и

 

СНГ

 

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

Summary of Contents for PEX Series

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: