mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

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

17·283 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

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

33×347 Posts
Default

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 arm_fir_example.zip (49.3 KB, 18 views)

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

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 01:49.

Wed Apr 14 01:49:42 UTC 2021 up 5 days, 20:30, 1 user, load averages: 2.11, 2.05, 1.94

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.