Skip to main content
Associate II
August 19, 2025
Solved

STM32G474 FOC ADC Reading

  • August 19, 2025
  • 1 reply
  • 413 views

Hello ST Community,

I am designing a FOC motor controller using STM32G4 and want to use 3 separate ADCs (ADC1, ADC2, ADC3) in injected mode for simultaneous 3-phase current sampling.

I know that some microcontrollers have triple-mode ADCs, which allow all three ADCs to start and finish simultaneously. My question is:
1. When TIM1_TRGO is triggered, do all three ADCs start converting simultaneously, or is there a sequential order (ADC1→ADC2→ADC3)?

2. What is the safest way to read an ADC for FOC algorithm?

I am very new to this field, so please excuse me.

Best regards

This topic has been closed for replies.
Best answer by STuser2

The phase current sensing is described in the MCSDK 6.4.0 user manual 

STuser2_0-1755652805827.png

According to me 2 ADC channels are read simultaneously for 2 phase currents and the 3rd one is derived, which 2 phase currents to be read depends on the duty of the PWM. 

1 reply

STuser2Best answer
Senior III
August 20, 2025

The phase current sensing is described in the MCSDK 6.4.0 user manual 

STuser2_0-1755652805827.png

According to me 2 ADC channels are read simultaneously for 2 phase currents and the 3rd one is derived, which 2 phase currents to be read depends on the duty of the PWM.