Calculating pulse width (duty cycle) using stm32 DMA. Is it possible?
I'm working on a project that a series of duty cycles must be measured. A sample of related waveforms is displayed below:
As you can see from the signal, the frequency is too high, and calculating it using bit functions is impossible. In the controller's tech website here, they used the timer's input capture modes and rising-falling edges interrupt for calculating the difference between two captures of the timer. But this method is too slow and cannot fulfill our desires for high-frequency signals. The other solution is to use DMA for fast transferring the capture data to the memory. But in STM32cubemx it is not possible to assign two DMAs for two captures of a timer as you can see below:
Could someone give me a suggestion for this issue?
