Skip to main content
gregstm
Senior II
June 9, 2021
Solved

Can the FMAC implement a decimating FIR filter automatically? (can the yet-to-be released STM32U5 FMAC do this)?

  • June 9, 2021
  • 2 replies
  • 1090 views

If I have a signal sampled at 16384/32768Hertz, but I am only interested in frequencies below 2000Hz - can I use the FMAC to automatically produce a buffer of FIR filtered samples at 4096Hz? I think some hardware filter accelerators have a decimation register for specifying the down sample rate.

This topic has been closed for replies.
Best answer by Imen.D

Hello @Community member​ ,

The down-sampling feature is not included in the current version of the FMAC.

Nevertheless, the FMAC is ideally suited for implementing a low pass decimation filter, the down-sampling can be done by simply discarding samples, for example 3 in every 4 in the case of a decimation by 4.

When your question is answered, please close this topic by choosing "Select as Best". This will help other users find that answer faster.

Imen

2 replies

Imen.DBest answer
ST Technical Moderator
June 11, 2021

Hello @Community member​ ,

The down-sampling feature is not included in the current version of the FMAC.

Nevertheless, the FMAC is ideally suited for implementing a low pass decimation filter, the down-sampling can be done by simply discarding samples, for example 3 in every 4 in the case of a decimation by 4.

When your question is answered, please close this topic by choosing "Select as Best". This will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
gregstm
gregstmAuthor
Senior II
June 14, 2021

Yes, you can discard samples not needed, but the FMAC has wasted processing for samples not needed - perhaps this makes little difference to the micro's power consumption. The beauty of an FIR low pass decimation filter is that you only have to process the samples you need - if it saves power you might want to consider the down-sampling option for some future versions of the FMAC.