2013-01-30 02:16 AM
In an application using the STM32F3xx, I am using the OPAMP in PGA mode to amplify an external 1 kHz signal to the ADC converter. The signal is provided AC coupled to the OPAMP non-inverting input.
If I program the OPAMP in follower mode everything works fine. The ADC reads the right values and the signal in the OPAMP output pin is correct and centered around VDDA/2. However, if I program for PGA mode and specially with higher gains, the OPAMP works erratic. In some cases the output is clipped around VDDA and sometimes around VSS. Probing with the oscilloscope in the OPAMP output pin, has effect in the behaviour and sometimes it makes it working fine. I am wondering in the non-inverting configuration, what is the VREF level used and if it is programmable. What I see it is a bit the lack of information and examples about the use of the OPAMP with the std peripheral library, e.g. for the calibration and for the VREF settings. Any additional guidance on the OPAMP operation of hints about what could be the source of this problem, will be of great help. #stm32f3-opamp2013-02-05 11:42 PM
Thanks jerzy,
Your solution looks great but unfortunately I could not implement it in this way for my project, so I will have to implement the signal conditioning externally. It is a pity that the stm32f3 opamp's are not so flexible.