[DSP homepage]

Lab Exercise:

Tone Generation Using the 'C542

This exercise requires use of the 'C542 kits in the lab along with the C54x Code Explorer software. You will also need to use the dskplasm assembler to generate .obj files that could be downloaded to the 'C542 kit thru Code Explorer.

Using the 'C542 kits in the lab, generate a continuous tone of frequency f1, where f1 is the frequency assigned to you. [frequency assignments]. Use the analog interface settings as provided by the delay example in c:\dskplus\demos\delay. In particular, assume a sampling frequency of 9259 Hz. Generate the tone samples using a difference equation and use a circular buffer to store tone samples that will still be needed in subsequent computations. You may choose whatever phase you find convenient; and you may choose whatever amplitude you find convenient.

Be able to show that the tone samples generated are really those required. Do this by inserting code somewhere before your firmware goes into an infinite loop. The inserted code fragment must generate at least the first 10 tone samples using the same differenece equation implementation and circular buffer that will be used later in the actual tone generation. It should be possible, by stepping thru this code fragment, to compare the samples generated by this code fragment with the results of a simulation of the same difference equation in Excel.

 


 

This page has been accessed
Counter
times since December 17, 2002.

Last updated: December 17, 2002
lui_agustin@yahoo.com
1