Use MotorControl on B-G431B-ESC1 without using 3 output pins for OPAMP1,2,3 (possible to use interval route to ADC?)
Hi ST Community
I am having a MotorControl setup with the B-G431B-ESC1 board.
The default project generated with MotorControl Workbench uses the OPAMP1, 2 and 3 and their outputs are set to pin A2, A6 and B1. These output pins are then fed to the ADC: ADC1_IN3 (A2), ADC2_IN3 (A6) and ADC1_IN12 (B1).
In my setup, I need to use the pins A2, A6 and B1 for other GPIO purposes (already used all the other pins). I am having a hard find figuring out whether it is possible to route the OPAMP outputs internally to the corresponding ADC without wasting uC pins. Does anyone know if this is possible?
Edit:
In the document: AN5310 Guideline for using analog features of STM32G4 Series versus STM32F3 Series devices, table 10 shows the overview of "Internal OPAMP to ADC connection without external pin occupancy". So it must indeed be possible. I must figure out how to set this up in the CubeMX project.
