AD421
6
REV. C
Table I. FET Characteristics
FET Type N-Channel Depletion Mode
I
DSS
24 mA min
BV
DS
(V
LOOP
– V
CC
) min
V
PINCHOFF
V
CC
max
Power Dissipation 24 mA × (V
LOOP
– V
CC
) min
where V
CC
is the operating voltage of the AD421 and V
LOOP
is
the loop voltage.
The DN25D FET transistor from Supertex
1
meets all the above
requirements for the FET. Other suitable transistors include
ND2020L and ND2410L, both from Siliconix.
There are a number of external components required to com-
pensate the regulator loop and ensure stable operation. The
capacitor from the V
CC
pin to the COM pin is required to
stabilize the regulator loop.
To provide additional compensation for the regulator loop, a
compensation capacitor of 0.01 µF should be connected
between the COMP and DRIVE pins and an external circuit
of a 1 k resistor and a 1000 pF capacitor in series should be
connected between DRIVE and COM to stabilize this feed-
back loop formed with the regulator op amp and the external
pass transistor.
DAC Section
The AD421 contains a 16-bit sigma-delta DAC to convert the
digital information loaded to the input latch into a current. The
sigma-delta architecture is particularly useful for the relatively
low bandwidth requirements of the industrial control environ-
ment because of its inherent monotonicity at high resolution.
The AD421 guarantees monotonicity to the 16-bit level.
The sigma-delta DAC consists of a second order modulator
followed by a continuous time filter. The single bit stream from
the modulator controls a switched current source. This current
source is then filtered by three resistor-capacitor filter sections.
The resistors for each of the filter sections are on-chip while
the capacitors are external on the C1–C3 pins. To meet the
specified full-scale settling on the part, low dielectric absorption
capacitors (NPO) are required. Suitable values for these capacitors
are C1 = 0.01 µF, C2 = 0.01 µF, and C3 = 0.0033 µF.
Current Amplifier
The DAC output current drives the second section, an opera-
tional amplifier and NPN transistor which acts as a current
amplifier to set the current flowing through the LOOP RTN
pin. Figure 4 shows the current amplifier section of the AD421.
An 80 k resistor connected between the DAC output and loop
return is used as a sampling resistor to determine current. The
base drive to the NPN transistor servos the voltage across the
40 resistor to equal the voltage across the 80 k resistor.
CIRCUIT DESCRIPTION
The AD421 is designed for use in loop-powered 4–20 mA smart
transmitter applications. A smart transmitter, as a remote in-
strument, controls its current output signal on the same pair of
wires from which it receives its power. The AD421 essentially
provides three primary functions in the smart transmitter. These
functions are a DAC function for converting the microprocessor/
microcontroller’s digital data to analog format, a current amp-
lifier which sets the current flowing in the loop and a voltage
regulator to provide a stable operating voltage from the loop
supply. The part also contains a high speed serial interface, two
buffered output references and a clock oscillator circuit. The
different sections of the AD421 are discussed in more detail
below.
Voltage Regulator
The voltage regulator consists of an op amp, bandgap reference
and an external depletion mode FET pass transistor. This cir-
cuit is required to regulate the loop voltage that powers the
AD421 itself and the rest of the transmitter circuitry. Figure 3
shows the voltage regulator section of the AD421 plus the associ-
ated external circuitry for a V
CC
of 3.3 V.
1.21V
112.5k
134k
75k
121k
V
CC
LV
2.2F
COM
V
CC
TO EXTERNAL
CIRCUITRY
DN25D
DRIVE
COMP
0.01F
1k
1000pF
LOOP(+)
BANDGAP
REFERENCE
AD421
0.01F
Figure 3. AD421 Voltage Regulator Circuit to Provide
V
CC
= 3.3 V
The signal on the LV pin selects the voltage to which V
CC
regulates by changing the gain of the resistor divider between
the op amp inverting input and the V
CC
pin. As the LV pin
varies between COM and V
CC
, the voltage from the regulator
loop varies between 3 V and 5 V nominal. With LV connected
to COM, the regulated voltage is 5 V; with LV connected
through a 0.01 µF capacitor to V
CC
, the regulated voltage is
3.3 V while if LV is connected to V
CC
, the regulated voltage
is 3 V.
The range of loop voltages that can be used by the configuration
shown in Figure 3 is determined by the FET breakdown and
saturation voltages. The external FET parameters such as Vgs
(off), I
DSS
and transconductance must be chosen so that the op
amp output on the DRIVE pin can control the FET operating
point while swinging in the range from V
CC
to COM.
The main characteristics for selecting the FET pass transistor
are as follows:
AD421
7
REV. C
Reference Section
The AD421 contains an on-chip 1.21 V bandgap reference
which is used as part of the voltage regulator loop. A bandgap
reference is also used to generate two references voltages
which are available for use external to the AD421. Figure 5
shows the reference section of the AD421. The REF OUT1 pin
provides a buffered +1.25 V reference voltage which can supply
up to 0.5 mA of external current. The REF OUT2 pin provides
a +2.5 V reference voltage which is also capable of providing
0.5 mA of external current. To use the AD421 with its own
reference, simply connect the REF OUT2 pin to the REF IN
pin of the device. Alternatively, the part can be used with an
external reference by connecting the external reference between
REF IN and COM.
When REF OUT1 and REF OUT2 are used in application
circuits, external 4.7 µF capacitors are required on the reference
pins to provide compensation and ensure stable operation of the
references. These capacitors can be omitted if the internal refer-
ences are not required.
1.21V
112.5k
134k
75k
121k
V
CC
LV
4.7F
DRIVE
2.5V
BANDGAP
REFERENCE
AD421
50k
REF OUT2
(2.5V)
50k
4.7F
REF OUT1
(1.25V)
Figure 5. Reference Section
REF OUT2 is sensed internally, and if more than 0.5 mA is
drawn externally from this reference, the chip goes into a power
on reset state. In this state the sigma-delta DAC is disabled, the
internal oscillator is stopped and the input data latch is cleared.
REF OUT1 has limited current sinking capability. If REF
OUT1 is required to sink current, a resistive load of 100 k
to COM should be added in addition to the 4.7 µF capacitor.
USING THE AD421
The AD421 can be programmed for normal 4 mA to 20 mA
operation or for alarm current operation. For normal operation,
the coding is 16-bit straight (natural) binary over an output
current range of 4 mA to 20 mA. For alarm current operation,
the coding is also straight binary but with 17 bits of resolution
over twice the span, 0 mA to 32 mA, although the part should
not be programmed outside the range of 3.5 mA to 24 mA. To
determine whether data written to the part is normal 4 mA to
20 mA data or alarm current data, the number of clock pulses
between two successive LATCH pulses are counted. If the num-
ber of pulses is 0–16 (modulo 32), it chooses normal mode; if it
is 17–31 (modulo 32), it chooses alarm current range.
4 mA to 20 mA Coding
Table II shows the ideal input-code-to-output-current relation-
ship for normal operation of the AD421. The output current
values shown assume a REF IN voltage of +2.5 V. With a
REF IN of +2.5 V, 1 LSB = 16 mA/65,536 = 244 nA. Figure 6
shows a timing diagram for programming the AD421 for normal
4 mA to 20 mA operation, the AD421 outputting a current
AD421
BOOST
40
80k
LOOP RTN
SWITCHED
CURRENT
SOURCES
Figure 4. Current Amplifier
The BOOST pin is normally tied to the V
CC
pin. As the DAC
input code varies from all zeros to full scale, the output current
from the NPN transistor and thus the total loop current varies
from 4 mA to 20 mA. With BOOST and V
CC
tied together, the
external FET (DN25D) has to supply the full range of loop
current (4 mA to 20 mA).
Digital Interface
The digital interface on the AD421 consists of just three wires:
DATA, CLOCK and LATCH. The interface connects directly
to the serial ports of commonly-used microcontrollers without
the need for any external glue logic. Data is loaded MSB first
into an input shift register on the rising edge of the CLOCK
signal and is transferred to the DAC latch on the rising edge of
the LATCH signal. The timing diagrams for the serial interface
are shown in Figure 1 and Figure 2.
The data to be loaded to the AD421’s input shift register takes
two forms; normal 4 mA to 20 mA data or alarm current data.
The first form is where the AD421 operates over its normal
4 mA to 20 mA output range with 16 bits of resolution between
these endpoints. The second form allows the user to program a
current value outside this range as an indication from the trans-
mitter than there is a problem with the transducer. The AD421
counts the number of clock pulses which it receives between
LATCH signals as a means of determining whether the data
clocked in is 4 mA to 20 mA data or alarm current data.
If there are 16 rising clock edges between successive LATCH
pulses, then the data being loaded to the input shift register is
assumed to be normal 4 mA to 20 mA data. On the rising edge
of the LATCH signal, the input shift register data is transferred
to the DAC latch in a 16-bit parallel transfer. In this case, the
16 bits of data in the DAC latch program the output current
between 4 mA for all 0s and 20 mA for all 1s (see Table II).
Data transferred to the AD421 should be MSB first.
If there are more than 16 clock pulses between successive
LATCH pulses, then the data being loaded to the input shift
register is assumed to be alarm current data. In this case, the
AD421 accepts 17 bits of data into its shift register. For situa-
tions where there are more than 17 clocks in the serial write
operation (for example, 24 clocks in a 3 × 8-bit transfer from the
serial port of a microcontroller) the AD421 simply accepts the
last 17 bits of the serial write operation. Data transferred in this
serial write operation is LSB last (i.e., the MSB is loaded on the
17th rising clock edge prior to the LATCH pulse). On the rising
edge of the LATCH signal, the input shift register data is trans-
ferred to the DAC latch in a 17-bit parallel transfer. In this
case, the 17 bits of data in the DAC latch program the output
current between 0 mA for all 0s and 32 mA for all 1s (see Table
III). However, in practice the AD421 cannot reliably produce a
current less than 3.5 mA or more than 24 mA.
AD421
8
REV. C
WORD "N"
0110011 0000000000
CLOCK
DATA
(MSB)
(LSB)
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
LATCH
B16
XX XXXXX
X
X
X
X
X
X
X
Figure 7. Write Cycle for Programming Alarm Current
Data
MICROPROCESSOR INTERFACING
AD421 – MC68HC11 (SPI BUS) INTERFACE
Figure 8 shows a typical interface between the AD421 and the
Motorola MC68HC11 SPI (Serial Peripheral Interface) bus.
The SCK, MOSI and SS pins of the 68HC11 are respectively
connected to the CLOCK, DATA IN and LATCH pins of the
AD421.
SCK
MOSI
SS
CLOCK
DATA IN
LATCH
AD421*
68HC11
* ADDITIONAL PINS OMITTED FOR CLARITY
Figure 8. AD421 to 68HC11 Interface
A typical routine such as the one shown below begins by initializ-
ing the state of the various SPI data and control registers.
INIT LDAA #$2F ;SS = 1; SCK = 0; MOSI = 1
STAA PORTD ;SEND TO SPI OUTPUTS
LDAA #$38 ;SS, SCK, MOSI = OUTPUTS
STAA DDRD ;SEND DATA DIRECTION INFO
LDAA #$50 ;DABL INTRPTS, SPI IS MASTER & ON
STAA SPCR ;CPOL = 0, CPHA = 0, 1MHZ BAUDRATE
NEXTPT LDAA MSBY ;LOAD ACCUM W/UPPER 8 BITS
BSR SENDAT ;JUMP TO DAC OUTPUT ROUTINE
JMP NEXTPT ;INFINITE LOOP
SENDAT LDY #$1000 ;POINT AT ON-CHIP REGISTERS
BCLR $08,Y,$20 ;DRIVE SS (LATCH) LOW
STAA SPDR ;SEND MS-BYTE TO SPI DATA REG
WAIT1 LDAA SPSR ;CHECK STATUS OF SPIE
BPL WAIT1 ;POLL FOR END OF X-MISSION
LDAA LSBY ;GET LOW 8 BITS FROM MEMORY
STAA SPDR ;SEND LS-BYTE TO SPI DATA REG
WAIT2 LDAA SPSR ;CHECK STATUS OF SPIE
BPL WAIT2; ;POLL FOR END OF X-MISSION
BSET $08,Y,$20 ;DRIVE SS HIGH TO LATCH DATA
RTS
The SPI data port is configured to process data in 8-bit bytes.
The most significant data byte (MSBY) is retrieved from
memory and processed by the SENDAT routine. The
SS
pin is
driven low by indexing into the PORTD data register and clear
Bit 5. The MSBY is then sent to the SPI data register where it is
automatically transferred to the AD421 internal shift resistor.
of 11.147 mA. With 16 clock pulses between consecutive latch
signals data written is for normal 4 mA to 20 mA operation.
Table II. Ideal Input/Output Code Table
for 4 mA to 20 mA Operation
Code Output Current
0000 0000 0000 0000 4 mA
0000 0000 0000 0001 4.000244 mA
0000 0000 0000 0010 4.000488 mA
0100 0000 0000 0000 8 mA
1000 0000 0000 0000 12 mA
1100 0000 0000 0000 16 mA
1111 1111 1111 1101 19.999268 mA
1111 1111 1111 1110 19.999512 mA
1111 1111 1111 1111 19.999756 mA
WORD "N"
WORD "N +1"
1011 11111100 00 00 1001
CLOCK
DATA
(MSB)
(LSB)
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
B15
B14
B13
B12
LATCH
Figure 6. Write Cycle for 4 mA to 20 mA Operation
Alarm Current Coding
Table III shows the ideal input-code-to-output-current relation-
ship for alarm current programming of the AD421. In this case,
the equivalent span is 0 mA to 32 mA but a reliable operating
span is 3.5 mA to 24 mA. The part may give an indeterminate
output for code values outside the range given in the table. As a
result, the user is advised to restrict the code programmed to the
part in alarm current mode to within the range shown in Table
III. Figure 7 shows a timing diagram for loading an alarm cur-
rent of 3.75 mA to the AD421 with an 8-bit microcontroller
using three 8-bit writes.
The output current values shown assume a REF IN voltage of
+2.5 V. With a REF IN of +2.5 V, an ideal 1 LSB = 32 mA/
131,072 = 244 nA.
Table III. Ideal Input/Output Code Table
for Alarm Current Operation
Code Output Current
0 0011 1000 0000 0000 3.5 mA
0 0011 1100 0000 0000 3.75 mA
0 0100 0000 0000 0000 4 mA
0 1000 0000 0000 0000 8 mA
1 0000 0000 0000 0000 16 mA
1 0100 0000 0000 0000 20 mA
1 0110 0000 0000 0000 22 mA
1 1000 0000 0000 0000 24 mA

AD421BNZ

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