EE 319K Introduction to Microcontrollers

Slides:



Advertisements
Similar presentations
Chapter 21 Musical Sounds.
Advertisements

Introduction to Digital Audio
IntroductionIntroduction Most musical sounds are periodic, and are composed of a collection of harmonic sine waves.Most musical sounds are periodic, and.
Fundamentals of Data & Signals (Part II) School of Business Eastern Illinois University © Abdou Illia, Spring 2015 (February18, 2015)
Phun With Sound Basic Concepts For Hardware (and other) Hackers.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
This lesson covers the following outcomes Unit 54 P1, P7, P8 Unit 6 P10, P11.
University Of Vaasa Telecommunications Engineering Automation Seminar Signal Generator By Tibebu Sime 13 th December 2011.
TRANSMISSION FUNDAMENTALS Recap Questions/Solutions
Introduction to electronics lab ENGRI 1810 Using: Solderless prototype board (white board) Digital multimeter (DMM) Power Supply Signal Generator Oscilloscope.
1 Lecture 27 Physical Layer (Data and Signals) University of Nevada – Reno Computer Science & Engineering Department Fall 2010 CPE 400 / 600 Computer Communication.
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.
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.
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
Chapter 6 (Sections ) Sound. The speed of sound in a substance depends on: the mass of its constituent atoms, and the strength of the forces between.
Analogue to Digital Conversion
Introduction to Data Conversion
EET260: A/D and D/A converters
Dr. Jie ZouPHY Chapter 8 (Hall) Sound Spectra.
1 Why do we computer scientists need to know communication technologies? Professor R. C. T. Lee.
CSE466 Autumn ‘00- 1 System Functional Requirements  Children’s toy…comes with PC software. Child plays notes on the screen and the device makes corresponding.
Spring 2002EECS150 - Lec13-proj Page 1 EECS150 - Digital Design Lecture 13 - Final Project Description March 7, 2002 John Wawrzynek.
1 Multimedia Systems 1 Dr Paul Newbury School of Engineering and Information Technology ENGG II - 3A11 Ext: 2615.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Announcements l Bring motors to lab this week. l Bring eight 1N4001 diodes to lab per team. Get them at the Scientific Supply Store (2 nd Floor Sciences.
Magnitude and Phase Measurements
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Institute Of Applied Technology ATE 1012 Grade 10 Eng. Rose Hasan.
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
Lecture 1 Signals in the Time and Frequency Domains
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
COSC 1P02 Introduction to Computer Science 4.1 Cosc 1P02 Week 4 Lecture slides “Programs are meant to be read by humans and only incidentally for computers.
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
Introduction to SOUND.
Day 6 Exam I is on Thursday. Be sure to attend lab this week.
Audio / Sound INTRODUCTION TO MULTIMEDIA SYSTEMS Lect. No 3: AUDIO TECHNOLOGY.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
EE 113D Fall 2008 Patrick Lundquist Ryan Wong
1 Composite Signals and Fourier Series To approximate a square wave with frequency f and amplitude A, the terms of the series are as follows: Frequencies:
Analog-to-Digital and Digital-to-Analog Conversion
Digital Audio. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Electronic workshop Dr. Imtiaz Hussain URL :
Chapter 2 Fundamentals of Data and Signals
Oscillator & Oscilloscope, Hearing Includes Lab 1 and Lab 3.
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
Design of a Guitar Tab Player in MATLAB Background Lecture
15.1 Properties of Sound. Chapter 15 Objectives  Explain how the pitch, loudness, and speed of sound are related to properties of waves.  Describe how.
Automatic Guitar Tuner Group #10 Dariusz Prokopczak & Stephan Erickson ECE 445 Sr. Design December 9, 2014.
Electronic instrumentation Digitization of Analog Signal in TD
Data Communication and Networking Digital Transmission Chapter 4.
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
MODULE 2: Circuits, Signals and the Analog Discovery Board SUMMER CHALLENGE Electrical Engineering: Smart Lighting Michael Rahaim, PhD Candidate Multimedia.
Review for Fun II Test 1.
Introduction to Digital Audio
Digital Acquisition of Analog Signals – A Practical Guide
Introduction to Digital Audio
Digital to Analog Converters (DAC)
Introduction to Digital Audio
Representing Sound 2.6 – Data Representation.
Sensors and actuators Sensors Resistive sensors
Dr. Unnikrishnan P.C. Professor, EEE
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
Presentation transcript:

EE 319K Introduction to Microcontrollers Lecture 11: DAC, Sound on 9S12, Lab7(Music/Pacemaker)

Digital to Analog Conversion Examples Signal generation (sound, image, touch…) Output to affect external devices (power, flow, heat…) The DAC precision is the number of distinguishable DAC outputs (e.g., 16 alternatives, 4 bits). The DAC range is the maximum and minimum DAC output (0 to 5V). The DAC resolution is the smallest distinguishable change in output. (5V/16 =0.31V) Range(volts) = Precision(alternatives) * Resolution(volts) The DAC accuracy is (Actual - Ideal) / Ideal Ramesh Yerraballi

2-bit DAC - Two Designs *Assume VOH of the 9S12 is 5V and VOL is 0V Ramesh Yerraballi

4-bit DAC Vout = (8*Q3 + 4*Q2 + 2*Q1 + Q0)/15 where Qn is 5V or 0V Ramesh Yerraballi

Sound Basics Humans can hear from about 25 to 20,000 Hz. Middle A is 440 Hz Other notes on a keyboard are determined 440 * 2N/12 "N" is number of notes up or down from middle A. Middle C is 261.6 Hz. Music contains multiple harmonics Ramesh Yerraballi

Sound The loudness and pitch are controlled by the amplitude and frequency. A 440Hz sine wave generated with a 4-bit DAC. The plot on the right is the Fourier Transform(frequency spectrum dB versus kHz) of the data plotted on the left. Ramesh Yerraballi

Music A waveform shape that generates a trumpet sound. Ramesh Yerraballi

…Music You can control the amplitude, frequency and duration of each note (not drawn to scale). The amplitude of a plucked string drops exponentially in time Ramesh Yerraballi

…Music A simple chord mixing the notes C and G Ramesh Yerraballi

Song How much memory does it take to store a song? 3 minutes Stereo Channels 44 kHz 12-bit per channel How many bus cycles does it take to output one value? Fetch data from memory Decompress Filter/amplify/mix/envelope DAC speed Ramesh Yerraballi

Lab7: Sound Debugging: Use a DC motor to test the voltages being output to the analog out Connect the PH3-0 lines to power a DC motor Connect a scope to view this voltage as a function of time Once you are sure your DAC_Out is doing what it is supposed to, then go ahead and implement the piano keys Ramesh Yerraballi

Sine Wave with period T Periodic Interrupt every T/32 Output next entry in below table on interrupt SinTab fcb 8,9,11,12,13,14,14,15,15,15,14 fcb 14,13,12,11,9,8,7,5,4,3,2 fcb 2,1,1,1,2,2,3,4,5,7 Ramesh Yerraballi

Lab7: Pacemaker Debugging: Use a DC motor to test the voltages being output to the analog out Connect the PH3-0 lines to power a DC motor Connect a scope to view this voltage as a function of time Once you are sure your DAC_Out is doing what it is supposed to, then go ahead and implement a DAC circuit Ramesh Yerraballi

Ventricular Output pulse Ae-t/τ (Amplitude A=5; τ=2) Periodic Interrupt every t2/101 Output next entry in below table on interrupt VentOut fcb 15,15,15,15,14,14,14,14,14,14 fcb 14,13,13,13,13,13,13,13,13,12 fcb 12,12,12,12,12,12,12,11,11,11 fcb 11,11,11,11,11,11,10,10,10,10 fcb 10,10,10,10,10,10,9,9,9,9 fcb 9,9,9,9,9,9,9,8,8,8 fcb 8,8,8,8,8,8,8,8,8,8 fcb 7,7,7,7,7,7,7,7,7,7 fcb 7,7,7,7,6,6,6,6,6,6 fcb 6,6,6,6,6,6,6,6,6,6,6 Ramesh Yerraballi