2023-08-20 04:22 PM
I have a STM32-C3 and was wondering what is the best way to sample a bipolar AC signal? In addition, does the STM32-C3 support ADC gain?
2023-08-20 11:45 PM
Apparently there was a mix-up between the ESP32-C3 and the STM32.
Being ESP32, it's another forum: https://www.esp32.com/
2023-08-21 02:26 AM
None of the STM32 microcontrollers support symmetrical ADC inputs, i.e. true differential.
You require a negative supply voltage for that. By the way, this applies to almost all MCUs of other vendors, too.
You can either amplify/attenuate and shift the signal to the range acceptable for the onboard ADC in an appropriate preamplifier, or use an external ADC converter.
Though both variants would require symmetrical power supply in one way or another.
If you need just the zero crossing events, there are simpler methods and circuits.