What are the steps to configure input capture timer?
how we give correct prescaler and period values for that?
Have any demo video for that?
The *Input* Prescaler will determine how many edges the TIM wants to see. The Prescaler on the TIM itself will determine the rate at which CNT increments. What you pick depends on the frequency or time displacement you want to capture, and the size of the TIM 16 or 32-bit. You don't want the CNT to cycle multiple times during your proposed measurement interval.
Clive One Thanks for the reply.
I want to set my input capture timer to count a microseconds clock (eg 1000microseconds clock give to input, i want get my timer count 1000 ). What are the parameters i want to set for this? I used Keil SDK for my project.
Prescaler = (SystemCoreClock / 1000000) - 1; // Clock timebase at 1 MHz (1us ticks)
Period = 0xFFFF; // for 16-bit or 0xFFFFFFFF for 32-bit
Retrieving data ...