2026-03-26 6:38 AM
Hi,
I am using STM32G0 with STM32 Motor Control SDK. ADC1 is used for motor current sensing (triggered by TIM1 for FOC control).
Since STM32G0 has only one ADC and does not support injected channels, I needed to read an additional NTC sensor (ADC channel 8) for motor stator temperature.
I implemented this using Regular Conversion Manager (RCM):
Registered ADC channel using RCM_RegisterRegConv()
Requested conversion periodically (~300 ms)
Read the value after conversion completion
The motor is running stable, and I am able to get temperature readings without visible disturbance.
My question:
Is this a correct and recommended approach for reading an additional analog signal in STM32G0 + MCSDK?
Are there any potential risks (timing issues, FOC accuracy impact) when using RCM alongside motor control?
Or is there a better recommended method for this use case (e.g., external ADC, different MCU, or MCSDK-specific approach)?
Thank you.
Solved! Go to Solution.
2026-03-30 9:13 AM
Hello @Mathan Raja,
This is the correct method according to the comment feature description available in the regular_conversion_manager.c file.
2026-03-30 9:13 AM
Hello @Mathan Raja,
This is the correct method according to the comment feature description available in the regular_conversion_manager.c file.