AnsweredAssumed Answered

STM32L152RE documentation and capture timer problem

Question asked by gugger.nicolas on Aug 19, 2014
Latest reply on Aug 20, 2014 by Clive One
Hi,
I am new with programming STM32 but I've experience with MSP430. I'm looking for information on setting timer / capture timer. TI has many user guide and complete datasheet explaining each register. I didn't find the same.
My second problem is with my capture timer. I'm using the code example "TIM_PWM_Input" in order to measure a frequency. It is said that CCR1 is for the duty cycle and CCR2 to compute the frequency. I only need to compute the frequency but I don't find track of configuration of CCR1. Then, CCR2 always reset after each interrupt. How can I keep its value?
Thank you for your help. Please show me as well where I can find a detailed documentation so that I can make my own way.

Outcomes