Go Back > Great Internet Mersenne Prime Search > Software

Thread Tools
Old 2021-02-12, 13:01   #1
ET_'s Avatar
Aug 2002
Team Italia

12CE16 Posts
Default FIR Filters

Maybe this post should belong to the "programming" thread, but I'm sure I will find more ARM programmers here.

I am studying FIR filters, and need some code implementations to learn, preferably in ARM ASM, or in C.
What I would like to see is an ASM module that, given the input parameters via an external GUI, performs the convolution and delivers the results.

Could you please help me, either with code or with links?

Thank you

ET_ is offline   Reply With Quote
Old 2021-02-13, 09:20   #2
Romulan Interpreter
LaurV's Avatar
Jun 2011

13×733 Posts

In the CMSIS standard package for Cortex M4 there are many samples of filtering implemented for STM32F4 and L4. You can install the STM32CubeMX package (you will need it anyhow, once you get that "box" we talked about), open any project for any F4 or L4 or F7 or H7 (thingies with DSP inside), assign some pins, turn on some peripherals, and click "generate code". You will get a tree of subfolders in the CMSIS folder, look into DSP subfolder, there are different samples and tutorial for FIR filters in DSPLib_TestSuite\commons (headers and sources), in "DSP\Examples", and in "DSP\Sources". AFAICT, they are different things, different dependencies, I will attach here the one in Examples, just for reference (and because it is by far the shortest) but I didn't dig into it and I don't know what you need and the dependencies to make it working. There are few other folders there with fir-decimate, fir-interpolate, fir-lattice, but those are far larger. No idea what they do. Therefore I searched for files containing the called function, and dropped them in a zip. Interesting, there are two versions of the function, one is optimized for the Neon "gpu". Better you can dig into it by yourself. You can pass me a skype ID by PM, if you need any support to play with CubeMX.
Attached Files
File Type: zip (49.3 KB, 40 views)

Last fiddled with by LaurV on 2021-02-13 at 09:24
LaurV is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filters, Filters, Filters, Why aren't there any? a1call Hardware 20 2018-10-23 19:13

All times are UTC. The time now is 16:55.

Wed Jun 16 16:55:32 UTC 2021 up 19 days, 14:42, 0 users, load averages: 2.41, 2.20, 2.03

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.