2025-02-20 12:05 PM
I am using a STM32U545 Nucleo board with a purpose of measuring up to 8 Square wave frequencies simultaneously averaging between 100KHz to 1.5MHz. I only need to measure frequency with as much as accuracy achievable. Finally, I plan to transfer all the readings over I2C.
What is the best setup for this case in CubeMX? I have tried to follow Input capture DMA examples online but in my board it is GPDMA1, and setup for it is different than some online tutorials. Any suggestions are welcome.
2025-02-20 12:12 PM
You can use 16-bit or 32-bit timers (TIM2, TIM5 are 32-bit, which is better for high precision).
2025-02-20 12:23 PM
I wanted to know is there any Examples where GPDMA is used to measure Frequencies and CubeMX setup.