DAC8512GBC Analog Devices, DAC8512GBC Datasheet - Page 17

no-image

DAC8512GBC

Manufacturer Part Number
DAC8512GBC
Description
% V/ Serial Input Complete 12-Bit DAC
Manufacturer
Analog Devices
Datasheet
For the values shown in Figure 41,
giving a full-scale output current of 20 mA when the
DAC8512’s digital code equals FFF
provided by P2, and P1 provides the circuit’s gain trim at 20 mA.
These two trims do not interact because the noninverting input
of the OP90 is at virtual ground. The Schottky diode, D1, is re-
quired in this circuit to prevent loop supply power-on transients
from pulling the noninverting input of the OP90 more than
300 mV below its inverting input. Without this diode, such tran-
sients could cause phase reversal of the OP90 and possible
latchup of the controller. The loop supply voltage compliance of
the circuit is limited by the maximum applied input voltage to
the REF02 and is from +12 V to +40 V.
MICROPROCESSOR INTERFACING
DAC8512–MC68HC11 Interface
The circuit illustrated in Figure 42 shows a serial interface be-
tween the DAC8512 and the MC68HC11 8-bit microcontrol-
ler. SCK of the 68HC11 drives SCLK of the DAC8512, while
the MOSI output drives the serial data line, SDI, of the
DAC8512. The DAC’s CLR, LD, and CS signals are derived
from port lines PC1, PD5, and PC0, respectively, as shown.
For correct operation of the serial interface, the 68HC11 should
be configured such that its CPOL bit is set to 1 and its CPHA
bit is also set to 1. When the serial data is to be transmitted to
the DAC, PC0 is taken low, asserting the DAC’s CS input.
When the 68HC11 is configured in this manner, serial data on
REV. A
I
OUT
= 3.9 A
SCLK
CLR
SCI
LD
Figure 41. An Isolated, Programmable, 4-20 mA Process Controller
5
4
6
3
Digital Code + 4 mA
DAC8512
H
7
1
. Offset trim at 4 mA is
CLK
8
200k
R1
360
ADJUST
20mA
10k
P1
80.6k
R3
ILQ-1
10k
R2
976k
P2
50
4mA
ADJUST
+5V
–17–
D1
D1 = HP5082-2810
R4
54.9k
3
2
MOSI is valid on the rising edge of SCLK. The 68HC11 trans-
mits its serial data in 8-bit bytes (MSB first), with only eight ris-
ing clock edges occurring in the transmit cycle. To load data to
the DAC8512’s input serial register, PC0 is left low after the
first eight bits are transferred, and a second byte of data is then
transferred serially to the DAC8512. During the second byte
load, the first four most significant bits of the first byte are
pushed out of the DAC’s input shift register. At the end of the
second byte load, PC0 is then taken high. To prevent an acci-
dental advancing of the internal shift register, SCLK must al-
ready be asserted before PC0 is taken high. To transfer the
contents of the input shift register to the DAC register, PD5 is
taken low, asserting the DAC’s LD input. The DAC’s CLR in-
put, controlled by the 68HC11’s PC1 port, provides an asyn-
chronous clear function, setting the DAC output to zero.
Included in this section is the source code for operating the
DAC8512—M68HC11 interface.
SCLK
OP90
4
7
REPEAT FOR SDI, LD, & CLR
6
6
REF02
Figure 42. DAC8512–MC68HC11 Interface
4
150
R5
100k
R6
100
2
R7
MC68HC11*
*ADDITIONAL PINS OMITTED FOR CLARITY
Q1
2N1711
MOSI
SCK
PC1
PC0
SS
4–20mA
+12 TO +40V
V
LOOP
R
100
L
CLK
CLR
CS
LD
SDI
DAC8512*
DAC8512

Related parts for DAC8512GBC