DAQ-1212ETM User's Manual


daq1212.jpg

Introduction


The DAQ-1212ETM is unique in its complement of 8 channels of both input and output, analog and digital, enabling multichannel DSP operations on a single plug-in board to the PC. Its features were designed for maximum value for use in embedded control systems, with digital I/O included on board for support of the system function.

Analog inputs

  • Eight channels of 12-bit conversion.
  • Op-amp buffered input.
  • Standard input range of +/- 5 volts (others on request).
  • Conversion rate of 500,000 conversions per second.
  • Random access control of channel sequence.
  • Direct access to converted data.
Analog outputs

  • Eight 12-bit analog output channels.
  • Standard output range of +/-10 volts (others on request).
  • Op-amp buffered output.
TTL inputs

  • Eight TTL-level inputs.
TTL outputs

  • Eight TTL-level outputs.
Other

  • 16-bit ISA bus interface (no wait states).
  • Visual BASIC control program included.
  • LabView drivers included.
  • DB-37 external interface connector.
  • Switch-selectable I/O address range (8 addresses).
  • Multiple boards OK.
  • All interface circuits socketed for ease of maintenance.
  • +/- 12 V and 5 V at the output connector for external devices.

A Note Regarding Accuracy

Please note that the DAQ-1212E has been designed to emphasize low noise operation, ease of use, reliability and reduced cost. The overall accuracy of any measurement system is best determined by actual measurements on-site that include the errors induced by cabling and any external circuits involved. The DAQ-1212E provides a stable and repeatable result that can be calibrated to the accuracy of an external reference with a simple maintenance program.

Installing the DAQ-1212E

Before installing the DAQ-1212E into an ISA bus socket, the address switch setting should be confirmed and changed if necessary. The switch sets the base address of an 8-address space required for direct communication with the various registers and functions of the DAQ-1212E.

ISA address bits A3 through A9 are compared with the upper seven switches of switch S1. An OFF switch setting corresponds with a logical '1' and an ON setting with a logical '0'. Switch 1 must always be set to ON. Switches 2-8 are set to match address 320 (hex) at time of manufacture, but may be changed as desired to any unused address.

 Base Address:  SW8  SW7  SW6  SW5  SW4  SW3  SW2  
 200 (HEX)  1  0  0  0  0  0  0  
 208  1  0  0  0  0  0  1  
 210  1  0  0  0  0  1  0  
 ...                
 320  1  1  0  0  1  0  0  (default setting)
 ... etc.                

When the address setting is acceptable, the DAQ-1212E may be installed in any spare ISA bus slot. Several interface and control programs are provided for the DAQ-1212E, but any program capable of reading and writing word transfers to/from the ISA-bus (16-bits) can be used for communications. It is only necessary to follow the protocol described below.

Internal Addressing

The listed addresses allow communication with the DAQ-1212E control and data registers.

 Address  Function
 Base  A/D
 Base+1  I/O
 Base+2  D/A LSB
 Base+6  D/A MSB

Note: All channel numbers are in the range of 0-7.

A/D Conversion

To perform an A/D conversion on a selected channel, simply write the channel number to the base address, then read the converted response at the same address. Because of a pipeline feature in the DAQ-1212E design, there is a two-sample delay when reading the converted data. This delay must be taken into account in the design of interface control programs. When sequentially sampling all channels, for example, the data for channel 3 would be read back after the command for channel 5 is sent. To read a single channel, write the channel number once and read three times, discarding the first two readings.

The DAQ-1212E performs the conversion in 2 microseconds, and the pipeline may be read with no wait states, so the maximum delay for a single reading is 2 microseconds plus the length of time required by your software to make two readings. An assembly language program could perform the entire process in less than 3 microseconds, making the DAQ-1212E the fastest economy-priced board on the market.

In applications that require several high speed measurements, there is no significant delay caused by the pipelining. Simply assign storage with the two-sample delay in mind.

D/A Conversion

