background image

 

 

 

 

 

 

 

  

N u D A Q

 

ACL-8216

 

16-bit High Resolution 

Data Acquisition Card 

User’s Guide

 

 

Summary of Contents for NuDAQ ACL-8216

Page 1: ...N u D A Q ACL 8216 16 bit High Resolution Data Acquisition Card User s Guide...

Page 2: ...ing 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...

Page 3: ......

Page 4: ...k Source Setting 13 2 10 IRQ Level Setting 14 2 11 D A Reference Voltage Setting 14 2 12 Connectors Pin Assignment 16 2 13 Daughter Board Connection 18 Chapter 3 Registers Format 21 3 1 I O Port Addre...

Page 5: ...6_AD_Set_Mode 50 5 12 _8216_AD_Soft_Trig 52 5 13 _8216_AD_Acquire 53 5 14 _8216_CLR_IRQ 54 5 15 _8216_AD_DMA_Start 54 5 16 _8216_AD_DMA_Status 57 5 17 _8216_AD_DMA_Stop 57 5 18 _8216_AD_INT_Start 59 5...

Page 6: ...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 Registers format desc...

Page 7: ......

Page 8: ...6 B I T C O U N T E R 1 1 6 B I T C O U N T E R 2 T O P A C E R T R I G 1 6 B I T D I G I T A L I N P U T R E G I S T E R 1 2 B i t C o d e L a t c h 1 6 c h a n n e l S i n g l e e n d e d A n a l o...

Page 9: ...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 ga...

Page 10: ...ling Interrupt DMA Analog Output D A Converter DAC7541 or equivalent monolithic multiplying Resolution 12 bit Number of channels 2 double buffered analog outputs Output Range Internal reference unipol...

Page 11: ...ption 5 V 420 mA maximum 12 V 240 mA maximum Dimension 163 mm L X 123mm W 1 4 Software Support 1 4 1 Programming Library For the customers who are writing their own programs we provide MS DOS Borland...

Page 12: ...ual 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...

Page 13: ...face 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...

Page 14: ...Installation 7 Figure 2 1 PCB Layout of the ACL 8216...

Page 15: ...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...

Page 16: ...s 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...

Page 17: ...10 Installation...

Page 18: ...Input Single ended default setting JP3 SINGLE DIFF JP3 SINGLE DIFF Figure 2 3 Analog Input Channels Configuration 2 7 DMA Channel Setting The A D data transfer of ACL 8216 is designed with DMA transf...

Page 19: ...rnal 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...

Page 20: ...rogrammable 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 intern...

Page 21: ...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...

Page 22: ...x t e r n a l D A C H 1 i s E x t e r n a l D A C H 2 i s I n t e r n a l ExtRef1 ExtRef1 ExtRef1 ExtRef2 ExtRef2 ExtRef2 J P 2 J P 2 J P 2 Figure 2 8 D A Voltage Setting The internal voltage is 5V o...

Page 23: ...for each connectors are illustrated in the Figure 3 1 Figure 3 3 CN 2 Digital Signal Input DI 0 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 DI 0 DI 2 DI 4 DI 6 DI 8 DI 10 DI 12 DI 14 GND 5V...

Page 24: ...14 AI12 AI11 AO1 A GND AI15 A GND ExtRef1 AO2 GATE0 GATE N C ExtCLK N C 5V ExtTrg COUT0 CN3 N C Figure 3 3a Pin Assignment of CN3 CN 3 Analog Input Output Counter Timer for differential connection AIH...

Page 25: ...he 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 ACL 8216 through 37 pin assemble cable The mos...

Page 26: ...Connect with ACLD 9185 The ACLD 9185 is a 16 channel SPDT relay output board This board is connected with CN2 of ACL 8216 via 20 pin flat cable by using this board you can control outside device thro...

Page 27: ......

Page 28: ...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...

Page 29: ...rsion is ready An DRDY bit is used to indicate the status of A D conversion DRDY goes to low level means A D conversion is completed Address BASE 4 and BASE 5 Attribute read only Data Format Bit 7 6 5...

