EE 451
Lab 2: Sampling and Aliasing in Real Time with the
Motorola DSP56002 EVM
For experimentation in real-time signal processing, we will use the following equipment:
ada_init.asm
and
txrx_isr.asm
from the C:\EVM
directory to your
directory. The codec is a complicated chip, and these pre-written
routines do the work necessary to sample the input signal. This will be
discussed further in lab.
Assemble the program using the following command:
ASM56000 -a -b -l lab2.asm
The first part of the program is the code included from the ada_init.asm program. Scroll down until you find the region of code whre the DSP samples the input data, and sends it to the D/A converter. Note that the code simply reads the data from one channel (the left) of the A/D converter, and writes that data to both the left and right channels.
The command go $40 will run the program. The two outputs should look the same.
move b,x:TX_BUFF_BASE+1 ;transmit rightThen add code to write the data to the right channel, and finally loop back to the DO instruction.
Re-connect the function generator to the A/D, and run this modified program. Vary the frequency of the function generator as you did in Part 3, and compare the two outputs of the D/A converter. Observe aliasing for high frequencies. At what frequency does aliasing begin? Be sure to sketch a few examples of what the output looks like. Do the for low frequencies where the signal is not aliased, for high frequencies where the signal is aliased, and for frequences just below and just above the frequency where aliasing begins.