Skip to main content
Arg.1
Associate
April 18, 2021
Question

I want to generate 4 phase pwm for interleaved buck converter with independently controllable duty on each channel. I am using stm32f103 series mcu. I want to know if its possible with this micro controller .

  • April 18, 2021
  • 3 replies
  • 2469 views

I am told by that configuring a timer as master and others as slaves can generate multiphase pwm . but I cant figure out how exactly to set the configuration. I am aware its possible in few of the advanced MCU with HRTIM. But I want to use stm32f103 since its available as bluepill board. If 4 phase is not possible at lease 2phase with 180 deg phase shift will do.

This topic has been closed for replies.

3 replies

Javier1
Principal
April 19, 2021

Timer1 is what youre looking for.

Think of every pwm phase you need as a timmer1´s channel (1,2,3,4)

Every timer channel in PWM generation mode has the option to produce a single pwm signal with adjustable duty CH1 or a pair of pwm signals CH1 and CH1N for example where CH1N is the inverse of CH1 but respecting the programmed switching deadtimes.

0693W000008zu6EQAQ.png 

sadly the CH4 doesnt have the option of producing also CH4N....

hit me up in https://www.linkedin.com/in/javiermuñoz/
Arg.1
Arg.1Author
Associate
April 19, 2021

I think the channels won't give the required phase shift(all though duty can be independently controlled) between each other say I will use 3 channels itself , the phase shift between each channel should be 120 degree if its four channels the phase shift should be 90 degree between each channel. but still I will try it out and get back.

https://youtu.be/wN9_ZczShyI this is the type of waveform which I am trying to generate.

Javier1
Principal
April 19, 2021

I see.. the solution i gave you gives you perfectly in sync pwms, so no bueno for you.

hit me up in https://www.linkedin.com/in/javiermuñoz/
Arg.1
Arg.1Author
Associate
April 19, 2021

yess this might help , I will try it out

thanks