cancel
Showing results for 
Search instead for 
Did you mean: 

OPAMP on STM32G431KB

30108eric
Associate

Hi, Master:


Hello, I want to use the opamp amplifier function of the g431kb board to connect an external gain circuit and use standlone mode. Can I use it after downloading my MXsoftware generate code?


I set the OPAMP1_P (PA7) input to 2.5V (DC power supply),

OPAMP1_M (PA3) input to 1Vpp sine wave,

plus 15K ohm R1, 33K ohm R2,

OPAMP1_P (PA7) output should be 5.8V~10.2V , is this correct?

 

Because the output waveform cannot be changed according to the DC power supply, the gain is always 5.
Have I not enabled the OPA function?

 

Thank you very much!​scope_12.png

2 REPLIES 2
Uwe Bonnes
Principal III

The Opamp can only work inside the limits of its supply voltage and also needs some head and footroom. So scale down your input to not overdrive the input.

Hi,

Turn down the input signal and the gain is still 5,and still will not change according to DCpower supply

Whether it is increasing or decreasing the voltage