Module 5
Module 5
Digital to Analog
Convertors(DAC)
• Signals are mainly classified into two
types i.e. Analog & Digital signal.
• The data or information that we perceive
in real world exists in analog form while
the digital devices such as cellphone,
calculator & computer can only
understand a data signal in digital
domain.
• Analog to Digital (ADC) & Digital to
analog converter (DAC) are the two
types of converters that we use in our
daily life to convert the signals into each
other.
What is DAC?
• Digital to analog converter is an
electronic circuit that converts any
digital signal (such as binary
signal) into an analog signal.
• The digital signal such as the
binary signal exist in the form of
bits & it is the combination of 1’s &
0’s (or High & low voltage levels).
The DAC converts these bits into
an analog voltage or current.
Need of DAC
• The information exist in real world is in analog
form.
• Why we convert them into digital form in the
first place if we want to convert them back?
• The processing speed of a digital computer is
very fast & can compute or process any data in
a matter of microseconds.
• It conserves time & helps in processing
complex data according to our need. But we
cannot understand the digital data in real
world.
Need of DAC
• To understand the data that we process in a
digital domain, we need to convert it into
analog domain.
• An example of that would be the process of
audio & video editing. We capture the data
using our digital camera & microphone to
convert the analog data into digital.
• We process it using our computers to edit it
according to over needs.
• To view our edited work, we use DACs to
convert it back into the analog domain to view
& listen it through our screen & speakers.
Types of DAC
Converters(ADC)
signal.
• The analog input signal of ADC
is continuous time & continuous
amplitude signal. The output of ADC is
a discrete time and discrete
amplitude digital signal.
• In the real world, every real quantity such
as voice, temperature, weight etc exists in
the analog state. And it cannot be
processed by any digital device such as a
computer or a cell phone.
• These analog quantities are converted into
digital form so that a digital device can
process it. This conversion is done
using analog to digital converter.
• The analog signal is first applied to the ‘sample‘ block
Block Diagram of where it is sampled at a specific sampling frequency.
ADC • The sample amplitude value is maintained and held in the
‘hold‘ block. It is an analog value.
• The hold sample is quantized into discrete value by the
‘quantize‘ block.
• At last, the ‘encoder‘ converts the discrete amplitude
into a binary number.
Analog To Digital Conversion Steps
Sample
• The sample block function is to sample the input analog signal at
a specific time interval.
• The samples are taken in continuous amplitude & possess real
value, but they are discrete with respect to time.
• The sampling frequency plays important role in the conversion.
So, it is maintained at a specific rate. The sampling rate is set
according to the requirement of the system.
Hold
• The second block used in ADC is the ‘Hold’ block.
• It has no function.
• It only holds the sample amplitude until the next sample is taken.
The hold value remains unchanged till the next sample.
Analog To Digital
Conversion Steps
Quantize
• This block is used for quantization. It converts the analog or
continuous amplitude into discrete amplitude.
• The on hold continuous amplitude value in hold block goes
through ‘quantize’ block & becomes discrete in amplitude. The
signal is now in digital form as it has discrete time & discrete
amplitude.
Encoder
• The encoder block converts the digital signal into binary
form i.e. into bits.
• As we know that the digital devices operate on binary signals, so
it is necessary to convert the digital signal into the binary form
using the Encoder.
• This is the whole process of converting an Analog signal into
digital form using an Analog to Digital Converter. This whole
conversion occurs in a microsecond.
Techniques of Analog-
to-Digital Conversion
• In comparison to natural
sampling flat top sampling can
be easily obtained.
• In this sampling technique, the
top of the samples remains
constant by using a circuit.
• This is the most common
sampling method used.
• Nyquist Theorem:
• One important consideration is the
sampling rate or frequency. According to
the Nyquist theorem, the sampling rate
must be at least 2 times the highest
frequency contained in the signal.
• It is also known as the minimum sampling
rate and given by:
Fs =2*fh
Quantization
The result of sampling is a series of
pulses with amplitude values
between the maximum and
minimum amplitudes of the signal.
The set of amplitudes can be infinite
with non-integral values between
two limits.
The following are the steps in
Quantization:
1. We assume that the signal has
amplitudes between Vmax and Vmin
2. We divide it into L zones each of
height d where, d= (Vmax- Vmin)/ L
Quantization
3. The value at the top of each sample in the graph
shows the actual amplitude.
4. The normalized pulse amplitude
modulation(PAM) value is calculated using the
formula amplitude/d.
5. After this we calculate the quantized value which
the process selects from the middle of each zone.
6. The Quantized error is given by the difference
between quantized value and normalised PAM
value.
7. The Quantization code for each sample based on
quantization levels at the left of the graph.
Encodingg
1. Static RAM
2. Dynamic RAM
SRAM and DRAM