Table of Contents

Advertisement

Quick Links

PIO-821 Series Card
User Manual
45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board
S
UPPORTS
Board includes PIO-821L, PIO-821H, PIO-821LU and PIO-821HU.
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 © 2014 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
US
ONTACT
If you have any question, please feel to contact us at:
service@icpdas.com; service.icpdas@gmail.com
We will give you quick response within 2 workdays.
Version 2.0, Mar. 2015

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIO-821 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ICP DAS USA PIO-821 Series

  • Page 1 PIO-821 Series Card User Manual 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Version 2.0, Mar. 2015 UPPORTS Board includes PIO-821L, PIO-821H, PIO-821LU and PIO-821HU. 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.
  • Page 2: Table Of Contents

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board ABLE OF ONTENTS INTRODUCTION ..............................3 ................................ 4 ACKING ................................4 EATURES ..............................5 PECIFICATIONS 1.3.1 Analog Input Range............................6 1.3.2 Analog Output Range ............................7 1.3.3 Programmable Timer/Counter ........................
  • Page 3 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 5.1.3 Analog Output Test Wiring ..........................33 ..........................34 XECUTE THE ROGRAM CALIBRATION ..............................38 D/A C ............................... 39 ALIBRATION A/D C ............................... 40 ALIBRATION I/O CONTROL REGISTER ............................ 41 I/O A ..........................
  • Page 4: Introduction

    PIO-821L/H, and users can replace the PIO-821L/H by the PIO-821LU/HU directly without software/driver modification. The PIO-821 series cards are a high performance multifunction board for PC/AT compatible computers. The PIO-821LU/HU universal PCI card supports 3.3 V/5 V PCI bus while the PIO-821L/H supports 5 V PCI bus.
  • Page 5: Packing List

    1.1 Packing List The shipping package includes the following items: Note:  If any of these items is missing One PIO-821 series card hardware or damaged, contact the dealer  One printed Quick Start Guide from whom you purchased the ...
  • Page 6: Specifications

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 1.3 Specifications Model Name PIO-821LU PIO-821HU PIO-821L PIO-821H Analog Input Channels 16 single-ended/ 8 differential A/D Converter 12-bit, 8 μs Conversion time Sampling Rate 45 kS/s. max.
  • Page 7: Analog Input Range

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Model Name PIO-821LU PIO-821HU PIO-821L PIO-821H Timer/Counter Channels 3(Internal pacer x 1/Independent x 2) Resolution 16-bit Compatibility 5 V/TTL Input Frequency 10 MHz max. Reference Clock Internal: 2 MHz General 3.3 V/5 V Universal PCI, 32-bit,...
  • Page 8: Analog Output Range

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 1.3.2 Analog Output Range Data Input Analog Output 1111 1111 1111 -Vref (4095/4096) 0000 0000 0000 -Vref (1/4096) 0000 0000 0000 0 Volts 1.3.3 Programmable Timer/Counter ...
  • Page 9: Hardware Configuration

    2. Hardware Configuration 2.1 The Block Diagrams The block diagram of the PIO-821 series is illustrated below in order to assist users in understanding the data flow within the hardware and software system structure. Figure 2-1 User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 8...
  • Page 10: Board Layout

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2.2 Board Layout Figure 2.2 and Figure 2.3 shows the layout of the PIO-821L/H and PIO-821LU/HU boards and the locations of the configuration jumper and connector for signal wiring.
  • Page 11 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  Board Layout of the PIO-821LU/HU. PIO-821L/H controller Universal PCI BUS Figure 2-3 CON1 The terminal for digital input Refer to Sec.2.6 for more detailed about pin...
  • Page 12: Card Id Switch

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2.3 Card ID Switch The PIO-821LU/HU has a Card ID switch (SW1) with which users can recognize the board by the ID via software when using two or more PIO-821LU/HU cards in one computer. The default Card ID is 0x0.
  • Page 13: Configuration Of The Da/Ad Output Signals

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Configuration of the DA/AD Output Signals 2.4.1 JP2: D/A Reference Voltage Selection JP2 is used to configure the internal reference voltage for analog output. There are two types of internal reference voltages, which are 5 V or 10 V.
  • Page 14: Jp4: A/D Input Type Selection (S.e. /Diff.)

    3, 5 and pin 4, 6 for the JP4 jumper should be connected as shown Figure 2-6 (b). Furthermore, based on the type of analog input configuration, the PIO-821 series cards can offer 16 single-ended or 8 differential analog input measurement channels. Notice that all the measurements of analog input channels are configured at the same time according to the chosen setting of single-ended or differential methods.
  • Page 15: A/D Input Signal Connection

    45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2.4.4 A/D Input Signal Connection The PIO-821 series card can measure either single-ended or differential-type analog input signals. The user must decide which mode is most suitable for measurement purposes. Please refer to the section 2.4.3...
  • Page 16 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  Figure 2-7: Differential input with grounded source (Right way) Figure 2-7 A/D CH0 HI Es 1 A/D CH 0 LO A.GND 1 A/D CH n HI...
  • Page 17 A/D CH 0 LO not thermocouple, the user should use an oscilloscope to measure common mode voltage of Vin A/D CH n HI before connecting to PIO-821 series card. Don’t use a voltage meter or multi-meter. A/D CH n LO A. GND Do not join LO to A.GND at the computer...
  • Page 18 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  Figure 2-11: Connecting to a 4 ~ 20 mA Source AI CHn (Shunt Resistor) AGND Example: A 20 mA source current through a 125 Ω resistor (e.g. 125 Ω, 0.1% DIP Resistors) between + and –...
  • Page 19: Configuration Of The 8254 Chip

    In below the detail clock source setting will be brought up. The PIO-821 series card can be selected to use either the external or internal clock as a signal source of the timer 0 of IC 82c54. This selection is made by the JP5 jumper, as shown in Figure 2-12. The left hand side diagram shows the setting for the internal clock at 2 MHz.
  • Page 20: Jp6: External Gate/Internal Counter0 Settings

    2.5.2 JP6: External Gate/Internal Counter0 Settings The PIO-821 series card can also be set to use the external gate or internal Cout0 (Counter0) signal to control the 82c54’s counter2 through the use of the JP6 jumper, as shown in Figure 2-13. The left hand diagram of Figure 2-13 is the default setting for the external gate signal control and the right hand diagram shows the internal Cout0 signal control.
  • Page 21: The 8254 Timer/Counter Connection

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2.5.3 The 8254 Timer/Counter Connection The 8254 Programmable timer/counter has 4 registers from wBase+0xC0 through wBase+0xCC. For detailed programming information about 8254, please refer to Intel‘s “Microsystem Components Handbook”.
  • Page 22: Pin Assignments

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2.6 Pin Assignments The Pin assignments of CON1, CON2 and CON3 on the PIO-821 series cards are represented in the figure below.  CON1/CON2: 20-pin flat-cable headers for digital input/output.
  • Page 23: Hardware Installation

    This reduces the times to restart the computer. To install the PIO-821 series card, follow the procedure described below: Step 1: Installing PIO-821 series card driver on your computer first.
  • Page 24 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Step 3: Shut down and power off your computer. Step 4: Remove all covers from the computer. Step 5: Select an empty PCI slot. User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 23...
  • Page 25 Step 6: Remove the PCI slot cover form the PC. Step 7: Remove the connector cover form the PIO-821 series card. Step 8: Carefully insert your PIO-821 series card into the PCI slot. User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 24...
  • Page 26 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Step 9: Tighten the screw. Confirm the PIO-821 series card is mounted on the motherboard. Step 10: Replace the computer cover. Step 11: Power on the computer.
  • Page 27: Software Installation

    This chapter provides a detailed description of the process for installing the PIO-821 series driver and how to verify whether the PIO-821 was properly installed. PIO-821 series card can be used on DOS, Linux and Windows 98/ME/2000 and 32-/64-bit XP/2003/Vista/7/8 based systems, and the drivers are fully Plug and Play (PnP) compliant for easy installation.
  • Page 28: Pnp Driver Installation

    4.2 PnP Driver Installation Power off the computer and install the PIO-821 series cards. Turn on the computer and Windows 95/98/ME/NT/2000 and 32-/64-bit Windows XP/2003/Vista/7/8 should automatically defect the new PCI device(s) and then ask for the location of the driver files for the hardware. If a problem is encountered during installation, refer to the PnPinstall.pdf file for more information.
  • Page 29: Verifying The Installation

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 4.3 Verifying the Installation Please open the Device Manager to verify the installation. Below are the steps for entering the Device Manager in each of the major versions of windows. Refer to appropriate for your OS, continue to complete the following steps: 4.3.1 How do I get into Windows Device Manager?
  • Page 30 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  Microsoft Windows Vista/7 users Step 1: Click on the “Start” button. Step 2: In the Start Search box type device manager and then press enters. ...
  • Page 31: Check That The Installation

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 4.3.2 Check that the Installation Check the PIO-821 series card which listed correctly or not, as illustrated below. Installation successful User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 30...
  • Page 32: Testing Piso-821 Series Card

    Chapter 3 Hardware Installation Chapter 4 Software Installation. 5.1 Self-Test Wiring 5.1.1 DIO Test Wiring Use the CA-2002 cable (optional) to connect the CON1 with CON2 on the PIO-821 series card. User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 31...
  • Page 33: Analog Input Test Wiring

     Provide a stable signal source. (For example, dry battery) Step 1: Use the DN-37 to connect the CON3 on the PIO-821 series card. Step 2: Wire the signal source to A/D channel0, and then keep set the JP4 jumper to Single-Ended (default settings, refer to Sec.
  • Page 34: Analog Output Test Wiring

     DN-37 (optional) wiring terminal board.  Digital Multi-Meter. Step 1: Use the DN-37 to connect the CON3 on the PIO-821 series card. Step 2: Wire the signal source to D/A channel, and then keep set the JP2 jumper to 5 V (default settings, refer to Sec.
  • Page 35: Execute The Test Program

    45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 5.2 Execute the Test Program The following example use UniDAQ driver to perform self-test. If you install the PIO-821 series classic driver, please refer to Quick Start Guide of the PIO-821 (http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/pio-821/manual/quickstart/classic/pio-821_q...
  • Page 36 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board DIO function Step 2: Get test result. Click “Digital Output” item. Check channel 0, 2, 4, 6 Select the “Port 0” Click “Digital Input” item. The corresponding D/I becomes red for channel 0, 2, 4, 6 of D/O is ON.
  • Page 37 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Analog Input function Step 3: Get test result. Click “Analog Input” item. Confirm the configuration setting. Click this button to start test. Check analog input on Channel 0 textbox.
  • Page 38 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board Analog Output function Step 4: Get test result. Click “Analog Output” item. Click this button. Select the “Channel 0” Select the “0 ~ 5V” Type the voltage value The value read on meter may be a little difference from the DA value because of the resolution limit of meter or the measurement error.
  • Page 39: Calibration

    Analog input 10 V The calibration.exe program for the ICP DAS PIO-821 series can be found on the supplied CD-ROM, or can be obtained from the ICP DAS FTP web site. The location and addresses are indicated in the table 6-2 below: (Note: Before beginning the “A/D and D/A Calibration” process, the PIO-821 series classic driver installation must be completed.
  • Page 40: D/A Calibration

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 6.1 D/A Calibration Calibration for 5 V mode  Figure 6-1 Step 1: Set the JP2 jumper on PIO-821 to the 5V position (refer to Sec. 2.4.1).
  • Page 41: A/D Calibration

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 6.2 A/D Calibration Step 1: Set the JP4 jumper on PIO-821 CON3 to the differential input position (refer Sec. 2.4.3) and connect the AI0+ Cable: CA-3710 (CON3, pin1) and AI0- (CON3, pin20)
  • Page 42: I/O Control Register

    7.1 How to Find the I/O Address The plug&play BIOS will assign a proper I/O address to every PIO/PISO series card in the power-on stage. The fixed IDs for the PIO-821 series cards are given as follows: Table 7-1: PIO-821L/H (Rev 2.0 or above) PIO-821L/H (Rev 1.0)
  • Page 43: Pio_Piso Utility

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 2. PIO/PISO identification information:  wSubVendor: subVendor ID of this board  wSubDevice: subDevice ID of this board  wSubAux: subAux ID of this board 3. PC’s physical slot information: ...
  • Page 44 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  For Windows OS The PIO_PISO.EXE for Windows is contained in: CD:\NAPDOS\PCI\Utility\Win32\PIO_PISO http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/utility/win32/pio_piso/ After executing the utility, the detail information for all PIO/PISO cards that installed in the PC will be shown as follows: User Manual, Ver.
  • Page 45 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  For DOS The PIO_PISO.EXE for DOS is contained in: CD:\NAPDOS\PCI\Utility\DOS\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/utility/dos/ The PIO_PISO program source is given as follows: /* -------------------------------------------------------------- */ /* Find all PIO_PISO series cards in this PC system */ /* step 1 : plug all PIO_PISO cards into PC /* step 2 : run PIO_PISO.EXE...
  • Page 46: The Assignment Of I/O Address

    Step 3: Remove all PIO-821 series boards from the PC. Step 4: Install one PIO-821 series into the PC’s PCI_slot2 and run PIO_PISO.EXE. Then record the wSlotBus2 and wSlotDevice2 information. Step 5: Repeat Steps(3) and (4) for every PCI_slot and record all information from wSlotBus and wSlotDevice.
  • Page 47 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board The above procedure will record all the wSlotBus and wSlotDevice information on a PC. These values will be mapped to this PC’s physical slot and this mapping will not be changed for any PIO/PISO cards.
  • Page 48: The I/O Address Map

    I/O address. The Plug&Play BIOS will effectively perform the assignment of proper I/O addresses to each PIO-821 series card. The I/O address for the PIO-821 series card are given in the table below, all of which are based on the base address of each card.
  • Page 49: Reset\ Control Register

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.1 RESET\ Control Register (Read/Write): wBase+0x0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Reserved Reserved Reserved Reserved Reserved...
  • Page 50: Int Mask Control Register

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.4 INT Mask Control Register (Read/Write): wBase+0x5 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 The INT mask control register is presented as following table. The detail function for these control register is described as below.
  • Page 51: Aux Status Register

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.5 AUX Status Register (Read/Write): wBase+0x7 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Aux7 Aux6 Aux5 Aux4 Aux3...
  • Page 52: 8254 Counter

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.7 8254 Counter Address Read Write wBase+0xc0 8254-Counter0 8254-Counter0 wBase+0xc4 8254-Counter1 8254-Counter1 wBase+0xc8 8254-Counter2 8254-Counter2 wBase+0xcc 8254 Control Word The 8254 Programmable timer/counter has 4 registers from wBase+0xc0 through wBase+0xcc. For detailed programming information about 8254, please refer to Intel‘s “Microsystem Components...
  • Page 53: D/A Buffer Register

    DI 16 bits input data: D15 to D0, D15=MSB, D0=LSB The PIO-821 series card provides 16 TTL compatible digital inputs. The low 8 bits are stored in address wBase +0xd8. The high 8 bits are stored in address wBase +0xdc.
  • Page 54: D/O Output Buffer Register

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.11 D/O Output Buffer Register (Write): wBase+0xd8 D/O Low Byte Data Format Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (Write): wBase+0xdc D/O High Byte Data Format...
  • Page 55: A/D Mode Control Register

    Bit 1 Bit 0 ExtTrig PacerTrig SoftTrig The PIO-821 series card provides software trigger, pacer trigger and external trigger modes to get A/D input signal. Bit 2 to Bit 0 =0 : reset the AD trigger mode SoftTrig = 1...
  • Page 56: A/D Software Trigger Control Register

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 7.3.14 A/D Software Trigger Control Register (Write): wBase+0xe8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 The A/D converter will convert the analog input data by software control. After setting section 7.3.13 A/D Mode Control Register...
  • Page 57: Demo Programs

    PIO821.vb  Visual Basic Source files PIO821.cs  Visual C# Source files For detailed information about the DLL function of the PIO-821 series card, please refer to PIO-821 DLL Software Manual (CD:\NAPDOS\PCI\PISO-821\Manual\) User Manual, Ver. 2.0, Mar. 2015, PMH-019-20, Page: 56...
  • Page 58 PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board  Demo Program for UniDAQ SDK Driver The demo program is contained in: CD:\NAPDOS\PCI\UniDAQ\DLL\Demo\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/demo/ BCB6  for Borland C Delphi6  for Delphi 6 Builder 6 UniDAQ.H ...
  • Page 59: Demo Program For Dos

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board 8.2 Demo Program for DOS The demo program is contained in: CD:\NAPDOS\PCI\PIO-821\DOS\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/pio-821/dos/ \TC\*.*  for Turbo C 2.xx or above  for TC Library \TC\LIB\*.* \TC\DEMO\*.*  for TC demo program ...
  • Page 60: Appendix: Daughter Board

    The DB-37 is a general purpose daughter board for D-sub 37 pins. It is designed for easy wire connection via pin-to-pin. Use a 37-pin cable (e.g. CA-3710, etc.) to connect DB-37 to CON1 of the PIO-821 series card. DB-37 ...
  • Page 61: A3. Db-16P Isolated Input Board

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board A3. DB-16P Isolated Input Board The DB-16P is a 16-channel isolated digital input daughter board. The optically isolated inputs of the DB-16P are consisted of are bi-directional optocoupler 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.
  • Page 62: A4. Db-16R Relay Board

    PIO-821 Series Card 45 kS/s 12-bit, 16-ch A/D, 1-ch D/A Multi-function DAQ Board A4. DB-16R Relay Board The DB-16R is a 16-channel relay output board consisting of 16 Form C relays that enable efficient switching of a load using programmable control. It is both a connector and functionally is compatible with 785 series boards, but with an industrial type terminal block.

Table of Contents