Example-9: TIM4-CH[1:4] PWM generation example

 In this example we generate 4 PWM signals on PD[12:15] using TIM4_CH[1:4].

  • frequency = 20kHz
  • Duty Cycles = 50% , 33.3% , 25% , 20%

Library dependencies

  • STM32F4xx_StdPeriph_Driver
    • stm32f4xx_rcc
    • stm32f4xx_tim
    • stm32f4xx_gpio

THE END.

Sharif University of Technology, Tehran, Iran