

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An assignment for creating an on-off sound device driver for an embedded system, allowing the melody program to generate sounds based on frequency and duration. The assignment includes four tasks: completing the driver design, making the melody program work with the driver, explaining the system organization, and displaying melody execution with the serial communication driver. Students must document their software and provide a demonstration and report.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Embedded Systems – Assignment 05 Making the Melody Roll-On
Introduction You have now used three device drivers, the Ticker, the Real-Time Clock, and the Serial Communication interface. It is time to jump in and do some internal design tasks. In this project, you will complete the On-Off Sound device driver to make the sounds of the melody program studied earlier.
Task 1 The OOSound.cpp device driver is based on the template consisting of (a) a hardware ISR, (b) a software ISR, and (c) a data structure. Its basic operation should be something like this –
The driver, as presented in the text, is not complete. Several pieces of code have been commented but not included. Complete the design of this driver, to make it work. Carefully document all of your software and explain how it works.
Task 2 Make the melody program operate with your completed device driver. Demonstrate the program’s execution. What happens if the queue is not big enough to hold the whole melody? Show that your program works ok regardless of queue size.
Task 3 Carefully explain the organization of the whole system – the L0S and the L1S. Be sure to discuss the content of the .h files associated with each.
Task 4 Modify the PlayMelody function and use the serial communication driver to show where the melody is in execution, displaying the information (note, measure, phrase) with hyperterminal. Carefully document and explain all that you must do to implement this task.
As always, carefully documented software is required along with a demonstration of your work and a web site based report. Include a view of your project window, showing the files you have included in the design.