2002 Diamond Systems Corp. Diamond-MM User Manual V2.2 Page 19
10. ANALOG OUTPUT RANGES AND RESOLUTION
10.1 Description
Diamond-MM uses a two-channel 12-bit D/A converter (DAC) to provide two analog outputs.
A 12-bit DAC can generate output voltages with the precision of a 12-bit binary number. The
maximum value of a 12-bit binary number is 2
12
- 1, or 4095, so the full range of numerical
values that you can write to the analog outputs on Diamond-MM is 0 - 4095.
These outputs operate in unipolar mode only; all output voltages greater than or equal to 0V.
The outputs are preset for 0-5V, but the range can be adjusted to any value between 0V and
10V on the board. In addition an external voltage can be applied to either of the two
reference inputs to provide custom ranges for each channel.
⇒⇒ Note: In this manual, the terms analog output, D/A, and DAC are all used interchangeably
to mean the same thing.
10.2 Resolution
The resolution is the smallest possible change in output voltage. For a 12-bit DAC the
resolution is 1/(2
12
), or 1/4096, of the full-scale output range. This smallest change results
from an increase or decrease of 1 in the D/A code, and so this change is referred to as 1
LSB, or 1 least significant bit. The value of this LSB is calculated as follows:
1 LSB = Full-scale output voltage / 4096
Example: Full-scale output voltage = 5V
1 LSB = 5V / 4096 = 1.22mV
10.3 Full-Scale Voltage Selection
Header J8, located in the center of the board, is used to select the full-scale voltage, or
reference voltage, for each analog output. The right column of 3 pins controls the reference
source for output channel 0, and the left column of 3 pins controls the reference source for
output channel 1. If a jumper is inserted over the middle and bottom pins, the reference for
the corresponding channel is the on-board analog output reference. If the jumper is inserted
over the middle and top pins, the reference for the corresponding channel comes from the
I/O header. Pin 26 is the reference input for channel 0, and pin 28 is the reference input for
channel 1. Note that each channel can have its own reference source. For example, channel
0 could use the on-board reference while channel 1 uses an external reference, or both
channels could use a different external reference.
Potentiometer R4 is used to control the on-board analog output reference voltage. It is preset
to -5V. However, you can adjust this potentiometer to change the full-scale output range of
both D/A channels without using an external reference input. The on-board reference voltage
may be adjusted to any voltage between 0V and -10V. To make the adjustment, first move
the jumper in J7 (above the D/A converter IC and near the I/O header) so that it is over the
middle and right pins. Then connect a voltmeter to pin 18 on the I/O header. Now adjust R4
to get the voltage you want.
⇒⇒ Note: The analog output reference voltage must be a negative voltage. This is because
the D/A converters invert the reference voltage as part of their operation.