NuDAQ® ACL-8216 16-bit High Resolution Data Acquisition Card User’s Guide
©Copyright 2001ADLINK Technolgoy Inc. 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.
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. ADLINK Technology Inc. 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.
Table of Contents Chapter 1 Introduction ..................................................... 1 1.1 1.2 1.3 Features .................................................................................2 Specifications .........................................................................3 Software Support ...................................................................5 1.3.1 1.3.2 Programming Library ...........................................................5 LabView Driver .........................
3.10 Internal Timer/Counter Register...........................................32 Chapter 4 Operation Theorem ....................................... 33 4.1 A/D Conversion ....................................................................33 4.1.1 4.1.2 4.1.3 4.2 4.3 4.4 A/D Conversion Procedure............................................... 33 A/D Trigger Modes ........................................................... 34 A/D Data Transfer Modes.................................................
6.3 6.4 A/D Adjustment ....................................................................63 D/A Adjustment ....................................................................64 6.4.1 6.4.2 Reference Voltage Calibration.......................................... 64 D/A Channel Calibration ................................................... 64 Appendix A Demo Programs ........................................ 65 Warranty Policy ..............................................................
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, "Introduction," gives an overview of the product features, applications, and specifications. • Chapter 2, "Installation," describes how to install the ACL-8216.
INPUT ANALOG REF 0 IN CH 15 CH 2 CH 1 CH 0 REF 1 IN GND D/A 1 OUT GND D/A 0 OUT < < CONTROL MUX SCAN Multiplexer . . Analog Single-ended 16 channel . > > > -15 +5V SELECT GAIN CONVERTER DC/DC AMP +15 Code Latch 12-Bit EXT.CLK #1 OR #3 DMA SELECT DACK DRQ INTERNAL BUS BUFFER INPUT IRQ SELECT INTERRUPT LOGIC CONTROL TRIG TRIG EXTERNAL SOFTWARE TRIG TRIG PACER DO 15 . . . DO 1 D/O 0 DI 15 . . .
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.
1.2 Specifications ♦ Analog Input (A/D) • Converter: ADS7805 or equivalent, successive approximation type • Resolution: 16-bit • Number of channels: 16 single-ended or 8 differential • Input Range: (programmable) Bipolar : ± 10V, ±5V, ±2.5V,±1.25V • Conversion Time: 8 µ sec • Sampling Rate: 100KHz maximum for single channe 20KHz maximum for multi-channels multiplexing • Overvoltage protection: Continuous ± 35V maximum • Differential Linearity Error: ± 2 LSB • Accuracy: 0.
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: 8254 • A/D pacer: 32-bit timer( two 16-bit counter cascaded together) with a 2MHz clock base • Counter: One 16-bit counter with an internal 2MHz clock base or external clock • Pacer Output: 0.
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 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.
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 antistatic 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.
8 • Installation CN2 D/G OUT D/G IN JP5 CN1 8216 3 5 6 7 910111215X SW1 EXTTRG JP4 INTTRG JP8 8254 DRQ DACK EXTCLK JP6 INTCLK JP7 ADS7805 VR1VR2 VR3 VR4 VR5 VR6 CN3 JP3 JP2 JP1 -10V DIFF SING EXTREF INTREF -5V 2.3 ACL-8216's Layout Figure 2.
2.4 Jumper and DIP Switch Description 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.
I/O port Address(Hex) 200-20F 210-21F 220-22F (default) 230-23F 1 A8 ON (0) 2 A7 ON (0) 3 A6 ON (0) 4 A5 ON (0) 5 A4 ON (0) 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) OFF (1) ON (0) ON (0) ON (0) ON (0) OFF (1) OFF (1) OFF (1) OFF (1) OFF (1) : 300-30F : 3F0-3FF Table 2.2 Possible Base Address Combinations A0, ..., A9 is corresponding to PC Bus address lines A9 is always set as “1”.
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.
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. DRQ JP8 DACK JP7 NO DMA 1 X 3 1 3 X DRQ JP8 DACK JP7 DMA 1 (Default) 1 3 X 1 3 X DRQ JP8 DACK JP7 DMA 3 1 3 X 1 3 Figure 2.
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.
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.
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.
Reference Voltage is -5V (default setting) Reference Voltage is -10V -10V JP1 -5V -10V JP1 -5V Figure 2.
2.12 Connectors Pin Assignment The ACL-8216 comes equipped with two 20-pin insulation displacement connectors - CN1 and CN2 and one 37-pin D-type connector - CN3. The CN1 and CN2 are located on board and CN3 located at the rear plate. CN1 is used for digital signal output, CN2 for digital signal input, CN3 for analog input, analog output and timer/counter's signals. The pin assignment for each connectors are illustrated in the Figure 3.1 ~ Figure 3.3.
Legend: DO n: Digital output signal channel n DI n: Digital input signal channel n GND: Digital ground • CN 3: Analog Input/Output & Counter/Timer ( for single-ended connection) CN3 AI0 AI1 AI2 AI3 AI4 AI5 AI6 AI7 A.GND A.GND V.REF ExtRef2 +12V A.GND D.GND COUT0 ExtTrg N/C +5V 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 AI8 AI9 AI10 AI11 AI12 AI13 AI14 AI15 A.GND A.GND AO1 ExtRef1 AO2 GATE0 GATE N/C N/C ExtCLK Figure 3.3a.
AIn: Analog Input Channel n ( single-ended) AIHn: Analog High Input Channel n ( differential) AILn: Analog Low Input Channel n ( differential) ExtRef n: External Reference Voltage for D/A CH n AOn: Analog Output Channel n ExtCLK: External Clock Input ExtTrig: External Trigger Signal CLK: Clock input for 8254 Counter 0 GATE: Gate input for 8254 Counter 1 & 2 COUT n: Signal output of Counter n V.ERF: Voltage Reference A.
2.13 Daughter Board Connection The ACL-8216 can be connected with five different daughter boards, ACLD8125, ACLD-9137, 9182, 9185, and 9188. The functionality and connections are specified as follows. 2.13.1 Connect with ACLD-8125 The ACLD-8125 has a 37-pin D-sub connector, which can connect with ACL8216 through 37-pin assemble cable. The most outstanding feature of this daughter board is a CJC ( cold junction compensation) circuit on board. You can directly connect the thermocouple on the ACL-8125 board.
3 Registers Format The detailed descriptions of the register format and structure of the ACL8216 are specified in this chapter. This information is quite useful for the programmer who wish to handle the card by low-level program. In addition, the low level programming syntax is introduced. This information can help the beginners to operate the ACL-8216 in the shortest learning time.
3.1 I/O Port Address The ACL-8216 requires 16 consecutive addresses in the PC I/O address space. The Table 4.1 shows the I/O address of each register with respect to the base address. The function of each register also be shown.
3.2 A/D Data Registers & Status Control Register The ACL-8216 provides 16 single-ended or 8 differential A/D input channels, the digital data will store in the A/D data registers. The 16 bits A/D data is put into two 8 bits registers. The low byte data (8 LSBs) are put in address BASE+4 and the high byte data is put in address BASE+5. A Status Control Register( Base+8) is used to check if the D/A conversion is ready. An DRDY bit is used to indicate the status of A/D conversion.
Address : BASE +8 Attribute: read only Data Format: Bit BASE+8 7 - 6 - 5 DRDY 4 - DRDY: Data Ready Signal. 1: A/D data is not ready 0: A/D conversion is completed. It will be set to 1, when reading the low byte.
3.3 A/D Channel Multiplexer Register This register is used to control the A/D channels to be converted. It's a write only register. When the channel number is written to the register, the multiplexer switches to the new channel and await for conversion. Address : BASE + 10 Attribute: write only Data Format: Bit BASE+1 0 7 X 6 X 5 CS1 4 CS0 3 CL3 2 CL2 1 CL1 0 CL0 CLn: multiplexer channel number. CL2 is MSB, and CL0 is LSB. CS0 and CS1 are used to determine which MPC508A chip is selected.
D.I. CH3 D.I. CH4 D.I. CH5 D.I. CH6 D.I. CH7 X X X X X X X X X X 1 1 1 1 1 S.E.: Single-ended Analog Input D.I.
3.4 A/D Range Control Register The A/D range register is used to adjust the analog input ranges for A/D channels. Two factor will effect the input range: Gain and Bipolar/Unipolar. Both of these issues can be controlled by this register. The Table 4.2 shows the relationship between the register data and the A/D input range.
3.5 A/D Operation Mode Control Register The A/D operation includes the analog signal conversion and the data transformation. This register controls the internal trigger mode and data transformation method. It is initialized as software trigger and program polling transfer when your PC is reset or power on. The details of the A/D operation is illustrated in Chapter 5. There are four operation modes shown as following .
3.6 Clear Interrupt Register The Interrupt Status Register is used to clear the interrupt status for next new interrupt can be generated. If the ACL-8216 is in interrupt data transfer mode, a hardware status flag will be set after each A/D conversion. You have to clear the status flag by just writing any data to this register, let the ACL-8216 can generate next interrupt if a new A/D conversion is happen. Address : BASE + 8 Attribute: write only Data Format: Bit BASE+8 3.
3.8 Digital I/O register There are 16 digital input channels and 16 digital output channels are provided by the ACL-8216. The address Base + 6 and Base + 7 are used for digital input channels, and the address Base + 13 and Base + 14 are used for digital output channels.
3.9 D/A Output Register The D/A converter will convert the D/A output register data to the analog signal. The register data of the address Base + 4 and Base + 5 are used for D/A channel 1, Base +6 and Base +7 are used for D/A channel 2.
3.10 Internal Timer/Counter Register Two counter of 8254 are used for periodically triggering the A/D conversion, the left one is left free for user applications. The 8254 occupies 4 I/O address locations in the ACL-8216 as shown blow. Users can refer to NEC's or Intel's data sheet for a full description of the 8254 features, condensed information is specified in Appendix B.
4 Operation Theorem The operation theorem of the functions on ACL-8216 card is described in this chapter. These functions include the A/D conversion, D/A conversion, digital I/O and counter / timer. The operation theorem can help you to understand how to manipulate or to program the ACL-8216. 4.
The A/D data should be transferred into PC's memory for further using. The ACL-8216 provides three data transfer modes that allow users to optimize the DAS system. Refer to section 5.1.3 for data transfer modes. 4.1.2 A/D Trigger Modes In the ACL-8216, A/D conversion can be triggered by the Internal or External trigger source. The jumper JP4 is used to select the internal or external trigger, please refer to section 2.8 for details. henever the external source is set, the internal sources are disable.
4.1.3 A/D Data Transfer Modes On the ACL-8216, three A/D data transfer modes can be used when the conversion is completed. The data transfer mode is controlled by the mode control register (BASE+11). The different transfer modes are specified as follows: Software Data Transfer Usually, this mode is used with software A/D trigger mode. After the A/D conversion is triggered by software, the software should poll the DRDY bit until it becomes to high level.
4.2 D/A Conversion The ACL-8216 has two unipolar analog output channels. To make the D/A output connections from the appropriate D/A output, please refer the following figure: -5 or -10 INT or Ext Pin-30 ( AO0) Ref In D/A Converter + Pin-32 ( AO1) To D/A Output Pin-14 ( A.GND) Analog GND The operation of D/A conversion is more simple than A/D operation. You only need to write digital values into the D/A data registers and the corresponding voltage will be output from the AO1 or AO2.
4.3 Digital Input and Output To program digital I/O operation is fairly straight forward. The digital input operation is just to read data from the corresponding registers, and the digital output operation is to write data to the corresponding registers. The digital I/O registers‘ format are shown in section 4.9. Note that the DIO data channel can only be read or written in form of 8 bits together. It is impossible to access individual bit channel.
4.4 Timer/Counter Operation The ACL-8216 has an interval timer/counter 8254 on board. It offers 3 independent 16-bit programmable down counters; counter 1 and counter 2 are cascaded together for A/D timer pacer trigger of A/D conversion. and counter 0 is free for your applications. The following figure shows the 8254 timer/counter connection.
For more information about the 8254 , please refer to the NEC Microprocessors and peripherals or Intel Microsystems Components Handbook. Pacer Trigger Source The counter 1 and counter 2 are cascaded together to generate the timer pacer trigger of A/D conversion. The frequency of the pacer trigger is software controllable. The maximum pacer signal rate is 2MHz/4=500K which excess the maximum A/D conversion rate of the ACL-8216.
• RL1 & RL0 - Select Read/Load operation ( Bit 5 & Bit 4) RL1 RL0 OPERATION 0 0 COUNTER LATCH FOR STABLE READ 0 1 READ/LOAD LSB ONLY 1 0 READ/LOAD MSB ONLY 1 1 READ/LOAD LSB FIRST, THEN MSB • M2, M1 & M0 - Select Operating Mode ( Bit 3, Bit 2, & Bit 1) M2 M1 M0 MODE 0 0 0 0 0 0 1 1 x 1 0 2 x 1 1 3 1 0 0 4 1 0 1 5 • BCD - Select Binary/BCD Counting ( Bit 0) 0 16-BITS BINARY COUNTER 1 BINARY CODED DECIMAL (BCD) COUNTER (4 DIGITAL) Note The count of the binary counter is from 0 up to 65,535 and the count
5 C/C++ Library This chapter describes the DOS software library, which is free supplied. The DOS library software includes a utility program, C language library, and some demonstration programs, which can help you reduce the programming work. To program in Windows environment, please use ACLS-DLL2. The function reference manual of ACLS-DLL2 is included in the ADLINK CD. It needs license. 5.
5.2 _8216_Initial @ Description An ACL-8216 card is initialized according to the card number and the corresponding base address. Every ACL-8216 Multi-Function Data Acquisition Card have to be initialized by this function before calling other functions. @ Syntax int _8216_Initial(int base_addresss ) @ Argument card_number: The card only two the card CARD_2. base_address: The I/O card . @ Return Code ERR_NoError ERR_InvalidBoardNumber ERR_BaseAddressError @ Example #include "8216.h" #include "aclerr.
5.3 _8216_Switch_Card_No @ Description This function is used on dual-cards system. After initialized two ACL8216 cards, this function is used to select which card is used currently. Note: In this library, only two ACL-8216 can be initialized. The reason is only two DMA channels are supported in the card. @ Syntax int _8216_Switch_Card_No(int card_number) @ Argument card_number: The card number to be initialized, only two cards can be initialized, the card number must be CARD_1 or CARD_2.
5.4 _8216_DI @ Description This function is used to read data from digital input port. There are 16 bits of digital input on the ACL-8216. The bit 0 to bit 7 are defined as low byte and the bit 8 to bit 15 are defined as the high byte. @ Syntax int _8216_DI( int port_number, unsigned char *data ) @ Argument port_number: To indicate which port is read, DI_LOW_BYTE or DI_HIGH_BYTE. DI_LOW_BYTE: bit 0 ~ bit 7, DI_HIGH_BYTE: bit8 ~ bit15 data: return value from digital port.
main() { unsigned int data; int ch; _8216_Initial( CARD_1, 0x220 ); /* Assume NoError when Initialize ACL-8216 */ for( ch=0; ch<16; ch++ ) { _8216_DI_channel( ch , &data ); printf( "The value if DI channel %d is %d.\n" , ch , data ); } } 5.6 _8216_DO @ Description This function is used to write data to digital output ports. There are 16 digital outputs on the ACL-8216, they are divided by two ports, DO_LOW_BYTE and DO_HIGH_BYTE.
printf( "The high byte is now 0xAA.\n" ); } A more detailed example program is provided. ('DO_DEMO.C') 5.7 _8216_DA @Description This function is used to write data to D/A converters. There are two Digital-to-Analog conversion channels on the ACL-8216. The resolution of each channel is 12-bit, i.e. the range is from 0 to 4095.
5.8 _8216_AD_Input_Mode @Description This function is only useful for ACL-8216 ver. B series.This function is used to set A/D input mode to single-ended or differential mode. The default mode of A/D input is single-ended, so the A/D channel number can be set between 0 to 15. If the A/D mode is set as differential, the input channel can be selected from channel 0 to 7 only. You have to call this function before the A/D operation is processed.
5.9 _8216_AD_Set_Channel @ Description This function is used to set AD channel by means of writing data to the channel multiplexer register. There are 16 single-ended A/D channels in ACL-8216, so the channel number should be set between 0 to 15 only. The initial state is channel 0 which is a default setting by the ACL-8216 hardware configuration. @ Syntax int _8216_AD_Set_Channel( int ad_ch_no ) @ Argument ad_ch_no: channel number to perform AD conversion Single-ended mode: Channel no.
5.10 _8216_AD_Set_Range @ Description This function is used to set the A/D range by means of writing data to the A/D range control register. There are two factors will change the analog input range- Gain and Input type. The Gain can be choice from 1,2,4 and 8. The initial value of gain is '1' which is set by the ACL-8216 hardware. The relationship between analog input range and gain is specified by following tables: Input Range (V) ±5 V ±2.5 V ±1.25 V ±0.
5.11 _8216_AD_Set_Mode @ Description This function is used to set the A/D trigger and data transfer mode by means of writing data to the mode control register. The hardware initial state of the ACL-8216 is set as AD_MODE_1 software( internal) trigger with program polling data.
5.12 _8216_AD_Soft_Trig @ Description This function is used to trigger the A/D conversion by software. When the function is called, a trigger pulse will be generated and the converted data will be stored in the base address Base +4 and Base +5. @ Syntax int _8216_AD_Soft_Trig( void ) @ Argument None @ Return Code ERR_NoError ERR_BoardNoInit @ Example #include "8216.h" main() { _8216_Initial( CARD_1, 0x220 ); /* Assume NoError when Initialize ACL-8216 */ _8216_AD_Soft_Trig(); printf( "Now, AD is triggered.
5.13 _8216_AD_Acquire @ Description This function will set the A/D mode as AD_MODE_1 (Software trigger, Software polling), generate a software trigger to begin A/D conversion, then poll the A/D conversion data. It reads the 16-bit A/D data until the data is ready ('data ready' bit becomes low).
5.14 _8216_CLR_IRQ @ Description This function is used to clear interrupt request which requested by the ACL-8216. If you use interrupt to transfer A/D converted data, you should use this function to clear interrupt request status, otherwise no new coming interrupt will be generated. @ Syntax int _8216_CLR_IRQ( void ) @ Argument None @ Return Code ERR_NoError ERR_BoardNoInit @ Example #include "8216.
5.15 _8216_AD_DMA_Start @ Description The function will perform A/D conversion N times with DMA data transfer by using the pacer trigger ( internal timer trigger). It will takes place in the background which will not stop until the N-th conversion has completed or your program execute _8216_AD_DMA_Stop() function to stop the process. After executing this function, it is necessary to check the status of the operation by using the function _8216_AD_DMA_Status().
ERR_AD_InvalidGain, ERR_InvalidDMAChannel, ERR_InvalidIRQChannel, ERR_InvalidTimerValue @ Example See demo program 'AD_Demo4.
5.16 _8216_AD_DMA_Status @ Description Since the _8216_AD_DMA_Start function is executed in background, you can issue the function _8216_AD_DMA_Status to check its operation status. @ Syntax int _8216_AD_DMA_Status( int *status , int *count ) @ Argument status: status of the DMA data transfer 0: AD DMA is not completed 1: AD DMA is completed count: the number of A/D data which has been transferred. @ Return Code ERR_NoError ERR_BoardNoInit ERR_AD_DMANotSet @ Example See demo program 'AD_Demo4.C' 5.
5.18 _8216_AD_INT_Start @ Description The function will perform A/D conversion N times with interrupt data transfer by using pacer trigger. It takes place in the background which will not stop until the N-th conversion has completed or your program execute _8216_AD_INT_Stop() function to stop the process. After executing this function, it is necessary to check the status of the operation by using the function 8216_AD_INT_Status(). The function is perform on single A/D channel with fixed gain.
5.19 _8216_AD_INT_Status @ Description Since the _8216_AD_INT_Start() function is executed in background, you can issue the function _8216_AD_INT_Status to check the status of interrupt operation. @ Syntax int _8216_AD_INT_Status( int *status , int *count ) @ Argument status: status of the INT data transfer 0: A/D INT is completed 1: A/D INT is not completed count: current conversion count number. @ Return Code ERR_NoError ERR_BoardNoInit ERR_AD_INTNotSet @ Example See demo program 'AD_Demo2.C' 5.
5.21 _8216_AD_Timer @ Description This function is used to setup the Timer #1 and Timer #2. Timer #1 & #2 are used as frequency divider for generating constant A/D sampling rate dedicatedly. It is possible to stop the pacer trigger by setting any one of the dividers as 0. Because the AD conversion rate is limited to the conversion time of the AD converter, the highest sampling rate of the ACL-8216 can not be exceeded 100 KHz. Thus the multiplication of the dividers must be larger than 20.
5.22 _8216_Timer_Start @ Description The Timer #0 on the ACL-8216 can be freely programmed by the users. This function is used to program the Timer #0. This timer can be used as frequency generator if internal clock is used. It also can be used as event counter if external clock is used. All the 8254 mode are available.
5.24 _8216_Timer_Stop @ Description This function is used to stop the timer operation. The timer is set to the 'One-shot' mode with counter value ' 0 '. That is, the clock output signal will be set to high after executing this function. @ Syntax int _8216_Timer_Stop( unsigned int *counter_value ) @ Argument *counter_value: the current counter value of the Timer #0 @ Return Code ERR_NoError ERR_BoardNoInit @ Example See demo program 'TMR_DEMO.
6 Calibration & Utilities In data acquisition process, how to calibrate your measurement devices to maintain its accuracy is very important. Users can calibrate the analog input and analog output channels under the users' operating environment for optimizing the accuracy. This chapter will guide you to calibrate your ACL8216 to an accuracy condition. 6.
6.2 VR Assignment There are five variable resistors (VR) on the ACL-8216 board to allow you making accurate adjustment on A/D and D/A channels. The function of each VR is specified as Table 6.1. VR1 VR2 VR3 VR4 VR5 VR6 A/D bipolar offset adjustment A/D full scale adjustment D/A channel 1 full scale adjustment D/A channel 2 full scale adjustment A/D programmable amplifier offset adjustment D/A reference voltage adjustment Table 6.1 Function of VRs 6.3 A/D Adjustment 1.
6.4 D/A Adjustment There are two steps to calibrate the analog output channels, D/A 1 and D/A 2. The first step is to adjust the reference voltage, and the second step is to adjust each channel of D/A. 6.4.1 Reference Voltage Calibration 1. Set reference voltage as -5V ( the D/A reference voltage is selected by JP1, see section 2.11). 2. Connect VDM (+) to CN3 pin-11 ( V.REF) and VDM(-) to GND.Trim the variable resister VR6 to obtain -5V reading in the DVM.
Appendix A Demo Programs In the software CD, there are 8 demostration programs. These programs help you to program the application by using C language Library easily. The description of these programs are specified as following: AD_DEMO1.C: AD_DEMO2.C: AD_DEMO3.C: AD_DEMO4.C: DA_DEMO.C: DI_DEMO.C: DO_DEMO.C: TMR_DEMO.
Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the following carefully. 1. Before using ADLINK’s products please read the user manual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA application form which can be downloaded from: http://rma.adlinktech.com/policy/. 2. All ADLINK products come with a limited two-year warranty, one year for products bought in China.
4. • Damage caused by leakage of battery fluid during or after change of batteries by customer/user. • Damage from improper repair by unauthorized ADLINK technicians. • Products with altered and/or damaged serial numbers are not entitled to our service. • This warranty is not transferable or extendible. • Other categories not protected under our warranty. Customers are responsible for all fees necessary to transport damaged products to ADLINK.