cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous relative frequency measurement

Banana123
Associate II

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.

1 REPLY 1
VK2SID
Associate

I am also looking for a solution for this where I need to measure RF up to 54MHz. Did you find a solution to that, which input pin do you use for that and is there a code available or you would have written to count the frequency? Thanks, Sid