0
\$\begingroup\$

I have a question about PWM in STM32F051xxx Microcontrollers. I want to know if there is a difference regarding the current consumption of the microcontroller between the center aligned mode and edge aligned mode?

\$\endgroup\$
  • \$\begingroup\$ Why do you think there would be? I'm not saying there isn't, I'm just saying that it wouldn't ever occur to me personally that there might be a difference. \$\endgroup\$ – Hearth Mar 14 at 16:43
  • \$\begingroup\$ the averages would be the same either way, so unless you're talking about a tiny slice of time, "no". \$\endgroup\$ – dandavis Mar 14 at 16:52
0
\$\begingroup\$

For a given duty cycle, no the current shouldn't be any different. The timer and CCR is still active for the entire period regardless of if it counts up and resets or counts up then back down (which I believe is the difference between left and center aligned).

I suppose the capture compare block makes an extra comparison in center aligned if I'm counting right, but that shouldn't increase current in any appreciable amount (if at all)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.