cancel
Showing results for 
Search instead for 
Did you mean: 

FOC Control with STM32G491KE

yeseung
Associate

Hi, I'm a circuit engineer in korea.

I want to make really small BLDC FOC controller with STM32G491KE, because It has the smallest pin counts compare to other G491 family.

For FOC Control, I have to use three TIM channel. For use external ociliator, I have to use TIM1_CH1_CH1N, TIM_CH2_CH2N, TIM8_CH1_CH1N

If I use TIM channel with that combination, Will FOC controller work well? Is there any differences with TIM1 and TIM8?

I want to use 491KE Series for smallest FOC Controller.

 

Thank you.

yeseung_0-1767350262868.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @yeseung,

A single timer must be used to control the motor.
As mentioned by @STuser2, use the MCSDK board designer tool for board design.
Also generate and compile a project to check the MCSDK compatibility.



If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

View solution in original post

4 REPLIES 4
STuser2
Senior III

@yeseung wrote:

For FOC Control, I have to use three TIM channel. For use external ociliator, I have to use TIM1_CH1_CH1N, TIM_CH2_CH2N, TIM8_CH1_CH1N

 

Please use the MCSDK board designer to check the feasibility of the controller and for code generation, i think it is possible but one confusion i have is you mentioned CH1 two times i hope you mean CH1, CH2, CH3.

 

You're right to understand.

In STM32G491KE, TIM1_CH3N pin is same as RCC_OSC_OUT, So If I use external Oscillator, I have to use other Channel like TIM8_CH1_CH1N.

Do I use same TIM number like TIM1_CH1_CH1N, TIM1_CH2_CH2N, TIM1_CH3_CH3N? Isn't it working well if I use other TIM number?

Sorry for my short English.

STuser2
Senior III

As I told use MCSDK board designer tool. 

Hello @yeseung,

A single timer must be used to control the motor.
As mentioned by @STuser2, use the MCSDK board designer tool for board design.
Also generate and compile a project to check the MCSDK compatibility.



If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA