Professional Documents
Culture Documents
Delta Sigma Basics
Delta Sigma Basics
AN9504
A Brief Introduction to Sigma Delta Conversion Rev. 0.00
May 1995
The sigma delta conversion technique has been in existence The sampling theorem states that the sampling frequency of a
for many years, but recent technological advances now make signal must be at least twice the signal frequency in order to
the devices practical and their use is becoming widespread. recover the sampled signal without distortion. When a signal is
The converters have found homes in such applications as sampled its input spectrum is copied and mirrored at multiples
communications systems, consumer and professional audio, of the sampling frequency fS. Figure 2A shows the spectrum of
industrial weight scales, and precision measurement devices. a sampled signal when the sampling frequency fS is less than
The key feature of these converters is that they are the only twice the input signal frequency 2f0. The shaded area on the
low cost conversion method which provides both high plot shows what is commonly referred to as aliasing which
dynamic range and flexibility in converting low bandwidth results when the sampling theorem is violated. Recovering a
input signals. This application note is intended to give an engi- signal contaminated with aliasing results in a distorted output
neer with little or no sigma delta background an overview of signal. Figure 2B shows the spectrum of an oversampled sig-
how a sigma delta converter works. nal. The oversampling process puts the entire input bandwidth
at less than fS/2 and avoids the aliasing trap.[1]
The following are brief definitions of terms that will be used
in this application note:
AMPLITUDE
Noise Shaping Filter or Integrator: The noise shaping fil-
ter or integrator of a sigma delta converter distributes the
converter quantization error or noise such that it is very low INPUT
in the band of interest. BANDWIDTH
X
Oversampling. Oversampling is simply the act of sampling
the input signal at a frequency much greater than the
Nyquist frequency (two times the input signal bandwidth). FREQUENCY fS/2 f0 fS 2f0
Oversampling decreases the quantization noise in the band FIGURE 2A. UNDERSAMPLED SIGNAL SPECTRUM
of interest.
Digital Filter. An on-chip digital filter is used to attenuate
signals and noise that are outside the band of interest.
AMPLITUDE
q QUANTIZATION
e RMS = ---------- V (EQ. 2) ei
12 ACCUMULATION
where q is the quantization interval or LSB size (see Figure 3). + + + +
Xi DELAY Yi
3V 11 - +
tor. The graph illustrates that as the OSR increases, the noise
decreases (SNR increases) and that as the order of the modu-
lator increases, the noise decreases. FREQUENCY BAND
OF INTEREST
140 SIGNAL SPECTRUM
100
SECOND ORDER
SNR (dB)
QUANTIZATION NOISE
80
FREQUENCY
60
fC fS
40 2
20 FIRST ORDER FIGURE 7C. OVERSAMPLED 1ST ORDER SIGMA DELTA QUANTI-
ZATION NOISE SPECTRUM
0
4 16 64 128 Another way to examine the characteristics of the sigma delta
OVER SAMPLING RATIO
modulator is to model it in the frequency domain. Figure 8
FIGURE 6. SNR vs OVERSAMPLING RATIO FOR SIGMA shows a linearized model of a sigma delta modulator. The inte-
DELTA MODULATORS grator has been replaced with a filter whose transfer function is
H(s) = 1/s and the quantizer is modelled as a noise source
The noise shaping attributes of the sigma delta modulator can whose noise contribution is N(s). Letting N(s) = 0 for the
be shown graphically as in Figure 7. Figure 7A shows the moment, and solving for Y(s)/X(s) results in the following:
quantization noise spectrum of a typical Nyquist type converter
and the theoretical SNR of such a converter. Figure 7B shows 1
Y s = X s – Y s --- (EQ. 12)
the effects of oversampling. fS /2 is much greater than 2f0 and s
the quantization noise is spread over a wider spectrum. The
Ys 1s 1
total quantization noise is still the same but the quantization ------------ = -------------------- = ------------. (EQ. 13)
Xs 1+1s s+1
noise in the bandwidth of interest is greatly reduced. Figure 7C
illustrates the noise shaping of the oversampled sigma delta By letting the signal X(s) = 0 and solving for Y(s)/N(s) the fol-
modulator. Again the total quantization noise of the converter is lowing results are obtained:
the same as in Figure 7A, but the in-band quantization noise is
greatly reduced. 1
Y s = – Y s --- + N s (EQ. 14)
s
SNR = (6.02N+1.76)dB
Ys 1 s
------------ = ------------- = ------------. (EQ. 15)
FREQUENCY Ns 1 s+1
1 + ---
OF INTEREST s
+ +
LOW PASS DIGITAL FILTER
X
- - TRANSFER FUNCTION
1-BIT
DAC
0
FREQUENCY
-10 fC fS
-20 2
-30
-40 FIGURE 11B. AFTER FILTERING
-50
FIGURE 11. IN-BAND QUANTIZATION NOISE BEFORE AND
-60
NOISE (dB)
Introduction to Z-Transforms It is also important to note that a z-1 term in the z domain trans-
lates to a unit time delay in the time domain.[4]
Z transforms are often mentioned when digital filters are dis-
cussed and they can be intimidating to those not familiar with Figure 13 shows an arbitrary block diagram for a z transform
them. However, a few pictures and equations showing the rela- example. From the figure it is seen that
tionships between the Laplace and z transforms along with a z
transform example should help to reduce the intimidation fac- –1 –2 (EQ. 19)
8x – 3Yz + 2Yz = Y.
tor.
Solving for Y/X, the transfer function of the example is
The following equations provide a simple (and not rigorous)
method for observing the relationships of the Laplace and z
transforms: Y 8z
2
– st ---- = ----------------------------. (EQ. 20)
X 2
F s = e f t dt (EQ. 16A) z + 3z – 2
0
GAIN
–n
Fz = f nt z (EQ. 16B) x(k) 8 y(k)
n=0
s = j (EQ. 17A) GAIN Z -1
-
jt 3
z = e (EQ. 17B)
– jt
Z -1
F j = 0 e f t dt (EQ. 18A) GAIN
2
– jnt
F j = f nt e . (EQ. 18B) FIGURE 13. ARBITRARY Z-TRANSFORM EXAMPLE
n=0
This system has a second order zero at z = 0 and two poles;
Equations 16A and 16B show the definitions of the two trans-
one at z = 0.562, and one at z = -3.562.
forms. For the Laplace transform s is defined to be j while for the
z transform z is defined as e jt. Substituting these values into 16A The above brief introduction to the z transform leads to a quick
and 17A respectively result in Equations 18A and 18B. These last discussion of digital filters.
two equations show that the two transforms are actually very sim-
Digital Filters
ilar with the difference being the Laplace transform is a continu-
ous summation of a continuous signal and the z transform is a There are two types of digital filters:
discreet summation of a sampled signal.
• Finite Impulse Response (FIR) filter, also known as a non-
Figure 12 graphically defines the relationships between the s recursive filter, represented by
and z planes. It is important to note the following: M
1. The left half of the s plane maps within the unit circle of the
z plane.
yn = a k x n – k . (EQ. 21)
k=0
2. The distance fS along the real frequency axis of the s plane
wraps once around the unit circle in the z plane. • Infinite Impulse Response (IIR) filter, also known as a recur-
sive filter, whose response is given by
3. Any pole outside of the unit circle in the z plane means the
system is unstable. M N
4. First order poles on the unit circle of the z plane imply mar- yn = ak x n – k + bk y n – k . (EQ. 22)
ginally stable terms but multiple order poles on the unit cir- k=0 k=0
cle imply an unstable system.
Note that the difference between these two types of filters is for
5. Poles inside the unit circle of the z plane represent stable the FIR the output y(n) is dependent only on past and present
terms. values of the input. However, the output y(n) for the IIR filter is
6. Zeros can appear anywhere in the z plane without affecting dependent on past and present values of both the input and
system stability. the output.
S-PLANE Z-PLANE Figure 14 shows a block diagram example and derived transfer
3fS /2
r=1 functions of a FIR filter and an IIR filter. The advantages and
fS Z = est
disadvantages of these filters are given in table 1. The filter
fS /2
fS/2, 3fS/2, ... 0, fS, ...
most commonly used for the back end of a sigma delta con-
-fS /2 verter is the FIR because of its stability, ease of implementa-
-fS tion, linear phase response, and the fact that decimation can
-3fS /2 be incorporated into the filter itself.
FIGURE 12. S PLANE AND Z PLANE MAPPING
Decimation
FIGURE 14A. FIR FILTER BLOCK DIAGRAM
The process of decimation is used in a sigma delta converter to
y(k) eliminate redundant data at the output. The sampling theorem
x(k) tells us that the sample rate only needs to be 2 times the input
signal bandwidth in order to reliably reconstruct the input signal
Z -1 without distortion. However, the input signal was grossly over-
-
b1 sampled by the sigma delta modulator in order to reduce the
quantization noise. Therefore, there is redundant data that can
Z -1 be eliminated without introducing distortion to the conversion
- result. The decimation process is shown in both the frequency
b2 1
H z = ------------------------------------------------------------------------------ and time domains in Figure 15. Both Figures 15A and 15B
–1 –2 –n
1 + b 1 z + b 2 z + ... + b n z show that the decimation process simply reduces the output
sample rate while retaining the necessary information.
INPUT
fS /2 fS
INPUT SPECTRUM
DECIMATOR
fS /8 fS /4 fS /2 fS
fS /8 fS /4 fS /2 fS
OUTPUT SPECTRUM
Summary References
In summary this application note has been a very brief intro- [1] Alexander D. Poularikas, Samuel Seely, “Signals and Sys-
duction to the world of sigma delta conversion. The sampling tems,” Massachusetts, PWS, 1985. p. 373-374.
theorem and quantization noise theory were reviewed and it
[2] James C. Candy, Gabor C. Temes. “Oversampling Methods
was shown that a sigma delta converter grossly oversamples
for A/D D/A Conversion, Oversampling Delta-Sigma Con-
the input signal and shapes the noise spectrum such that the
verters,” New Jersey, IEEE Press, 1992., p. 2-3.
modulator appears to be a high pass filter for the noise and a
low pass filter for the input signal. The relationships between [3] Candy and Temes, p. 3-7.
the Laplace and z transforms were discussed and the two
transforms were found to be very similar. The two types of digi- [4] Poularikas and Seely, p. 480.
tal filters were introduced and their properties as they apply to
sigma delta conversion were analyzed. Finally, the concept of
decimation (or data rate reduction) was introduced along with
the fact that decimation can easily be incorporated into an FIR
filter structure.