Skip to main content
KCerq.1
Associate
October 26, 2022
Solved

How to setup multiple filters within STM32G4 FMAC?

I'm trying to run a 4-stage dc-dc converter using the NUCLEO-G474 board.

For this, the MCU needs to execute 4 parallel controllers at 200 KHz. I am aware of how to set up a single filter/controller by looking at AN5305 application note, but is there some way of setting the FMAC with 4 filters simultaneously? (assuming those filters have 4 feedforward taps and 3 feedback taps each)

This topic has been closed for replies.
Igor Cesko
Igor CeskoBest answer
ST Employee
November 1, 2022

Hi KCerq.1,

The FMAC with 4 filters requirements : those 4 filters should be applied sequentially (not in real parallel). Calculate one filter from buffered data then calculate another filter with another buffered data .... . So - data must be buffered and the computation is 4x slower because we have only one filter. But if the CPU speed is relativaly high and process is slow (which is probably not case of 4x controlled at 200kHz) - this can be applied.

Regards

Igor

1 reply

Igor Cesko
Igor CeskoBest answer
ST Employee
November 1, 2022

Hi KCerq.1,

The FMAC with 4 filters requirements : those 4 filters should be applied sequentially (not in real parallel). Calculate one filter from buffered data then calculate another filter with another buffered data .... . So - data must be buffered and the computation is 4x slower because we have only one filter. But if the CPU speed is relativaly high and process is slow (which is probably not case of 4x controlled at 200kHz) - this can be applied.

Regards

Igor