Datasheet
AD7804/AD7805/AD7808/AD7809
–19–REV. A
Table IX. Offset Binary Code Table for Sub DAC
Digital Input Analog Output
MSB . . . LSB
11111111 V
BIAS
/16 × 127/256
11111110 V
BIAS
/16 × 126/256
10000001 V
BIAS
/16 × 1/256
10000000 0
01111111 –V
BIAS
/16 × 1/256
00000001 –V
BIAS
/16 × 127/256
00000000 –V
BIAS
/32
127
3
V
BIAS
128 32
V
BIAS
32
0
DAC OUTPUT VOLTAGE
00 01
DAC INPUT CODE
7F 80 81
FE
FF
Figure 26. Sub DAC Output Voltage vs. DAC Input Codes
(HEX) for Offset Binary Coding
Configuring the AD7804/AD7808 for Offset Binary Coding
Figure 27 shows a typical configuration for the AD7804/AD7808.
This circuit can be used for both 3.3 V or 5 V operation and
uses an external AD589 as the reference for the part and serial
interfacing with offset binary coding is used. The MX1 and
MX0 bits in the system control register have to be set to enable
selection of the AD589 as the reference. The following are the
steps required to operate the DACs in this part. Figures 4 to 7
show the contents of the registers on the AD7804/AD7808.
AD589
0.01mF
AD7804/
AD7808
AV
DD
DV
DD
V
OUT
A
V
OUT
B
V
OUT
C
V
OUT
D
AGND
DGND
LDAC
CLR
COMP
SDIN
FSIN
DV
DD
REFIN
REFOUT
0.1mF
0.1mF
10mF
0.01mF
SERIAL
INTERFACE
+3.3V/+5V
6.8kV
CLKIN
Figure 27. Typical Configuration for AD7804/AD7808
Using an AD589 1.23 V Reference for the AD7804/AD7808
System Control Register Serial Write:
Write 0060 Hex Mode bits select system control register
and configure system for offset binary
coding and normal operation.
Channel Control Register Serial Write:
Write 4210 Hex Mode bits select channel control register,
channel A is configured for operation with
external reference.
Main DAC Data Register Serial Write:
Write 23FF Hex This 16-bit write selects writing to channel
A and writes full scale to the Main DAC.
Sub DAC Data Register Serial Write:
Write A3FF Hex This 16-bit write selects writing to channel
A Sub DAC and writes full scale to the
Sub DAC.
Table VIII and Figure 25 show the analog outputs available for
the above configuration when writing to the Main DAC only
while Table IX and Figure 26 show the contributions from the
Sub DAC to the overall transfer function. The total output for a
single channel when using offset binary coding is the sum of that
from the Main DAC and the Sub DAC.
V
OUT
= V
OUT
' + V
OUT
"
= V
BIAS
+ 1.875 × V
BIAS
× ((NA-512)/1024) + V
BIAS
/16
= × [(NB-128)/256]
= V
BIAS
× (1 + 1.875 × ((NA-512)/1024) + (NB-128)/
4096)
where NA ranges from 0 to +1023 and NB ranges from 0 to
+255. Figure 28 shows a pictorial view of the transfer function
for any DAC channel.