cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner with timer

gregorydrck5
Associate
Posted on August 28, 2012 at 12:14

Hi,

I'm beginner with stm32 (and other microcontroller), I read datasheet of stm32 discovery, but i don't understand how to do a simple counter.

I understand how to initialize counter, but not how to use it.

I search on web, but i don't find examples very concrete, do you know where i can find concrete example to learn to use timer on stm32. I don't ask you a complete code of counter but just a little explain.

Regards,
1 REPLY 1
Posted on August 28, 2012 at 17:08

Which board/part, exactly?

What do you want the timer to count? Input pulses, internal clocks?

All the STM32 firmware libraries come with a quite large collection of TIM programming examples. Have you reviewed any of those?

STM32F4xx_DSP_StdPeriph_Lib_V1.0.1\Project\STM32F4xx_StdPeriph_Examples\TIM\InputCapture

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..