Names are used for identification purposes only and may be registered
trademarks of their respective companies.
CONTACT US
If you have any questions, feel tree to contact us by email at:
service@icpdas.com, service.icpdas@gmail.com
We will respond to you within 2 working days.
PCI-82x Series Cards
Multifunction Boards
TABLE OF CONTENTS
PACKING LIST ................................................................................................................................................................ 5
RELATED INFORMATION ............................................................................................................................................... 5
4.1OBTAINING THE DRIVER INSTALLATION PACKAGE ......................................................................................................... 26
4.2PLUG AND PLAY DRIVER INSTALLATION .................................................................................................................... 29
4.3VERIFYING THE INSTALLATION .................................................................................................................................. 31
4.3.1 Accessing Windows Device Manager ............................................................................................................... 31
4.3.2 Check the Installation ....................................................................................................................................... 34
5 TESTING THE PCI-822/826 SERIES CARD ............................................................................................................. 35
5.1.1 Digital Input/Output Test Wiring ...................................................................................................................... 35
5.1.2 Analog Input/Output Test Wiring ..................................................................................................................... 36
5.2EXECUTE THE TEST PROGRAM ................................................................................................................................ 37
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 2
PCI-82x Series Cards
Multifunction Boards
6 I/O CONTROL REGISTERS .................................................................................................................................. 41
6.1DETERMINING THE I/OADDRESS ........................................................................................................................... 41
6.3.1 Read/Write 16-bit Data for Port A/B ........................................................................................................... 44
6.3.2 Read/Write I/O Port Selection ..................................................................................................................... 44
6.3.3 Read the Card ID (SW1) and the DI/O Jumper (JP4) Settings ...................................................................... 45
6.5.1 Read/Write the A/D Polling Configuration .................................................................................................. 48
6.5.2 Write the AI Software Trigger ..................................................................................................................... 50
6.5.3 Read the FIFO Data ..................................................................................................................................... 50
6.5.4 Read/Write AI Pacer Sampling Rate ............................................................................................................ 50
6.5.5 Read/Write MagicScan Counter Value ........................................................................................................ 51
6.5.6 Write AI Pacer Configuration ....................................................................................................................... 51
6.5.7 Read the Status of the FIFO/JP1/ADC .......................................................................................................... 54
6.5.8 Read/Write the Base Frequency and the MagicScan Control Settings ........................................................ 54
A1.DOSLIBRARY FUNCTION DESCRIPTION ............................................................................................................................. 64
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 4
PCI-82x Series Cards
One of the following multi-function
cards:
Note:
If any of these items is missing or
damaged, contact the dealer from
whom you purchased the product.
Save the shipping materials and carton
in case you need to ship or store the
product in the future.
PCI-822LU
PCI-826LU
One CA-4002 D-Sub connector
One printed Quick Start Guide
One software utility CD
Multifunction Boards
Packing List
The shipping package includes the following items:
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 5
PCI-82x Series Cards
Multifunction Boards
1. Introduction
The PCI-822/826 Series cards provide 32/16-channel 12-bit (16-bit) Analog Input with a sampling rate
of up to 250 kSamples/second, and 2-channel 16-bit Analog Output with 32-channel programmable
Digital Input/Output.
1.1 Overview
The PCI-822/826 Series are high-performance multifunction cards that provide high-speed Analog
and Digital I/O functions. PCI-822/826 Series cards use a Universal PCI interface that supports both
the 3.3 V and the 5 V PCI bus. These cards feature a continuous, 250 kSamples/second, 12-bit
(16-bit) resolution A/D converter, an 8 k-Sample hardware FIFO, a 2-channel, 16-bit D/A converter,
and a 32-channel programmable Digital Input/Output and Digital Output readback. The PCI-822/826
LU provides either 32-channel single-ended or 16-channel differential Analog Input that is jumper
selectable, while the PCI-826LU is equipped with a high-speed PGA (Programmable Gain Amplifier)
featuring programmable gain controls (1, 2, 4 and 8).
PCI-822/826 Series cards contain an embedded Card ID switch and onboard pull-high/pull-low
resistors for the Digital Input, meaning that a unique ID number can be set for each card so that can
each card can be individually recognized when two or more PCI-822/826 Series cards are used in a
computer at the same time. The pull-high/pull-low resistors allow the status of the Digital Input to
be specified, meaning that when the Digital Input channels are disconnected, the status of the
Digital Input will remain as either high or low and will not be set to floating.
PCI-822/826 Series cards provide both a programmable software trigger and a pacer trigger, and
include an A/D channel scan function called MagicScan. The MagicScan controller eliminates the
majority of the effort required to acquire the A/D values, such as selecting the channel, setting the
Gain values and the settling time, triggering the ADC, and acquiring the data. Using the built-in
MagicScan and the interrupt features, these complex tasks are effectively offloaded from the CPU.
Even in channel scan mode, a different Gain code can be used for each channel, and the sampling
rate can still achieve a total of 250 kS/s, making the PCI-822/826 Series well-suited to the demands
of high-end applications.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 6
PCI-82x Series Cards
Multifunction Boards
1.2 Features
The following is an overview of the general features that apply to both the PCI-822 and PCI-826
Series cards. See Section 1.3 for more detailed specifications.
1. General
Bus : Universal PCI
2. Analog Input (A/D)
One 12-bit A/D converter with a maximum sample rate of 250 kSsamples/second (PCI-822LU)
One 16-bit A/D converter with a maximum sample rate of 250 kSamples/second (PCI-826LU)
32 single-ended or 16 differential programmable input channels (PCI-822LU/PCI-826LU)
Three different A/D trigger methods
Three different external trigger methods
Programmable Gain control
Programmable offset control
3. Analog Output (D/A)
One D/A converter
2-channel 16-bit voltage output
Voltage Output Range: ± 10 V, ± 5 V, 0 to +10 V, 0 to +5 V
4. Digital Input/Output (DI/O)
32-bit programmable DI/O
High-speed data transfer rate
Pull-high/low function on Digital Input
Digital Output readback function
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 7
PCI-82x Series Cards
Model
PCI-822LU
PCI-826LU
Analog Input
Channels
32 single-ended/16 differential
A/D Converter
12-bit, 8 µs conversion time
16-bit, 8 µs conversion time
Sampling Rate
250 kS/s (Max.)
FIFO Size
8192 samples
Over voltage Protection
Continuous ± 35 V
p-p
Input Impedance
10,000 MΩ/4pF
Trigger Modes
Software, Pacer
Data Transfer
Polling, Interrupt
Accuracy
0.1 % of FSR ± 1 LSB @ 25°C, ± 10 V
0.05 % of FSR ± 1 LSB @ 25 °C, ± 10 V
Input Range
Gain: 1, 2, 4, 8
Bipolar (V): ± 10, ± 5, ± 2.5, ± 1.25
Zero Drift
15 ppm/°C of FSR
Analog Output
Channels
2
Resolution
16-bit
Accuracy
± 6 LSB
Output Range
-5 V ~ +5 V , -10 V ~ +10 V
0 ~ +10 V, 0 ~ +5 V
Output Driving
± 5 mA
Slew Rate
8.33 V/µs
Output Impedance
0.1 Ω Max.
Operating Mode
Software
Programmable I/O
Channels
32
Digital Input
Compatibility
5 V/TTL
Input Voltage
Logic 0: 0.8 V (Max.)
Logic 1: 2.0 V (Min.)
Pull High/Low
Yes
Response Speed
1.0 MHz (Typical)
Multifunction Boards
1.3 Specifications
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 8
PCI-82x Series Cards
Digital Output
Compatibility
5 V/TTL
Output Voltage
Logic 0: 0.4 V (Max.)
Logic 1: 2.4 V (Min.)
Output Capability
Sink: 0.8 mA @ 0.8 V
Source: -2.4 mA @ 2.0 V
DO Readback
Yes
Response Speed
1.0 MHz (Typical)
General
Bus Type
3.3 V/5 V Universal PCI, 32-bit
Data Bus
16-bit
Card ID
Yes (4-bit)
I/O Connector
Female DB37 x 1
20-pin box header x 2
Dimensions (L x W x D)
169 mm x 105 mm x 22 mm
Power Consumption
1 A @ +5 V max.
Operating Temperature
0 ~ 60 °C
Storage Temperature
-20 ~ 70 °C
Humidity
5 ~ 85% RH, Non-condensing
Multifunction Boards
1.4 Applications
Signal Analysis
FFT and Frequency Analysis
Transient Analysis
Temperature Monitoring
Vibration Analysis
Energy Management
Other industrial and laboratory measurements and control
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 9
PCI-82x Series Cards
Jumper
Purpose
Comment
JP1
Analog Input Type Configuration
Refer to Section 2.2.1
JP6, JP7
Analog Output Range Configuration
Refer to Section 2.2.2
JP3, JP5
Analog Output Type Configuration
Refer to Section 2.2.3
JP4
Digital Input/Output Mode Configuration
Refer to Section 2.2.4
JP8
Digital Input Pull-high/low Configuration
Refer to Section 2.2.5
SW1
Card ID Configuration
Refer to Section 2.3
CON1
The terminal for Port B
Refer to Section 2.6 for more
detailed information about the pin
assignments.
CON2
The terminal for Port A
CON3
The terminal for Analog Input/Output
Multifunction Boards
2 Hardware Configuration
This section provides details of the hardware configuration for the PCI-822/826 Series cards,
including the layout of the individual cards, the Jumper positions, and the pin assignments, etc.
2.1 Layout
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 10
PCI-82x Series Cards
Jumper
Single-ended Input
(Default)
Differential Input
JP1
56
SE
2
4
1
3
DIFF
5
21
3
6
4
SE
DIFF
Jumper
± 10 V or 0 to +10 V
(Default)
± 5 V or 0 to +5 V
JP6 (D/A CH0)
JP7 (D/A CH1)
1
10 V
32
5 V
1
5 V
32
10 V
Multifunction Boards
2.2 Jumper Settings
PCI-822/826 Series cards include a number of jumpers that can be used to configure features such as
the Analog Input/Output Type, the Analog Output Range, and the Digital Input/Output mode, etc.
each of which is described in more detail below.
2.2.1 JP1 (Analog Input Type)
Jumper JP1 is used to configure the Analog Input type as either single-ended or differential. To
configure single-ended input, connect pin1 to pin 3 and pin 2 to pin 4, as illustrated in the diagram
below. The default configuration is single-ended.
2.2.2 JP6/JP7 (Analog Output Range)
Jumpers JP6 and JP7 are used to configure the output range for Analog Output channel 0 and 1,
respectively. Connecting pins 1 and 2 sets the output range to -10 V to +10 V or 0 to +10 V, while
connecting pins 2 and 3 sets the output range to -5 V to +5 V or 0 to +5 V. The default configuration
is ± 10 V.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 11
PCI-82x Series Cards
Jumper
Bipolar
(Default)
Unipolar
JP3 (D/A CH0)
JP5 (D/A CH1)
1
BI
32
UNI
1
UNI
32
BI
Jumper
Jumper Selectable
(Default)
Software Programmable
DIO-S0
1
Jump
32
Soft
1
Soft
32
Jump
Multifunction Boards
2.2.3 JP3/JP5 (Analog Output Type)
Jumpers JP3 and JP5 are used to select the Analog output type. Connecting pins 1 and 2 sets the
output type to Bipolar, while connecting pins 2 and 3 sets the output type to Unipolar. The default
configuration is Bipolar.
2.2.4 JP4 (Digital I/O Mode)
The JP4 Jumper block is used to configure the Digital Input/Output mode as either Jumper
Selectable or Software Programmable Mode. Connecting pins 1 and 2 of DIO-S0 sets the DI/O
mode to Jumper Selectable Mode, while connecting pins 2 and 3 sets the DI/O mode to Software
Programmable Mode. The default configuration is Jumper Selectable Mode.
Software Programmable Mode:
Refer to “Section 6.3 Bar1: Digital I/O Registers” for details of how to configure Port A (PA) and Port
B (PB) when the jumpers for DIO-S0 is set to Software Programmable Mode. The jumpers for DIO-S1
and DIO-S2 are not used when the DIO-S0 is set to Software Programmable Mode.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 12
PCI-82x Series Cards
Jumper
DIO-S0 is Jumper Selectable Mode
DI
(Default)
DO
DIO-S1 (Port A)
DIO-S2 (Port B)
1
23
1
23
Jumper
Pull-low
(Default)
Pull-high
JP8
1
3
2
5 V
GND
1
3
2
5 V
GND
Multifunction Boards
Jumper Selectable Mode:
DIO-S1 (Port A, PA) and DIO-S2 (Port B, PB) are used to configure the I/O ports as either Digital Input
(connect pins 1 and 2) or Digital Output (connect pins 2 and 3), when the jumper for DIO-S0 is set to
Jumper Selectable Mode. The default configuration is Digital Input.
2.2.5 JP8 (Digital Input Pull-high/low)
Jumper JP8 is used to set the Digital Input to either Pull-high or Pull-low, which allows the status of
the Digital Input to be predefined instead of remaining floating if the Digital Input channels are
disconnected or interrupted. Connecting pins 1 and 2 will set the Digital Input to Pull-high. To set
the Digital Input to Pull-low, pins 2 and 3 should be shorted. The default connected is Pull-low.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 13
PCI-82x Series Cards
Card ID (Hex)
1
ID0
2
ID1 3 ID2
4
ID3
(*) 0x0
ON
ON
ON
ON
0x1
OFF
ON
ON
ON
0x2
ON
OFF
ON
ON
0x3
OFF
OFF
ON
ON
0x4
ON
ON
OFF
ON
0x5
OFF
ON
OFF
ON
0x6
ON
OFF
OFF
ON
0x7
OFF
OFF
OFF
ON
0x8
ON
ON
ON
OFF
0x9
OFF
ON
ON
OFF
0xA
ON
OFF
ON
OFF
0xB
OFF
OFF
ON
OFF
0xC
ON
ON
OFF
OFF
0xD
OFF
ON
OFF
OFF
0xE
ON
OFF
OFF
OFF
0xF
OFF
OFF
OFF
OFF
NO
1 2 3 4
ID 0
ID 1
ID 2
ID 3
SW1
Multifunction Boards
2.3 Card ID Switch
PCI-822/826 Series cards include an onboard Card ID DIP Switch (SW1) that enables the card to be
recognized via software if two or more PCI-822/826 Series cards are installed in the same computer.
The default Card ID is 0x0 in hexadecimal format. For more detailed information regarding the
positions of the SW1 DIP Switch for the different Card ID settings, refer to the table below.
(Default Settings)
(*) Default Settings; ON = 0; OFF = 1
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 14
PCI-82x Series Cards
PCI Bus
D/ID/OTimer
A/D
Buffer
A/D
Converter
A/D
Trigger
Logic
Multiplexers
Gain Amp
Scale Adj.
PCI Interface
Controller
Interrupt
Controller
NVRAM
Dispatch
Controller
External Trigger
Data
Adr
Multifunction Boards
2.4 Block Diagram
The following is an illustration of the System Function Block for PCI-822/826 Series cards:
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 15
PCI-82x Series Cards
Multifunction Boards
2.5 Analog Input Signal Connections
PCI-822/826 Series cards can be used to measure either single-ended or differential type Analog
Input signals. Although certain signals can be measured using either mode, other signals, however,
can only be measured in one mode or the other. The most suitable mode for the measurement
must be determined beforehand, and is totally dependent on the prevailing measurement
conditions.
In general, there are four different methods that can be used for connecting Analog Input signals, as
shown below in Figures 2.5-1 to 2.5-5. The connection method illustrated in Figure 2.5-1 is more
suitable for grounding source Analog Input signals. The connection method depicted in Figure 2.5-3
is used to measure more channels than the method shown in Figure 2.5-1, but it is only suitable for
large Analog Input signals. The connection method shown in Figure 2.5-4 is suitable for
thermocouple input signals, while the connection method illustrated inFigure 2.5-5 is suitable for
floating source Analog Input signals.
Important Note: For the method illustrated in Figure 2.5-4, the maximum allowable common
mode voltage between the Analog Input source and the AGND pin is 70V
ensure that the input signal is below this level before continuing. If the common mode voltage is set
to above 70V
The easiest approach to selecting the most suitable configuration for the input signal connection is
outlined below:
1. Grounding the source input signal see Figure 2.5-1
2. Thermocouple input signal see Figure 2.5-4
3. Floating source input signal see Figure 2.5-5
4. If Vin > 1 V, and the gain is <=10 and more channels are needed see Figure 2.5-3
5. Current source input signal see Figure 2.5-6
, the input multiplexer will be permanently damaged.
p-p
, so care must be taken to
p-p
If the characteristics of the input signal are unknown or unclear, test the signal using the following
procedure to determine the most suitable method:
1. Measure the signal using the connection illustrated in Figure 2.5-1 and record the result
2. Measure the signal using the connection illustrated in Figure 2.5-5 and record the result
3. Measure the signal using the connection illustrated in Figure 2.5-3 and record the result
4. Compare the three results and select the most suitable connection method
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 16
PCI-82x Series Cards
A/D CH0 HI
A/D CHn HI
A/D CHn LO
A.GND n
A/D CH0 LO
Es 1
Es n
S
S
PCI-822/826
A/D CH0 HI
A/D CH0 LO
AGND
GND1
Es1
A/D CHn HI
A/D CHn LO
AGND
GNDn
Esn
Multifunction Boards
Figure 2.5-1: Connecting to a grounded source input (correct method)
Figure 2.5-2: Connecting to a ground loop input (incorrect method)
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 17
PCI-82x Series Cards
A/D CH0
A/D CH1
A/D CHn
AGND
Es
A/D CH 0 HI
A. GND
A/D CH n LO
A/D CH n HI
A/D CH 0 LO
Do not join LO to A.GND at the computer
Note: If the input is not a
thermocouple signal, an
oscilloscope should be used to
measure the common mode
voltage of the Vin before
connecting to the PCI-822/826,
rather than using a voltage
meter or multimeter.
Multifunction Boards
Figure 2.5-3: Connecting to a single-ended input configuration
Figure 2.5-4: Connecting to a thermocouple input configuration
CAUTION: The maximum allowable common mode voltage between the Analog Input source
and the A.GND pin for the connection shown in Figure 2.5-4, is 70 V
is below this value before making any connections. If the common mode voltage is above 70 V
the input multiplexer will be permanently damaged.
. Ensure that the input signal
p-p
p-p
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 18
,
PCI-82x Series Cards
A/D CH 0 HI
A/D CH 0 LO
A/D CH n HI
A.GND
A/D CH n LO
A.GND
Es 1
Es n
100 kΩ ~ 10 MΩ
100 kΩ ~ 10 MΩ
PCI-822/826
AI CHn
AGND
R
+
-
(Shunt Resistor)
Multifunction Boards
Figure 2.5-5: Connecting to floating source configuration
Figure 2.5-6: Connecting to a 4 ~ 20 mA Source
Example: A 20 mA source current through a 125 Ω resistor (e.g. 125 Ω, 0.1% DIP Resistors) between
+ and – terminals and the board will read a 2.5 VDC voltage. You can use the I = V/R (Ohm’s law) to
calculate what value the source current should have.
Current (I) = Voltage (V) / Resistance (R)
= 2.5 V / 125 Ω
= 0.02 A
= 20 m
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 19
PCI-82x Series Cards
Vin
PCI-822/826
A.GND
D.GND
Frame Ground
Multifunction Boards
Signal Shielding
The signal shielding for the connection methods illustrated in Figures 2.5-1 to 2.5-6 are the
same
Use a single-point connection to the frame ground, rather than the A.GND or the D.GND pins
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 20
PCI-82x Series Cards
Multifunction Boards
2.6 Pin Assignments
The following is an overview of the pin assignments for PCI-822/826 Series cards. CON1 and CON2
relate to the Digital Input and Digital Output connectors, while CON3 is used for both single-ended
and differential input.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 21
PCI-82x Series Cards
Note:
As certain operating systems, such as Windows 2000 and Windows XP may require the computer
to be restarted after a new driver is installed, it is recommended that the driver is installed first,
which will reduce the time required for installation.
Multifunction Boards
3 Hardware Installation
To install your PCI-822/826 Series card, follow the procedure described below:
Step 1: Install the driver for the PCI-822/826 Series card on the computer.
For more detailed information
about installing the driver for the
PCI-822/826 Series card, refer to
Chapter 4 Software Installation.
Step 2: Configure the Jumpers and the SW1 DIP Switch on the PCI-822/826 Series card
depending on the required configuration.
For more detailed information about the configuring the
Jumpers and Card ID (SW1), refer to Section 2.2 Jumper Settings
and Section 2.3 Card ID Switch.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 22
PCI-82x Series Cards
Multifunction Boards
Step 3: Correctly shut down and
power off your computer, and
then disconnect the power
supply.
Step 4: Remove the cover from the
computer.
Step 5: Select a vacant PCI slot.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 23
PCI-82x Series Cards
Multifunction Boards
Step 6: Remove the screw holding the cover for
the PCI slot in place and then remove the slot
cover from the PC. Ensure that you do not
misplace the screw.
Step 7: Remove the connector cover from the
Step 8: Align the contacts of the PCI card with
the open slot on the motherboard and then
carefully insert the PCI-822/826 Series card into
PCI-822/826 Series card.
the PCI slot by gently pushing down on both
sides of the card until it slides into the slot.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 24
PCI-82x Series Cards
Multifunction Boards
Step 9: Secure the PCI-822/826 Series card in place
using the retaining screw that was removed in step
5.
Confirm that the PCI-822/826 series card is correctly
mounted in the motherboard.
Step 10: Replace cover for the
computer and then reconnect the
power supply and any other cables.
Step 11: Switch on the power to the computer.
Once the computer reboots, follow
any messages that may be
displayed to complete the Plug and
Play installation procedure. Refer
to Chapter 4 Software Installation
for more information.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 25
PCI-82x Series Cards
Operating
System
Windows 2000、32/64-bit Windows XP、32/64-bit Windows 2003、
32/64-bit Windows Vista、32/64-bit Windows 7、32/64-bit Windows 2008、
Step 1: Use the DN-37 (optional) to connect the CON3 on the PCI-822/826 card.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 36
PCI-82x Series Cards
Multifunction Boards
Step 2: Set the JP1 jumper (Analog Input Type) on the PCI-822/826 Series card to Single-ended
mode (see Section 2.2.1 for more details), and then connect the AO0_Out (Pin18) to the AI0 (Pin1),
and connect the A.GND pin (Pin17) to the A.GND pin (Pin17).
5.2 Execute the Test Program
After installation, the UniDAQ Utility will be located
in the default folder (C:\ICPDAS\UniDAq\Driver\).
Use the procedure described below to perform the
“Self-Test”.
Step 1: Click the “Start”buttonpoint to“All
Programs” and then click the“ICPDAS” folder. Point
to “UniDAQ Development Kits”and then click the
“UniDAQ Utility” to execute the UniDAQ Utility
Program.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 37
PCI-82x Series Cards
Multifunction Boards
Step 2: Confirm the PCI-822/826 Series card has
been successfully installed in the Host system. Note
that the device numbers start from 0.
Step 3: Click the“TEST” button to start the test.
Step 4: Get DIO function test result.
1. Click the “Digital Output” tab.
2. Select the “Port0” from the “Port Number” drop-down options.
3. Check channels 0, 2, 4 and 6.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 38
PCI-82x Series Cards
Note:
The Analog Output Range
setting states depend on the JP3
and JP6 setting on the
PCI-822/826 card. Refer to
Section 2.2.2 JP6/JP7 Analog
Output Range and Section 2.2.3
JP3/JP5 Analog Output Type for
more detailed information.
Multifunction Boards
4. Click the “Digital Input” tab.
5. Select the “Port1” from the “Port Number” drop-down options.
6. The corresponding DI become red for channel 0, 2, 4, 6 of DO is ON.
Step 3: Check the results of the A/D and D/A functions test.
1. Click the “Analog Output” tab.
2. In the Voltage Output section, select the “0” from the “Channel” drop-down menu.
3. Select “Bipolar +/- 10 V” from the “Range” drop-down menu.
4. Enter a “voltage value (e.g., 3)” in the “Voltage(V)” field.
5. Click the “OUTPUT” button.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 39
PCI-82x Series Cards
Complete
Multifunction Boards
6. Click the “Analog Input” tab.
7. Confirm that the configuration settings are correct.
8. Click the “Start” button to start the test.
9. Check that the Analog Input value for Channel 0 is the same as the voltage value
entered in Step 3. The values for other channels will be a floating number.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 40
PCI-82x Series Cards
Model
PCI-822LU
PCI-826LU
Vendor ID
0x10B5
0xE10B5
Device ID
0x3001
0x3001
Sub-Vendor ID
0x2129
0x2129
Sub-Device ID
0x0822
0x0826
Multifunction Boards
6 I/O Control Registers
6.1 Determining the I/O Address
During the power-on stage, the Plug and Play BIOS will assign an appropriate I/O address to each
PCI-822/826 Series card installed in the system. Each PCI-822/826 Series card includes four fixed ID
numbers that are used to identify the card, and are indicated below:
The following functions are provided for the PCI-822/826 card:
1. PCI82x_DriverInit(&wTotalBoards)
This function is used to detect how many PCI-822 and/or PCI-826 cards are installed in the
system, and also records the I/O resource information for the card(s) in the library. The function
is implemented based on the PCI Plug and Play mechanism.
For example:
wTotalBoards = 1 there is only one PCI-822/826 Series card installed in the system
wTotalBoards = 2 there are two PCI-822/826 Series cards installed in the system
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 41
PCI-82x Series Cards
/* Step1: Detect all PCI-822&PCI-826 cards first */
wRetVal=PCI82X_DriverInit(&wTotalBoards);
printf("Threr are %d PCI-822&PCI-826 Cards in this PC\n",wBoards);
/* Step2: Save resources of all PCI-822&PCI-826 cards installed in this PC */
, i,wBaseAddr,wIrq,wBaseDIO);
wConfigSpace[i][0]=wBaseAddress; // save all resource of this card
wConfigSpace[i][1]=wBaseDIO; // save all resource of this card
wConfigSpace[i][2]=wBaseDA; // save all resource of this card
wConfigSpace[i][3]=wBaseAD; // save all resource of this card
}
/* Step3: Control the PCI-822&PCI-826 directly */
outpw(wBaseDIO+0x0,wDoValue); // control the D/O states of card_0
wDiValue=inpw(wBaseDIO+0x0); // read the D/I states of card_0
outpw(wBaseDIO+0x0,wDoValue); // control the D/O states of card_1
wDiValue=inpw(wBaseDIO+0x0); // read the D/I states of card_1
This function is used to retrieve the I/O resource information for the PCI-822/826 Series cards
installed in the system. The application will then be able to directly control all the functions
related to the PCI-822/826 Series cards.
wBoardNo = 0 to N A total of N+1 PCI-822/826 Series cards are installed in the system
wBaseAddr, wBaseDIO, wBaseDA, wBaseDA The base address of the PCI-822/826 card
wIrq The IRQ channel number allocated for the PCI-822/826 card
The following is a sample of the source code:
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 42
PCI-82x Series Cards
Bar No.
Offset
Register Function Description
Read
Write
1
(DI/O)
0h
Reads the Digital I/O for PortA
Writes the Digital I/O to PortA
4h
Reads the Digital I/O for Port B
Writes the Digital I/O to PortB
8h
Reads from EEPROM
Writes to EEPROM
Ch
Reads the status of the DI/O Jumper and
Card ID
Sets the configuration for Port A and Port B
2
(D/A)
0h
Reads the D/A Data
Writes the D/A Data
4h
Reads the D/A control settings
Configures the D/A control settings
8h
N/A
Enables/Disables the D/A Channel
3
(A/D)
0h
Reads the Analog Input configuration
Configures the A/D polling control settings
4h
Reads the A/D data
Sets the A/D trigger for polling mode
8h
Reads the Sampling Rate
Sets the Sampling Rate
Ch
Reads the Magic Scan counter value
Sets the Magic Scan counter value
10h
Reads the A/D pacer control configuration
Configures the A/D pacer control settings
14h
Reads the Base Frequency/Magic Scan
control configuration
Configures the Magic scan control/Base
Frequency settings
18h
Clears the interrupts
Starts/stops Magic Scan
1Ch
Reads the status of the interrupts
Configures the interrupt control settings
Multifunction Boards
6.2 I/O Address Mapping
The address of each register can be determined by simply adding the offset value to the base
address of the corresponding section. More detailed descriptions of each register can be found in
the following sections and also in the software manual. The following is an overview of the registers
for PCI-822/826 Series cards and their functions:
Note: The length of the register is 16-bit.
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 43
PCI-82x Series Cards
Bit F E D C B A 9 8 7 6 5 4 3 2 1 0
Data
DF
DE
DD
DC
DB
DA
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Bit
1
0
Data
Port B
Port A
Multifunction Boards
6.3 Bar 1: Digital I/O Registers
6.3.1 Read/Write 16-bit Data for Port A/B
(Read/Write): wBase+0+0x00 Read/Write 16-bit data for Port A
(Read/Write): wBase+0+0x04 Read/Write 16-bit data for Port B
This register provides the function for configuring the Digital Input/Output ports on the PCI-822/826
Series card. The I/O ports can be configured as either DI or a DO port, each port can be read/written
by accessing its data register. The I/O ports on PCI-822/826 Series cards are 16-bit.
6.3.2 Read/Write I/O Port Selection
(Read/Write): wBase+0+0x0C I/O Port Selection
This register provides the function for configuring the mode for the Digital Input/Output ports on
the PCI-822/826 Series card. Each I/O port can be programmed as either a Digital Input or Digital
Output. Note that all ports are initialized as Digital Input when the Host system is first turned on and
that the jumpers for DIO-S2 of JP4 must be set to “Software Programmable Mode”. See Section 2.2.4
for more details.
Port x = 1 The port is configured used as a Digital Output port
Port x = 0 The port is configured used as a Digital Input port
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 44
PCI-82x Series Cards
Bit F E D C B A 9 8 7 6 5 4 3 2 1 0
Data x x x x x S0
S1
S2 x x x x
ID3
ID2
ID1
ID0
DI/O Jumper (JP4) Settings
DIO Port Configuration
wJumper
S0
S1
S2
JP4
DIO-S0
PA
PB
0x0 0 x x Soft x x
0x4 1 0 0 Jump
DI
DI
0x5 1 0 1 Jump
DI
DO
0x6 1 1 0 Jump
DO
DI
0x7 1 1 1 Jump
DO
DO
Multifunction Boards
6.3.3 Read the Card ID (SW1) and the DI/O Jumper (JP4) Settings
(Read)wBase+0x0C Read the Card ID (SW1) and the DI/O Jumper (JP4) Settings
This register is used to read the Card ID (SW1) and the DIO Jumper (JP4) settings on the PCI-822/826
Series card.
The following is an example of how to read the 4-bit Card ID:
wCardID = inportb(wBaseDIO+0x0C)&0xF; /* Read the Card ID
wJumper=(inportb(wBaseDIO+0xC)>>8)&0x7; /* Reads the DI/O Jumper (JP4) settings
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 45
PCI-82x Series Cards
Bit F E D C B A 9 8 7 6 5 4 3 2 1 0
Data
DF
DE
DD
DC
DB
DA
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Bit
1
0
Data
M1
M0
M1
M0
D/A Channel
0
0
Channel 0
1
1
Channel 1
Multifunction Boards
6.4 Bar 2: Analog Output Registers
6.4.1 Read/Write 16-bit D/A Data
(Read/Write)wBase+0x0 Read/Write 16-bit D/A Data
Each D/A converter provide 2-channel Analog Output. Refer to Section 6.4.2 below for details of
how to select the D/A channel before writing data to the D/A converter.
6.4.2 Read/Write Analog Output Channel Selection
(Read/Write)wBase+0x04 Read/Write Analog Output Channel Selection
Before D/A data can be written, a D/A channel must be selected as the output. The following table
illustrates how to select the D/A channel:
D/A Channel Selection:
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 46
PCI-82x Series Cards
Bit
1
0
Data
CH1
CH2
Multifunction Boards
6.4.3 Enable/Disable an Analog Output Channel
(Write)wBase+0x08 Enable/Disable an Analog Output Channel
D/A channel must be enabled or disabled before the voltage can be output to the channel. The D/A
channels are allocated as follows:
CH x = 1 Enable the channel
CH x = 0 Disable the channel
The following is an example of how to enable the Analog Output Channel: