1 4-Integrating Peripherals in Embedded Systems (cont.)

Slides:



Advertisements
Similar presentations
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.
Advertisements

L 19 Electronic Sound- Analog and Digital. Electronics in Music 1.Intro 2.Basic Analog Electronics 3.Digital Audio.
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
Digital Fundamentals Tenth Edition Floyd Chapter 12.
CE 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Analog to Digital (and back again) Interfacing a microprocessor-based system.
4-Integrating Peripherals in Embedded Systems (cont.)
Analog to Digital Conversion. Introduction  An analog-to-digital converter (ADC, A/D, or A to D) is a device that converts continuous signals to discrete.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
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.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
From the air to the iPod. Minute disturbances in the air, caused by a vibrating object Air molecules bunch together, then spread out Changes in density.
Lecture 9: D/A and A/D Converters
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
Digital Audio.
CHAPTER 5 Discrete Sampling and Analysis of Time-Varying Signals Analog recording systems, which can record signals continuously in time, digital data-acquisition.
Interfacing Analog and Digital Circuits
Unit 4 Sensors and Actuators
Quantization Prof. Siripong Potisuk.
Introduction to Data Conversion
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
EET260: A/D and D/A converters
Analog-to-Digital Converters Prepared by: Mohammed Al-Ghamdi, Mohammed Al-Alawi,
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 4 Introduction to Networks and the Internet.
Chapter 2 : Business Information Business Data Communications, 4e.
Chapter 1: Introduction Business Data Communications, 4e.
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
Representing Sound in a computer Analogue  Analogue sound is produced by being picked up by a transducer (microphone) and converted in an electrical current.
Digital Data Patrice Koehl Computer Science UC Davis.
11 Lecture Slides ME 3222 Kinematics and Control Lab Lab 2 AD DA and Sampling Theory By Dr. Debao Zhou.
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
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
COMP Representing Sound in a ComputerSound Course book - pages
1 Week 10: Audio Recording. 2 Overview  What is sound?  What does analogue mean?  Analogue-to-Digital conversion  Key terms in digital audio  Compression.
CSC361/661 Digital Media Spring 2002
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
Analog to Digital Converters (ADC) 1
Data Acquisition Systems
EE345 - Micro-Controllers An Overview Prof. Ahmad Abu-El-Haija
CIS-325: Data Communications1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Sound and Digital Sound v © Allan C. Milne Abertay University.
Encoding and Simple Manipulation
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Analog/Digital Conversion
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
By: Logan Sealover  Analog-to-Digital Conversion (ADC)  Digital-to-Analog Conversion (DAC)  History of Class D Amplifiers  Audio Amplifier Classes.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Residential Audio & Video Systems Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Presentation 15 – Digital Audio and Video.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Microprocessors Data Converters Analog to Digital Converters (ADC)
Multimedia Systems and Applications
Analog to Digital Converters Electronics Unit – Lecture 7
IT 2002 – Graphics & Multimedia
Data Representation Keywords Sound
ECE 354 Computer Systems Lab II
Analog-to-digital converter
Presentation transcript:

1 4-Integrating Peripherals in Embedded Systems (cont.)

2 Analog-to-digital converters Why Analog? Not everything is digital! Even digital signaling has analog aspects (!?) Analog circuits and analysis are still necessary Physical phenomena (ie the real world) are usually analog Many sensors are analog (potentiometer, phototransistor, thermo-sensor, microphone) Many actuators are analog (solenoid, speakers) Some signals need to be processed in analog domain before conversion to digital (amplification, filtering, linearization)

3 Analog-to-digital converters proportionality V max = 7.5V 0V V 1.0V 1.5V 2.0V 2.5V 3.0V 3.5V 4.0V 4.5V 5.0V 5.5V 6.0V 6.5V 7.0V analog to digital t1t2t3 t time analog input (V) Digital output digital to analog t1t2t3 t4 time analog output (V) Digital input

4 Digital and Analog Conversion A/D transfer function:  10-bit ADC converter  1024 voltage levels between 0V and VREF  10-bit digital value Usually VDD=VREF e/Vmax=d/(2^n-1) How does D/A and A/D conversion work?

5 D/A Conversion D/A is simpler than A/D  Different resisters and an inverted OpAmp, to implement a weighted summer.  Example: 4-bit D/A  If D3D2D1D0=0001 (i.e., 0V,0V,0V,-5V) Vo=-1.1*(D0/17.6+D1/8.8+D2/4.4+D2/2.2) =0.3125V  If D3D2D1D0=1111 (i.e., -5V,-5V,-5V,-5V) Vo=-1.1*(D0/17.6+D1/8.8+D2/4.4+D2/2.2) =4.6875V

6 A/D Conversion Use D/A converter to generate different analog values and compare  Control logic decides which values to try  When comparison complete, best match is put on output How can D/A be matched to input in fewest steps?

7 Successive Approximation Matching strategies:  Counting conversion (slow)  Successive approximation (faster) Successive Approximation:  Basically binary search:  10 steps instead of 1024

8 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/( )=d/255 d= 85 Successive-approximation method Digital-to-analog conversion using successive approximation Encoding: ½(V max – V min ) = 7.5 volts V max = 7.5 volts. ½( ) = 3.75 volts V min = 3.75 volts ½( ) = 5.63 volts V max = 5.63 volts ½( ) = 4.69 volts V min = 4.69 volts ½( ) = 5.16 volts V max = 5.16 volts ½( ) = 4.93 volts V min = 4.93 volts ½( ) = 5.05 volts V max = 5.05 volts ½( ) = 4.99 volts

9 Analog to Digital Recording Chain ADC Continuously varying electrical energy is an analog of the sound pressure wave. Microphone converts acoustic to electrical energy. It’s a transducer. ADC (Analog to Digital Converter) converts analog to digital electrical signal. Digital signal transmits binary numbers. DAC (Digital to Analog Converter) converts digital signal in computer to analog for your headphones.

10 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.

11 Analog to Digital Conversion Instantaneous amplitudes of continuous analog signal, measured at equally spaced points in time. A series of “snapshots”

12 [a.k.a. “sample word length,” “bit depth”] Precision of numbers used for measurement: the more bits, the higher the resolution. Example: 16 bit Analog to Digital Overview Sampling Rate How often analog signal is measured Sampling Resolution [samples per second, Hz] Example: 44,100 Hz

13 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.

14 Common Sampling Rates Sampling RateUses 44.1 kHz (44100)CD, DAT 48 kHz (48000)DAT, DV, DVD-Video 96 kHz (96000)DVD-Audio kHz (22050)Old samplers Most software can handle all these rates. Which rates can represent the range of frequencies audible by (fresh) ears?

15 3-bit Quantization A 3-bit binary (base 2) number has 2 3 = 8 values A rough approximation Amplitude Time — measure amp. at each tick of sample clock

16 Common Sampling Resolutions Word lengthUses 8-bit integerLow-res web audio 16-bit integerCD, DAT, DV, sound files 24-bit integerDVD-Video, DVD-Audio 32-bit floating point Software (usually only for internal representation)

17 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: This is what appears in a sound file, along with a header that indicates the sampling rate, bit depth and other things.

18 Audio File Size CD characteristics… - Sampling rate: 44,100 samples per second (44.1 kHz) How big is a 5-minute CD-quality sound file? - Sample word length: 16 bits (i.e., 2 bytes) per sample - Number of channels: 2 (stereo)

19 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 megabytes (MB)

20 MPEG Compression MPEG 1-Layer 3 (.mp3)  “Motion Picture Experts Group” Different levels for different purposes E.g. MPEG 2 used for DVDs  Takes out parts of the sound signal that humans can’t hear  How does the size change? Lossy compression Data Reduction LayerBitrate (kbps) for stereo 1: :6..1: : …112 More on MPEG Compression

21 MPEG 3 Audio Compression (mp3)

22 MPEG Compression