2011-07-27 05:35 PM
Are there any way to configure the TIMx to capture events on both edges for the same input?
something like the configuration for capture pwm input. #about-pwm-input2011-07-27 08:47 PM
You can use PWM input mode. Use CCR1&CCR2 to configure it.
2011-07-27 08:54 PM
2011-07-27 09:04 PM
2012-06-16 03:08 AM
Hi,
I'm trying to do the same thing. I've tried changing CC1P in the interrupt routine so that the opposite edge then triggers the next interrupt. Did you find a solution?2012-06-16 08:32 PM
In case you didn't get this solved you might find this link helpful:
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/TIM_ICPolarity_BothEdge not available for most timers
and just change the setup to enable interrupts on CC1E (turn on CC1IE) as well. ...Laurie:{)