Posted on February 19, 2014 at 17:16HI, I'm trying to configure TIMER1 CHANNEL2 for InputCapture to measure a pulse from some external hardware. My init code looks like this: //////////////////////////////////////////////// // Enable Timer1 clock...
Posted on February 20, 2014 at 17:16Excellent! After a bit of time trawling through the libraries I managed to translate your code into something that would compile. I now have my rising edge interrupt firing every 20ms (as planned) and a subsequent...
Posted on February 20, 2014 at 15:01Just grep'ed through my header and source files and I can't find TIM_ICPolarity_BothEdge. I don't see how that could work as the polarity field is just a single bit in the register. I don't think the PWMCapture wo...
Posted on February 20, 2014 at 12:29Many thanks for the excellent advice - got that all sorted now. One further question, though... Looking in stm32f10x_tim.h, it seems that the ICFilter can be set to either TIM_ICPolarity_Rising or TIM_ICPolarity_F...