Page 1 of 1

PWM period

Posted: Sat Oct 07, 2017 6:14 am
by rvanspaa
Hi,

There is a "period" in PWMDriver and also in PWMConfig. Could someone please explain why there are two, and if they are different, what the difference is, and why there is none in PWMChannelConfig?

Regards,

rvanspaa

Re: PWM period

Posted: Sat Oct 07, 2017 9:31 am
by Giovanni
Hi,

The one in PWMDriver is an internal variable, the one in PWMConfig is the period you set initially.

Channels do not have their own period because all channels share the same period.

Giovanni

Re: PWM period

Posted: Sat Oct 07, 2017 11:20 pm
by rvanspaa
Hi Giovanni,

Thanks for the explanation, but I'm afraid it just leaves me with more questions. Could you please define "channel", and explain it's association with pins?

Regards,

rvanspaa

Re: PWM period

Posted: Sun Oct 08, 2017 6:13 am
by Giovanni
Hi,

Channels are explained in the STM32 Reference Manual, see TIMx chapters. Pin associations are documented in the STM32 data sheet.

Giovanni

Re: PWM period

Posted: Mon Oct 09, 2017 12:48 am
by rvanspaa
Hi Giovanni,

Thanks.