Skip to main content
HDaji.1
Senior
October 27, 2021
Question

What FMAC can do?

  • October 27, 2021
  • 2 replies
  • 904 views

I want to do averaging, and finding peak value of about 1k ADC readings. I wonder if I can use FMAC to do it to offload MCU .

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
October 27, 2021

Which STM32?

FIR with coefficients all 1/N is a sliding average. You can make simple average from sliding average by simply throwing away N-1 results and using only Nth; and then average M such results to get average of MxN, but given the rather limited output range of the FMAC, at 1k samples the resolution loss would be probably unacceptable.

I don't see any way to find maximum/minimum ("peak") using FIR or IIR.

JW

HDaji.1
HDaji.1Author
Senior
October 28, 2021

I am using G4 chip, developing with Nucleo-G431RB board.

It seems CORDIC is also not able to help.