2012-02-19 11:47 PM
Hi,
I need a support to understand how I can configure the TIM Peripheral of my stm32l1xx (TIM8 for example) to develop a time base unit. I have to configure it for generating an interrupt every 100usec. In the Structure if the Library there are same field that I don't understand how this are related to the clock frequency and output timer frequency. This field are: TIM_TimeBaseStructure., TIM_TimeBaseStructure., TIM_TimeBaseStructure. . Can sameone help me to understand this fields and to understand how to configure the TIM Peripheral? #tim-stm32l1xx-timer-config2012-02-20 05:00 AM
timebase frequency = TIMCLK / ((TIM_TimeBaseStructure.Prescale + 1) * (TIM_TimeBaseStructure.Period + 1))