Datasheet
ADuC814
Rev. A | Page 35 of 72
DACxH/L DAC0 and DAC1 Data Registers
Function DAC Data Registers, written by the user to update the DAC outputs.
SFR Address DAC0L (DAC0 data low byte) –> F9H DAC0H (DAC0 data high byte) –> FAH;
DAC1L (DAC1 data low byte) –> FBH DAC1H (DAC1 data high byte) –> FCH
Power-On Default 00H –> Both DAC0 and DAC1 data registers.
Bit Addressable No –> Both DAC0 and DAC1 data registers.
The 12-bit DAC data should be written into DACxH/L right-justified such that DACL contains the lower eight bits, and the lower nibble
of DACH contains the upper four bits.
Using the DACs
The on-chip DAC architecture consists of a resistor string DAC
followed by an output buffer amplifier, the functional equivalent
of which is illustrated in Figure 38. Features of this architecture
include inherent guaranteed monotonicity and excellent differ-
ential linearity.
OUTPUT
BUFFER
HIGH Z
DISABLE
(FROM MCU)
DAC0
R
R
R
R
R
ADuC814
AV
DD
V
REF
02748-A-044
Figure 38. Resistor String DAC Functional Equivalent
As illustrated in Figure 38, the reference source for each DAC is
user selectable in software. It can be either AV
DD
or V
REF
. In
0 V-to-AV
DD
mode, the DAC output transfer function spans
from 0 V to the voltage at the AV
DD
pin. In 0 V-to-V
REF
mode,
the DAC output transfer function spans from 0 V to the internal
V
REF
, or if an external reference is applied, the voltage at the V
REF
pin. The DAC output buffer features a true rail-to-rail output
stage implementation. This means that, unloaded, each output is
capable of swinging to within less than 100 mV of both AV
DD
and ground. Moreover, the DAC’s linearity specification (when
driving a 10 kΩ resistive load to ground) is guaranteed through
the full transfer function except Codes 0 to 48, and, in 0 V-to-
AV
DD
mode only, Codes 3945 to 4095. Linearity degradation
near ground and V
DD
is caused by saturation of the output
buffer, and a general representation of its effects (neglecting
offset and gain error) is illustrated in Figure 39. The dotted line
in Figure 39 indicates the ideal transfer function, and the solid
line represents what the transfer function might look like with
endpoint nonlinearities due to saturation of the output buffer.
Note that Figure 39 represents a transfer function in 0 V-to-V
DD
mode only. In 0 V-to-V
REF
mode (with V
REF
< V
DD
), the lower
nonlinearity would be similar, but the upper portion of the
transfer function would follow the ideal line right to the end
(V
REF
in this case, not V
DD
), showing no signs of upper endpoint
linearity error.
V
DD
V
DD
–50mV
50mV
0mV
V
DD
–100mV
100mV
000H
FFFH
02748-A-045
Figure 39. Endpoint Nonlinearities Due to Amplifier Saturation
The endpoint nonlinearities conceptually illustrated in Figure 39
get worse as a function of output loading. Most ADuC814
specifications assume a 10 kΩ resistive load to ground at the
DAC output. As the output is forced to source or sink more
current, the nonlinear regions at the top or bottom (respectively)
of Figure 39 become larger. With larger current demands, this
can significantly limit output voltage swing. Figure 40 and
Figure 41 illustrate this behavior. Note that the upper trace in
each of these figures is valid only for an output range selection
of 0 V-to-AV
DD
. In 0 V-to-V
REF
mode, DAC loading does not
cause high-side voltage drops as long as the reference voltage
remains below the upper trace in the corresponding figure. For
example, if AV
DD
= 3 V and V
REF
= 2.5 V, the high-side voltage is
not affected by loads less than 5 mA. But around 7 mA, the
upper curve in Figure 41 drops below 2.5 V (V
REF
), indicating
that at these higher currents the output cannot reach V
REF
.