2024-05-10 08:05 AM
I want to continuously measure the frequency of signal1 relative to signal2.
Signal1 can vary between 1-80 MHz, signal2 between 5-15 MHz.
My approach is:
Timer1 counts signal1.
Timer2 counts signal2 with a counter period of 200. This gives me an event roughly at 10 MHz / 200 = 50 kHz. When this happens, timer1 should be saved to memory (old values can be overwritten) and reset to 0.
How do I implement this in STM32CubeIDE? Especially the "one timer triggers reading of the other timer" is not clear to me.