Analog output control is slightly more complex than the analog input method. The 12-bit output value must be divided into two words. The lower 8-bits are written to the base address+2 and the high 4-bits to the base address+6. In both cases, the channel number is contained in the upper 4-bits of the 16-bit word written to the DAQ-1212E. In the BASIC language, the formatting can be performed in the following manner:

  • LSB = (Output MOD 256) + (Channel * &H1000)
  • MSB = INT(Output/256) + (Channel * &H1000)

The LSB is then written to the base address+2, the MSB is written to the base address+6 and the entire 12-bit data is transferred to the D/A converters by reading the base address+2.

For example, to write the hex value 38E to channel 6, we would proceed as follows:

The channel number is passed in the upper 4 bits of the control word, so it becomes 6000 (hex). Then we separate the msb (3) and the lsb (8E) and combine each one with the channel number. Thus, the word written to the lsb at base address+2 is 608E and the word written to the msb at base address+6 is 6003. We then read base address+2 to complete the transfer.

I/O Addressing

Control and communication with the digital inputs and outputs is the most direct of all. Simply write the output data to the base address+1 and read the input data from the same address.

In BASIC, we have:

  • OUT Base+1, Output_Data
  • Input_Data = INP(Base+1)

Configuration

There are no software-configurable controls on the DAQ-1212E board. Various in-put and output voltage ranges and gains are available on special order, but are fixed by resistor selection and cannot be changed by the operating program. Applications that require run-time control of these functions are served by the DAQ-1212C.

Interrupts

The DAQ-1212E does not support interrupts. Applications that require interrupt support are served by the DAQ-1212C.

DMA Access

The DAQ-1212E does not support Direct Memory Access. Future versions of the DAQ-1212 family will provide this and other functions, as requested.

Connector Pin Definitions

There is a single DB-37 connector provided for access to all functions of the DAQ-1212E. The definitions are identical to those for the DAQ-1212A,B, and C.

 Pin  Function  Pin  Function
 1  +12V  20  +5V
 2  -12V  21  Ground
 3  Analog input 1  22  Analog input 2
 4  Analog input 3  23  Analog input 4
 5  Analog input 5  24  Analog input 6
 6  Analog input 7  25  Analog input 8
 7  Not used  26  Analog output 1
 8  Analog output 2  27  Analog output 3
 9  Analog output 4  28  Analog output 5
 10  Analog output 6  29  Analog output 7
 11  Analog output 8  30  TTL out 1
 12  TTL out 2  31  TTL out 3
 13  TTL out 4  32  TTL out 5
 14  TTL out 6  33  TTL out 7
 15  TTL out 8  34  TTL input 1
 16  TTL input 2  35  TTL input 3
 17  TTL input 4  36  TTL input 5
 18  TTL input 6  37  TTL input 7
 19  TTL input 8    

Support Products

Several support products for test and maintenance of the DAQ-1212E are available from the manufacturer. These include a loop-back test board that uses the analog outputs to test and calibrate the analog inputs (with a calibration-quality voltmeter), and ties the digital outputs to the digital inputs, as well.

Software

The following programs are included with the DAQ-1212E at no cost. They are primarily intended for use in test and evaluation, as well as to provide examples of tested communications techniques. Documented source code is included for all programs.

DAQ1212E.qlb is a QuickBASIC "quick library" file that provides the ability to read and write 16-bit integers to the ISA bus from QuickBASIC programs.

DAQ1212E.bas is a test program that allows the user to access all functions of the DAQ-1212E under manual control.

DAQ12AT.bas is an acceptance test program that provides the necessary setups to test and calibrate all functions of the DAQ-1212E. It uses the loop-back test board or equivalent connection to connect the analog and digital outputs to their respective inputs.

Through use of this program, it is possible to test the range, linearity and noise level of the analog inputs, to clear all analog outputs to maximum negative or half scale, to set individual output values, and to read individual input values.

This program is supplied in text form to serve as a maintenance tool as well as to provide a guide for user-written programs. The necessary library is included as a ".qlb" file as well as in assembly source code. The assembly code appears as "wordin.asm" and "wordout.asm".

A "C" language library is in preparation to provide basic functions such as "read_A2D()", "write_D2A()", "init_D2A()" etc. Please contact the factory regarding availability.

Copyright © Diva Automation
Last Updated: October 5, 2007