Sampling Theory. Time domain Present a recurring phenomena as amplitude vs. time  Sine Wave.

Slides:



Advertisements
Similar presentations
Analog to digital conversion
Advertisements

Physical Layer: Signals, Capacity, and Coding
Digital Signal Processing
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Analogue to Digital Conversion (PCM and DM)
Lecture 26 Physical Layer Ch 4: Digital Transmission
Theoretical basis for data communication
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
Chapter 2 Data and Signals
The Illinois Society of Electroneurodiagnostic Technologists (ISET) Fall Meeting: Electronics Crash Course for Technologists Saturday, November 9, 2013.
Analog to Digital Conversion. 12 bit vs 16 bit A/D Card Input Volts = A/D 12 bit 2 12 = Volts = Volts = 2048 −10 Volts = 0 Input Volts.
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
EE302 Lesson 21: Transmission of Binary Data in Communication Systems
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
EET260: A/D and D/A converters
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 5 Introduction to Networks and the Internet.
JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary.
Chapter 3 Data and Signals
EKT343 –Principle of Communication Engineering
Chapter 4 Digital Transmission
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Basics of Signal Processing. frequency = 1/T  speed of sound × T, where T is a period sine wave period (frequency) amplitude phase.
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
LE 460 L Acoustics and Experimental Phonetics L-13
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Key terms Sampling rate – how often we read the value of the signal Resolution – the separation between “levels” for our samples (can we read the value.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
Data Communications & Computer Networks, Second Edition1 Chapter 2 Fundamentals of Data and Signals.
Part 2 Physical Layer and Media
Computer Communication & Networks
Digital Recording Theory Using Peak. Listening James Tenney, Collage #1 (“Blue Suede”),  Available in Bracken Library, on James Tenney Selected.
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
BZUPAGES.COM 4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Physical Layer PART II. Position of the physical layer.
Data Comm. & Networks Lecture 6 Instructor: Ibrahim Tariq.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
Chapter 21 Musical Sounds.
1 Manipulating Audio. 2 Why Digital Audio  Analogue electronics are always prone to noise time amplitude.
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
A. B. M. Nasiruzzaman Dept. of EEE, RUET According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency contained in.
Chapter 4 Digital Transmission. 4.2 Summary Line Coding Line Coding Schemes Block Coding Scrambling Signal Element versus data element Multilevel : 2b1Q.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Basics of Digital Audio Module (revised)
From Information to Numbers The world is full of information Digital devices store numbers as bits How do we turn signals into numbers? Answer: Digitization.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Computer Communication & Networks
Topics discussed in this section:
Fri. Oct 13 Announcements Lab practical next week
Chapter 3 Sampling.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture Signals with limited frequency range
Chapter 2 Signal Sampling and Quantization
MECH 373 Instrumentation and Measurements
Digital Control Systems Waseem Gulsher
Chapter 3: PCM Noise and Companding
Presentation transcript:

Sampling Theory

Time domain Present a recurring phenomena as amplitude vs. time  Sine Wave

Frequency domain Present recurring phenomena as amplitude vs. frequency Same sine wave looks like – Amplitude Frequency

Multiple Waves

Both Domains

Voice in both Domains Voice in the Time Domain Voice in the Frequency Domain

Harmonics See SpreadsheetSpreadsheet Clarinet Flute Horn Guitar

Fourier Analysis The eardrum responds to a sum of all the waves arriving at a particular instant. Yet the individual sounds are “heard.” Any waveform is composed of an infinite number of simple sine waves of various frequencies and amplitudes. Jean Baptiste Joseph Fourier

Letter Frequency Frequency Letter Frequency Frequency Note Name (Hz) ratio Interval do C 264 9/8 Whole re D /9 Whole mi E /15 Half fa F 352 9/8 Whole sol G /9 Whole la A 440 9/8 Whole ti B /15 Half do C 528 Diatonic C Major Scale

The Keyboard Virtual Keyboard

Digitizing the Sound We want to reconstruct the sound digitally How often must we obtain a sample to faithfully reproduce the sound?

Poor Sampling Sampling Frequency = 1/2 X Wave Frequency

Even Worse Sampling Frequency = 1/3 X Wave Frequency

Higher Sampling Frequency Sampling Frequency = 2/3 Wave Frequency

Getting Better Sampling Frequency = Wave Frequency

Good Sampling Sampling Frequency = 2 X Wave Frequency

Nyquist-Shannon Sampling Theorem A sampled time signal must not contain components at frequencies above half the sampling rate (The so-called Nyquist frequency) The highest frequency which can be accurately represented is one-half of the sampling rate

Range of Human Hearing 20 – 20,000 Hz We lose high frequency response with age Women generally have better response than men To reproduce 20 kHz requires a sampling rate of 40 kHz –Below the Nyquist frequency we introduce aliasing

Effect of Aliasing Fourier Theorem states that any waveform can be reproduced by sine waves. Improperly sampled signals will have other sine wave components.

Example of Aliasing The blue is the original signal The red dots are the samples –Obviously, the red is a poor representation of the signal

Another Example Spatial Aliasing Correcting for aliasing is called anti-aliasing

Temporal Aliasing Wagon Wheel Helicopter

Half the Nyquist Frequency

Nyquist Frequency

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) –44.1 kHz at 8 bits gives Hz/bit (almost an octave) – [44,100 Hz/256 = Hz/bit] –44.1 kHz at 16 bits gives 0.67 Hz/bit – [44,100 Hz/65536 = 0.67 Hz/bit]

