AD7849
Rev. C | Page 15 of 20
Other Output Voltage Ranges
In some cases, users may require output voltage ranges other than
those already mentioned. One example is systems that need the
output voltage to be a whole number of millivolts (that is,1 mV or
2 mV). If the circuit shown in Figure 22 is used, then the LSB size is
125 μV. This makes it possible to program whole millivolt values at
the output. Table 9 shows the code table for the circuit shown in
Figure 22.
V
DD
V
CC
V
REF+
V
OUT
V
OUT
(0V TO 8.192V)
DGND
V
REF–
AD7849*
AD584
SIGNAL
GND
1
*ADDITIONAL PINS OMITTED FOR CLARITY.
8
4
R
OFS
AGND
R2
R1
8.192V
+15
V
+5
V
01008-023
Figure 22. 0 V to 8.192 V Output Range
Table 9. Code Table for Figure 22
Binary Number in DAC Latch
MSB LSB Analog Output (V
OUT
)
1111 1111 1111 1111 8.192 V (65,535/65,536) = 8.1919 V
1000 0000 0000 0000 8.192 V (32,768/65,536) = 4.096 V
0000 0000 0000 1000 8.192 V (8/65,536) = 0.001 V
0000 0000 0000 0100 8.192 V (4/65,536) = 0.0005 V
0000 0000 0000 0010 8.192 V (2/65,536) = 0.00025 V
0000 0000 0000 0001 8.192 V (1/65,536) = 0.000125 V
Table 9 assumes a 16-bit resolution; 1 LSB = 8.192 V/2
16
= 125 μV.
Generating a ±5 V Output Range from a Single +5 V
Reference
Figure 23 shows how to generate a ±5 V output range when
using a single +5 V reference. V
REF−
is connected to 0 V, and R
OFS
is connected to V
REF+
. The 5 V reference input is applied to these
pins. With all 0s loaded to the DAC, the noninverting terminal
of the output stage amplifier is at 0 V, and V
OUT
is the inverse of
V
REF+
. With all 1s loaded to the DAC, the noninverting terminal of
the output stage amplifier is 5 V and, therefore, V
OUT
is also 5 V.
R
OFS
V
DD
V
CC
V
REF+
V
OUT
V
OUT
(–5V TO +5V)
DGND
V
REF–
V
SS
–15V
AD7849*
R1
10k
AD586
C1
1nF
SIGNAL GND
6
8
4
5
*
ADDITIONAL PINS OMITTED FOR CLARITY.
2
AGND
+15
V
+5
V
01008-024
Figure 23. Generating a ±5 V Output Range from a Single +5 V
MICROPROCESSOR INTERFACING
Microprocessor interfacing to the AD7849 is via a serial bus
that uses standard protocol compatible with DSP processors
and microcontrollers. The communications channel requires a
3-wire interface consisting of a clock signal, a data signal, and a
synchronization signal. The AD7849 requires a 16-bit data-word
with data valid on the falling edge of SCLK. For all the interfaces,
the DAC update can be done automatically when all data is
clocked in, or it can be done under control of
LDAC
.
Figure 24 through Figure 27 show the AD7849 configured for
interfacing to a number of popular DSP processors and
microcontrollers.
AD7849-to-DSP56000 Interface
A serial interface between the AD7849 and the DSP56000 is
shown in Figure 24. The DSP56000 is configured for normal
mode asynchronous operation with a gated clock. It is also
setup for a 16-bit word with SCK and SC2 as outputs and the
FSL control bit set to 0. SCK is internally generated on the
DSP56000 and applied to the AD7849 SCLK input. Data from
the DSP56000 is valid on the falling edge of SCK. The SC2 output
provides the framing pulse for valid data. This line must be
inverted before being applied to the
SYNC
input of the . AD7849
In this interface, an
LDAC
pulse generated from an external timer
is used to update the outputs of the DAC. This update can also
be produced using a bit programmable control line from the
DSP56000.
DSP56000
SCK
STD
SC2
AD7849*
LDAC
SCLK
SDIN
SYNC
*ADDITIONAL PINS OMITTED FOR CLARITY.
TIMER
01008-029
Figure 24. AD7849-to-DSP56000 Interface
AD7849
Rev. C | Page 16 of 20
Figure 26 shows the
LDAC
input of the being driven
from another bit programmable port line (PC1). As a result, the
DAC can be updated by taking
AD7849
LDAC
low after the DAC input
register has been loaded.
AD7849-to-TMS320C2x Interface
Figure 25 shows a serial interface between the AD7849 and the
TMS320C2x DSP processor. In this interface, the CLKX and
FSX signals for the TMS320C2x should be generated using
external clock/timer circuitry. The FSX pin of the TMS320C2x
must be configured as an input. Data from the TMS320C2x is
valid on the falling edge of CLKX.
68HC11*
PC0
SCK
MOSI
PC1
AD7849*
LDAC
SCLK
SDIN
SYNC
*ADDITIONAL PINS OMITTED FOR CLARITY.
01008-025
TMS320C2x
FSX
CLKX
DX
AD7849*
LDAC
SCLK
SDIN
SYNC
*
ADDITIONAL PINS OMITTED FOR CLARITY.
CLOCK/TIMER
01008-030
Figure 26. AD7849-to-68HC11 Interface
AD7849-to-87C51 Interface
A serial interface between the AD7849 and the 87C51
microcontroller is shown in Figure 27. TXD of the 87C51 drives
SCLK of the AD7849, while RXD drives the serial data line of
the part. The
SYNC
signal is derived from the P3.3 port line,
and the
LDAC
line is driven from the P3.2 port line.
Figure 25. AD7849-to-TMS320C2x Interface
The clock/timer circuitry generates the
LDAC
signal for the
to synchronize the update of the output with the serial
transmission. Alternatively, the automatic update mode can be
selected by connecting
AD7849
LDAC
to DGND.
The 87C51 provides the LSB of its SBUF register as the first bit
in the serial data stream. Therefore, ensure that the data in the
SBUF register is arranged correctly so that the most significant
bits are the first to be transmitted to the AD7849, and the last
bit to be sent is the LSB of the word to be loaded to the AD7849.
When data is transmitted to the part, P3.3 is taken low. Data on
RXD is valid on the falling edge of TXD. The 87C51 transmits
its serial data in 8-bit bytes, with only eight falling clock edges
occurring in the transmit cycle. To load data to the AD7849, P3.3 is
left low after the first eight bits are transferred, and a second byte of
data is then transferred serially to the AD7849. When the second
serial transfer is complete, the P3.3 line is taken high.
AD7849-to-68HC11 Interface
Figure 26 shows a serial interface between the AD7849 and the
68HC11 microcontroller. SCK of the 68HC11 drives SCLK of
the AD7849, while the MOSI output drives the serial data line
of the AD7849. The
SYNC
signal is derived from a port line
(PC0 shown).
For correct operation of this interface, the 68HC11 should be
configured such that its CPOL bit is a 0 and its CPHA bit is a 1.
When data is transmitted to the part, PC0 is taken low. When
the 68HC11 is configured like this, data on MOSI is valid on the
falling edge of SCK. The 68HC11 transmits its serial data in 8-bit
bytes with only eight falling clock edges occurring in the transmit
cycle. To load data to the AD7849, PC0 is left low after the first
eight bits are transferred, and a second byte of data is then
transferred serially to the AD7849. When the second serial
transfer is complete, the PC0 line is taken high.
Figure 27 shows the
LDAC
input of the driven from
the bit programmable P3.2 port line. As a result, the DAC output
can be updated by taking the
AD7849
LDAC
line low following the
completion of the write cycle. Alternatively,
LDAC
can be
hardwired low, and the analog output is updated on the 16th
falling edge of TXD after the
SYNC
signal for the DAC goes low.
87C51*
P3.3
TXD
RXD
P3.2
AD7849*
LDAC
SCLK
SDIN
SYNC
*ADDITIONAL PINS OMITTED FOR CLARITY.
01008-026
Figure 27. AD7849-to-87C51 Interface
AD7849
Rev. C | Page 17 of 20
APPLICATIONS INFORMATION
OPTO-ISOLATED INTERFACE
In many process control applications, it is necessary to provide
an isolation barrier between the controller and the unit being
controlled. Opto-isolators can provide voltage isolation in
excess of 3 kV. The serial loading structure of the AD7849
makes it ideal for opto-isolated interfaces because the number
of interface lines is kept to a minimum.
Figure 28 shows a 4-channel isolated interface using the AD7849.
The DCEN pin must be connected high to enable the daisy-chain
facility. Four channels with 14-bit or 16-bit resolution are provided
in the circuit shown, but this can be expanded to accommodate
any number of DAC channels without any extra isolation circuitry.
The only limitation is the output update rate. For example, if an
output update rate of 10 kHz is required, then all DACs must be
loaded and updated in 100 μs. Operating at the maximum clock
rate of 5 MHz means that it takes 3.2 μs to load a DAC. This means
that the total number of channels for this update rate is 31, which
leaves 800 ns for the
LDAC
pulse. Of course, as the update rate
requirement decreases, the number of possible channels increases.
The sequence of events to program the output channels in
Figure 28 is as follows:
1. Ta ke t he
SYNC
line low.
2. Transmit the data as four 16-bit words. A total of 64 clock
pulses is required to clock the data through the chain.
3. Ta ke t he
SYNC
line high.
4. Pulse the
LDAC
line low. This updates all output channels
simultaneously on the falling edge of
LDAC
.
To reduce the number of optocouplers, the
LDAC
line can be
driven from one shot that is triggered by the rising edge on the
SYNC
line. A low level pulse of 100 ns duration or greater is all
that is required to update the outputs.
V
DD
V
DD
V
DD
V
DD
DATA OUT
CLOCK OUT
SYNC OUT
CONTROL OUT
CONTROLLER
V
OUT
A
V
OUT
B
V
OUT
C
V
OUT
D
5V
QUAD OPTO-COUPLER
*ADDITIONAL PINS OMITTED FOR CLARITY.
LDAC
SDIN
V
OUT
DCEN
SDOUT
AD7849*
5V
LDAC
SDIN
V
OUT
DCEN
SDOUT
AD7849*
5V
LDAC
SDIN
V
OUT
DCEN
SDOUT
AD7849*
5V
SCLK
SYNC
LDAC
SDIN
V
OUT
DCEN
SDOUT
AD7849*
01008-031
SCLK
SYNC
SCLK
SYNC
SCLK
SYNC
Figure 28. 4-Channel Opto-Isolated Interface

AD7849ARZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Digital to Analog Converters - DAC Serial Input 14B/16B
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union