Page 30: ...multiplexer switches to the new channel and await for conversion Address BASE 10 Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 10 X X CS 1 CS 0 CL 3 CL 2 CL 1 CL0 CLn multiplexer channel...

Page 31: ...D I CH0 X X 1 1 0 0 0 0 D I CH1 X X 1 1 0 0 0 1 D I CH2 X X 1 1 0 0 1 0 D I CH3 X X 1 1 0 0 1 1 D I CH4 X X 1 1 0 1 0 0 D I CH5 X X 1 1 0 1 0 1 D I CH6 X X 1 1 0 1 1 0 D I CH7 X X 1 1 0 1 1 1 S E Sin...

Page 32: ...et or power on The details of the A D operation is illustrated in Chapter 5 There are four operation modes shown as following Address BASE 11 Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE...

Page 33: ...enerated 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...

Page 34: ...used for digital output channels Address BASE 6 BASE 7 Attribute read only Data Format Bit 7 6 5 4 3 2 1 0 Base 6 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 Base 7 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 Address...

Page 35: ...X X X X DA11 DA10 DA9 DA8 DA0 is the LSB and DA11 is the MSB of the 12 bits data X don t care Note The D A registers are double buffered so that the D A analog output signals will not updated until th...

Page 36: ...ion Before programming the ACL 8216 to perform the A D conversion you should understand the following issues A D conversion procedure A D trigger mode A D data transfer mode Signal connection 4 1 1 A...

Page 37: ...ftware controllable in this mode That is the A D conversion starts when any value is written into the software trigger register BASE 12 This trigger mode is suitable for low speed A D conversion Under...

Page 38: ...e data is read out It is possible to read A D converted data without polling The A D conversion time will not excess 8 s on ACL 8216 card Hence after software trigger the software can wait for at leas...

Page 39: ...t connections from the appropriate D A output please refer the following figure To D A Output D A Converter Ref In 5 or 10 INT or Ext Analog GND Pin 30 AO0 Pin 32 AO1 Pin 14 A GND The operation of D A...

Page 40: ...igital 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 i...

Page 41: ...ile the gate can be controlled externally and the output is send to the connector CN3 As to counter 0 and counter 1 the clock source is internally fixed while the gate can be controlled externally and...

Page 42: ...pplications The clock source gate control signal and the output signal is send to the connector CN3 The general purpose timer counter can be used as event counter or used for measuring frequency or ot...

Page 43: ...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 C...

Page 44: ...Mode 3 Square Wave Rate Generator Mode 4 Software Triggered Strobe Mode 5 Hardware Triggered Strobe All detailed description of these six modes are written in Intel Microsystems Components Handbook Vo...

Page 45: ......

Page 46: ...needs license 5 1 Installation To install the DOS library software and utilities please follow the following installation procedures 1 Put ADLINK CD into the appropriate CD ROM drive 2 Type the follow...

Page 47: ...6_Initial int card_number int base_addresss 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 base_address The I O port...

Page 48: ...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 Return Code ERR_...

Page 49: ...ue from digital port Return Code ERR_NoError ERR_BoardNoInit ERR_PortError Example See demo program DI_DEMO C 5 5 _8216_DI _Channel Description This function is used to read data from digital input ch...

Page 50: ...t ports There are 16 digital outputs on the ACL 8216 they are divided by two ports DO_LOW_BYTE and DO_HIGH_BYTE The channel 0 to channel 7 are defined in DO_LOW_BYTE port and the channel 8 to channel...

Page 51: ...ital 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 Syntax int _8216_DA int da_ch_no unsigned int data Argument da_ch_no D A cha...

Page 52: ...C C Library 45 printf The output voltage of CH1 is 2 5V n _8216_DA CH_2 0xFFF printf The output voltage of CH2 is 5V n A more detailed example program is provided DA_DEMO C...

