Figure 170. Pga Mode, Internal Gain Setting (X2/X4/X8/X16/X32/X64); Inverting Input Not Used - ST STM32G4 Series Reference Manual

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

Advertisement

RM0440
Programmable gain amplifier mode
The procedure to use the OPAMP as programmable gain amplifier is presented hereafter.
configure VM_SEL bits as "Feedback resistor is connected to OPAMPx_VINM input",
10
configure PGA_GAIN bits as "internal Gain 2, 4, 8, 16,32, or 64", 00000 to 00101
configure VP_SEL bits as "GPIO connected to OPAMPx_VINP", 00
As soon as the OPAEN bit is set, the voltage on pin OPAMPx_VINP is amplified by the
selected gain and visible on pin OPAMPx_VOUT.
Note:
To avoid saturation, the input voltage should stay below V
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 170. PGA mode, internal gain setting (x2/x4/x8/x16/x32/x64),

STM32
VINP0
VINP1
VINP2
VINM0
VINM1
VOUT

inverting input not used

+
-
RM0440 Rev 1
Operational amplifiers (OPAMP)
divided by the selected gain.
DDA
opamp_out
(1)
MSv48041V1
749/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?

Table of Contents

Save PDF