2010-07-15 01:34 AM
STM32 PWM input capture
2011-05-17 04:58 AM
I might be missing something here, but I'm not sure how you are mapping TIM4_CH1 to T1. How are you doing this?
By default, TIM4_CH1 is mapped to PB6, and TIM4_CH2 is mapped to PB7. My guess is you have to connect these pins together externally to the STM32. Another option is to dynamically re-configure the capture edge (polarity) upon every edge. But, some care must be taken in case an edge occurs immediately before the capture edge is re-configured.