Page 53: ...A D operation is processed Syntax int _8216_Input_Mode int ad_mode Argument ad_mode SINGLE_ENDED the analog inputs are single ended mode DIFFERENTIAL the analog inputs are single ended mode Return Cod...

Page 54: ...al 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 en...

Page 55: ...48 C C Library...

Page 56: ...L 8216 hardware The relationship between analog input range and gain is specified by following tables Input Range V Gain Range Code 5 V X 1 0 2 5 V X 2 1 1 25 V X 4 2 0 625 V X 8 3 Syntax int _8216_AD...

Page 57: ...DMA Transfer AD_MODE_3 External Trigger DMA Transfer AD_MODE_4 External Trigger Interrupt Transfer AD_MODE_5 Software Trigger Interrupt Transfer AD_MODE_6 Timer Trigger Interrupt Transfer AD_MODE_7 No...

Page 58: ...C C Library 51...

Page 59: ...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 inc...

Page 60: ...ata Argument ad_data 16 bit A D converted value the value should within 32768 to 32767 Return Code ERR_NoError ERR_BoardNoInit ERR_AD_AquireTimeOut Example include aclerr h include 8216 h main intad_d...

Page 61: ...alize ACL 8216 _8216_CLR_IRQ clear IRQ if necessary 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 time...

Page 62: ...C C Library 55 int count int ad_buffer unsigned int c1 unsigned int c2...

Page 63: ...s should be the same as the setting of JP7 on hardware count the numbers of A D conversion ad_buffer the start address of the memory buffer to store the AD data the buffer size must large than the num...

Page 64: ...Init ERR_AD_DMANotSet Example See demo program AD_Demo4 C 5 17 _8216_AD_DMA_Stop Description This function is used to stop the DMA data transfer After executing this function the internal A D trigger...

Page 65: ...58 C C Library...

Page 66: ...t int ad_ch_no int ad_range int irq_ch_no int count int ad_buffer unsigned int c1 unsigned int c2 Argument ad_ch_no A D channel number ad_range A D range value irq_ch_no IRQ channel number used to tra...

Page 67: ...t ERR_AD_INTNotSet Example See demo program AD_Demo2 C 5 20 _8216_AD_INT_Stop Description This function is used to stop the interrupt data transfer function After executing this function the internal...

Page 68: ...f the ACL 8216 can not be exceeded 100 KHz Thus the multiplication of the dividers must be larger than 20 Syntax int _8216_AD_Timer unsigned int c1 unsigned int c2 Argument c1 frequency divider of tim...

Page 69: ...ed int c0 Argument timer_mode the 8253 timer mode the possible values are TIMER_MODE0 TIMER_MODE1 TIMER_MODE2 TIMER_MODE3 TIMER_MODE4 TIMER_MODE5 c0 the counter value of timer Return Code ERR_NoError...

Page 70: ...o 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...

Page 71: ......

Page 72: ...8216 card you should prepare some equipment s for the calibration Calibration program After finishing the DOS software installation a utility program 8216util exe exists in C ADLINK 8216 DOS UTIL dir...

Page 73: ...gnal to A D channel 1 and short the A D CH0 to Analog ground A GND 4 Trim VR1 until the reading of CH0 between 0000 0001 hex 5 Trim VR2 until the reading of CH1 between 7FFE 7FFF hex 6 Repeat step 4 a...

Page 74: ...egisters BASE 4 and BASE 5 3 Trim the variable resister VR3 to obtain 5V reading in the DVM D A CH2 calibration 1 Connect VDM to CN3 pin 32 AO2 and VDM to A GND 2 Write the digital value 0x0FFF into r...

Page 75: ......

Page 76: ...on uses software trigger and program data transfer AD_DEMO2 C A D conversion uses interrupt and program data transfer AD_DEMO3 C A D conversion uses DMA data transfer AD_DEMO4 C A D conversion uses mu...

Page 77: ......

Page 78: ...its specifications or if the serial number has been removed Seller does not assume any liability for consequential damages as a result from our products uses and in any event our liability shall not...

Reviews: