2024-10-21 01:09 PM
Hi,
I am programming my STM32U5 that using MDF to filter the ADC value and transfer to memory with GPDMA.
My problem is the output of the MDF is very different from the ADC output, and the MDF output keep fluctuating, but my adc value should be stable. Is it anything wrong with my ADC/MDF setting?
My code:
HAL_ADC_Start(&hadc1);
MdfDMAConfig.Address = data;
MdfDMAConfig.DataLength = 6;
MdfDMAConfig.MsbOnly = DISABLE;
HAL_MDF_AcqStart_DMA(&MdfHandle0, &MdfFilterConfig0, &MdfDMAConfig);
My ADC Setting:
My MDF Setting:
My GPDMA Setting:
My ADC Reading:
My MDF Reading:
Thank you so much!!!!
2024-10-22 07:11 AM
Or do anyone has experience with MDF?
Is it if the original data is 7000±10, I should expect the output of MDF should an around this value but more stable? Why my MDF output is so off?
Thanks