DSPRelated.com
Forums

Help on ADSP 21161

Started by wuta5 November 22, 2003
I am having a problem with my ADSP 21161. I am using the serial
port#1 for my input from Audio Precision. If I use 16-bit input
format, I can pack the two channels (AP always outputs 2 channels
together although I only need one) into 32-bit words and separate
them in the SPORT interrupt routine. And everything work fine in this
way. However, if I need 24-bit input from the AP, I have to use two
SPORT interrupts to receive the two channel data and dump one of them
(similarly I need two interrupts for 16-bit input format if I don't
pack them into 32-bit words). The problem is whenever I RELOAD the
program in Visual DSP++ IDE debugger, my received data from RX1A look
terrible, and then if I stop the run and hit RUN again without
reloading, then in some cases, the waveform looks all right in a
scope and otherwise still wrong. I have rechecked the user manual and
it seems that my set-up and init are correct. Anyone here encoutered
similar problems before? I greatly appreciate any helpful input.

T.W.