Lab 4: Using the CODEC

Similar documents
Using the CODEC ReadMeFirst

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

CME312- LAB Manual DSB-SC Modulation and Demodulation Experiment 6. Experiment 6. Experiment. DSB-SC Modulation and Demodulation

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

ECE 231 Laboratory Exercise 3 Oscilloscope/Function-Generator Operation ECE 231 Laboratory Exercise 3 Oscilloscope/Function Generator Operation

Reference Sources. Prelab. Proakis chapter 7.4.1, equations to as attached

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope

Experiment 02: Amplitude Modulation

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Experiment # (3) PCM Modulator

Transmit filter designs for ADSL modems

Lab 4 An FPGA Based Digital System Design ReadMeFirst

SAMPLE: EXPERIMENT 2 Series RLC Circuit / Bode Plot

EE 233 Circuit Theory Lab 3: First-Order Filters

CME 312-Lab Communication Systems Laboratory

Sound Wave Measurements using an Oscilloscope and Waveform Generator

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

Exercise 1: AC Waveform Generator Familiarization

Intro To Engineering II for ECE: Lab 7 The Op Amp Erin Webster and Dr. Jay Weitzen, c 2014 All rights reserved.

Additive Synthesis OBJECTIVES BACKGROUND

Laboratory Exercises for Analog Circuits and Electronics as Hardware Homework with Student Laptop Computer Instrumentation

EE 3305 Lab I Revised July 18, 2003

Build Your Own Bose WaveRadio Bass Preamp Active Filter Design

Tutorial #2: Simulating Transformers in Multisim. In this tutorial, we will discuss how to simulate two common types of transformers in Multisim.

Experiment # 4. Frequency Modulation

Laboratory Assignment 1 Sampling Phenomena

Lab Report #10 Alex Styborski, Daniel Telesman, and Josh Kauffman Group 12 Abstract

Group: Names: Resistor Band Colors Measured Value ( ) R 1 : 1k R 2 : 1k R 3 : 2k R 4 : 1M R 5 : 1M

Lab 4: Analysis of the Stereo Amplifier

Transmit filter designs for ADSL modems

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Experiment A8 Electronics III Procedure

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Computer Networks and Internets

Experiment # 2 Pulse Code Modulation: Uniform and Non-Uniform

SGN Audio and Speech Processing

Lab 2: Capacitors. Integrator and Differentiator Circuits

Lab 1B LabVIEW Filter Signal

Pre-Lab. Introduction

Media Devices: Audio. CTEC1465/2018S Computer System Support

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ECEGR Lab #8: Introduction to Simulink

LAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS

The Sampling Theorem:

Integrators, differentiators, and simple filters

Experiment # 2. Pulse Code Modulation: Uniform and Non-Uniform

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Figure 1: Closed Loop System

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011


Lab 6: Building a Function Generator

ENGR 210 Lab 12: Sampling and Aliasing

Lab 2: Common Emitter Design: Part 2

Experiment 4 Sampling and Aliasing

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

BME/ISE 3512 Bioelectronics Laboratory Two - Passive Filters

Cornerstone Electronics Technology and Robotics Week 21 Electricity & Electronics Section 10.5, Oscilloscope

LAB 8: Activity P52: LRC Circuit

II. LAB. * Open the LabVIEW program (Start > All Programs > National Instruments > LabVIEW 2012 > LabVIEW 2012)

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

3. Use your unit circle and fill in the exact values of the cosine function for each of the following angles (measured in radians).

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

Lab 9 AC FILTERS AND RESONANCE

LAB #7: Digital Signal Processing

Figure 1: Block diagram of Digital signal processing

Fundamentals of Digital Audio *

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Electrical & Computer Engineering Technology

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

Lab E5: Filters and Complex Impedance

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

Lab 9 Frequency Domain

PHYSICS 107 LAB #9: AMPLIFIERS

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Experiment Guide: RC/RLC Filters and LabVIEW

Acoustic Resonance Lab

Discrete-Time Signal Processing (DTSP) v14

14 fasttest. Multitone Audio Analyzer. Multitone and Synchronous FFT Concepts

Sound synthesis with Pure Data

Lab 2 Operational Amplifier

Low-Cost Power Sources Meet Advanced ADC and VCO Characterization Requirements

Digital Signal Processing

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

Lab 4 Digital Scope and Spectrum Analyzer

Introduction to Lab Instruments

L A B 3 : G E N E R A T I N G S I N U S O I D S

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

Amplitude modulator trainer kit diagram

Knowledge Integration Module 2 Fall 2016

Pulse Code Modulation

PYKC 7 Feb 2019 EA2.3 Electronics 2 Lecture 13-1

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

The University of Queensland School of Information Technology and Electrical Engineering. ELEC3004/7312: Signals, Systems and Controls

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

ME 461 Laboratory #3 Analog-to-Digital Conversion

Transcription:

Lab 4: Using the CODEC ECE 2060 Spring, 2016 Haocheng Zhu Gregory Ochs Monday 12:40 15:40 Date of Experiment: 03/28/16 Date of Submission: 04/08/16

Abstract This lab covers the use of the CODEC that is necessary in nearly all of the future labs. Students will be instructed on how to configure the CODEC and how to use it to do AD/DA conversions. In this lab, students would use the CODEC on the DE2 board to examine basic signals from the benchtop function generator in both the analog and digital domain. In addition, students also would observe an audio signal from an MP3 player and send in an analog signal into the DE2 board and observe the converted digital waveform in Signal Tap II. Introduction The purpose of this lab was to explore the functionality of the CODEC, how to configure the CODEC and how to use it to do AD/DA conversions. The CODEC is a useful tool in converting digital to analog or analog to digital signals. In the lab, students work with the use of the CODEC on the DE2 board to examine basic signals from the benchtop function generator in both the analog and digital domain. In Part 2, students use the CODEC to observe an audio signal from an MP3 player or the ipad. In the third part, team will send in an analog signal into the DE2 board and observe the converted digital waveform in Signal Tap II. When displaying the wave on the oscilloscope, the output signal is being converted to analog. However, to display the data on Signal Tap, the information is being converted to digital. This is done through periodic sampling of the analog wave from the frequency generator.

Equipment and Procedures During this lab there were three sections, the first where the team used the CODEC to create a sine wave and a square wave on the oscilloscope, the second where the team viewed the wave pattern of a song from the the analog input on the oscilloscope, and finally the third part where the team used Signal Tap to plot a digital waveform. Part 1. During this part, the team took a given project that contained a CODEC and set the circuit up to output the input, allowing the input waveform to be seen on the oscilloscope. The team used the signal generator to output a sine wave and a square wave, and the oscilloscope displays of these can be seen in Figure 1 and Figure, respectively. The team was also asked to plot the oscilloscope data in MATLAB, and the resulting plots can be seen in Figure 2 and Figure 4. Part 2. In the second part, the team plugged a mp3 player into the 3.5mm jack, and this produced the waveform of the music on the oscilloscope. Unfortunately, the team did not save the oscilloscope screenshot of this output. Part3. Finally, in the last part of the lab, the team changed the circuit so the left and right digital outputs were left connected to blank output pins. This allowed the team to view the resulting wave in Signal Tap, and this can be seen in Figure 5.

Experiment Results Figure 1. Figure 2.

Figure 3. Figure 4.

Figure 5. Discussion Topic 1: What is the sampling frequency of the CODEC? The sampling frequency of the codec is 1 over the sampling period. Topic 2: What frequency should the signal generator be set at to achieve a normalized frequency f = 0.5? 24kHz. Topic 3: Explain why the units of the normalized frequency are in cycles/sample. In other words, what does it mean to have a signal that oscillates at 1/3 cycles/sample? What is the relationship between actual frequency, normalized frequency and cycles per sample. The reason why the normalized frequency is cycles per sample is because the equation is normalized frequency is equal to frequency/sample rate. The sampling rates units are samples per second and the frequency is cycles per seconds. The seconds cancel each other out leaving cycles per sample.

Topic 4: Use the circuit you developed in part 3 of the lab to find at what normalized frequency do you begin to stop seeing a signal? Set your function generator to 2 V peak peak. Figure out the frequency in Hertz at which Signal Tap stops reproducing a signal. Then divide by the sampling frequency to calculate the normalized frequency. Remember that F = f*fs (Assume Fs = 48,000 Hz). What you are examining is referred to as aliasing and the Nyquist criteria for sampling. Hint: Use Autorun Analysis to change the frequency and observe the signal in real time. A normalized frequency do we begin to stop seeing a signal would be between 1/2 and 1/2. Topic 5: CODEC stands for Encoding and Decoding. How are each of these functions accomplished at the hardware level? The codec is an analog to digital decoder and a Digital to analog converter at the same time. The Codec encodes and decodes analog audio or digital audio signals between 20Hz and 20kHz.

Conclusion After this lab, students have understood all of the details about CODEC. At first, we have learned that how to draw a CODEC block graph and how to use signal generator to make a wave. What s more, when input a song from our own cell phones into the board, we notice that the amplitude increases when we turn up the song s volume and declines when we turn down the song s volume. Finally, we have learned how to generate wave with signal tap. Acknowledgements All group members participated equally on the lab. Each member had a hand in writing and editing the report.