Maximum reasonable Frequency for TIM2 Frequency counter measurement?
Hello,
We're looking at using a STM32F303RE for a project. One of the requirements is being able to measure the frequency of a square wave ranging from 1MHz - 40Mhz. I've been looking at the General-purpose timer cookbook (AN4776) and trying to get the frequency counter sample application working on the F303 platform but have so far been unsuccessful but that's another issue.
However, as I become more familiar with the way that code works, I'm concerned that it won't work at these higher frequencies. if the system clock is 72MHz, trying to count the CC2R clock counts latched at 40Mhz will only give counts of 1 or 2, right? I guess we could build a divisor circuit to condition the input signal down from 40Mhz by a factor of 16 or 32?
Any thoughts on this? Am I missing something?
Thanks
