Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
hi I have some problems about getting data from both channels on AD73322. How can I be sure that the ch1 and ch2 won't mixed up? First, I tried using timer interrupt and read the data on each interrupt. But they just mixed up. Sometimes ch1 data was picked up by what supposed to be ch2 and vice versa. Then I use polling and the result turned out to be all right. But my problem is what if a clock count is missing. The channel would be mixed up again! Is there any way or method that make sure ch1 will always be ch1 and ch2 will always be ch2? thanks~ |
|
|
|
Hi, I got around this problem by wiring the reset pin of codec to adsp's flag pin. After loading and initializing the dsp, I bring the codec out of the reset the first ever interrupt is from codec1 and second one is from codec0 u can keep a flag vairable which toggles on each interrupt to know which codec is sending the data. ----- Original Message ----- From: "tylu" <> To: <> Sent: Sunday, August 10, 2003 8:45 AM Subject: [adsp] Getting data from both channels on AD73322 in ADSP 2189M EZ-Kit > hi > I have some problems about getting data from both channels on AD73322. > How can I be sure that the ch1 and ch2 won't mixed up? > First, I tried using timer interrupt and read the data on each > interrupt. But they just mixed up. Sometimes ch1 data was picked up > by what supposed to be ch2 and vice versa. > Then I use polling and the result turned out to be all right. But my > problem is what if a clock count is missing. The channel would be > mixed up again! > Is there any way or method that make sure ch1 will always be ch1 and > ch2 will always be ch2? > thanks~ > > _____________________________________ > /groups.php3 |