ADLINK ACL-8216 User Manual

NuDAQ®
ACL-8216
16-bit High Resolution
Data Acquisition Card
User’s Guide
All Rights Reserved.
Manual Rev. 4.10: April 15, 2000
Part no: 50-11015-100
The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.
This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
Trademarks
NuDAQ, ACL-8216 are registered trademarks of ADLINK Technology Inc.,
Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.
Getting service from ADLINK
Customer Satisfaction is always the most important thing for ADLINK
Tech Inc. If you need any help or service, please contact us and get it.
Web Site http://www.adlink.com.tw Sales & Service service@adlink.com.tw Technical NuDAQ nudaq@adlink.com.tw Support NuDAM nudam@adlink.com.tw NuIPC nuipc@adlink.com.tw NuPRO nupro@adlink.com.tw Software sw@adlink.com.tw TEL +886-2-82265877 FAX +886-2-82265717 Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan, R.O.C.
Please inform or FAX us of your detailed information for a prompt,
satisfactory and constant service.
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL
Web Site
Product Model
Environment to Use OS
Video Card:
Other:
Challenge Description
ADLINK Technology Inc.
Detailed Company Information
Questions
Computer Brand
M/B: CPU:
Chipset: BIOS::
Network Interface Card:
FAX
Suggestions for ADLINK
Table of Contents
Chapter 1 Introduction ..................................................... 1
1.1 Features ................................................................................. 2
1.2 Specifications ......................................................................... 3
1.3 Software Support ................................................................... 5
1.3.1 Programming Library...........................................................5
1.3.2 LabView Driver ....................................................................5
Chapter 2 Installation ....................................................... 6
2.1 What You Have...................................................................... 6
2.2 Unpacking ..............................................................................7
2.3 ACL-8216's Layout.................................................................8
2.4 Jumper and DIP Switch Description ......................................9
2.5 Base Address Setting ............................................................9
2.6 Analog Input Channel Configuration....................................11
2.7 DMA Channel Setting ..........................................................12
2.8 Internal/External Trigger Setting ..........................................13
2.9 Clock Source Setting ...........................................................14
2.10 IRQ Level Setting................................................................. 14
2.11 D/A Reference Voltage Setting............................................ 15
2.12 Connectors Pin Assignment.................................................17
2.13 Daughter Board Connection ................................................20
2.13.1 Connect with ACLD-8125 ................................................. 20
2.13.2 Connect with ACLD-9137 ................................................. 20
2.13.3 Connect with ACLD-9182 ................................................. 20
2.13.4 Connect with ACLD-9185 ................................................. 20
2.13.5 Connect with ACLD-9188 ................................................. 20
Chapter 3 Registers Format .......................................... 21
3.1 I/O Port Address ..................................................................22
3.2 A/D Data Registers & Status Control Register ....................23
3.3 A/D Channel Multiplexer Register........................................ 25
3.4 A/D Range Control Register ................................................27
3.5 A/D Operation Mode Control Register .................................28
3.6 Clear Interrupt Register........................................................29
3.7 Software Trigger Register ....................................................29
3.8 Digital I/O register ................................................................30
3.9 D/A Output Register.............................................................31
Table of Contents • i
3.10 Internal Timer/Counter Register...........................................32
Chapter 4 Operation Theorem ....................................... 33
4.1 A/D Conversion.................................................................... 33
4.1.1 A/D Conversion Procedure............................................... 33
4.1.2 A/D Trigger Modes ........................................................... 34
4.1.3 A/D Data Transfer Modes................................................. 35
4.2 D/A Conversion.................................................................... 36
4.3 Digital Input and Output .......................................................37
4.4 Timer/Counter Operation .....................................................38
Chapter 5 C/C++ Library ................................................ 41
5.1 Installation ............................................................................ 41
5.2 _8216_Initial......................................................................... 42
5.3 _8216_Switch_Card_No ...................................................... 43
5.4 _8216_DI..............................................................................44
5.5 _8216_DI _Channel .............................................................44
5.6 _8216_DO............................................................................ 45
5.7 _8216_DA ............................................................................46
5.8 _8216_AD_Input_Mode ....................................................... 47
5.9 _8216_AD_Set_Channel .....................................................48
5.10 _8216_AD_Set_Range ........................................................ 49
5.11 _8216_AD_Set_Mode..........................................................50
5.12 _8216_AD_Soft_Trig ...........................................................51
5.13 _8216_AD_Acquire..............................................................52
5.14 _8216_CLR_IRQ ................................................................. 53
5.15 _8216_AD_DMA_Start ........................................................ 54
5.16 _8216_AD_DMA_Status......................................................56
5.17 _8216_AD_DMA_Stop......................................................... 56
5.18 _8216_AD_INT_Start...........................................................57
5.19 _8216_AD_INT_Status ........................................................58
5.20 _8216_AD_INT_Stop...........................................................58
5.21 _8216_AD_Timer .................................................................59
5.22 _8216_Timer_Start ..............................................................60
5.23 _8216_Timer_Read .............................................................60
5.24 _8216_Timer_Stop ..............................................................61
Chapter 6 Calibration & Utilities.................................... 62
6.1 What do you need................................................................62
6.2 VR Assignment ....................................................................63
ii • Table of Contents
6.3 A/D Adjustment ....................................................................63
6.4 D/A Adjustment ....................................................................64
6.4.1 Reference Voltage Calibration.......................................... 64
6.4.2 D/A Channel Calibration................................................... 64
Appendix A Demo Programs........................................ 65
Warranty Policy .............................................................. 66
Table of Contents • iii
How to Use This Guide
This manual is designed to help you use the ACL-8216. The manual describes how to modify various settings on the ACL-8216 card to meet your requirements. It is divided into six chapters:
Chapter 1,
applications, and specifications.
Chapter 2,
layout of ACL-8216 is shown, the switch setting for base address, and jumper setting for analog input channel configuration, reference voltage setting, trigger source, interrupt level and DMA channel are specified. The connectors' pin assignment and how to connect the outside signal are described.
Chapter 3,
and structure of the ACL-8216, this information is very important for the programmers who want to control the hardware by low-level programming.
Chapter 4,
8216. The A/D, D/A, DIO and timer/counter functions are introduced. Also, some programming concepts are specified.
Chapter 5,
environment.
Chapter 6,
ACL-8216 for accurate measurement.
"Introduction," gives an overview of the product features,
"Installation," describes how to install the ACL-8216. The
"Registers format," describes the details of register format
"Operation Theorem" describes how to operate the ACL-
"C/C++ Library," describes the C++ Library for DOS
"Calibration and utilities," describes how to calibrate the
iv • How to Use This Guide
1
Introduction
The ACL-8216 is a high performance, high resolution multi-function data acquisition card for the IBM PC or compatible computers.
...
...
D/O 0
DO 1
DI 15
DI 1
D/I 0
16 BIT
EXT.CLK
TO PACER TRIG
OUT 0
<
16 BIT
16 BIT
COUNTER #0
COUNTER #1
OSC.
4 MHz
12-Bit
Code Latch
REGISTER
DIGITAL INPUT
16 BIT
COUNTER #2
16 Bit
FR/2
2MHz
A/D Converter
+15
12-Bit
Code Latch
DO 15
16 BIT
REGISTER
DIGITAL INPUT
INPUT
BUFFER
(ADS7805)
INTERNAL BUS
GAIN
AMP
-15
TRIG
TRIG
PACER
EOC
CONTROL
DACK
DRQ
+5V
SELECT
DC/DC
TRIG
EXTERNAL
SOFTWARE
TRIG
LOGIC
LOGIC
INTERRUPT
IRQ SELECT
#1 OR #3
DMA SELECT
DATA
BUFFER
PC/AT BUS
Figure 1.1 ACL -8216 BLOCK DIAGRAM
CONVERTER
I/O PORT DECODER
D/A #1 12 BIT
D/A #0 12 BIT
MULITIPLYING D/A
MULITIPLYING D/A
<
<
GND
GND
REF 0 IN
D/A 0 OUT
REF 1 IN
D/A 1 OUT
Analog
Multiplexer
16 channel
Single-ended
>
>
...
CH 0
CH 1
CH 2
ANALOG
INPUT
CONTROL
MUX SCAN
>
CH 15
Introduction • 1
The ACL-8216 series is designed to combine all the data acquisition functions, such as A/D, D/A, DIO, and timer/counter in a single board, The high-end specifications of the card makes it ideal for wide range of applications requiring high resolution 16-bit data acquisition at low cost. The Figure 1.1 shows the block diagram of the ACL-8216.
The ACL-8216 Series features 16 single-ended inputs or 8 differential inputs at up to 100 Khz, 2 channels multiplying 12-bit double-buffered analog output, 16 digital inputs and 16 digital outputs, and one timer/counter channel.
1.1 Features
The ACL-8216 High Resolution Multi-function Data Acquisition Card provides the following advanced features:
AT-Bus
16-bit hgih resolution analog input
16 single-ended or 8 differential analog input channels
Bipolar input signals
Programmable gain of x1, x2, x4, x8
On-chip sample & hold
Two 12-bit monolithic multiplying analog output channels
16 digital output channels
16 digital input channels
3 independent programmable 16-bit down counters
Programmable sampling rate of up to 100KHz
:
Three A/D trigger modes trigger, and external pulse trigger
AT interrupt IRQ capability selectable
Integral DC-to-DC converter for stable analog power source
37-pin D-type connector
:
Compact size
half-size PCB
software trigger, programmable pacer
:
9 IRQ levels (IRQ3~IRQ15) are jumper
2 • Introduction
1.2 Specifications
Analog Input (A/D)
Converter:
Resolution:
Number of channels:
Input Range:
Bipolar : ± 10V, ±5V, ±2.5V,±1.25V
Conversion Time:
Sampling Rate:
100KHz maximum for single channe
20KHz maximum for multi-channels multiplexing
Overvoltage protection:
Differential Linearity Error:
Accuracy: 0.003%,
Input Impedance:
AD conversion trigger soruces:
Data Transfer:
Analog Output (D/A)
Converter:
Resolution:
Number of channels:
Output Range:
Internal reference: (unipolar) 0~5V or 0~10V
External reference: (unipolar) max. +10V or -10V
Settling Time:
Linearity:
Output driving capability:
ADS7805 or equivalent, successive approximation type
16-bit
(programmable)
Pooling, Interrupt, DMA
DAC7541 or equivalent, monolithic multiplying
12-bit
30 µ sec
±1/2 bit LSB
16 single-ended or 8 differential
8 µ sec
Continuous ± 35V maximum
2 LSB
±
1 LSB
±
10 MΩ / 5pF
Software, Pacer, and External
2 double-buffered analog outputs
±5mA max.
Digital I/O (DIO)
Channel:
Input Voltage:
Low: Max. 0.8V
16 TTL compatible inputs and outputs
Introduction • 3
High: Min. +2.0V
Input Load:
Low: +0.5V @ -0.2mA max.
High: +2.7V @+20uA max.
Output Voltage:
Low: Max. 0.5V
High: Min. +2.7V
Driving Capacity:
Low: Max. +0.5V at 8.0mA ( Sink)
High: Min. 2.7V at 0.4mA( Source)
Programmable Counter
Device:
A/D pacer:
2MHz clock base
Counter:
external clock
Pacer Output:
General Specifications
I/O Base Address
Interrupt IRQ
DMA Channel
Connector
Operating Temperature
Storage Temperature
Humidity
Power Consumption
+5 V @ 420 mA maximum
+12 V @ 240 mA maximum
Dimension
8254
: 5 ~ 95%, non-condensing
32-bit timer( two 16-bit counter cascaded together) with a
One 16-bit counter with an internal 2MHz clock base or
0.00046 Hz ~ 100K Hz
: 16 consecutive address location
: IRQ3, 5,6,7,9,10,11,12,15
: CH1 or CH3
: 37-pin D-type connector
: 163 mm (L) X 123mm(W)
: 0° C ~ 55° C
: -20° C ~ 80° C
:
4 • Introduction
1.3 Software Support
1.3.1 Programming Library
For the customers who are writing their own programs, we provide MS-DOS Borland C/C++ programming library.
ACLS-DLL2 is the Development Kit for NuDAQ ISA-Bus Cards with Analog I/O, windows 3.1/95(98)/NT. ACLS-DLL2 can be used for many programming environments, such as VC++, VB, Delphi. ACLS-DLL2 is included in the ADLINK CD. It need license.
1.3.2 LabView Driver
The ACLS-LVIEW includes the ACL-8316/8312’s Vis, which is used to interface with NI’s LabView software package. The ACLS-LVIEW supports Windows-95(98)/NT. ACLS-LVIEW is included in the ADLINK CD. It need license.
Introduction • 5
2
Installation
This chapter describes how to install the ACL-8216. At first, the contents in the package and unpacking information that you should care about are described. The jumpers and switches setting for the ACL-8216's base address, analog input channel configuration, interrupt IRQ level, voltage source, etc. are also specified.
2.1 What You Have
In addition to this User's Manual, the package includes the following items:
ACL-8216 Enhanced Multi-function Data Acquisition Card
ADLINK CD
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 want to ship or store the product in the future.
6 • Installation
2.2 Unpacking
Your ACL-8216 card contains sensitive electronic components that can be easily damaged by static electricity.
The card should be done on a grounded anti-static mat. The operator should be wearing an anti-static wristband, grounded at the same point as the anti­static mat.
Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Be sure there are no shipping and handing damages on the module before processing.
After opening the card module carton, extract the system module and place it only on a grounded anti-static surface component side up.
Again inspect the module for damage. Press down on all the socketed IC's to make sure that they are properly seated. Do this only with the module place on a firm flat surface.
Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN
DAMAGED.
You are now ready to install your ACL-8216.
Installation • 7
2.3 ACL-8216's Layout
-10V
-5V
JP1
SING
INTREF
EXTREF
JP2
R6
VR5
VR3 VR4
R2
R1
DIFF
JP3
CN3
EXTCLK
8254
JP7
DACK
DRQ
JP8
ADS7 805
JP6
INTCLK
8 • Installation
JP4
INTTRG
EXTTRG
CN1
SW1
JP5
CN2
8216
D/G OUT D/G IN
Figure 2.1 PCB Layout of the ACL-8216
3 5 6 7 910111215X
2.4 Jumper and DIP Switch Description
A (
)
You can change the ACL-8216's channels and the base address by setting jumpers and DIP switches on the card. The card's jumpers and switches are preset at the factory. You can change the jumper settings for your own applications.
A jumper switch is closed (sometimes referred to as "shorted") with the plastic cap inserted over two pins of the jumper. A jumper is open with the plastic cap inserted over one or no pin(s) of the jumper.
2.5 Base Address Setting
The ACL-8216 requires 16 consecutive address locations in the I/O address space. The base address of the ACL-8216 is restricted by the following conditions.
1.
The base address must be within the range Hex 000 to Hex 3FF.
2.
The base address should not conflict with any PC reserved I/O address. see Appendix A.
3.
The base address must not conflict with any add-on card on your own PC. Please check your PC before installing the ACL-8216.
The ACL-8216's base address of registers is selected by an 6 positions DIP
SW1
switch possible base address combinations are listed as Table 2.2. You may modify the base address if the address HEX 220 has been occupied by another add­on card.
. The default setting of base address is set to be HEX 220. All
SW1 : Base Address = Hex 220
ON
2345
1
8 7 6 5 4
Figure 2.2 Default Base Address Setting
DIP
Installation • 9
I/O port
Address(Hex)
200-20F
1
A8
ON
(0)
2
A7
ON
(0)
3
A6
ON
(0)
4
A5
ON
(0)
5
A4
ON
(0)
210-21F
220-22F (default)
230-23F
ON
(0)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
ON
(1)
ON
(0)
ON
(0)
OFF
(1)
OFF
(1)
OFF
(1)
ON
(0)
OFF
(1)
:
300-30F
OFF
(1)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
:
3F0-3FF
OFF
(1)
OFF
(1)
OFF
(1)
OFF
(1)
OFF
(1)
Table 2.2 Possible Base Address Combinations
A0, ..., A9 is corresponding to PC Bus address lines
A9 is always set as “1”.
How to define the base address for the ACL-8216 ?
The DIP1 to DIP6 in the switch SW1 are one to one corresponding to the PC bus address line A8 to A4. A0~A3 are always 0, and A9 is always 1. If you want to change the base address, you can only change the values of A8 to A4 (the shadow area of below table). The following table is an example, which shows you how to define the base address as Hex 220
Base Address: Hex 220
2 2 0
1 0 0 0 1 0 0 0 0 0
A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
10 • Installation
2.6 Analog Input Channel Configuration
The ACL-8216 offer 16 single-ended or 8 differential analog input channels. The jumper JP3 controls the analog input channel configuration. The settings of JP3 is specified as following illustration.
SINGLE
Single-ended
(default setting)
JP3
DIFF
SINGLE
Differential Input
JP3
DIFF
Figure 2.3 Analog Input Channels Configuration
Installation • 11
2.7 DMA Channel Setting
The A/D data transfer of ACL-8216 is designed with DMA transfer capability. The setting of DMA channel 1 or channel 3 is controlled by the jumpers JP8 and JP7. The possible settings are shown below.
Note: On floppy disk only machine, we suggest you to set DMA level 3. If
you have hard disk equipped computer, level 1 is preferable.
NO DMA
DMA 1
(Default)
DMA 3
DACK JP7
13
DACK JP7
13
DACK JP7
13
X
X
X
DRQ JP8
13
DRQ JP8
13
DRQ JP8
13
Figure 2.4 DMA Channel Setting
X
X
X
12 • Installation
2.8 Internal/External Trigger Setting
The A/D conversion trigger source of ACL-8216 comes from internal or external. The internal or external trigger source is setting by JP4, as shown on Figure 2.5. Note that there are two internal on-board trigger sources, one is the software trigger and the other is the programmable pacer trigger, which is controlled by the mode control register(see section 4.5).
JP4
Internal
(default setting)
INTTRG
EXTT
JP4
External Trigger
INTTRG
EXTT
Figure 2.5 Trigger Source Setting
JP6
Internal Clock
Source : 2MHz
(default setting)
INTCLK
EXTCLK
JP6
External Clock
Source
INTCLK
EXTCLK
Figure 2.6 Timer's Clock Source Setting
Installation • 13
2.9 Clock Source Setting
The 8254 programmable interval timer is used in the ACL-8216. It provides 3 independent channels of 16-bit programmable down counters. The input of counter 2 is connected to a precision 2MHz oscillator for internal pacer. The input of counter 1 is cascaded from the output of counter 2. The channel 0 is free for user's applications. There are two selections for the clock source of channel 0: the internal 2MHz clock or the external clock signal from connector CN3 pin 37. The setting of clock is shown as Figure 2.6.
2.10 IRQ Level Setting
The ACL-8216 can connect to any one of the interrupt lines of the PC I/O channel. The interrupt line is selected by the jumper JP7. If you wish to use the interrupt capability of ACL-8216, you must select an interrupt level and place the jumper in the appropriate position to enable the particular interrupt line.
The default interrupt level is IRQ15, which is selected by placing the jumper on the pins in row number 15. Figure 2.7 shows the default interrupt jumper setting IRQ15. You only remove the jumper from IRQ15 to other new pins, if you want to change to another IRQ level.
Note
: Be aware that there is no other add-on card shares the same
interrupt level at the same system.
JP7
No Interrupt :
Interrupt level :
IRQ15
(default setting)
14 • Installation
3 5 6 7 9 10 11 15 NC12
JP7
3 5 6 7 9 10 11 15 NC12
Figure 2.7 IRQ Level Setting
2.11 D/A Reference Voltage Setting
The D/A converter's reference voltage source can be internal or external generated. The external reference voltage comes from connector CN3 pin 31(ExtRef1) and pin12(ExtRef2), see section 3.1. The reference source of D/A channel 1 and channel 2 are selected by JP2, respectively. Their possible settings are shown as below:
JP2
D/A CH1 is External
D/A CH2 is External
D/A CH1 is External
D/A CH2 is Internal
D/A CH1 is Internal
D/A CH2 is External
INTR E F
ExtRef1
JP2
INTREF INT R E F
ExtRef1
JP2
INTREF INTREF
ExtRef1
INTR E F
ExtRef2
ExtRef2
ExtRef2
D/A CH1 is Internal
D/A CH2 is Internal
(defa u lt s et tin g)
INTREF INTREF
ExtRef1
JP2
ExtRef2
Figure 2.8 D/A Voltage Setting
The internal voltage is -5V or -10V which can is selected by JP1. The possible configurations are specified as Figure 2.9. Note that the internal reference voltage is used only when the JP2 or JP3 is set to internal reference.
Installation • 15
Loading...
+ 52 hidden pages