Digital Voice Telephone Transmission (DS0) Voice data for telephony purposes is limited to frequencies less than 4,000 Hz. According to Nyquist, it would take 8,000 samples/sec (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/sec = 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 (digital signal 1) which passes over a T-1 circuit. For DS- 1 transmissions, each frame contains 8 bits per channel and there are 24 channels. Also, one "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 Mbps.--not a coincidence. Each of the 24 channels in a T-1 circuit carries 64Kbps.

DS0 – also called timeslots - 64 kilobits per second (telephone modem) ISDN - Two DS0 lines plus signaling (16 kilobytes per second), or 128 kilobits per second T megabits per second (24 DS0 lines) T megabits per second (28 T1s) OC megabits per second (84 T1s) OC megabits per second (4 OC3s) OC gigabits per seconds (4 OC12s) OC gigabits per second (4 OC48s) [Internet 2] Standards

How Fast is It? Downloading of the movie Matrix, which is about 136 minutes on DVD Standard telephone modem it took 171 hours ISDN it took almost 74 hours DSL or Cable Modem took 25 hours T1 line took about 6.5 hours Internet2 about 30 seconds (see Columbia Center)Columbia Center

Quantization Error Approximation or quantizing error Greater error = more noise

Example of Quantization Error

D/A Conversion

A3A3 A2A2 A1A1 AoAo 8A 3 +4A 2 +2A 1 +A o

CD ROMS Sampling rate is 44.1 kHz Nyquist Theorem says that the highest reproduced frequency is kHz. –Any frequency above kHz will produce aliasing A low pass filter is used to block frequencies above kHz.

Problems with D/A Imperfect low pass filters Ideally you want 0 dB attenuation at 20 kHz going up to 90 dB at 22 kHz –Very expensive Oversampling will help –Sample at 8 X 20 kHz = 160 kHz Then the low pass filtering needs to be accomplished in 140 kHz not 2 kHz (160 kHz sample rate – 20 kHz max range of hearing)

Finite word length –Most systems today do 16 bit digitizing –65536 different levels The loudest sounds need room, so the normal sounds don’t use the entire range –Problems occur at the low levels where sounds are represented by only one or two bits. High distortions result. Dithering adds low level broadband noise Problems with D/A

Clock speed variation (Jitter) Problems with D/A