STM32 Timer Example

image_pdfimage_print

STM32 Timer Example

The STM32 Timer example program shows how to configure and use the timer TIM1 of STMicroelectronics STM32F103xx microcontroller.

TIM1 is configured to generate an update interrupt every 250 ms. The lit LED moves on every timer tick.

The configuration of the clocks and the timer TIM1 is done using the Configuration Wizard in file STM32_Init.c.

Two Vision targets are available:

Simulator where the program runs in the software simulator.
MCBSTM32 where the program runs from internal Flash located on the microcontroller.

stm32_timer.zip

This entry was posted in STM. Bookmark the permalink.