STM32 Basic Timer in Interrupt & PWM mode

If you like it, share it

STM32 Basic Timer in Interrupt & PWM mode

Now there is a new tutorial that explain how to use TIMER in PWM mode with spreadsheet for calculate the values of PRESCALER, PERIOD and PULSE that is here.
In the same tutorial we explain also the redirect of printf via USART2 and getchar via USART2 in interrupt mode

  • Introduction
  • TIM in Interrupt mode
  • The PERIOD formula
  • TIM in PWM mode
  • How to get the SW for PWM mode
  • Some note regarding the Period and Prescaler values

For more info see here