How to configure 3 Shunt 3 ADC measurement
Hi,
I have a STM32G491 based design with three differential shunts, routed to the three Op Amps of the MCU. I would prefer to run the Op Amps in standalone mode. This would allow me to have a low pass filter (cap across negative and output) and I would also be able to fine tune the opamp gain. I understand that this is not possible with 2 ADCs due to limitations in amplified signal routing, but it would be possible with 3 ADCs.
It looks like the MCSDK 6.1.1 ships with a promising r3_3_g4xx_pwm_curr_fdbk.c file. How to configure this current measurement topology with the MCSDK 6.x? I have a JSON spec file for my custom inverter board. I am able to generate code for 3 Op Amps + 2 ADCs by using the "ThreeShunt_RawCurrents_Differential_InternalGain" option and STM32G474 as a temporary MCU before importing everything into a STM32G491 project.
Additionally, do you have a specification for (differential) PGA shunt measurement network polarization offset and attenuation calculation, or do I have to simulate the circuit? And is there a plan to include the STM32G491 into the MCSDK in the future?
Thanks, br,
Juha
