STM32G0B1RE Using a timer to sample a clock signal
Hello and thank you for taking the time to read and answer my question.
What I want to do:
I have SYSCLK configured at a frequency of 16 MHz (using HSI), and a PLL block clock with a frequency of 18 MHz.
I want to sample the PLL clock on the rising edge of the SYSCLK. (the application in which I want to use this is not really of interest in this post).
What is the most efficient way to do this?
Use a timer channel in input capture mode for the reference clock and read the value of the other channel where I connect the 18 MHz clock, whenever I have a rising edge?
Interrupts? (It seems like 16.000.000 interrupts a second might saturate the CPU)
Any other good way?
