Sampling
Sampling
Sampling
Time domain
• Present a recurring phenomena as amplitude
vs. time
Sine Wave
– Sine Wave 1.5
1
Amplitude
0.5
0
-0.5 0 1 2 3 4 5 6
-1
-1.5
Time
Frequency domain
• Present recurring phenomena as amplitude
vs. frequency
• Same sine wave looks like –
Amplitude
Frequency
Multiple Waves
Multiple Waves
Both Domains
Voice in both Domains
Voice in
the Time
Domain
Voice in
the Frequency
Domain
Harmonics
• See Spreadsheet
Flute
Clarinet
Horn Guitar
Fourier Analysis
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
0.5
0
0 5 10 15 20 25
-0.5
-1
-1.5
Nyquist Frequency
1.5
0.5
0
0 2 4 6 8 10 12
-0.5
-1
-1.5
Digitizing
Key Parameters
• Sampling frequency
– 11.025kHZ or 22.05kHZ or 44.1kHZ
• Number of bits per sample
– 8 bits (256 levels) or 16 bits (65,536 levels)
Digital Voice Telephone
Transmission
• Voice data for telephony purposes is limited to
frequencies less than 4,000 Hz.
• According to Nyquist, it would take 8,000 samples
(2 times 4,000) to capture a 4,000 Hz signal
perfectly.
• Generally, one byte is recorded per sample (256
levels). One byte is eight bits of binary data.
• (8 bits * 8,000 samples per second = 64K bps)
over a circuit.
T-1 Transmisson
• T carrier circuits are designed around this
requirement, since they are primarily designed to
carry analog voice signals that have been
digitalized.
• For example, look at the DS-1 signal which passes
over a T-1 circuit. For DS-1 transmissions, each
frame contains 8 bits per channel and there are 24
channels. Also, 1 "framing bit" is required for
each of the 24 channel frames.
T-1 Transmissons
• (24 channels * 8 bits per channel) + 1
framing bit = 193 bits per frame.
193 bits per frame * 8,000 "Nyquist"
samples = 1,544,000 bits per second.
• And it just so happens that the T-1 circuit is
1.544 Mbps.--not a coincidence. Each of the
24 channels in a T-1 circuit carries 64Kbps.
Standards
• DS0 - 64 kilobits per second
• ISDN - Two DS0 lines plus signaling (16 kilobytes
per second), or 128 kilobits per second
• T1 - 1.544 megabits per second (24 DS0 lines)
• T3 - 43.232 megabits per second (28 T1s)
• OC3 - 155 megabits per second (84 T1s)
• OC12 - 622 megabits per second (4 OC3s)
• OC48 - 2.5 gigabits per seconds (4 OC12s)
• OC192 - 9.6 gigabits per second (4 OC48s)
Quantization Error