AnsweredAssumed Answered

STM32L051 TIM21 PWM capture

Question asked by Izzy84075 on Feb 18, 2015
Latest reply on Feb 18, 2015 by waclawek.jan
I've been running around in circles all morning trying to figure out how to set up PWM capture on this thing... STM32CubeMX doesn't have any options for doing it on TIM21, but I see it mentioned in the reference manual for this chip/timer. I can't make heads or tails of what the example setup in the reference manual is actually doing, either.

What I have is a single pin, PA2(Which is TIM21_CH1), that I need to capture both the high and low active time on. Can I do this with TIM21, or do I need to look into rearranging things to get this on TIM2?