Input-Output Head (A2057) Manual

© 2004, Mike Bradshaw, © 2008 Kevan Hashemi, Brandeis University.
alignment.hep.brandeis.edu

Contents

Description
Connectors
Command Bits
Analog Inputs
Voltmeter Instrument
Analog Outputs
Electronics

Description

The Input-Output Head (A2057) is a LWDAQ device that provides two general-purpose analog inputs, two analog outputs with eight-bit resolution, and four open-drain logic outputs.


Figure: The Input-Output Head (A2057) with A205701F circuit board.

The Laboratory I/O Head (A2057A) uses the A205701F circuit board. It provides three 4-way plugs for the inputs and outputs, as well as a grid of holes for additional circuits and connectors.


Figure: The Voltmeter (A2057V) on the A205701G printed circuit board.

The The Voltmeter Head (A2057V) uses the A205701G circuit board. It provides two BNC plugs for the two analog inputs, allowing them to be used with oscilloscope probes. Two 4-way plugs provide four digital outputs and two analog outputs. The A2057V works with the Voltmeter Instrument, and comes in a rugged enclosure for use in the lab.


Figure: Voltmeter in Enclosure.

The enclosure as shown does not give external acess to the digital outputs or the analog outputs. We can cut a hole in the enclosure to reach these connections if we like, or simply remove the board from its enclosure alltogether.

Connectors

All plugs on the A2057 are mis-named as sockets on the printed circuit boards and in the schematics. They should be identified as Pn instead of Jn. The four-way shrouded plugs are 0.1" pitch headers, part number 70543-0003 from Molex-Waldom. To mate with these connectors, we use crimp terminal 16-02-0096 and four-way crimp housing 50-57-9004. Pin one (1) on each plug is on the left when looking from the nearest board edge, and is identified also by a square pad.

The A2057A and A2057V use the A205701F and A205701G printed circuit boards respectively. These circuit boards differ in layout and in the presentation of the analog inputs. The A2057A provides two analog inputs on a four-way plug with the following pin assignments.

PinFunction
1X1
20V
3X2
40V
Table: Pinout J2 on the A2057A. The X1 and X2 signals are the analog inputs.

The A2057V replaces connector J2 with two BNC plugs named J5 and J6. These provide connection to X1 and X2 respectively.

PinFunction
1Y1
20V
3Y2
40V
Table:Pinout of J3 on A2057A and A2057V. The Y1 and Y2 signals are the analog outputs.

The A2057A and A2057V provide the same pinout for J3 and J4.

PinFunction
1OUT1
2OUT2
3OUT3
4OUT4
Table:Pinout of J4 on A2057A and A2057V.

Command Bits

The table below gives the assignment of LWDAQ command bits to the A2057 functions.

DC16DC15DC14DC13DC12DC11DC10DC9DC8DC7DC6DC5DC4DC3DC2DC1
DINSCLKFSGSELDAC2DAC1ON4ON3WAKELBON2ON1!OUT4!OUT3!OUT2!OUT1
Table: Command Bit Allocation. An exclamation mark means negative-true.

To determine the command word that will implement a particular operation on the A2057, write out sixteen bits in a row, starting with bit sixteen (DC16) on the left, and ending with bit one (DC1) on the right. Set each bit to zero or one as you require. The left-most four bits form the most significant nibble of the sixteen-bit command word. The right-most four bits are the least significant nibble. Translate each nibble into a hex digit, and you have the hex version of the command word.

The A2057 provides four analog input channels which are internally multiplexed together, passed through several op-amp gain stages, and sent to the driver as a low voltage differential signal for 16-bit analog to digital conversion. The user may use two of the input channels(ON1,ON2) to acquire the desired voltage source. The two remaining input channels,ON3 and ON4, are connected to 0V and 5V respectively. These are used as reference channels for the A2057's self-calibration. The user may choose one of two gains to apply to the input signals, ×1 and ×10, using the GSEL command bit.

The two input channels, ON1 and ON2, can accept signals of ±15V, and no greater than 10kHz, limited by 16-bit ADC and 10kHz low pass filter on the driver.

The A2057 uses two Texas Instrument's TLV5623 8-bit digital-to-analog converters. The output of each DAC is passed through an adjustable op-amp gain stage.

The A2057 uses four NDS355AN n-channel mosfets. When OUTn is asserted, signal OUT1 will be open-circuit. When OUTn is unasserted, OUT1 will be connected to 0V by a 0.1Ω resistance. For OUT1 to be asserted, we must set the !OUT1 bit (also called DC1) to zero.

Analog Inputs

Here are the data acquisition steps required to read out the A2057 inputs.

  1. Plug one end of a CAT-5 cable into the A2057 connector J1, and the other end into a driver socket. Take note of selected driver socket.
  2. Connect a signal source to the A2057. For A205701F: Plug a cable into the J2 Molex connector and attach the other end to a signal source. For A205701G: Plug a x10 scope probe into one or both of the J5, J6 BNC connectors, and attach the other end to a signal source. Take note of which of the selected connector
  3. Tell the driver which driver socket is being used.
  4. Compose a command word which asserts some variation of the following bits: WAKE, LB, ON1, ON2, ON3, ON4, GSEL. The WAKE and LB bits must be asserted for operation. Bits ON1, ON2, ON3, ON4 are channel specific, and of these four only one may be asserted, the rest must be unasserted. The GSEL bit left unasserted corresponds to x1 gain, while GSEL asserted corresponds to x10 gain. For example the command word for input channel 1, gain ×1 is as follows: 0000000011010000.
  5. To utilize the A2057's ability to self-calibrate, the user may select voltage reference channels ON3 and ON4. ON3 selects the 0V reference channel, ON4 selects the 5V reference channel.
  6. Execute the following LWDAQ driver device jobs:
    1. Set the RAM data address to 0.
    2. Execute a command job with the command word composed earlier.
    3. Repeat step 2 for each reference channel.
    4. Set repeat counter.
    5. Set delay timer.
    6. Execute adc16_job. Data is now stored in ram.
    7. Read data from RAM.

