














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















XXX <100?
0XX <010?
1XX <110?
00X <001?
01X <011?
10X <101?
11X <111?
Digital-to-analog conversion using
successive approximation
Given an analog input signal whose voltage should range from 0 to 15 volts, and an 8-bit digital encoding, calculate the correct encoding for 5 volts. Then trace the successive-approximation approach to find the correct encoding.
5/15 = d/(2^8 - 1)=d/ d= 85
0 1 0 0 0 0 0 0
Encoding: 01010101
½(V (^) max – V (^) min ) = 7.5 volts V (^) max = 7.5 volts.
½(7.5 + 0) = 3.75 volts V (^) min = 3.75 volts.
0 0 0 0 0 0 0 0
½(7.5 + 3.75) = 5.63 volts 0 1 0 0 0 0 0 0 V (^) max = 5.63 volts
½(5.63 + 3.75) = 4.69 volts V (^) min = 4.69 volts.
0 1 0 1 0 0 0 0
½(5.63 + 4.69) = 5.16 volts V (^) max = 5.16 volts.
0 1 0 1 0 0 0 0
½(5.16 + 4.69) = 4.93 volts V (^) min = 4.93 volts.
0 1 0 1 0 1 0 0
½(5.16 + 4.93) = 5.05 volts V (^) max = 5.05 volts.
0 1 0 1 0 1 0 0
½(5.05 + 4.93) = 4.99 volts 0 1 0 1 0 1 0 1
Analog Representations of Sound
Magnified phonograph grooves, viewed from above:
When viewed from the side, channel 1 goes
up and down, and channel 2 goes side to side.
Analog to Digital Conversion
Instantaneous amplitudes of
continuous analog signal, measured
at equally spaced points in time.
A series of “snapshots”
Sampling Rate
Nyquist Theorem:
Sampling rate must be at least twice as high as
the highest frequency you want to represent.
Determines the highest frequency that you
can represent with a digital signal.
Capturing just the crest and trough of a sine
wave will represent the wave exactly.
Common Sampling Rates
Most software can handle all these rates.
Which rates can represent the range of
frequencies audible by (fresh) ears?
Common Sampling Resolutions
The Digital Audio Stream
It’s just a series of sample numbers, to be
interpreted as instantaneous amplitudes: one for
every tick of the sample clock.
Previous example:
11 13 15 13 10 9 6 1 4 9 15 11 13 9
This is what appears in a sound file, along with a
header that indicates the sampling rate, bit
depth and other things.
Audio File Size
5 minutes * 60 seconds per minute
= 300 seconds
How big is a 5-minute CD-quality sound file?
44,100 samples * 2 bytes per sample * 2 channels
= 176,400 bytes per second
300 seconds * 176,400 bytes per second
= 52,920,000 bytes = c. 50.5 megabytes (MB)