2024-05-09 10:19 AM
Hi, I'm trying to use AMC1336 Delta-Sigma Modulator with STM32U5A9 MDF. I have tried using polling and interrupts for data acquisition and got expected results. But when I tried switching to GPDMA the data jumped around and is not usable. I took 100 samples and graphed them out. For both graphs below I used the same MDF configuration.
Acquisitioned data when using interrupts:
Acquisitioned data when using GPDMA:
My configuration for GPDMA:
My configuration for MDF:
My guess is that some data transfers happen before MDF can process a whole sample. I looked at "How to use the GPDMA for STM32 MCUs" document but have no idea how to fix this issue. Any suggestions would be appreciated.
2024-10-21 05:29 PM
Did you solve the problem?