SlideShare a Scribd company logo
1 of 26
Download to read offline
DAC (digital-to-analog conversion and
ADC (analog-to-digital conversion)
Course Objectives
Specific Course Topics:
-Basic test signals and their properties
-Basic system examples and their properties
-Signals and systems interaction (Time Domain: Impulse
Response and convolution, Frequency Domain: Frequency
Response)
-Applications that exploit signal & systems interaction:
system id, audio effects, noise filtering, AM / FM radio
-Signal sampling and reconstruction
ADC and DAC
Goals
I. From analog signals to digital signals (ADC)
-Signal quantization and dithering
-The sampling theorem
II. From digital signals to analog signals (DAC)
- Signal reconstruction from sampled data
ADC and DAC
Analog-to-digital conversion (ADC) and digital-to-analog
conversion (DAC) are processes that allow computers
interact with analog signals. These conversions take place in
e.g. CD/DVD players, etc
Digital information is different from the analog counterpart in
two important respects: it is sampled and it is quantized
These operations restrict the information a digital signal
can contain. Thus, it is important to understand what
information you need to retain and what information you can
afford to lose. These are information management questions
The understanding of these restrictions will allow us decide how
to select the sampling frequency, number of bits, and the
type of filter for converting between the analog and digital
realms
Illustration of digitization process
We will look into two stages of
the ADC process: sample and hold
(s/h), and quantization. (After
that, the signal is encoded into
bits by the ADC)
Digitization process
Sample and hold:
The output only changes at periodic instants of time. The
independent variable now takes values in a discrete set
Before: After sampling:
€
t ∈ {0,0.1,...50},
€
yA (t) ∈ (3000,3025),
€
t ∈ (0,50),
€
yS (t) ∈ (3000,3025),
Digitization process
Quantization:
Each flat region in the sampled signal is “rounded-off” to the nearest
member of a set of discrete values (e.g., nearest integer)
Before:
After quantization:
The quantized signal can be then encoded into bits. A bit is a
binary digit (0 or 1). A total of characters (letters of the
alphabet, numbers 0 to 9, and some punctuation characters) can be
encoded into a sequence of binary bits€
yQ (t) ∈ {3000,3001,....,3025}
€
t ∈ {0,0.1,...50},
€
t ∈ {0,0.1,...50},
€
yA (t) ∈ (3000,3025),
€
27
=128
7
Digitization process
Illustration of the code for the word “signal”:
Bits are sent sequentially, they are preceded by a start bit
followed by one or two stop bits
In direct-wired connections between digital equipment, bit can
be represented by a higher voltage (2 to 5V) for a 1 and a
lower voltage (around 0V) for a 0
Signal quantization
Main effect of quantization: introduces error in the signal
This graph measures the
difference between the
sampled and quantized signals.
The error is measured
in LSBs (least significant bit,
a DSP jargon) and is between
the - ½ and ½ values.
The quantization error looks very much like random
noise. Because of this, it is usually modeled as a random
number between – ½ and ½, with zero mean and standard
deviation of 1/sqrt(12) LSB (uniform probability distribution)
€
Signal quantization
Facts:
(1) The random noise or quantization error will add to whatever
noise is present in the analog signal
(2) The quantization error is determined by the number of bits
that are later used to encode the signal. If we increase the
number of bits, the error will decrease
Question: How many bits do we need in the ADC? How fine
should the quantization be? (equivalent questions)
Answer: the number of bits chosen should be enough so that
the quantization error is small in comparison with the noise
present in the signal
€
Dithering
When isn’t this model of quantization as noise valid? When the
analog signal remains about the same value for many
consecutive samples
In the situation above,
Dithering; i.e adding small noise
to the signal before quantizing
improves things!
€
The sampling theorem
Suppose you sample a signal in some way. If you can exactly
reconstruct the signal from the samples, then you have
done a proper sampling and captured the key signal
information
Definition: The sampling frequency fs, is the number of
samples per second. This is to be compared with the signal
cyclic frequencies
Examples of proper sampling:
The continuous analog signal
(constant DC value or cosine
with zero frequency) can be
reconstructed from the samples
€
The sampling theorem
Example of proper sampling (II):
This is a f=90 cycle/second
sinusoid sampled at
fs=1000 samples/second.
In other words, the wave has
a frequency of 0.09 of the sampling
rate:
Equivalently, there are samples taken over a
complete cycle of the sinusoid
These samples represent accurately the sinusoid because there is no
other sinusoid that can produce the same samples
€
f = 0.09 × fs = 0.09 ×1000
€
1000/90 =11.1
The sampling theorem
Example of proper sampling (III):
Here,
This results into samples
per sine wave cycle. The
samples are so sparse they don’t
appear to follow the analog wave
Strange as it seems, it can be proven that no other sine wave can
produce the same type of samples
Since the samples represent accurately the sinusoid they constitute a
proper sampling
€
f = 0.31× fs
€
3.2
The sampling theorem
Example of improper sampling:
Here,
This results into samples
per sine wave cycle
Clearly, this is an improper sampling of the signal because another
sine wave that can produce the same samples
The original sine misrepresents itself as another sine. This
phenomenon is called aliasing. (The original sine has hidden its
true identity!)
€
f = 0.95 × fs
€
1.05
The sampling theorem
Suppose a signal highest frequency is (a low-pass
or a band-pass signal). Then a proper sampling
requires a sampling frequency at least satisfying
The number is called the Nyquist frequency
Example: Consider an analog signal with frequencies between 0
and 3kHz. A proper sampling requires a 6kHZ sampling
frequency or higher
Effects of aliasing: It can change the signal real frequency and
the signal real phase (look back at the figure of previous
slide)
€
f <
fs
2
= 0.5 × fs
€
fs
€
f
€
fs
2
Aliasing in the frequency domain
In order to understand better why aliasing is produced, and to
demonstrate the sampling theorem, let us look at the signals
in the frequency domain
Here the analog signal has a frequency of 0.33× fs < 0.5 × fs
Aliasing in the frequency domain
The sampling of the signal is corresponds to doing a
convolution of the signal with an delta impulse train.
We call the result signal impulse train. The magnitude of
this impulse train is shown on the right
As you can see, the sampling has the effect of duplicating the
spectrum of the original signal an infinite number of times.
In other words, sampling introduces new frequencies
Aliasing in the frequency domain
Compare the previous plot with the following one for a different
sampling:
Here, , so this is an improper
sampling. In the FD this means that the repeated spectra
overlap. Since there is no way to separate the overlap, the
signal information is lost
€
f = 0.66 × fs > 0.5 × fs
ADC and DAC
Goals
I. From analog signals to digital signals (ADC)
-Signal quantization and dithering
-The sampling theorem
II. From digital signals to analog signals (DAC)
- Signal reconstruction from sampled data
Digital-to-analog conversion
The DAC reverses the ADC process:
(1) It decodes the signal making a conversion from a bit
sequence to an impulse train:
Digital-to-analog conversion
(2) The signal is reconstructed with an electronic low-pass filter
to remove the frequencies about ½ the sampling rate
After filtering the impulse train with a such a low pass filter, we
would obtain:
Digital-to-analog conversion
However, most electronic DACs create a zeroth-order hold
into the reconstructed signal (a special convolution or
“interpolation”). Thus, what we obtain after decoding is:
In the frequency domain, this effect translates into a
multiplication of the real signal spectrum by a sinc function!
Digital-to-analog conversion
In this event you can do several things:
(1) Ignore the zeroth-order hold and accept the consequences
(2) Design an analog filter to remove the sinc effect. For
example an ideal filter that works has this shape:
This will boost the frequencies
that have been affected by
the sinc function
Other more sophisticated
possibilities are:
(3) Use a fancy “multirate filter” (downsampling, upsampling)
(4) Correct for the zeroth order hold before the DAC
Connection to electronic filters
The full block diagram of a DSP system is the following:
Analog electronic filters are used to comply with the sampling
theorem. The filter placed before ADC is an antialias filter. It
removes frequencies higher than half the sampling rate. The
filter placed after the DAC is a reconstruction filter. It may
include a correction for the zeroth-order hold.
Filters for data conversion
Problem with this design:
Analog filters are not ideal! Thus, knowledge of lowpass filters is
important to be able to deal with different types of signals
(analog filters are being substituted by digital ones)
The filters you choose depend on the application!

More Related Content

What's hot

Chapter 6m
Chapter 6mChapter 6m
Chapter 6mwafaa_A7
 
Phase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignPhase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignSimen Li
 
Frequency Shit Keying(FSK) modulation project report
Frequency Shit Keying(FSK) modulation project reportFrequency Shit Keying(FSK) modulation project report
Frequency Shit Keying(FSK) modulation project reportMd. Rayid Hasan Mojumder
 
Vestigial side band (vsb)
Vestigial side band (vsb)Vestigial side band (vsb)
Vestigial side band (vsb)ggpriya me
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...Nidhi Baranwal
 
DAC-digital to analog converter
DAC-digital to analog converterDAC-digital to analog converter
DAC-digital to analog converterShazid Reaj
 
IIR filter realization using direct form I & II
IIR filter realization using direct form I & IIIIR filter realization using direct form I & II
IIR filter realization using direct form I & IISarang Joshi
 
Frequency shift keying report
Frequency shift keying reportFrequency shift keying report
Frequency shift keying reportestherleah21
 
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬Simen Li
 
Schmitt trigger basics
Schmitt trigger  basicsSchmitt trigger  basics
Schmitt trigger basicsSAQUIB AHMAD
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKnaimish12
 
19EEC03 Linear Integrated Circuits and its Applications
19EEC03 Linear Integrated Circuits and its Applications19EEC03 Linear Integrated Circuits and its Applications
19EEC03 Linear Integrated Circuits and its ApplicationsDr.Raja R
 
Layout design on MICROWIND
Layout design on MICROWINDLayout design on MICROWIND
Layout design on MICROWINDvaibhav jindal
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.pptDreamers6
 

What's hot (20)

Chapter 6m
Chapter 6mChapter 6m
Chapter 6m
 
Phase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignPhase-locked Loops - Theory and Design
Phase-locked Loops - Theory and Design
 
Frequency Shit Keying(FSK) modulation project report
Frequency Shit Keying(FSK) modulation project reportFrequency Shit Keying(FSK) modulation project report
Frequency Shit Keying(FSK) modulation project report
 
Vestigial side band (vsb)
Vestigial side band (vsb)Vestigial side band (vsb)
Vestigial side band (vsb)
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...
 
Pulse modulation
Pulse modulationPulse modulation
Pulse modulation
 
DAC-digital to analog converter
DAC-digital to analog converterDAC-digital to analog converter
DAC-digital to analog converter
 
IIR filter realization using direct form I & II
IIR filter realization using direct form I & IIIIR filter realization using direct form I & II
IIR filter realization using direct form I & II
 
Frequency shift keying report
Frequency shift keying reportFrequency shift keying report
Frequency shift keying report
 
Sampling Theorem and Band Limited Signals
Sampling Theorem and Band Limited SignalsSampling Theorem and Band Limited Signals
Sampling Theorem and Band Limited Signals
 
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
 
Schmitt trigger basics
Schmitt trigger  basicsSchmitt trigger  basics
Schmitt trigger basics
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASK
 
Gmsk
GmskGmsk
Gmsk
 
19EEC03 Linear Integrated Circuits and its Applications
19EEC03 Linear Integrated Circuits and its Applications19EEC03 Linear Integrated Circuits and its Applications
19EEC03 Linear Integrated Circuits and its Applications
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Layout design on MICROWIND
Layout design on MICROWINDLayout design on MICROWIND
Layout design on MICROWIND
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
 
Signals & systems
Signals & systems Signals & systems
Signals & systems
 
ASK FSK PSK Introduction
ASK FSK PSK IntroductionASK FSK PSK Introduction
ASK FSK PSK Introduction
 

Viewers also liked

ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERSripati Mahapatra
 
DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog ConverterHossam Zein
 
디지털사운드
디지털사운드디지털사운드
디지털사운드Donghoi Kim
 
Mp3 player working by digital signal processing
Mp3 player working by digital signal processingMp3 player working by digital signal processing
Mp3 player working by digital signal processingDipanjon Halder
 
Successive Approximation ADC
Successive Approximation ADCSuccessive Approximation ADC
Successive Approximation ADCankit_master
 
Analog and digital modulation formats of optical fiber communication within a...
Analog and digital modulation formats of optical fiber communication within a...Analog and digital modulation formats of optical fiber communication within a...
Analog and digital modulation formats of optical fiber communication within a...IAEME Publication
 
Chapter 5 -_signal_to_noise
Chapter 5 -_signal_to_noiseChapter 5 -_signal_to_noise
Chapter 5 -_signal_to_noiseHitanshu Diwani
 
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...vtunotesbysree
 
Dcn a03-analog transmission
Dcn a03-analog transmissionDcn a03-analog transmission
Dcn a03-analog transmissionSaurabh Daga
 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog TransmissionsTechiNerd
 
Analog to Digital , Digital to Analog Conversion
Analog to Digital , Digital to Analog ConversionAnalog to Digital , Digital to Analog Conversion
Analog to Digital , Digital to Analog ConversionKunj Patel
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARMAarav Soni
 
Modulation of digital and analog data
Modulation of digital and analog dataModulation of digital and analog data
Modulation of digital and analog dataPuspa Dhamayanti
 

Viewers also liked (20)

ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
 
Adc dac converter
Adc dac converterAdc dac converter
Adc dac converter
 
DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog Converter
 
디지털사운드
디지털사운드디지털사운드
디지털사운드
 
Dac
DacDac
Dac
 
DAC
DACDAC
DAC
 
LECTURE-5 (Data Communication) ~www.fida.com.bd
LECTURE-5 (Data Communication) ~www.fida.com.bdLECTURE-5 (Data Communication) ~www.fida.com.bd
LECTURE-5 (Data Communication) ~www.fida.com.bd
 
Successive approximation
Successive approximationSuccessive approximation
Successive approximation
 
Mp3 player working by digital signal processing
Mp3 player working by digital signal processingMp3 player working by digital signal processing
Mp3 player working by digital signal processing
 
Successive Approximation ADC
Successive Approximation ADCSuccessive Approximation ADC
Successive Approximation ADC
 
Analog and digital modulation formats of optical fiber communication within a...
Analog and digital modulation formats of optical fiber communication within a...Analog and digital modulation formats of optical fiber communication within a...
Analog and digital modulation formats of optical fiber communication within a...
 
Chapter 5 -_signal_to_noise
Chapter 5 -_signal_to_noiseChapter 5 -_signal_to_noise
Chapter 5 -_signal_to_noise
 
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...
VTU 5TH SEM CSE SOFTWARE ENGINEERING SOLVED PAPERS - JUN13 DEC13 JUN14 DEC14 ...
 
Dcn a03-analog transmission
Dcn a03-analog transmissionDcn a03-analog transmission
Dcn a03-analog transmission
 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog Transmissions
 
Analog to Digital , Digital to Analog Conversion
Analog to Digital , Digital to Analog ConversionAnalog to Digital , Digital to Analog Conversion
Analog to Digital , Digital to Analog Conversion
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARM
 
Digital Radiography
Digital RadiographyDigital Radiography
Digital Radiography
 
Modulation of digital and analog data
Modulation of digital and analog dataModulation of digital and analog data
Modulation of digital and analog data
 

Similar to Adc dac

PCM and delta modulation.ppt
PCM and delta modulation.pptPCM and delta modulation.ppt
PCM and delta modulation.ppt1637ARUNIMADAS
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleNeha Kurale
 
4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppttest22333
 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmDEEPIKA KAMBOJ
 
TeleCom Lecture 07.ppt
TeleCom Lecture 07.pptTeleCom Lecture 07.ppt
TeleCom Lecture 07.pptRiyaBatool
 
2017 10-06 analogue and digital signals
2017 10-06 analogue and digital signals2017 10-06 analogue and digital signals
2017 10-06 analogue and digital signalsAigerim Kaimakova
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital ConvertersAnas Smarty
 
Assignment2 analog to digital conversion soumit_mukherjee
Assignment2 analog to digital conversion soumit_mukherjeeAssignment2 analog to digital conversion soumit_mukherjee
Assignment2 analog to digital conversion soumit_mukherjeeSoumit Mukherjee
 
BEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfBEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfSunil Manjani
 
UPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxUPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxHarisMasood20
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversionwajahat Gul
 
Lecture7 encodingmodulation
Lecture7 encodingmodulationLecture7 encodingmodulation
Lecture7 encodingmodulationH K
 
DIGITAL TRANSMISSION
DIGITAL TRANSMISSIONDIGITAL TRANSMISSION
DIGITAL TRANSMISSIONAvijeet Negel
 

Similar to Adc dac (20)

Source coding systems
Source coding systemsSource coding systems
Source coding systems
 
PCM and delta modulation.ppt
PCM and delta modulation.pptPCM and delta modulation.ppt
PCM and delta modulation.ppt
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kurale
 
4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt
 
ch4_2_v1.ppt
ch4_2_v1.pptch4_2_v1.ppt
ch4_2_v1.ppt
 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcm
 
LECTURE 2.pptx
LECTURE 2.pptxLECTURE 2.pptx
LECTURE 2.pptx
 
TeleCom Lecture 07.ppt
TeleCom Lecture 07.pptTeleCom Lecture 07.ppt
TeleCom Lecture 07.ppt
 
2017 10-06 analogue and digital signals
2017 10-06 analogue and digital signals2017 10-06 analogue and digital signals
2017 10-06 analogue and digital signals
 
dsp
dspdsp
dsp
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
Assignment2 analog to digital conversion soumit_mukherjee
Assignment2 analog to digital conversion soumit_mukherjeeAssignment2 analog to digital conversion soumit_mukherjee
Assignment2 analog to digital conversion soumit_mukherjee
 
BEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfBEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdf
 
UPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxUPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptx
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversion
 
Lecture7 encodingmodulation
Lecture7 encodingmodulationLecture7 encodingmodulation
Lecture7 encodingmodulation
 
Dsp book ch15
Dsp book ch15Dsp book ch15
Dsp book ch15
 
Digitization
DigitizationDigitization
Digitization
 
Speech technology basics
Speech technology   basicsSpeech technology   basics
Speech technology basics
 
DIGITAL TRANSMISSION
DIGITAL TRANSMISSIONDIGITAL TRANSMISSION
DIGITAL TRANSMISSION
 

Adc dac

  • 1. DAC (digital-to-analog conversion and ADC (analog-to-digital conversion)
  • 2. Course Objectives Specific Course Topics: -Basic test signals and their properties -Basic system examples and their properties -Signals and systems interaction (Time Domain: Impulse Response and convolution, Frequency Domain: Frequency Response) -Applications that exploit signal & systems interaction: system id, audio effects, noise filtering, AM / FM radio -Signal sampling and reconstruction
  • 3. ADC and DAC Goals I. From analog signals to digital signals (ADC) -Signal quantization and dithering -The sampling theorem II. From digital signals to analog signals (DAC) - Signal reconstruction from sampled data
  • 4. ADC and DAC Analog-to-digital conversion (ADC) and digital-to-analog conversion (DAC) are processes that allow computers interact with analog signals. These conversions take place in e.g. CD/DVD players, etc Digital information is different from the analog counterpart in two important respects: it is sampled and it is quantized These operations restrict the information a digital signal can contain. Thus, it is important to understand what information you need to retain and what information you can afford to lose. These are information management questions The understanding of these restrictions will allow us decide how to select the sampling frequency, number of bits, and the type of filter for converting between the analog and digital realms
  • 5. Illustration of digitization process We will look into two stages of the ADC process: sample and hold (s/h), and quantization. (After that, the signal is encoded into bits by the ADC)
  • 6. Digitization process Sample and hold: The output only changes at periodic instants of time. The independent variable now takes values in a discrete set Before: After sampling: € t ∈ {0,0.1,...50}, € yA (t) ∈ (3000,3025), € t ∈ (0,50), € yS (t) ∈ (3000,3025),
  • 7. Digitization process Quantization: Each flat region in the sampled signal is “rounded-off” to the nearest member of a set of discrete values (e.g., nearest integer) Before: After quantization: The quantized signal can be then encoded into bits. A bit is a binary digit (0 or 1). A total of characters (letters of the alphabet, numbers 0 to 9, and some punctuation characters) can be encoded into a sequence of binary bits€ yQ (t) ∈ {3000,3001,....,3025} € t ∈ {0,0.1,...50}, € t ∈ {0,0.1,...50}, € yA (t) ∈ (3000,3025), € 27 =128 7
  • 8. Digitization process Illustration of the code for the word “signal”: Bits are sent sequentially, they are preceded by a start bit followed by one or two stop bits In direct-wired connections between digital equipment, bit can be represented by a higher voltage (2 to 5V) for a 1 and a lower voltage (around 0V) for a 0
  • 9. Signal quantization Main effect of quantization: introduces error in the signal This graph measures the difference between the sampled and quantized signals. The error is measured in LSBs (least significant bit, a DSP jargon) and is between the - ½ and ½ values. The quantization error looks very much like random noise. Because of this, it is usually modeled as a random number between – ½ and ½, with zero mean and standard deviation of 1/sqrt(12) LSB (uniform probability distribution) €
  • 10. Signal quantization Facts: (1) The random noise or quantization error will add to whatever noise is present in the analog signal (2) The quantization error is determined by the number of bits that are later used to encode the signal. If we increase the number of bits, the error will decrease Question: How many bits do we need in the ADC? How fine should the quantization be? (equivalent questions) Answer: the number of bits chosen should be enough so that the quantization error is small in comparison with the noise present in the signal €
  • 11. Dithering When isn’t this model of quantization as noise valid? When the analog signal remains about the same value for many consecutive samples In the situation above, Dithering; i.e adding small noise to the signal before quantizing improves things! €
  • 12. The sampling theorem Suppose you sample a signal in some way. If you can exactly reconstruct the signal from the samples, then you have done a proper sampling and captured the key signal information Definition: The sampling frequency fs, is the number of samples per second. This is to be compared with the signal cyclic frequencies Examples of proper sampling: The continuous analog signal (constant DC value or cosine with zero frequency) can be reconstructed from the samples €
  • 13. The sampling theorem Example of proper sampling (II): This is a f=90 cycle/second sinusoid sampled at fs=1000 samples/second. In other words, the wave has a frequency of 0.09 of the sampling rate: Equivalently, there are samples taken over a complete cycle of the sinusoid These samples represent accurately the sinusoid because there is no other sinusoid that can produce the same samples € f = 0.09 × fs = 0.09 ×1000 € 1000/90 =11.1
  • 14. The sampling theorem Example of proper sampling (III): Here, This results into samples per sine wave cycle. The samples are so sparse they don’t appear to follow the analog wave Strange as it seems, it can be proven that no other sine wave can produce the same type of samples Since the samples represent accurately the sinusoid they constitute a proper sampling € f = 0.31× fs € 3.2
  • 15. The sampling theorem Example of improper sampling: Here, This results into samples per sine wave cycle Clearly, this is an improper sampling of the signal because another sine wave that can produce the same samples The original sine misrepresents itself as another sine. This phenomenon is called aliasing. (The original sine has hidden its true identity!) € f = 0.95 × fs € 1.05
  • 16. The sampling theorem Suppose a signal highest frequency is (a low-pass or a band-pass signal). Then a proper sampling requires a sampling frequency at least satisfying The number is called the Nyquist frequency Example: Consider an analog signal with frequencies between 0 and 3kHz. A proper sampling requires a 6kHZ sampling frequency or higher Effects of aliasing: It can change the signal real frequency and the signal real phase (look back at the figure of previous slide) € f < fs 2 = 0.5 × fs € fs € f € fs 2
  • 17. Aliasing in the frequency domain In order to understand better why aliasing is produced, and to demonstrate the sampling theorem, let us look at the signals in the frequency domain Here the analog signal has a frequency of 0.33× fs < 0.5 × fs
  • 18. Aliasing in the frequency domain The sampling of the signal is corresponds to doing a convolution of the signal with an delta impulse train. We call the result signal impulse train. The magnitude of this impulse train is shown on the right As you can see, the sampling has the effect of duplicating the spectrum of the original signal an infinite number of times. In other words, sampling introduces new frequencies
  • 19. Aliasing in the frequency domain Compare the previous plot with the following one for a different sampling: Here, , so this is an improper sampling. In the FD this means that the repeated spectra overlap. Since there is no way to separate the overlap, the signal information is lost € f = 0.66 × fs > 0.5 × fs
  • 20. ADC and DAC Goals I. From analog signals to digital signals (ADC) -Signal quantization and dithering -The sampling theorem II. From digital signals to analog signals (DAC) - Signal reconstruction from sampled data
  • 21. Digital-to-analog conversion The DAC reverses the ADC process: (1) It decodes the signal making a conversion from a bit sequence to an impulse train:
  • 22. Digital-to-analog conversion (2) The signal is reconstructed with an electronic low-pass filter to remove the frequencies about ½ the sampling rate After filtering the impulse train with a such a low pass filter, we would obtain:
  • 23. Digital-to-analog conversion However, most electronic DACs create a zeroth-order hold into the reconstructed signal (a special convolution or “interpolation”). Thus, what we obtain after decoding is: In the frequency domain, this effect translates into a multiplication of the real signal spectrum by a sinc function!
  • 24. Digital-to-analog conversion In this event you can do several things: (1) Ignore the zeroth-order hold and accept the consequences (2) Design an analog filter to remove the sinc effect. For example an ideal filter that works has this shape: This will boost the frequencies that have been affected by the sinc function Other more sophisticated possibilities are: (3) Use a fancy “multirate filter” (downsampling, upsampling) (4) Correct for the zeroth order hold before the DAC
  • 25. Connection to electronic filters The full block diagram of a DSP system is the following: Analog electronic filters are used to comply with the sampling theorem. The filter placed before ADC is an antialias filter. It removes frequencies higher than half the sampling rate. The filter placed after the DAC is a reconstruction filter. It may include a correction for the zeroth-order hold.
  • 26. Filters for data conversion Problem with this design: Analog filters are not ideal! Thus, knowledge of lowpass filters is important to be able to deal with different types of signals (analog filters are being substituted by digital ones) The filters you choose depend on the application!