STM32F4 Counter Time Difference on 2 Signals?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-01-24 12:51 PM
Posted on January 24, 2016 at 21:51
Objective:
To measure the time difference between 2 different analog signals that have been buffered into a square wave by a Schmitt trigger. Frequencies < 1KHz. What functions/features of the timer capture system would I need to use in order to achieve this? Thanks... #differe #timer #capture #stm32f4
Labels:
- Labels:
-
STM32F4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-01-24 3:10 PM
Posted on January 25, 2016 at 00:10
One TIM in maximal mode, Two Channels in Input Capture. They will timestamp based on the CNT value, you can interrupt on one or both channels. Will depend which you expect to be the early and late signals.
If the two edges are close to each other, and not defined relationship between them, you'd have to watch the latency of the interrupt
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
