[sdiy] FFT on dsPIC
Tom Wiltshire
tom at electricdruid.net
Sun Apr 29 18:16:25 CEST 2018
Ok, I think I’ve found it.
If you download XC16 for Microchip’s MPLAB X and install it, you get an “xc16” folder inside the “microchip" folder
The path is then:
xc16/v1.34/src/libdsp.zip
Opening the zip file reveals four folders, “docs”, “lib”, “src”, and “support”. In the “Src” folder is *another* file called libdsp.zip. Opening that one finally reveals the goodies - amongst which is a folder called “asm” which seems to have assembly routines in it.
Indiana Jones would have had fun finding that!
==================
Electric Druid
Synth & Stompbox DIY
==================
> On 29 Apr 2018, at 11:17, Richie Burnett <rburnett at richieburnett.co.uk> wrote:
>
> Hi all,
>
> Has as anyone managed to get an FFT to work on dsPIC?
>
> I'm programming in Assembly and have been looking for a pre-written FFT routine.
>
> Manufacturers of other DSPs I've worked on have always provided highly-optimised library functions to call for functions like FFTs, but I'm struggling to find likewise for the dsPIC.
>
> Microchip's "dsPIC Language Tools Libraries" document says...
>
> "2.1 INTRODUCTION. The DSP Library provides a set of digital signal processing operations to a program targeted for execution on a dsPIC30F digital signal controller (DSC). The library has been designed to provide you, the C software developer, with efficient implementation of the most common signal processing functions. In total, 49 functions are supported by the DSP Library. A primary goal of the library is to minimize the execution time of each function. To achieve this goal, the DSP Library is predominantly written in optimized assembly language. By using the DSP Library, you can realize significant gains in execution speed over equivalent code written in ANSI C. Additionally, since the DSP Library has been rigorously tested, using the DSP Library will allow you to shorten your application development time."
>
> Fantastic! That's what I want. And it then goes on to say...
>
> "2.1.1 Assembly Code Applications. A free version of this library and its associated header file is available from the Microchip web site. Source code is included."
>
> ...but, I can't find it anywhere! :-( Maybe because Microchip have reorganised their website after the Atmel merger (>.<)
>
> Does anyone have the illusive "FFT.asm" or "FFT.s" file containing the "FFTComplexIP" function lurking on their hard drive?
>
> Any help / pointers very gratefully received!
>
> Many thanks,
>
> -Richie,
>
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20180429/bde9e5b3/attachment.htm>
More information about the Synth-diy
mailing list