How to calculate the period and prescaler values when using input capture
Hi
I want to be able to capture a 50Hz signal attached to timer 3 of a STM32072 discovery board. However I dont understand how the PERIOD and PRECALER values are calculated. I have looked at the example design in the CUBEMX and they have set the period as 0xFFFF and the prescaler to 0. As I see it the prescaler will just adjust the granularity of the clock which would allow slower input frequencies to be captured. But I dont really see what the period is doing. Can someone explain how these parameters are used for input capture?
Thanks
Jon