AD7804/AD7805/AD7808/AD7809
REV. A–22–
MICROPROCESSOR INTERFACING
AD7804/AD7808–ADSP-2101/ADSP-2103 Interface
Figure 35 shows a serial interface between the AD7804/AD7808
and the ADSP-2101/ADSP-2103. The ADSP-2101/ADSP-
2103 should be set up to operate in the SPORT Transmit Alter-
nate Framing Mode. The ADSP-2101/ADSP-2103 SPORT is
programmed through the SPORT control register and should be
configured as follows: Internal Clock Operation, Active Low
Framing, 16-bit Word Length. Transmission is initiated by
writing a word to the TX register after the SPORT has been
enabled. The data is clocked out on each rising edge of the serial
clock and clocked into the AD7804/AD7808 on the falling edge
of the SCLK.
+5V
LDAC
ADSP-2101/
ADSP-2103*
CLKIN
DT
*ADDITIONAL PINS OMITTED FOR CLARITY
FSIN
SDIN
SCLK
AD7804*/
AD7808
TFS
FO
CLR
Figure 35. ADSP-2101/ADSP-2103 Interface
AD7804/AD7808–68HC11/68L11 Interface
Figure 36 shows a serial interface between the AD7804/AD7808
and the 68HC11/68L11 microcontroller. SCK of the 68HC11/
68L11 drives the CLKIN of the AD7804/AD7808, while the
MOSI output drives the serial data line of the DAC. The FSIN
signal is derived from a port line (PC7). The setup conditions
for correct operation of this interface are as follows: the
68HC11/68L11 should be configured so that its CPOL bit is a 0
and its CPHA bit is a 1. When data is being transmitted to the
DAC the FSIN line is taken low (PC7). When the 68HC11/
68L11 is configured as above, data appearing on the MOSI
output is valid on the falling edge of SCK. Serial data from the
68HC11/68L11 is transmitted in 8-bit bytes with only eight
falling clock edges occurring in the transmit cycle. Data is trans-
mitted MSB first. In order to load data to the AD7804/AD7808,
PC7 is left low after the first eight bits are transferred and a
second serial write operation is performed to the DAC and then
PC7 is taken high at the end of this procedure. In the diagram
shown LDAC and CLR are also controlled from the bit pro-
grammable lines of the 68HC11/68L11. The user can bring
LDAC low after every two bytes have been transmitted to up-
date that particular DAC which has been programmed or alter-
natively it is possible to wait until all the input registers have
been loaded before updating takes place.
LDAC
68HC11/68L11*
SDIN
SCK
*ADDITIONAL PINS OMITTED FOR CLARITY
FSIN
CLKIN
MOSI
AD7804*/
AD7808
PC7
PC6
PC5
CLR
Figure 36. AD7804/AD7808–68HC11/68L11 Interface
AD7804/AD7808–80C51/80L51 Interface
Figure 37 shows a serial interface between the AD7804/AD7808
and the 80C51/80L51 microcontroller. The setup for the inter-
face is as follows, TXD of the 80C51/80L51 drives CLKIN of
the AD7804/AD7808 while RXD drives the serial data line of
the part. The FSIN signal is again derived from a bit program-
mable pin on the port in this case port line P3.3 is used. When
data is to be transmitted to the part, P3.3 is taken low. Data on
RXD is valid on the falling edge of TXD. The 80C51/80L51
transmits data in eight bit bytes thus only eight falling clock
edges occur in the transmit cycle. To load data to the DAC,
P3.3 is left low after the first eight bits are transmitted and a
second write cycle is initiated to transmit the second byte of
data, P3.3 is taken high following the completion of this cycle.
The 80C51/80L51 outputs the serial data in a format which has
the LSB first. The AD7804/AD7808 requires its data with the
MSB as the first bit received. The 80C51/80L51 transmit rou-
tine should take this into account. In the diagram shown LDAC
and CLR are also controlled from the bit programmable lines of
the 80C51/80L51 port. The user can bring LDAC low after
every two bytes have been transmitted to update that particular
DAC which has been programmed or alternatively it is possible
to wait until all the input registers have been loaded before
updating takes place.
LDAC
80C51/80L51*
SDIN
TXD
*ADDITIONAL PINS OMITTED FOR CLARITY
FSIN
SCLK
RXD
AD7804*/
AD7808
P3.4
P3.5
P3.3
CLR
Figure 37. AD7804/AD7808–80C51/80L51 Interface
AD7804/AD7805/AD7808/AD7809
–23–REV. A
AD7805/AD7809–ADSP-2101 Interface
Figure 38 shows a parallel interface between the AD7805/AD7809
and the ADSP-2101/ADSP-2103 digital signal processor.
Fast interface timing allows the AD7805/AD7809 interface
directly to the DSP. In this interface an external timer is used to
update the DACs.
DATA BUS
A0 A1
CS
LDAC
WR
DMD0
DMD15
ADSP-2101*/
ADSP-2103*
TIMER
MODE
ADDR
DECODE
ADDRESS BUS
DMA0
DMA14
DMS
EN
WR
DB0
DB9
**ADDITIONAL PINS OMITTED FOR CLARITY
**A2 CONTAINED ON THE AD7809 ONLY
AD7805*/
AD7809
A2**
Figure 38. AD7805/AD7809–ADSP-2101/ADSP-2103
Interface
Data is loaded to the AD7805/AD7809 input register using the
following instruction:
DM(DAC) = MR0,
MR0 = ADSP-2101 MR0 Register.
DAC = Decoded DAC Address.
AD7805/AD7809–TMS32020 Interface
Figure 39 shows a parallel interface between the AD7805/AD7809
and the TMS32020 processor.
ADDR
DECODE
DATA BUS
ADDRESS BUS
A0 A1
CS
DB0
DB9
LDAC
A0
A15
IS
EN
D0
D15
TMS32020
WR
STRB
R/W
**ADDITIONAL PINS OMITTED FOR CLARITY
**A2 CONTAINED ON THE AD7809 ONLY
AD7805*/
AD7809
A2**
Figure 39. AD7805/AD7809–TMS32020 Interface
Again fast interface timing allows the AD7805/AD7809 inter-
face directly to the processor. Data is loaded to the AD7805/
AD7809 input latch using the following instruction:
OUT DAC, D.
DAC = Decoded DAC Address.
D = Data Memory Address.
Certain applications may require that the updating of the DAC
latch be controlled by the microprocessor rather than the exter-
nal timer. One option as shown in the TMS32020 interface is to
decode the LDAC from the address bus so that a write opera-
tion to the DAC latch (at a separate address to the input latch)
updates the output.
AD7805/AD7809–8051/8088 Interface
Figure 40 shows a parallel interface between the AD7805/
AD7809 and the 8051/8088 processors.
ADDRESS/DATA BUS
OCTAL
LATCH
MODE
WR
ALE
8051/8088
**ADDITIONAL PINS OMITTED FOR CLARITY
**A2 CONTAINED ON THE AD7809 ONLY
ADDR
DECODE
ADDRESS BUS
A0 A1
CS
AD7805*/
AD7809
A8
A15
PSEN OR DEN EN
LDAC
WR
AD7
AD0
A2**
DB0
DB9
Figure 40. AD7805/AD7809–8051/8088 Interface
AD7804/AD7805/AD7808/AD7809
REV. A–24–
APPLICATIONS
Opto-Isolated Interface for Process Control Applications
The AD7804/AD7808 has a versatile serial three-wire serial
interface making it ideal for generating accurate voltages in
process control and industrial applications. Due to noise, safety
requirements, or distance, it may be necessary to isolate the
AD7804/AD7808 from the controller. This can easily be
achieved by using opto-isolators which will provide isolation in
excess of 3 kV. The serial loading structure of the AD7804/
AD7808 makes it ideally suited for use in opto-isolated appli-
cations. Figure 41 shows an opto-isolated interface to the
AD7804/AD7808 where SDIN, CLKIN and FSIN are driven
from optocouplers. LDAC is hardwired low to reduce the number
of interface lines and this ensures that each DAC is updated follow-
ing the sixteenth serial clock of a write cycle.
AD7804/
AD7808
AV
DD
V
DD
1
V
OUT
A
V
OUT
B
V
OUT
C
V
OUT
D
AGNDDGND
LDAC
CLR
CLKIN
DV
DD
REFIN
0.1mF
10mF
REFOUT
+5V
REGULATOR
CLKIN
V
DD
10kV
FSINFSIN
SDIN
DATA
POWER
1 TO 10nF
V
DD
10kV
V
DD
10kV
Figure 41. AD7804/AD7808 Opto-Isolated Interface
Decoding Multiple AD7808s
The FSIN pin on the AD7808s can be used in applications to
decode a number of DACs. In this application all DACs in the
system receive the same serial clock and serial data, but only the
FSIN to one of the DACs will be active at any one time allowing
access to eight channels in this thirty-two channel system. The
74HC139 is used as a 2- to 4-line decoder to address any of the
DACs in the system. To prevent timing errors from occurring
the enable input should be brought to its inactive state while the
coded address inputs are changing state. Figure 42 shows a
system decoding multiple AD7808s in a multichannel system.
ENABLE
74HC139
AD7808
FSIN
SDIN
CLKIN
AD7808
FSIN
SDIN
CLKIN
AD7808
FSIN
SDIN
CLKIN
LDAC
LDAC
LDAC
SDIN
CLKIN
DGND
CODED
ADDRESS
1G
1A
1B
1Y0
1Y1
1Y2
1Y3
V
CC
V
DD
AD7808
FSIN
SDIN
CLKIN
LDAC
Figure 42. Decoding Multiple AD7808s Using the
FSIN
Pin
AD7805 As a Digitally Programmable Window Detector
A digitally programmable upper/lower limit detector using two
DACs in the AD7805 is shown in Figure 43. The upper and
lower limits for the test are loaded to DACs A and B that in
turn set the limits on the CMP04. If a signal at the V
IN
input is
not within the programmed window an LED will indicate the
fail condition. Only one limit detector is shown below but can
easily be adapted for a dual channel system by using the extra
DACs on the AD7805 and the two unused comparators on the
CMP04.
+5V
0.01mF
AD7805
AV
DD
DV
DD
V
OUT
A
V
OUT
B
V
OUT
C
V
OUT
D
AGNDDGND
LDAC
CLR
COMP
MODE
D9
D0
CS
WR
DV
DD
0.1mF
10mF
0.01mF
PASS/
FAIL
1kV
FAIL
1kV
PASS
1/2
CMP04
1/6
74HC05
V
IN
Figure 43. Digitally Programmable Window Detector

AD7808BRZ-REEL

Mfr. #:
Manufacturer:
Description:
Digital to Analog Converters - DAC 3.3V-5V Quad/ Octal 10-Bit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union