Create the analog waveforms required to produce high-quality

Assignment Help Mechanical Engineering
Reference no: EM131090063

The overall objective of this lab is to design the music player described in Lab 11.2 with a two-channel DAC chip, and design two audio amplifiers. The system will implement two-channel stereo sound.

Lab 11.2

Most digital music devices rely on high-speed DAC converters to create the analog waveforms required to produce high-quality sound. In this lab you will create a very simple sound-generation system that illustrates this application of the DAC. Your goal is to play your favorite song. For the first step, you will interface a 74HC595 serial in/parallel out shift register to the SPI port. Please refer to the 74HC595 data sheets for the synchronous serial protocol. The second step is to create a DAC from the 8-bit digital output of the 74HC595. You are free to design your DAC with a precision anywhere from 5 to 8 bits. You will convert the binary bits (digital) to an analog output current using a simple resistor network. The third step is to convert the DAC analog output to speaker current using an audio amplifier, such as the MC34119. It doesn't matter what range the DAC is, as long as there is an approximately linear relationship between the digital data and the speaker current. To do this you will have to run the analog circuit in its linear range. Be careful not to saturate the analog circuit. The performance score is based not on loudness, but on sound quality. On the other hand, sound quality will be a function of the number of DAC bits, the linearity of the analog circuit, and the periodic output rate. If an analog signal is noisy, you can add filter capacitors. It is important to add a 0.1 μF bypass capacitor on the power connection of the 74HC595 to prevent output glitches during serial input transmissions. The fourth step is to design a low-level device driver for the DAC. A single 8-bit SPI frame is all that is required to set the DAC output. The fifth step is to design a data structure to store the sound waveform. You are free to design your own format, as long as it uses a formal data structure (i.e., struct). Compressed data occupies less storage, but requires runtime calculation. On the other hand, a complete list of points will be simpler to process, but requires more storage than is available on the microcontroller. The sixth step is to organize the music software into a device driver. Although you will be playing only one song, the song data itself will be stored in the main program, and the device driver will perform all the I/O and interrupts to make it happen. You will need public functions Rewind, Play, and Stop, which perform operations as does a cassette tape player. The Play function has an input parameter that defines the song to play. A background thread implemented with output compare will fetch data from your music structure and send them to the DAC. The last step is to write a main program that inputs from three binary switches and performs the three public functions

Reference no: EM131090063

Questions Cloud

Draw a graph that models the swimmers depth : Draw the graphs of f(x) and on the same coordinate plane. Explain how your graph shows that the functions are inverses of each other.
What is the affordability of marriage : What is the affordability of marriage? What factors determine the affordability to enter into marriage? These factors are solely determined by "economic" conditions? Or are there any social, racial differentials affecting them? And if there are, t..
Evaluate the bandwidth noise error due to offset voltage : As preparation, design two separate circuits using different approaches. Evaluate the bandwidth, noise, error due to offset voltage, and cost. Build and experimentally measure bandwidth, noise, and offset error.
Maximum constant amount : Whats the maximum constant amount he can with draw for each of the remaining 28 years, starting June 6, 2028 if the interest rate continues to stay 5%?
Create the analog waveforms required to produce high-quality : The last step is to write a main program that inputs from three binary switches and performs the three public functions
Abusive and violent relationships : EACH DISCUSSION HAS TO HAVE 150 WORDS NO LESS THAN THAT. PLEASE DONT WRITE ALL THE QUESTIONS TOGETHERE SEPERATE THEM NEED BY TOMORROW.
History of paying dividends equal : EPS1=$5. It has a history of paying dividends equal to 20% of earnings. The expected cost of equity is 15% per year, and the expected ROE (return on equity) on the firm's future investments is 17% per year. Using the constant growth rate DDM model..
Compute the apr and ear of both loans : 1.) Compute the APR and EAR of both loans 2.) Which loan should you take and why?
Write data required versus write data available : Write data required versus write data available

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  A 10-kg mass of r-134a at 12 mpa and 70 c is cooled at

a 10-kg mass of r-134a at 1.2 mpa and 70 c is cooled at constant pressure until it reaches a temperature of 20 c.

  Calculate the magnitude of the force

The light bracket ABC is freely hinged at A and is constrained by the fixed pin in the smooth slot at B. Calculate the magnitude R of the force supported by the pin at A under the action of the 80- N · m applied couple

  Determine the mass flow rate and the rate of heat transfer

R134a flowing at 12 m/s enters a 25 mm diameter tube at a quality of 15%, at 36 Celsius and exits the tube at 10 bars as a saturated liquid. Determine (a) the mass flow rate of the R134a in kg/s, (b) the velocity of the R134a at the exit in m/s and (..

  What is the velocity of this flow

Consider a flow with a pressure and temperature of 2332 lb/ft2 and 498 deg. R, respectively. A Pitot tube is inserted into this flow and measures a pressure of 8065.2 lb/ft2. What is the velocity of this flow? Is the flow supersonic? Use appen..

  What is the temperature at the outer surface of the

a very thin and long pipeline used for the transport of crude oil is buried in the earth such that its centerline is a

  Estimate the amount of torque needed to actuate the knee

estimate the amount of torque needed to actuate the knee near 0 deg flexion standing position based on the friction in

  Thickness of the cup bottom and wall

Assuming that in drawing of cups, the thickness of the cup bottom and wall is the same as that of the original sheet, ?nd an expression for the ratio of the cup height to diameter, h/d1, in terms of the ratio of blank diameter to cup diameter, do/d..

  Determine the force between the jaws of the clamp in terms

determine the force between the jaws of the clamp in terms of a torque exerted on the handle of the adjusting screw.

  Spring-loaded piston-cylinder device is initially filled

A spring-loaded piston-cylinder device is initially filled with 0.13 lbm of an R-134a liquid-vapor mixture whose temperature is ?30°F and whose quality is 80 percent. The spring constant in the spring force relation F = kx is 37 lbf/in, and the pisto..

  Assume constant specific heat ideal gas properties

a mass of .25 kf of co2 at a termperature of 300k and pressure of 100 kpa is heated at constant pressure to a volume

  Describe external threading operations explain the external

describe external threading operations. explain the external threading operation in details. why is it important to

  How many times could you push this 50 kg block of steel

suppose you have a 50 kg block of steel. if you have 103 exajoules at your disposal how many times could you push this

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd