sir, I am working on 21160 sharc processor. i am writing codec intialisation program in c. i have changed the sampling rate by writing 0x2710( for 10 kHzs) into AD1881_SAMPLERATE0_ADDR register. its default sampling rate was 48 kHz i have set VRA bit of Extended Audio Status and Control Register (Address 0x2A00) to 1. but it was giving 5 to 6 zeros in between the samples. how can we get continuos data without zeros ? I will be very thankful if anyone solves this problem. Thanks in advance regards venkat |
|
help needed 21160
Started by ●April 19, 2004
Reply by ●April 19, 20042004-04-19
On Mon, 19 Apr 2004, venkat kootikanti wrote: > sir, > I am working on 21160 sharc processor. i am writing codec intialisation program in c. > i have changed the sampling rate by writing 0x2710( for 10 kHzs) into AD1881_SAMPLERATE0_ADDR register. its default sampling rate was 48 kHz > i have set VRA bit of Extended Audio Status and > Control Register (Address 0x2A00) to 1. > but it was giving 5 to 6 zeros in between the samples. > how can we get continuos data without zeros ? > I will be very thankful if anyone solves this problem. I don't really know, but it sounds like your system is reading the codec at 48kHz still. Is there a timer associated with the default set up that is used to read the codec? That would explain what you see, but it may not be your problem. Patience, persistence, truth, Dr. mike |
|
Reply by ●April 19, 20042004-04-19
Hi, I used to work with this DSP (21160) and CODEC (AD1881A, right?) for a while; I always did my setup in assembly. I usually run it at 44.1kHz, but it is easyly changeable to any other supported sample rate. Beware that the sequence for configuring out at 48 kHz (default) is different that for variable sample rate. My routines are C callable, so if you are interested, let me know. Regards, JaaC --- Mike Rosing <> wrote: > On Mon, 19 Apr 2004, venkat kootikanti wrote: > > > sir, > > I am working on 21160 sharc processor. > > i am writing codec intialisation program in c. > > i have changed the sampling rate by writing > 0x2710( for 10 kHzs) into AD1881_SAMPLERATE0_ADDR > register. > its default sampling rate > was 48 kHz > > i have set VRA bit of Extended Audio Status and > > Control Register (Address 0x2A00) to 1. > > but it was giving 5 to 6 zeros in between the > samples. > > how can we get continuos data without zeros ? > > I will be very thankful if anyone solves this > problem. > > I don't really know, but it sounds like your system > is reading > the codec at 48kHz still. Is there a timer > associated with > the default set up that is used to read the codec? > That would > explain what you see, but it may not be your > problem. > > Patience, persistence, truth, > Dr. mike > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of this message will receive > your answer. You need to do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > To Post: Send an email to > > To Leave: Send an email to > Archives: http://groups.yahoo.com/group/adsp > > Other Groups: http://www.dsprelated.com/groups.php3 > > Yahoo! Groups Links > ===== Jaime Andr Aranguren Cardona __________________________________ |