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
PWM period
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: PWM period
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
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
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
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
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: PWM period
Hi,
Channels are explained in the STM32 Reference Manual, see TIMx chapters. Pin associations are documented in the STM32 data sheet.
Giovanni
Channels are explained in the STM32 Reference Manual, see TIMx chapters. Pin associations are documented in the STM32 data sheet.
Giovanni
Who is online
Users browsing this forum: No registered users and 21 guests