TIMER PWM CENTRE ALIGNED

This example configures the timer in PWM mode to generate a 2-channel edge aligned PWM. It configures a two channels with frequency 1.25khz on GPIOs PA3 (25% duty) and PA4 (75% duty). It also configures an interrupt at event CTR=0.

External connections

Connect PA3 and PA4 to an oscilloscope to monitor the PWM output