
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

DASP :: Assignment 5 2008.10.20.M
Page 1 of 1
Please ensure that your post processing function adheres to all system rules.
In addition to writing code, you will need to demonstrate the functions operating on the DSP hardware in the Lab.
Please show your design steps very clearly: a) Flowchart or Pseudo Code, b) Data Structures, and
c) Register usage
As you know, there are 24-bits in the DSP’s memory space, thus it is possible to have up to 24 bits of resolution for the audio samples. Your task is to create a Post Processing Function (in Assembly) that can control the bit resolution (hence the quantization error) of the audio samples in the Left and Right channels from an external host in a dynamic manner. We will make the assumption that the Configuration Word is used to directly specify the number of bits of quantization.
Write a Post Processing Function (in Assembly) that will only work when there are two channels of audio present. It will combine the L and R channels and divide it by 2 to create a mono channel. This information is then sent to L and R as follows:
o L = (x)(L+R)/2, and o R = (1-x)(L+R)/2,
where ‘x’ follows a triangular waveform, varying between 0.0 and 1.0. The period [in seconds] of the triangular waveform being followed by the variable ‘x’ may be specified dynamically through the Configuration Word. Clearly state any assumptions you have made or any limitations that may apply to your solution.
Proceed with caution! When you get this function working, you are guaranteed to experience a high!