AD7854/AD7854L
22
REV. B
System Gain and Offset Interaction
The architecture of the AD7854/AD7854L leads to an interac-
tion between the system offset and gain errors when a system
calibration is performed. Therefore it is recommended to perform
the cycle of a system offset calibration followed by a system gain
calibration twice. When a system offset calibration is performed,
the system offset error is reduced to zero. If this is followed by a
system gain calibration, then the system gain error is now zero,
but the system offset error is no longer zero. A second sequence
of system offset error calibration followed by a system gain cali-
bration is necessary to reduce system offset error to below the
12-bit level. The advantage of doing separate system offset and
system gain calibrations is that the user has more control over
when the analog inputs need to be at the required levels, and the
CONVST signal does not have to be used.
Alternatively, a system (gain + offset) calibration can be per-
formed. At the end of one system (gain + offset) calibration, the
system offset error is zero, while the system gain error is reduced
from its initial value. Three system (gain + offset) calibrations
are required to reduce the system gain error to below the 12-bit
error level. There is never any need to perform more than three
system (gain + offset) calibrations.
In bipolar mode the midscale error is adjusted for an offset cali-
bration and the positive full-scale error is adjusted for the gain
calibration; in unipolar mode the zero-scale error is adjusted for
an offset calibration and the positive full-scale error is adjusted
for a gain calibration.
System Calibration Timing
The timing diagram in Figure 33 is for a software full system
calibration. It may be easier in some applications to perform
separate gain and offset calibrations so that the CONVST bit in
the control register does not have to be programmed in the
middle of the system calibration sequence. Once the write to the
control register setting the bits for a full system calibration is
completed, calibration of the internal DAC is initiated and the
BUSY line goes high. The full-scale system voltage should be
applied to the analog input pins, AIN(+) and AIN() at the start
of calibration. The BUSY line goes low once the DAC and
system gain calibration are complete. Next the system offset
voltage should be applied across the AIN(+) and AIN() pins
for a minimum setup time (t
SETUP
) of 100 ns before the rising
edge of CS. This second write to the control register sets the
CONVST bit to 1 and at the end of this write operation the
BUSY signal is triggered high (note that a CONVST pulse can
be applied instead of this second write to the control register).
The BUSY signal is low after a time t
CAL2
when the system offset
calibration section is complete. The full system calibration is now
complete.
The timing for a system (gain + offset) calibration is very similar
to that of Figure 33, the only difference being that the time t
CAL1
is
replaced by a shorter time of the order of t
CAL2
as the internal
DAC is not calibrated. The BUSY signal signifies when the gain
calibration is finished and when the part is ready for the offset
calibration.
CONVST BIT SET
TO 1 IN CONTROL
REGISTER
t
23
DATA LATCHED INTO
CONTROL REGISTER
Hi-Z
Hi-Z Hi-Z
t
CAL1
t
23
t
SETUP
V
OFFSET
V
SYSTEM FULL SCALE
DATA
VALID
CS
WR
DATA
BUSY
AIN
DATA
VALID
t
CAL2
Figure 33. Timing Diagram for Full System Calibration
The timing diagram for a system offset or system gain calibra-
tion is shown in Figure 34. Here again a write to the control
register initiates the calibration sequence. At the end of the con-
trol register write operation the BUSY line goes high and it stays
high until the calibration sequence is finished. The analog input
should be set at the correct level for a minimum setup time
(t
SETUP
) of 100 ns before the CS rising edge and stay at the cor-
rect level until the BUSY signal goes low.
t
23
Hi-Z Hi-Z
DATA LATCHED INTO
CONTROL REGISTER
t
SETUP
t
CAL2
DATA
VALID
V
SYSTEM FULL SCALE
OR V
OFFSET
CS
WR
DATA
BUSY
AIN
Figure 34. Timing Diagram for System Gain or System
Offset Calibration
AD7854/AD7854L
REV. B
23
PARALLEL INTERFACE
Reading
The timing diagram for a read cycle is shown in Figure 35. The
CONVST and BUSY signals are not shown here as the read
cycle may occur while a conversion is in progress or after the
conversion is complete.
The HBEN signal is low for the first read and high for the sec-
ond read. This ensures that it is the lower 12 bits of the 16-bit
word are output in the first read and the 8 MSBs of the 16-bit
word are output in the second read. If required, the HBEN
signal may be high for the first read and low for the second
read to ensure that the high byte is output in the first read
and the lower byte in the second read. The CS and RD sig-
nals are gated together internally and level triggered active
low. Both CS and RD may be tied together as the timing speci-
fication for t
5
and t
6
are both 0 ns min. The data is output a time t
8
after both CS and RD go low. The RD rising edge should be
used to latch the data by the user and after a time t
9
the data
lines will go into their high impedance state.
In Figure 35, the first read outputs the 12 LSBs of the 16-bit
word on pins DB0 to DB11 (DB0 being the LSB of the 12-bit
read). The second read outputs the 8 MSBs of the 16-bit word
on pins DB0 to DB7 (DB0 being the LSB of the 8-bit read). If the
system has a 12-bit or a 16-bit data bus, only one read operation
is necessary to obtain the 12-bit conversion result (12 bits are
output in the first read). A second read operation is not required.
If the system has an 8-bit data bus then two reads are needed.
Pins DB0 to DB7 should be connected the 8-bit data bus. Pins
DB8 to DB11 should be tied to DGND or DV
DD
via 10 k
resistors. With this arrangement, HBEN is pulled low for the
first read and the 8 LSBs of the 16-bit word are output on pins
DB0 to DB7 (data on pins DB8 to DB11 will be ignored).
HBEN is pulled high for the second read and now the 8 MSBs
of the 16-bit word are output on pins DB0 to DB7.
DATA
VALID
t
3
= 15ns MIN,
t
4
= 5ns MIN,
t
5
=
t
6
= 0ns MIN,
t
8
= 50ns MAX,
t
9
= 5/40ns MIN/MAX,
t
10
= 70ns MIN
t
3
t
4
t
3
t
4
t
5
t
6
t
9
t
8
HBEN
CS
RD
DATA
t
10
DATA
VALID
t
7
Figure 35. Read Cycle Timing Diagram Using
CS
and
RD
In the case where the AD7854/AD7854L is operated as a read-
only ADC, the WR pin can be tied permanently high. The read
operation need only consist of one read if the system has a 12-
bit or a 16-bit data bus.
When both the CS and RD signals are tied permanently low a
different timing arrangement results, as shown in Figure 36.
Here the data is output a time t
20
before the falling edge of the
BUSY signal. This allows the falling edge of BUSY to be used
for latching the data. Again if HBEN is low during the conver-
sion the 12 LSBs of the 16-bit word will be output on pins DB0
to DB11. Bringing HBEN high causes the 8 MSBs of the 16-bit
word to be output on pins DB0 to DB7. Note that with this
arrangement the data lines are always active.
t
1
= 100ns MIN,
t
20
= 70ns MIN,
t
19
=
t
20
= 70ns MIN,
t
21
=
t
22
= 60ns MAX
t
1
t
2
t
CONVERT
CONVERSION IS INITIATED ON THIS EDGE
t
19
t
20
t
18
t
21
t
22
OLD DATA VALID
NEW DATA
VALID
(DB0DB11)
NEW DATA
VALID
(DB8DB11)
NEW DATA
VALID
(DB0DB11)
NEW DATA
VALID
(DB8DB11)
ON PINS DB0 TO DB11
ON PINS DB0 TO DB7
CONVST
BUSY
HBEN
DATA
Figure 36. Read Cycle Timing Diagram with
CS
and
RD
Tied Low
Writing
The timing diagram for a write cycle is shown in Figure 37. The
CONVST and BUSY signals are not shown here as the write
cycle may occur while a conversion is in progress or after the
conversion is complete.
To write a 16-bit word to the AD7854/AD7854L, two 8-bit
writes are required. The HBEN signal must be low for the first
write and high for the second write. This ensures that it is the
lower 8 bits of the 16-bit word are latched in the first write and
the 8 MSBs of the 16-bit word are latched in the second write.
For both write operations the 8 bits of data should be present on
pins DB0 to DB7 (DB0 being the LSB of the 8-bit write). Any
data on pins DB8 to DB11 is ignored when writing to the device.
The CS and WR signals are gated together internally. Both CS
and WR may be tied together as the timing specification for t
13
and t
14
are both 0 ns min. The data is latched on the rising edge
of WR. The data needs to be set up a time t
16
before the WR
rising edge and held for a time t
17
after the WR rising edge.
DATA
VALID
t
11
t
12
t
11
t
12
t
13
t
14
t
10
t
15
t
16
t
17
HBEN
CS
WR
DATA
DATA
VALID
t
11
= 0ns MIN,
t
12
= 5ns MIN,
t
13
=
t
14
= 0ns MIN,
t
15
= 70ns MIN,
t
16
= 10ns MIN,
t
17
= 5ns MIN
Figure 37. Write Cycle Timing Diagram
Resetting the Parallel Interface
If random data has been inadvertently written to the test regis-
ter, it is necessary to write the 16-bit word 0100 0000 0000
0010 (in two 8-bit bytes) to restore the test register to its
default value.
AD7854/AD7854L
24
REV. B
MICROPROCESSOR INTERFACING
The parallel port on the AD7854/AD7854L allows the device to
be interfaced to microprocessors or DSP processors as a memory
mapped or I/O mapped device. The CS and RD inputs are
common to all memory peripheral interfacing. Typical inter-
faces to different processors are shown in Figures 38 to 41.
In all the interfaces shown, an external timer controls the
CONVST input of the AD7854/AD7854L and the BUSY out-
put interrupts the host DSP. Also, the HBEN pin is connected
to address line A0 (XA0 in the case of the TMS320C30). This
maps the AD7854/AD7854L to two locations in the processor
memory space, ADCaddr and ADCaddr+1. Thus when writing
to the ADC, first the 8 LSBs of the 16-bit are written to address
location ADCaddr and then the 8 MSBs to location ADCaddr+1.
All the interfaces use a 12-bit data bus, so only one read is needed
from location ADCaddr to access the ADC output data register
or the status register. To read from the other registers, the
8 MSBs must be read from location ADCaddr+1. Interfacing
to 8-bit bus systems is similar, except that two reads are
required to obtain data from all the registers.
AD7854/AD7854L to ADSP-21xx
Figure 38 shows the AD7854/AD7854L interfaced to the
ADSP-21xx series of DSPs as a memory mapped device. A
single wait state may be necessary to interface the AD7854/
AD7854L to the ADSP-21xx depending on the clock speed of
the DSP. This wait state can be programmed via the data
memory waitstate control register of the ADSP-21xx (please see
ADSP-2100 Family Users Manual for details). The following
instruction reads data from the AD7854/AD7854L:
AX0 = DM(ADCaddr)
Data can be written to the AD7854/AD7854L using the
instructions:
DM (ADCaddr) = AY0
DM (ADCaddr+1) = AY1
where ADCaddr is the address of the AD7854/AD7854L in
ADSP-21xx data memory, AX0 contains the data read from the
ADC, and AY0 contains the 8 LSBs and AY1 the 8 MSBs of
data written to the AD7854/AD7854L.
ADSP-21xx*
A13A1
DMS
A0
WR
IRQ2
D23D8
CS
HBEN
WR
RD
BUSY
DB11DB0
AD7854/
AD7854L*
ADDR
DECODE
EN
ADDRESS BUS
DATA BUS
*ADDITIONAL PINS OMITTED FOR CLARITY
RD
Figure 38. AD7854/AD7854L to ADSP-21xx Parallel Interface
AD7854/AD7854L to TMS32020, TMS320C25 and TMS320C5x
A parallel interface between the AD7854/AD7854L and the
TMS32020, TMS320C25 and TMS320C5x family of DSPs are
shown in Figure 39. The memory mapped addresses chosen for
the AD7854/AD7854L should be chosen to fall in the I/O
memory space of the DSPs.
The parallel interface on the AD7854/AD7854L is fast enough
to interface to the TMS32020 with no extra wait states. In the
TMS320C25 interface, data accesses may be slowed sufficiently
when reading from and writing to the part to require the inser-
tion of one wait state. In such a case, this wait state can be
generated using the single OR gate to combine the CS and
MSC signals to drive the READY line of the TMS320C25, as
shown in Figure 39. Extra wait states are necessary when using
the TMS320C5x at their fastest clock speeds. Wait states can
be programmed via the IOWSR and CWSR registers (please see
TMS320C5x User Guide for details).
Data is read from the ADC using the following instruction:
IN D,ADCaddr
where D is the memory location where the data is to be stored
and ADCaddr is the I/O address of the AD7854/AD7854L.
Data is written to the ADC using the following two instructions:
OUT D8LSB, ADCaddr
OUT D8MSB, ADCaddr+1
where D8LSB is the memory location where the 8 LSBs of data
are stored, D8MSB is the location where the 8 MSBs of data are
stored and ADCaddr and ADCaddr+1 are the I/O memory
spaces that the AD7854/AD7854L is mapped into.
TMS32020/
TMS320C25/
TMS320C50*
A15A1
IS
READY
MSC
A0
STRB
R/W
INTx
D23D0
TMS320C25
ONLY
CS
HBEN
WR
RD
BUSY
DB11DB0
AD7854/
AD7854L*
ADDR
DECODE
EN
ADDRESS BUS
DATA BUS
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 39. AD7854/AD7854L to TMS32020/C25/C5x
Parallel Interface

AD7854ARZ-REEL

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC 3-5V SGL Supply 200kSPS 12B Parallel
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union