Question
TIM_ICPolarity_BothEdge not available for most timers???
Posted on June 06, 2012 at 07:36
Hi. I need to read a digital signal coming into an STM32F100.
Timing how long the signal is in a low state and also knowing if the counter overflowed would give me the two pieces of information I need (value of the data bit and a timeout indication). Timer update without a capture (and reload) would indicate a timeout. Using both edges of the signal to capture a timer seemed the way to go. I note in the std peripeherals lib (3.5.0) thatTIM_ICPolarity_BothEdge is NOT available for TIM2 but only for the basic timers.
If that's true, is there another way to do what I need? Thanks ...Laurie:{)