English
Language : 

DAC8512 Datasheet, PDF (17/20 Pages) Analog Devices – % V, Serial Input Complete 12-Bit DAC
DAC8512
CLR
LD
SCLK
SCI
1
6
5
DAC8512
3
4
7
R1
200kΩ
8
P1
10kΩ
20mA
ADJUST
R3
80.6k
R2
976kΩ
P2
50Ω
4mA
ADJUST
6
2
REF02
4
3
7
D1 OP90 6
24
R4
54.9k
R6
150Ω
R5
100k
Q1
2N1711
D1 = HP5082-2810
R7
100Ω
VLOOP
+12 TO +40V
4–20mA
RL
100Ω
+5V
CLK
360Ω
10kΩ
ILQ-1
SCLK
REPEAT FOR SDI, LD, & CLR
Figure 41. An Isolated, Programmable, 4-20 mA Process Controller
For the values shown in Figure 41,
IOUT = 3.9 µA × Digital Code + 4 mA
giving a full-scale output current of 20 mA when the
DAC8512’s digital code equals FFFH. Offset trim at 4 mA is
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
MC68HC11*
PC1
PC0
SS
SCK
MOSI
DAC8512*
CLR
CS
LD
CLK
SDI
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 42. DAC8512–MC68HC11 Interface
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.
REV. A
–17–