STM32F4 Discovery project: Timer interrupts

 You can find good information about stm32f4xx timers in the reference manual and datasheet of STM32F407.

 A simple example code for using timer2 (a 32bit timer) as a source for generating  interrupt requests regularly In this example we toggle PD12 (which is connected to LED4 in STM32F4 Discovery board) every 1 second.

Library dependencies

  • STM32F4xx_StdPeriph_Driver
    • stm32f4xx_rcc
    • stm32f4xx_tim
    • misc
    • stm32f4xx_gpio

THE END.

Sharif University of Technology, Tehran, Iran