Best way to measure time difference between two signals
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-05-10 5:56 AM
Posted on May 10, 2010 at 14:56
Best way to measure time difference between two signals
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:50 AM
Posted on May 17, 2011 at 13:50
Set up TIM3 and TIM4 counters to the same frequency. Capture the TIM3 and TIM4 counter registers when the respective channel 1 pulses occur. When the second pulse occurs, subtract the first captured counter value from the second captured counter value and allow for counter overflow. Then it is simple arithmetic to convert pulses at the counter frequency to a time difference.
If you need more help than this, restate the request. Cheers, HalOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:50 AM
Posted on May 17, 2011 at 13:50 Worked a treat.. Thanks
