A one-bit DAC
It might be thought that the waveform from a one-bit DAC is simply the same
as the digital input waveform. In practice this is not the case. The input
signal is a logic signal which need only be above or below a threshold for
its binary value to be correctly received. It may have a variety of waveform
distortions and a duty cycle offset. The area under the pulses can vary enormously.
In the DAC output the amplitude needs to be extremely accurate. A one-bit DAC
uses only the binary information from the input, but reclocks to produce accurate
timing and uses a reference voltage to produce accurate levels. The area of
pulses produced is then constant. One-bit DACs will be found in noise-shaping
ADCs as well as in the more obvious application of producing analog audio.
FGR. 60(a) shows a one-bit DAC which is implemented with MOS field-effect
switches and a pair of capacitors. Quanta of charge are driven into or out
of a virtual earth amplifier con figured as an integrator by the switched capacitor
action. FGR. 60(b) shows the associated wave forms. Each data bit period is
divided into two equal portions; that for which the clock is high, and that
for which it’s low. During the first half of the bit period, pulse P+ is generated
if the data bit is a 1, or pulse P- is generated if the data bit is a 0. The
reference input is a clean voltage corresponding to the gain required.
C1 is discharged during the second half of every cycle by the switches driven
from the complemented clock. If the next bit is a 1, during the next high period
of the clock the capacitor will be connected between the reference and the
virtual earth. Current will flow into the virtual earth until the capacitor
is charged. If the next bit is not a 1, the current through C1 will flow to
ground.
C2 is charged to reference voltage during the second half of every cycle
by the switches driven from the complemented clock. On the next high period
of the clock, the reference end of C2 will be grounded, and so the op-amp end
will assume a negative reference voltage. If the next bit is a 0, this negative
reference will be switched into the virtual earth, if not the capacitor will
be discharged.
Thus on every cycle of the clock, a quantum of charge is either pumped into
the integrator by C1 or pumped out by C2. The analog output therefore precisely
reflects the ratio of ones to zeros.
One-bit noise-shaping ADCs
In order to overcome the DAC accuracy constraint of the sigma DPCM convertor,
the sigma-delta convertor can be used as it has only one-bit internal resolution.
A one-bit DAC cannot be non-linear by definition as it defines only two points
on a transfer function. It can, however, suffer from other deficiencies such
as DC offset and gain error although these are less offensive in audio. The
one-bit ADC is a comparator.
As the sigma-delta convertor is only a one-bit device, clearly it must use
a high oversampling factor and high-order noise shaping in order to have sufficiently
good SNR for audio.
In practice the oversampling factor is limited not so much by the convertor
technology as by the difficulty of computation in the decimator. A sigma-delta
convertor has the advantage that the filter input 'words' are one bit long
and this simplifies the filter design as multiplications can be replaced by
selection of constants.
Conventional analysis of loops falls down heavily in the one-bit case.
In particular the gain of a comparator is difficult to quantify, and the loop
is highly non-linear so that considering the quantizing error as additive white
noise in order to use a linear loop model gives rather optimistic results.
In the absence of an accurate mathematical model, progress has been made empirically,
with listening tests and by using simulation.
Single-bit sigma-delta convertors are prone to long idling patterns because
the low resolution in the voltage domain requires more bits in the time domain
to be integrated to cancel the error. Clearly the longer the period of an idling
pattern, the more likely it’s to enter the audio band as an objectionable whistle
or 'birdie'. They also exhibit threshold effects or deadbands where the output
fails to react to an input change at certain levels. The problem is reduced
by the order of the filter and the wordlength of the embedded DAC. Second-
and third-order feedback loops are still prone to audible idling patterns and
threshold effect.
The traditional approach to linearizing sigma-delta convertors is to use
dither. Unlike conventional quantizers, the dither used was of a frequency
outside the audio band and of considerable level. Square wave dither has been
used and it’s advantageous to choose a frequency which is a multiple of the
final output sampling rate as then the harmonics will coincide with the troughs
in the stopband ripple of the decimator. Unfortunately the level of dither
needed to linearize the convertor is high enough to cause premature clipping
of high-level signals, reducing the dynamic range. This problem is overcome
by using in-band white noise dither at low level.
An advantage of the one-bit approach is that in the one-bit DAC, precision
components are replaced by precise timing in switched capacitor networks. The
same approach can be used to implement the loop filter in an ADC. FGR. 61 shows
a third-order sigma-delta modulator incorporating a DAC based on the principle
of FGR. 60.
The loop filter is also implemented with switched capacitors.
=== |