Input capture timer configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-06 4:00 AM
Hi friends,
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?
Sunil
Calixto Systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-06 6:13 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-09 12:02 AM
Turvey.Clive.002
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.
Regards
Sunil
Calixto Systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-09 9:13 AM
Prescaler = (SystemCoreClock / 1000000) - 1; // Clock timebase at 1 MHz (1us ticks)
Period = 0xFFFF; // for 16-bit or 0xFFFFFFFF for 32-bit
Up vote any posts that you find helpful, it shows what's working..
