Controller for Buck converter 100KHz, using STM32f103

Thread Starter

lehieubk98

Joined Mar 29, 2019
27
Hi guy. I'm working on a Buck converter using STM32f103 for the voltage feedback controller.
First, I found out the continuos compensator, then discretized it to digital compensator. By simulation on Matlab, I saw that only when sample frequency >= PWM frequency (100KHz). That means I need to read ADC and adjust the PWM duty every PWM period.
I'm not sure if MCU is fast enough to process all of that in 10us or not. Anyone can help me with that?
If MCU would not be able to do that, so can you recomend me another algorithm which can be applied here?
Thank you.
Untitled.png
 

Attachments

MrChips

Joined Oct 2, 2009
23,960
My gut feeling is that 10μs is enough time to get this done.
Secondly, I think that you don't have to adjust the PWM at every period.
 
Top