Voltmeter Instrument

The LWDAQ software provides the Voltmeter Instrument for use with the A2057V.


Figure: Voltmeter Panel from LWDAQ Software.

The Voltmeter allows us to read the analog inputs and set the digital outputs. But it does not allow us to set the analog outputs.

Analog Outputs

The outputs of the two DACs are located on connector J3 as described above. The Voltemeter Instrument allows us to read the A2057's analog inputs and set its digital outputs. But it does not allow us to set the analog outputs. To set the analog outputs, we must send a sequence of commands to the A2057's 8-bit DACs. These commands control the DAC serial data input and serial clock directly, and so clock in a new sixteen-bit DAC word, of which eight bits dictate the analog output from the TLV5623 eight-bit DAC. Do not confuse the 16-bit LWDAQ command with the 16-bit DAC control word. We use a sequence of LWDAQ commands to send a single DAC control word.

The first four bits of the DAC's sixteen-bit control word are control bits. The next eight bits are the DAC value. The final four bits are all zeroes. The A2057 uses six command bits to control the DACs. These bits are DIN (DC16), SCLK (DC15), FS (DC14), DAC2 (DC13), DAC1 (DC11), and WAKE (DC8). The DAC1 and DAC2 bits select which DAC to use. Only one should be asserted at a time. The WAKE bit must be asserted to provide power to the A2057. The FS bit is called Frame Sync, and must be asserted once at the beginning of each data word transfer, and once again at the end of each data word transfer. The DIN bit is the serial data bit for the DACs. The rising edge of SCLK clocks DIN into the selected DAC.

A sixteen-bit control transmission to a DAC requires a total of 35 LWDAA command transmissions, which takes 140 μs. The maximum square-wave output frequency of the DACs is 3.5 kHz. The list below gives an example command word sequence that sends one control word to DAC1. The DAC integer value is 6, or binary 00000110. We give the LWDAQ commands as hex values. Note that the most significant nibble pulses SCLK, and the last three nibbles stay the same for a given DAC.

  1. Setup: $2080
  2. Setup: $2480
  3. Data Word Bit 15 (X): $4480
  4. Data Word Bit 15 (X): $0480
  5. Data Word Bit 14 (SPD): $4480
  6. Data Word Bit 14 (SPD): $0480
  7. Data Word Bit 13 (PWR): $4480
  8. Data Word Bit 13 (PWR): $0480
  9. Data Word Bit 12 (X): $4480
  10. Data Word Bit 12 (X): $0480
  11. Data Word Bit 11 (DAC value bit 8): $4480
  12. Data Word Bit 11 (DAC value bit 8): $0480
  13. Data Word Bit 10 (DAC value bit 7): $4480
  14. Data Word Bit 10 (DAC value bit 7): $0480
  15. Data Word Bit 9 (DAC value bit 6): $4480
  16. Data Word Bit 9 (DAC value bit 6): $0480
  17. Data Word Bit 8 (DAC value bit 5): $4480
  18. Data Word Bit 8 (DAC value bit 5): $0480
  19. Data Word Bit 7 (DAC value bit 4): $4480
  20. Data Word Bit 7 (DAC value bit 4): $0480
  21. Data Word Bit 6 (DAC value bit 3): $C480
  22. Data Word Bit 6 (DAC value bit 3): $8480
  23. Data Word Bit 5 (DAC value bit 2): $C480
  24. Data Word Bit 5 (DAC value bit 2): $8480
  25. Data Word Bit 4 (DAC value bit 1): $4480
  26. Data Word Bit 4 (DAC value bit 1): $0480
  27. Data Word Bit 3 (0): $4480
  28. Data Word Bit 3 (0): $0480
  29. Data Word Bit 2 (0): $4480
  30. Data Word Bit 2 (0): $0480
  31. Data Word Bit 1 (0): $4480
  32. Data Word Bit 1 (0): $0480
  33. Data Word Bit 0 (0): $4480
  34. Data Word Bit 0 (0): $0480
  35. End Transfer: $2080

The DACs' outputs feed into their own adjustable gain op-amp stage. The A2057 is built with x1 gain. The user may adjust the gain by choosing values of resistors which provide the appropriate gain according to the equations found on Page 6 of the schematic.

Electronics

Note: All our schematics and Gerber files are distributed under the GNU General Public License. Here are the six pages of the A2057 circuit diagram:
Page 1: LVDS Transceiver
Page 2: Command Receiver
Page 3: Input Signal Buffers
Page 4: Input Signal Readout 1
Page 5: Input Signal Readout 2/Digital-to-Analog Converters
Page 6: DAC Adjustable Gain Op-Amps

Printed circuit board files:
A205701F: Input-Output Head
A205701G: Voltmeter Head