Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
Has any body tried Cfft2_2191.ASM found in ADSP-219x Complex Rad2 FFT.zip at the AD website http://www.analog.com/processors/processors/ADSP/technicalLibrary/codeExamples/219x_si ngle_core.html ?I don’t get correct results, I’m using the EVA board 21992. Any other ones out there?. I rather use an assembly one Thanks in advance. |
|
|
|
What kind of problems are you running into? ie What were you expecting versus what you got? The c/c++ library functions had some issues in past issues. Make sure to get the latest updates from ADI. http://www.analog.com/processors/resources/crosscore/toolsUpgrades.html --- In , "Jaime Chait" <jchait@c...> wrote: > Has any body tried Cfft2_2191.ASM found in ADSP-219x Complex Rad2 FFT.zip at the AD website http://www.analog.com/processors/processors/ADSP/technicalLibrary/codeExamples/2\ 19x_single_core.html ? > > I don't get correct results, I'm using the EVA board 21992. > > Any other ones out there?. I rather use an assembly one > > Thanks in advance. |
|
I finally got it working. First I had to change the order of the Dual Memory Read (in about 4 places) to get rid of the assembly errors. I still get about 10 warnings, regarding with multi functions. The main issue is gain. I need to keep my input signal to less than 7 bits. (I was using a pure tone for these testing so all the energy would be on one spectra line). The FFT size is 1024 and I was using the twiddle tables provided in the link below. If the test signal is over 7 bits, I get multiple harmonics, non-linearity, etc.. (just what you would except) A while ago I used one for the AD2181 that had auto-scaling, I wish they would do the same for this one. Thanks, ----- Original Message ----- From: "duhlynn" <> To: <> Sent: Thursday, August 19, 2004 11:56 AM Subject: [adsp] Re: complex FFT for the 21992? > > What kind of problems are you running into? ie What were you > expecting versus what you got? > > The c/c++ library functions had some issues in past > issues. Make sure to get the latest updates from ADI. > http://www.analog.com/processors/resources/crosscore/toolsUpgrades.html > > --- In , "Jaime Chait" <jchait@c...> wrote: > > Has any body tried Cfft2_2191.ASM found in ADSP-219x Complex Rad2 > FFT.zip at the AD website > > > > > http://www.analog.com/processors/processors/ADSP/technicalLibrary/codeExamples/2\ 19x_single_core.html > ? > > > > I don't get correct results, I'm using the EVA board 21992. > > > > Any other ones out there?. I rather use an assembly one > > > > Thanks in advance. > > > _____________________________________ > /groups.php3 > > Yahoo! Groups Links |
|
|
|
Hi Is there anybody know where I can find description of IPRx register for ADSP-21992. I can't find it in the Hardware reference manual, and it's different from 219x! Thanks in advance. |
|
|
|
On Thu, 14 Oct 2004, [iso-8859-1] Stéphane GOUEL Arbos wrote:
> > Hi > > Is there anybody know where I can find description of IPRx register for > ADSP-21992. I can't find it in the Hardware reference manual, and it's > different from 219x! Words but no pictures: of the ADSP-21992 contains eight, 16-bit Interrupt Priority Registers (Interrupt Priority Register 0 (IPR0) to Interrupt Priority Register 7 (IPR7)). Each Interrupt Priority Register contains a four 4-bit codes; one specifically assigned to each peripheral interrupt. The user may write a value between 0x0 and 0xB to each 4-bit location in order to effectively connect the particular interrupt source to the cor- responding user assignable interrupt of the ADSP-219x core. Taken from page 12 of www.analog.com/UploadedFiles/ Data_Sheets/52993570ADSP-21992_0.pdf (and that space is really there!!) Patience, persistence, truth, Dr. mike |
|
Hello, (?bonjour?), the information is in the ADSP-2199x Hardware Ref. Manual, Ch. 13. The PIC (Peripheral Int. Ctrlr) registers IPR0 to IPR7 are at I/O page 1, addresses 200-207, and are also summarized on p. 23-4 As well, here is a C function I found which simplifies setting up the appropriate IPRx register and bit fields (note: the code below refers to macros, ex. io_read and io_write, and IPR0): void PIC_init (int iSrc, int iIntNo) { // Based on the int source ID: iSrc, this determines the corresponding IPR // register and bit field, and then writes iIntNo (4 bits) in that bit field. // Ex. call PIC_init (TMR0_IRQ, 6); // Set Timer0 to trig. Int. 6 int IPR_reg = IPR0 + ((iSrc >> 2) & 0x7) , // Actual IPR address IPR_shift = (iSrc & 3) * 4 , // Determine bit field IPR_field = ~(0xF << IPR_shift) , // ex. 0xFF0F iTmp ; // Temp. calculations easier to inspect with debugger: iIntNo = (iIntNo - 4) << IPR_shift ; sysreg_write (sysreg_IOPG, IntCtrl_Page); iTmp = (io_read(IPR_reg) & IPR_field) + iIntNo ; // Temp. value io_write (IPR_reg , iTmp); } // PIC_init() Maybe you could also help me: how to operate the ADSP-21992 SPORT for asynchronous communications? There are some significant differences from the previous ADSP-21xx family devices that have got me stumped a bit, especially concerning receiving characters. Also, for a first try, I want to have two simple functions, in C, operating in polled mode, i.e. no interrupts, one to send just one character (that proved simple enough; and another to wait for, and get a single character; that is proving to be more challenging). Or are there others you know who work with this ADSP-21992 device who might know? Thanks very much, AWK -----Original Message----- From: Stéphane GOUEL Arbos [mailto:] Sent: October 14, 2004 5:22 AM To: Subject: [adsp] IPRx register description for the 21992? Hi Is there anybody know where I can find description of IPRx register for ADSP-21992. I can't find it in the Hardware reference manual, and it's different from 219x! Thanks in advance. |
|
|