Project Checkpoint: Audio Output (DAC+Amp)



Similar documents
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

CHAPTER 11: Flip Flops

Conversion Between Analog and Digital Signals

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

Laboratory 4: Feedback and Compensation

Interfacing Analog to Digital Data Converters

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

DATA SHEET. TDA1543 Dual 16-bit DAC (economy version) (I 2 S input format) INTEGRATED CIRCUITS

DAC Digital To Analog Converter

Germanium Diode AM Radio

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Operational Amplifier - IC 741

PLL frequency synthesizer

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

Step Response of RC Circuits

Digital to Analog and Analog to Digital Conversion

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

A Lesson on Digital Clocks, One Shots and Counters

A Low-Cost, Single Coupling Capacitor Configuration for Stereo Headphone Amplifiers

A Lesson on Digital Clocks, One Shots and Counters

ECEN 1400, Introduction to Analog and Digital Electronics

24-Bit, 96kHz BiCMOS Sign-Magnitude DIGITAL-TO-ANALOG CONVERTER

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

W a d i a D i g i t a l

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

6.101 Final Project Proposal Class G Audio Amplifier. Mark Spatz

HOW TO GET 23 BITS OF EFFECTIVE RESOLUTION FROM YOUR 24-BIT CONVERTER

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Digital to Analog Converter. Raghu Tumati

MAS.836 HOW TO BIAS AN OP-AMP

LM1036 Dual DC Operated Tone/Volume/Balance Circuit

Transistor Amplifiers

Sequential Logic: Clocks, Registers, etc.

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

See Horenstein 4.3 and 4.4

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES S8550 VFB. Analog Supply Regulator. Input MUX. 24-bit Σ ADC. PGA Gain = 32, 64, 128

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

LAB4: Audio Synthesizer

User Guide FFFA

Reading: HH Sections , (pgs , )

IrDA Transceiver with Encoder/Decoder

Output Ripple and Noise Measurement Methods for Ericsson Power Modules

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Ultrasound Distance Measurement

Multiplexers Two Types + Verilog

Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0 C to C)

Tire pressure monitoring

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Physics 623 Transistor Characteristics and Single Transistor Amplifier Sept. 13, 2006

A Versatile Audio Amplifier

Wireless In-Ear Audio Monitor

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

12-Bit, 4-Channel Parallel Output Sampling ANALOG-TO-DIGITAL CONVERTER

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

More Op-Amp Circuits; Temperature Sensing

AC : PRACTICAL DESIGN PROJECTS UTILIZING COMPLEX PROGRAMMABLE LOGIC DEVICES (CPLD)

Digital Electronics Detailed Outline

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Precision Diode Rectifiers

Miniature Surface-Mount DAA for Audio or Data Transfer XE0402LCC BLOCK DIAGRAM

Lab 5 Operational Amplifiers

VMR6512 Hi-Fi Audio FM Transmitter Module

Bipolar Transistor Amplifiers

Frequency Response of Filters

Alcatel-Lucent OmniPCX Enterprise Communication Server TA-MMK (MMK V2)

A Digital Timer Implementation using 7 Segment Displays

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

IEC Algorithmic Alert Tone Demo

Tone Ringer SL2410 LOGIC DIAGRAM PIN ASSIGNMENT SLS

DESCRIPTION FEATURES BLOCK DIAGRAM. PT2260 Remote Control Encoder

Chapter 6: From Digital-to-Analog and Back Again

Modeling Registers and Counters

Using ISO Compliant RFID Tags in an Inventory Control System

Lab Experiment 1: The LPC 2148 Education Board

ADS9850 Signal Generator Module

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

SIMPLE HEART RATE MONITOR FOR ANALOG ENTHUSIASTS

The Operational Amplfier Lab Guide

THE ELEMENT SUPPORT OPERATING INSTRUCTIONS AMP+DACS ONLINE BY PHONE BY MAIL

11: AUDIO AMPLIFIER I. INTRODUCTION

Lock - in Amplifier and Applications

US-SPI New generation of High performances Ultrasonic device

Basics. Mbox 2. Version 7.0

Microcomputers. Analog-to-Digital and Digital-to-Analog Conversion

Single Transistor FM Transmitter Design

Section 3. Sensor to ADC Design Example

µpd6379, 6379A, 6379L, 6379AL

Analog Representations of Sound

Application Report. 1 Description of the Problem. Jeff Falin... PMP Portable Power Applications ABSTRACT

FR FAMILY MB91460 SPI - DAISY CHAIN COMMUNICATION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

ARTICLE. Sound in surveillance Adding audio to your IP video solution

Modifying the Yaesu FT-847 External MHz Reference Input

1 All safety instructions, warnings and operating instructions must be read first.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Transcription:

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences EECS150 Spring 2002 J. Wawrzynek E. Caspi Project Checkpoint: Audio Output (DAC+Amp) 1 Objectives The primary objectives of this lab are: Learn how to interface to a Digital-to-Analog Converter (DAC) Equip your project board with a complete audio output stage The hardware side of this lab involves wire-wrapping a digital-to-analog converter (DAC) and audio amplifier to your Xilinx board, along with several discrete components (resistors, capacitors). The software side of this lab involves writing a serial interface to the DAC and a simple waveform generator with which to test the DAC interface. 2 Digital-to-Analog Converter (DAC) A DAC is a device that converts a sequence of numbers into an analog waveform. Our synthesizer needs a DAC to convert sound samples into an electric signal, which, with proper amplification, can drive a loudspeaker or headphones. We will use the Analog Devices AD1866 dual 16-bit audio DAC. A datasheet and wirewrap ID guide will be available on the course web page. This particular DAC supports two audio channels, but we will use only the left channel (L). The DAC converts 16-bit, two s-complement words into output voltage levels. Each word must be shifted into the DAC serially (via pin DL, Data Left ), MSB first, in-sync with a clock signal (CLK). DAC samples each input on the rising-edge of its clock. Once an entire word is shifted in, the falling edge of a control signal (LL, Latch Left ) instructs the DAC to convert that word into a voltage. We will send 16-bit samples to the DAC at a sample rate matching the MIDI baud rate, namely 31.25kHz. The bits of each sample can be serially shifted into the DAC at a rate of up to 8MHz. NOTE: The DAC shifts in its input DL on the rising-edge of its clock. The circuit shifts the data out to the DAC most significant bit first. If you use an ordinary shift register, your signals will appear a small delay after the rising edge of your clock. Therefore, to allow the DAC to correctly sample your data, the DAC s clock input should be the inverse of the circuit clock (thereby shifting the process of sampling to the middle of the cycle, where data is stable).

3 Audio Amplifier The DAC s analog output is too weak to drive a loudspeaker or headphones on its own. It must be passed through an amplifier that can supply enough current and power to make audible sound. We will use the National Semiconductor LM4862 Boomer 675mW audio power amplifier. A datasheet and wire-wrap ID guide will be available on the course web page. One interesting feature of this IC is its SHUTDOWN input can turn off the chip output. We will drive that pin from the FPGA to control when the amplifier turns on. Your design should drive the SHUTDOWN pin low to keep the amp on. The Xilinx I/O pins default to logic-high when the FPGA is powered-on, providing a mechanism to keep the amplifier off until it is configured with your design. The amplifier s differential outputs (Vo1, Vo2) should be connected to the 1/8-inch phones connector on the Xilinx board. Our phones connector has 3 conductors (tip, ring, sleeve) to support stereo sound. The tip and ring, which represent the left and right audio channels, should be tied together using wire-wrap. Connect one amp output to the tipring pair and the other amp output to the sleeve. Sleeve Ring Tip Vo2 Vo1 1/8-inch phones connector + hookup to amplifier 4 Lab Assignment For the hardware part of this lab, you must wire-wrap the DAC, amplifier, and discrete components to your project board. There are two discrete packs, one per IC. Try to place the ICs (DAC and amp) close to the periphery of the wire-wrap area, where they can be close to a power/ground pin pair (labeled - + on the board). Straddling each such pin pair is a 0.1µF bypass capacitor that can provide a small burst of current to an IC s power/ground pins. This capacitor helps keep an IC s supply voltage constant as its power draw fluctuates. If an IC is not close to the board periphery, connect a bypass capacitor from one of the discrete packs between the IC s power and ground pins. Bypass capacitors should always be as close as possible to an IC (ideally, soldered on), since the inductance of wire connections diminishes their effectiveness. The DAC and amplifier must be connected to the pins in the table below.

