cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 PWM input capture

phil239955_stm1
Associate
Posted on July 15, 2010 at 10:34

STM32 PWM input capture

1 REPLY 1
jgoldberg
Associate II
Posted on May 17, 2011 at 13:58

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.