Advertisement

Quick Links

Warranty
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.
Warning
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, or for any infringements of patents or other
rights of third parties resulting from its use.
Copyright
Copyright 2003 by ICP DAS Co., LTD. All rights
reserved worldwide.
Trademark
The names used for identification only may be
registered trademarks of their respective companies.
PISO-DA2
User Manual
PISO-DA2 User Manual (Ver :1.0 05/20/03) -----1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIS0-DA2 and is the answer not in the manual?

Questions and answers

Summary of Contents for ICP DAS USA PIS0-DA2

  • Page 1 PISO-DA2 User Manual Warranty 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. Warning 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.
  • Page 2: Table Of Contents

    Contents 1. General Information ............4 1.1 I ..................4 NTRODUCTION 1.2 F .................... 4 EATURES 1.3 S ................... 5 PECIFICATIONS 1.4 G ..............6 ENERAL PECIFICATIONS 1.5 A ..................6 PPLICATIONS 1.6 PCI D ............6 CQUISITION AMILY 2. Hardware Configuration ..........8 2.1 W .................
  • Page 3 4.2.6 PISODA_IsBoardActive ............28 4.2.7 PISODA_DA_Hex ..............29 4.2.8 PISODA_DA ................30 4.2.9 PISODA_ReadJumper ............31 4.2.10 PISODA_ReadEEP............... 32 4.2.11 PISODA_WriteEEP .............. 33 4.2.12 PISODA_InputByte............... 34 4.2.13 PISODA_OutputByte ............35 4.2.14 PISODA_InputWord............. 35 4.2.15 PISODA_OutputWord ............36 5. Demo Programs............37 5.1 D ............
  • Page 4: General Information

    General Information 1.1 Introduction The PISO-DA2 is a PCI bus analog output board with two output channels and isolated 12-bit revolution for IBM Personal computer and compatible. The output range can be configured as voltage output by one of the different ranges: ±10V, ±5V, 0~10V, 0~5V or current output using loop sink by the range: 0~20mA or 4~20mA.
  • Page 5: Specifications

    1.3 Specifications Analog Outputs D/A converter with resolution: 12 bits Conversion rate: 10KS/s max. Output Range:( selection by jumper) Voltage output Bipolar: ±10V, ±5V Unipolar: 0~10V, 0~5V Current output Current loop sink:0~20mA, 4~20mA Reference Voltage: Internal:-5V and -10V External: DC ±10V(max) Current Loop Excitation Voltage: +8V~+36V Isolation Voltage: 3000Vrms Converter: AD7541 or equivalent...
  • Page 6: General Specifications

    1.4 General Specifications Bus Type: PCI Bus Connector: Two 9-pin D-type female connectors Operating temp: 0~50ºC Storage temp: -20ºC ~ 70ºC Humidity: 0~90% non-condensing Dimensions: 170mm×122mm 1.5 Applications This PISO-DA2 board with two isolated analog output channel may be applied to the following areas: Arbitrary waveform generation Control of Valves, switches, relays Programmable voltage sources...
  • Page 7 PISO-P32C32/P64/C64: D/I/O family PISO-P8R8/P8SSR8AC/P8SSR8DC: D/I/O family PISO-730: D/I/O card PISO-DA2: D/A card PISO-DA2 User Manual (Ver :1.0 05/20/03) -----7...
  • Page 8: Hardware Configuration

    2.Hardware Configuration This section will describe the hardware setting of the PISO-DA2. At first, the contents in the package and unpacking information that you should have are described. The jumper settings for the PISO-DA2 according to reference voltage sources, output voltage range and voltage or current output are also presented in the second stage.
  • Page 9: Piso-Da2' Ayout

    2.2 PISO-DA2’s Layout Figure2.1 PISO-DA2 LAYOUT Note: CN1: The terminal of D/A converter channel-1 for voltage or current output CN2: The terminal of D/A converter channel-2 for voltage or current output JP1, JP2, JP5 and JP9: Bipolar or Unipolar setting JP4 and JP8: -5V or –10V internal reference voltage setting JP3 and JP7: 0~20mA or 4~20mA current loop setting JP6 and JP10: External or internal reference voltage setting...
  • Page 10: Configuration Of D/A Output Signal

    2.3 Configuration of D/A Output Signal The each D/A channel of PISO-DA2 can be independently configured as voltage or current output using different range to fit your application, as shown in Table 4-1 and Table 4-2. Generally, the range of voltage output, which includes bipoloar and unipoloar, is configured by jumper JP1, JP2, JP5, and JP9.
  • Page 11: The Configuration Of Voltage Output

    2.3.1 The Configuration of Voltage Output Reference Source Setting The reference voltage source of PISO-DA2‘s D/A converter can be provided by the internal generator or external reference voltage, which is coming from the connector CN1 and CN2. The setting of the reference sources for Channel 1 and Channel 2 are controlled by the jumper JP6 and JP10 respectively, as depicted in the following table.
  • Page 12 If the internal reference voltage source is selected to implement the analog output of the D/A board, then the reference voltage level must be set as the internal voltage source -5V or -10V, which is precision voltage source provided by PISO-DA2, by jumper JP4 (Channel 1) and JP8 (Channel 2).
  • Page 13 Output Range Setting After the configuration of reference voltage source, the practical voltage output range of PISO-DA2 can be regulated as either Bipolar or Unipolar by jumper JP5 and JP9. The detail setting is demonstrated in Table 2.5. For example, if the jumper JP4 and JP5 are set as -5V and Unipolar respectively, then the range of voltage output is 0~5V for channel 1.
  • Page 14: The Configuration Of Current Sink

    2.3.2 The Configuration of Current Sink If users want to apply PISO-DA2 to function as current output board, it provides the probability setting of current output mode using 0-20mA or 4-20mA loop current sink. In order to activate the current output, the PISO-DA2 board must be configured as the output voltage by the setting of unipolar and internal reference voltage -5V for each output channel, in advance.
  • Page 15: Connector Pin Assignment

    2.4 Connector Pin Assignment The PISO-DA2 is equipped with two sets of 9-pin D-type female connectors for wire connection of the output signal. CN1 and CN2 stand as are signal output connections of Channel 1 and CN2 respectively. The connector’s pin assignment is specified as follows: EXTREF IOUT...
  • Page 16: Signal Connection

    2.5 Signal Connection This section will demonstrate the correct signal connection skill because it plays an important role for sending data accurately. According to the different applications, the wire connection may be different as shown in the following subsection. Generally, when PISO-DA2 board is functioned as the voltage output application, the minimum load resistor must be bigger than 1kΩ.
  • Page 17: Current Sink With Internal Power Supply

    PISO-DA2 Side External Site I Sink Power Supply Converter Load Figure 2.4: Current output Connection when external power is used 2.5.3 Current Sink with Internal Power Supply If your system does not offer external power supply, a built-in +15V DC power source provided by PISO-DA2 can be applied to build the signal current output in loop current sink type.
  • Page 18: Output Range And Resolution

    2.6 Output Range and Resolution The voltage and current output range of PISO-DA2 is represented as follow. The D/A converter is 12 bits. Based on the different output range, the resolution of every channel is figured out as Table 2.8. Voltage Output Current Sink Hex Value...
  • Page 19: The Hardware Identifications Of Piso-Da2

    2.7 The Hardware Identifications of PISO-DA2 PISO-DA2 The Hardware IDs of are given as follows: Vendor ID: 0xE159 Device ID: 0x0002 Sub-vendor ID: 0x80 Sub-device ID: 0x0B Sub-AUX ID: 0x00 The detail definition of the hardware system for all PIO/PISO PCI interface board is represented in Table 2.9.
  • Page 20: Calibration

    2.8 Calibration The PISO-DA2 is shipped fully calibrated from the factory with calibration coefficients stored in the EEPROM on board. For more precise application of voltages or currents at the "system end", the following procedure provides a method that allows you to calibrate the board within your system, for correct voltages or currents at your field connection.
  • Page 21 calibration value set as 4095 and click “save” to save this value to the corresponding EEPROM. Step 4: Click output button and then use precise multi-meter to measure the analog output. Step 5: If the analog output is smaller or bigger than the allowance maximum value of analog output channel 1, then go to step 3~4 to change the saved value in EEPRON and output voltage value until the value is equal to the allowance maximum voltage output value.
  • Page 22: Software Installation

    3.Software Installation The PISO-DA2 can be used in DOS and Windows 98/Me/NT/2000/XP. For these Windows O.S, the recommended installation steps are given in Sec 3.1 ~ 3.2 3.1 Software Installing Procedure Step 1: Insert the companion CD into the CD-ROM driver and wait a few seconds until the installation program starts automatically.
  • Page 23: Dll Driver

    4.DLL Driver The DLL driver is the collection of function calls of the PISO-DA2 cards for Windows 98/Me/NT/2000/XP system. The application structure is presented as following figure. The user application program developed by designate tools like VB, Delphi and Borland C Builder can call PISODA.DLL driver in user mode.
  • Page 24: Function Definition And Description

    4.2 Function Definition and Description All of the functions provided for PISO-DA2 are listed as below and the detail information for every function will be presented in the following section. However, in order to make the description simplify and clearly, the attribute of the input and output parameter of the function is indicated as [input] and [output] respectively, as shown in following table.
  • Page 25: Pisoda_Getdllversion

    4.2.1 PISODA_GetDllVersion Description: Obtain the version information of PISODA.DLL driver. Syntax: WORD PISODA_GetDllVersion(viod) Parameter: None Return: DLL version information. For example: If 101(hex) is return, it means driver version is 1.01. 4.2.2 PISODA_ActiveBoard Description: Activate the device. It must be called once before using the other functions of PISO-DA2 board.
  • Page 26: Pisoda_Closeboard

    4.2.3 PISODA_CloseBoard Description: Stop and close the PISO-DA2 kernel driver and release the resources the device resource from computer device resource. This method must be called once before exiting the user's application program. Syntax: WORD PISODA_CloseBoard(BYTE BoardNo) Parameter: BoardNo: [input] PISO-DA2 board number (0~15). Return: PISODA_NoError: PISODA_BoardNoActive:...
  • Page 27: Pisoda_Getcardinf

    4.2.5 PISODA_GetCardInf Description: Obtain the information of PISO-DA2 boards, which include vender ID, device ID and interrupt number. Syntax: WORD CALLBACK PISODA_GetCardInf(BYTE BoardNo, DWORD *dwVID, DWORD *dwDID, DWORD *dwSVID,DWORD *dwSDID, DWORD *dwSAuxID, DWORD *dwIrq) Parameter: BoardNo: [input] PISO-DA2 board number *dwVID: [output] vendor ID of this board *dwDID:...
  • Page 28: Pisoda_Isboardactive

    4.2.6 PISODA_IsBoardActive Description: Obtain the information about the specific board is active or not. Syntax: BYTE PISODA_IsBoardActive(BYTE BoardNo) Parameter: BoardNo: [input] PISO-DA2 board number Return: “0” means the board is inactive. “1” means the board is active. PISO-DA2 User Manual (Ver :1.0 05/20/03) -----28...
  • Page 29: Pisoda_Da_Hex

    4.2.7 PISODA_DA_Hex Description: Output the analog output data in Hex format through channel 1 or 2 of the PSIO-DA2. Note that the analog output can be configured voltage or current sink type, which is dependent on the hardware jumper setting. Syntax: WORD PISODA_DA_Hex(BYTE...
  • Page 30: Pisoda_Da

    4.2.8 PISODA_DA Description: Output the analog output data in float format through channel 1 or 2 of the PSIO-DA2. Note that the analog output can be configured voltage or current sink type, which is dependent on the hardware jumper setting. Syntax: WORD PISODA_DA(BYTE BoardNo, BYTE bChannel, BYTE bOpt, float fValue)
  • Page 31: Pisoda_Readjumper

    4.2.9 PISODA_ReadJumper Description: Obtain the configuration status of the jumper JP3, JP4, JP5, JP7, JP8, and JP9. Please call PISODA_ActiveBoard first before using this function. Syntax: WORD PISODA_ReadJumper(BYTE BoardNo, BYTE *Jumper) Parameter: BoardNo: [input] PISO-DA2 board number. *Jumper: [output] a value of jumper status. Please refer to following table: Bit 7 Bit 6...
  • Page 32: Pisoda_Readeep

    4.2.10 PISODA_ReadEEP Description: Obtain the 64 words(128 bytes) data from the EEPROM of the PISO-DA2 board. Please call PISODA_ActiveBoard first before using this function. Syntax: WORD PISODA_ReadEEP(BYTE BoardNo,WORD *wValue) Parameter: BoardNo: [input] PISO-DA2 board number. *wValue: [output] the first word(16-bit) of data from EEPROM Return: PISODA_NoError: PISODA_DriverNoOpen:...
  • Page 33: Pisoda_Writeeep

    4.2.11 PISODA_WriteEEP Description: Write 64 words (128 bytes) data into the EEPROM of the PISO-DA2 board. Please call PISODA_ActiveBoard first before using this function. Syntax: WORD PISODA_WriteEEP(BYTE BoardNo,WORD *wValue) Parameter: BoardNo: [input] PISO-DA2 board number. *wValue: [input] the first word(16-bit) of data. Return: PISODA_NoError: PISODA_DriverNoOpen:...
  • Page 34: Pisoda_Inputbyte

    4.2.12 PISODA_InputByte Description: Obtain a byte data from the specific address mapping of the PISO-DA2 board. Please call PISODA_ActiveBoard first before using this function. This function is designed for advance user to access the hardware data based on the register of PISO-DA2. Syntax: BYTE PISODA_InputByte(BYTE BoardNo,DWORD dwOffset) Parameter:...
  • Page 35: Pisoda_Outputbyte

    4.2.13 PISODA_OutputByte Description: Write a byte data to the defined address of the PISO-DA2 board. This function is designed for advance user to write into the hardware based on the register of PISO-DA2. Syntax: void PISODA_OutputByte(BYTE BoardNo,DWORD dwOffset,BYTE bValue) Parameter: BoardNo: [input] PISO-DA2 board number.
  • Page 36: Pisoda_Outputword

    4.2.15 PISODA_OutputWord Description: Write a word( two bytes) data to the defined address of the PISO-DA2 board. This function is designed for advance user to write into the hardware based on the register of PISO-DA2. Syntax: void PISODA_OutputWord(BYTE BoardNo,DWORD dwOffset,WORD wValue) Parameter: BoardNo:...
  • Page 37: Demo Programs

    5.Demo Programs 5.1 Demo Programs For Windows All of demo programs will not work normally if DLL driver would not be installed correctly. During the installation process of DLL driver, the install- shields will register the correct kernel driver to the operation system and copy the DLL driver and demo programs to the correct position based on the driver software package you have selected (Win98,Me,NT,win2000,XP).
  • Page 38 DEMO1: Get cards information Following figure is the result for the demo_1 program. It can be applied to obtain the hardware information of the PISO-DA2 board. Figure 6.1: The demo_1 program DEMO2: D/A output This demo program can be applied to drive the voltage or current output for channel 1 and 2 independently.
  • Page 39 DEMO2: D/A output This program demonstrates the method for how to write the data to EEPROM and then read them out. Note that this method is based on the PSIODA_ReadEEP and PISODA_WriteEEP, which access the hardware by a word at one time. Figure 6.3: The demo_3 program DEMO4: Multiboard D/A output This demo program presents the same function as DEMO2 to output analog...
  • Page 40: Demo Programs For Dos

    5.2 Demo Programs For DOS There are several of demo programs given in the company floppy disk or CD-ROM. The demo program and the driver are installed into disk as follows: • \TC\*.* $ for Turbo C 2.xx or above •...
  • Page 41: The Hardware Register

    6. The Hardware Register The detailed descriptions of the registers format for PISO-DA2 will be presented here for advance user. This information is quite useful for the programmers who hope to handle the card by themselves. However we suggest that user need to understand the hardware system more clearly before starting to design the program for controlling it by them.
  • Page 42: Reset\ The Control Register

    6.2 RESET\ the Control Register When the PC is first power-up, the RESET\ signal is in Low-state. This will disable all D/A operations. The user has to set the RESET\ signal to High- state before using any D/A command. Note that wBase is the base address of PISO-DA2 board mapping from your PC.
  • Page 43: Int Mask Control Register

    Table 6.5: Aux data Register (Read/Write): wBase +3 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Aux7 Aux6 Aux5 Aux4 Aux3 Aux2 Aux1 Aux0 6.5 INT Mask Control Register The INT mask control register is presented as following table. The detail function for these control register is described as below.
  • Page 44: Aux Status Register

    6.6 Aux Status Register Based on the auxiliary status register, Aux0 (bit 0) and Aux 1(bit 1) stand as INT0 and INT1 signal respectively. Aux2~3 (bit 2~3) represents the control register of the EEPROM and Aux4~7 (bit 4~7) depicts the Aux-ID. Generally, the Aux 0~1 are used as interrupt sources.
  • Page 45: D/A Data Output

    6.8 D/A Data Output Table 6.9 and 6.10 is the output data buffer for D/A channel-1 and Table 6.11 and 6.12 is the output data buffer for D/A channel-2. These registers are write only and user can use these to output the data through analog output CH1 and CH2.
  • Page 46: Jumper Status Register

    6.9 Jumper Status Register This register shows the status of Hardware jumper setting. About the detail information, please refer to the following description. Table 6.13: Jumper status register (Read): wBase+0xe0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0...

Table of Contents