Figure 168. Standalone Mode: External Gain Setting Mode - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
24.3.5
OPAMP modes
The operational amplifier inputs and outputs are all accessible on terminals. The amplifiers
can be used in multiple configuration environments:
Standalone mode (external gain setting mode)
Follower configuration mode
PGA modes
Note:
The impedance of the signal must be maintained below a level which avoids the input
leakage to create significant artifacts (due to a resistive drop in the source). Please refer to
the electrical characteristics section in the datasheet for further details.
Standalone mode (external gain setting mode)
The procedure to use the OPAMP in standalone mode is presented hereafter.
Starting from the default value of OPAMPx_CSR, and the default state of GPIOx_MODER,
as soon as the OPAEN bit is set, the two input pins and the output pin are connected to the
operational amplifier.
This default configuration uses the factory trimming values and operates in normal mode
(highest performance). The behavior of the OPAMP can be changed as follows:
OPAHSM can be set to "operational amplifier high-speed" mode in order to have high
slew rate.
USERTRIM can be set to modify the trimming values for input offsets.
VINP3 or DACx_CHy
1. opamp_out can be redirected internally to an ADC channel by setting OPAINTOEN bit.
In this case, the I/O on which is mapped the OPAMPx_VOUT is free and can be used for another purpose.

Figure 168. Standalone mode: external gain setting mode

STM32
VINP0
VINP1
VINP2
INM0
INM1
VOUT
RM0440 Rev 1
Operational amplifiers (OPAMP)
+
-
(1)
opamp_out
MSv48039V1
747/2083
787

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF