2025-11-09 12:04 PM
Hello community,
I am using STM32G474 for my FOC application and I am a bit confused about the ADC modes.
Since the G4 series has a wide range of ADC modes, which ADC mode is best for 2 or 3 phase current sensing in FOC applications?
Is the "dual injected simultaneous mode only" suitable for this purpose?
I'm using the ADC1_IN2, ADC2_IN1 and ADC3_IN5 channels to sense the current.
If I want to sense all 3 phases current, what should I do? "Independent mode+injected conversion" combination enough for it?
I can use a FOC library or MCSDK, but I need to learn the logic behind this task.
Thanks for any help.
Best Regards
2025-11-12 8:51 AM
Hello @batuhanky,
Refer to the Current sampling chapter of the MCSDK user manual available through Workbench tool > About > Documentations > Documentation > User manual tab. Three-shunt, two-current sensing, and three-current sensing (HSO) topologies are described.
Refer to the 21 Analog-to-digital converters (ADC) chapter of the STM32G4 Reference Manual for ADC IP description.