Signal FPGA Pin DAC LD 72 DAC LL 69 Amp SHUTDOWN 70 DAC CLK (8MHz) 41 Pin connections for DAC and amplifier A wiring schematic for the DAC and amplifier is attached. All resistors and capacitors in the schematic are soldered to the discrete packs. They must be connected as shown in order for the ICs to function properly. For the software part of this lab, you must construct two circuit designs: 1. A parallel-to-serial converter to drive the DAC s LD and LL inputs. This may be done in a variety ways, typically using a shift register and some additional logic. Keep in mind that a new 16-bit sample must be fed to the DAC every 32µs so as to match the sample rate with the MIDI baud rate of 31.25kHz. Thus LL should send a down-edge once every 32µs, immediately following a 16- bit serial transmission to LD. As was noted previously, you may shift data to the DAC at a rate not exceeding 8Mhz. Consult the DAC data sheet for precise timing information. Mistiming the LL down edge will result in failure to shift-in the sample s LSB, or alternatively, will shift-in a superfluous LSB. The result may be benign (e.g. 2 error in amplitude) or quite drastic (e.g. noise due to spurious changes in sign of samples remember, the sample MSB is a sign bit). 2. A sawtooth wave generator to test the DAC interface. This circuit produces a sawtooth (ramp) wave of audible frequency, represented by 31250 16-bit samples per second. You may choose your own frequency. For example, a frequency of 1000Hz can be generated by counting from 0 to 31 on a 31.25kHz clock (strictly speaking, count 16 to 15, since the DAC expects two scomplement samples). Full-amplitude 16-bit samples can be generated by placing this 5-bit count in the most significant bits and concatenating 11 trailing zeros. Time between samples 1/(31.25kHz) 33µs T = 1/ f Audible frequency f Sampled waveform at 31250 samples-per-second

For pre-lab, create modules for the DAC interface and waveform generator. Test your design in simulation, separately and together. Verify that the DAC interface can serialize and transmit arbitrary 16-bit numbers, not just nice round numbers from the sawtooth waveform. You are strongly advised to wire-wrap your board before your regular lab session it is a time-consuming process. Wire-wrapping can be done based on the online wrap-id guides even if you do not have the actual components. To test your audio output stage, use your waveform generator to drive the DAC interface, which will in turn drive the DAC and amplifier. View the DAC s output (pin 14: VoL) and amplifier s output (pin 8: Vo1 or 5: Vo2) on an oscilloscope using analog probes. Both sources should show a sawtooth wave at your target frequency, biased to oscillate around a center voltage of 2.5v. Now connect a pair of headphones to the 1/8-inch phones jack (you must provide your own headphones). You should hear a continuous buzzing tone with constant frequency and constant amplitude. Take care, the amplifier can get very loud. 5 Acknowledgements Original lab by J. Wawrzynek (Fall 1994). Rewritten by E. Caspi. Additional modifications by Jack Sampson and Yury Markovskiy.

CS150 / SPRING 2000 Wiring of Project ICs Tho Nguyen 5v 2 Din-5 4 1N4148 Din-4 6 270 220 MOC 5009 to UART GND 220 270 1N4148 5 V 22K 1000pF 5 V 1 15 9 FPGA 2,3,4 0.47uF 4 6 AD1866 14 5 11 3 LM4862 20K 2 7 8 10uF 10uF 1 7 12 13 1uF FPGA 10uF 10uF 10uF 22K 0.001uF 20K 0.47uF 1uF

Name: Name: Lab: 6 Check-offs (Checkpoint: Audio Output) Pre-lab DAC interface modules / simulation TA: (20%) Sawtooth generator modules / simulation TA: (20%) Combined simulation TA: (10%) Lab Assignment Wire wrap DAC, amp, and discretes TA: (25%) Working audio output (scope, headphones) TA: (25%) Turned in on time TA: ( 100%) Turned in 1 week late TA: ( 50%)