2016-01-24 12:51 PM
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 #stm32f42016-01-24 03:10 PM
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