SDFM sampling time c2000
10 views (last 30 days)
Show older comments
Hello! It turns out that I am using the Embedded Coder with C2000 blocks in Simulink to work with the F28379D. I need to measure a signal using the SDFM filters and send it to the PC via SCI. The problem is that the signal I receive on the HOST is not consistent with the measured signal; it seems that the SDFM sampling time is incorrect. The measured signal only goes up to 1 kHz, and beyond that, it exhibits aliasing. How can I set the SDFM sampling frequency deterministically within MATLAB? It appears there is a way to synchronize it with ePWM11 through hardware settings, which I also tried, but it gave me the same results. Could it be the data transmission? This is done at 12e6 Baud.
I tried using an interrupt based on ePWM11, and while this improved the sampling, it still exhibits aliasing at frequencies above 1 kHz, considering that this interrupt is running at 20 kHz.
I will add images of my simulation.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!