Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

ADSP 21065L - naveen s - Jul 6 7:38:37 2007



Dear Sir
 
 I am using SHARC 21065L Processor, and VDSP4.0++ Simulator. My Querry is How to Declare a
Circular Buffer of Array Size 25?, And How to call the Buffer.
 
 with Regards
 Naveen S
 
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now!
http://messenger.yahoo.com/download.php


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: ADSP 21065L - Andor Bariska - Jul 24 2:40:39 2007

naveen wrote:
>
> Dear Sir
>  
>  I am using SHARC 21065L Processor, and VDSP4.0++ Simulator. My
>  Querry is How to Declare a Circular Buffer of Array Size 25?, 

With the circular buffer registers, like so:

In the data section, declare the data array:

"
.VAR circular_buffer_data[25];
"

In the code section, initialize the circular buffer registers:

"
b0 = circular_buffer_data;   // base address of circular buffer
l0 = length(circular_buffer_data); // length register
"

Now you can use i0 as a circular buffer index register. For example, 
reading and writing can be done like this:

"
f0=dm(i0,0);   // read output from circular buffer into f0
dm(i0,1)=f4;   // store input f4 into circular buffer
"

This would implement a standard delay functionality.

> And How to call the Buffer.

Circular Buffer?

:-)

>  
>  with Regards
>  Naveen S

Regards,
Andor



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )