EasyManua.ls Logo

ST STM32G474 User Manual

ST STM32G474
2126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #791 background imageLoading...
Page #791 background image
RM0440 Rev 4 791/2126
RM0440 Operational amplifiers (OPAMP)
829
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 must stay below V
DDA
divided by the selected gain.
Figure 173. PGA mode, internal gain setting (x2/x4/x8/x16/x32/x64),
inverting input not used
STM32
+
-
VINM0
VINM1
MSv48041V1
VOUT
VINP3 or DACx_CHy
VINP2
VINP1
VINP0
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.
opamp_out
(1)

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the ST STM32G474 and is the answer not in the manual?

ST STM32G474 Specifications

General IconGeneral
SeriesSTM32G4
Core ProcessorARM Cortex-M4
Core Size32-bit
Max CPU Frequency170 MHz
Flash Memory512 KB
SRAM128 KB
GPIO Pins51
ADC Resolution12-bit
DAC Resolution12-bit
Operating Voltage1.7V to 3.6V
Communication InterfacesI2C, SPI, USART, USB
Operating Temperature-40°C to 85°C
PackageLQFP64, LQFP48
ConnectivityUSB, CAN
PeripheralsADC, DAC
Oscillator TypeInternal, External

Related product manuals