34. Operational amplifiers (OPAMP)

34.1 OPAMP introduction

The devices embed one operational amplifier with two inputs and one output. The three I/Os can be connected to the external pins, thus enabling any type of external interconnections. The operational amplifiers can be configured internally in three possible ways:

Refer to Section 34.3.3: Signal routing for detailed information on OPAMP input and output connection to internal peripherals.

34.2 OPAMP main features

Note: Refer to the product datasheet for detailed OPAMP characteristics.

34.3 OPAMP functional description

The OPAMP has several modes.

Each OPAMP can be individually enabled, when disabled the output is high-impedance.

When enabled, it can be in calibration mode, all input and output of the OPAMP are then disconnected, or in functional mode.

There are two functional modes, the high-speed mode and the normal mode. In functional mode, the inputs and outputs of the OPAMP are connected as described in Section 34.3.3: Signal routing.

34.3.1 OPAMP reset and clocks

The operational amplifier clock is necessary for accessing the registers. When the application does not need to have a read or write access to those registers, the clock can be switched off using the peripheral clock enable register. See OPAMPEN bit in Section 11.8.29: RCC APB1 peripheral clock register (RCC_APB1LENR).

The bit OPAEN enables and disables the OPAMP operation. The OPAMP registers configurations should be changed before enabling the OPAEN bit to avoid spurious effects on the output.

When the output of the operational amplifier is no more needed, the operational amplifier can be disabled to save power. All the configurations previously set (including the calibration) are maintained while OPAMP is disabled.

34.3.2 Initial configuration

The default configuration of the operational amplifier is a functional mode where the three input/outputs are connected to external pins. In the default mode, the operational amplifier uses the factory trimming values for its offset calibration. See the electrical characteristics section of the datasheet for factory trimming conditions, usually the temperature is 30 °C and the voltage is 3 V. The trimming values can be adjusted. See Section 34.3.5: Calibration for changing the trimming values. The bit OPAHSM can be set to switch the operational amplifier to high-speed mode for a better slew rate. Both normal and high-speed mode characteristics are defined in the section: Electrical characteristics of the datasheet

As soon as the OPAEN bit in the OPAMPx_CSR register is set, the operational amplifier is functional. The two input pins and the output pin are connected as defined in Section 34.3.3: Signal routing and the default connection settings can be changed.

Note: The inputs and output pins must be configured in analog mode (default state) in the corresponding GPIOx_MODER register.

34.3.3 Signal routing

The OPAMPx_CSR register determines the routing for the operational amplifier pins.

The connections of the operational amplifier (OPAMP1) are described in the table below.

Table 325. Possible connections for OPAMP

SignalPinInternalcomment
OPAMP1_VINMPE13(INM0)
PA4(INM1)
ADC3_INP7
ADC1_INP18
ADC2_INP18
OPAMP1_VOUT or
PGA
The bits PGA_GAIN and
VM_SEL control this pin.
ADC controls the ADC input.
OPAMP1_VINPPE11(INP0)
PA5(INP2)
PE12(INP3)
dac1_out1 (INP1)
ADC3_INP5
ADC3_INP18
ADC1_INP19
ADC1_INN18
ADC2_INP19
ADC2_INN18
DAC1_OUT2
ADC3_INP6
The bit VP_SEL controls this pin.
ADC controls the ADC input.
OPAMP1_VOUTPB1ADC1_INP5
ADC2_INP5
ADC3_INP10
The pin is connected when the
OPAMP is enabled. The ADC
input is controlled by ADC.

34.3.4 OPAMP modes

The operational amplifier inputs and outputs are all accessible on terminals. The amplifiers can be used in multiple configuration environments:

Note: The amplifier output pin is directly connected to the output pad to minimize the output impedance. When the amplifier is enabled, it cannot be used as a general-purpose I/O, even if the amplifier is configured as a PGA and only connected to the internal channel.

The impedance of the signal must be maintained below a level that avoids the input leakage to create significant artifacts (due to a resistive drop in the source). 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 below.

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:

Figure 326. Standalone mode: external gain setting mode

Schematic diagram of the OPAMP in standalone mode (external gain setting mode). The diagram shows an STM32 block containing an operational amplifier. The non-inverting input (+) is connected to a multiplexer that can select between INP0 or 2 and dac_out1. The inverting input (-) is connected to a multiplexer that can select between INM0 or 1 and the output (VOUT). The output of the op-amp is labeled opamp_out. A feedback network consisting of a resistor and a capacitor is connected between the output and the inverting input. The VOUT pin is also connected to a capacitor and a resistor network. The entire circuit is enclosed in a dashed box representing the STM32.

MSv68860V1

Schematic diagram of the OPAMP in standalone mode (external gain setting mode). The diagram shows an STM32 block containing an operational amplifier. The non-inverting input (+) is connected to a multiplexer that can select between INP0 or 2 and dac_out1. The inverting input (-) is connected to a multiplexer that can select between INM0 or 1 and the output (VOUT). The output of the op-amp is labeled opamp_out. A feedback network consisting of a resistor and a capacitor is connected between the output and the inverting input. The VOUT pin is also connected to a capacitor and a resistor network. The entire circuit is enclosed in a dashed box representing the STM32.

Follower configuration mode

The procedure to use the OPAMP in follower mode is presented below.

Note: The pin corresponding to OPAMPx_VINM is free for another usage.
The signal on the OPAMP1 output is also seen as an ADC input. As a consequence, the OPAMP configured in follower mode can be used to perform impedance adaptation on input signals before feeding them to the ADC input, assuming the input signal frequency is compatible with the operational amplifier gain bandwidth specification.

Figure 327. Follower configuration

Schematic diagram of an operational amplifier in follower configuration within an STM32 microcontroller.

The diagram illustrates the internal configuration of an operational amplifier (OPAMP) in follower mode within an STM32 microcontroller. The OPAMP is represented by a triangle with a '+' input and a '-' input. The output of the OPAMP is connected to a pin labeled 'opamp_out'. This output is also connected to a feedback network consisting of a variable resistor (potentiometer) and a fixed resistor in series, which is connected to ground. The feedback signal is fed back to the '-' input of the OPAMP. The '+' input is connected to a pin labeled 'INP0 or 2', which is also connected to a DAC output labeled 'dac_out1'. The '-' input is connected to a pin labeled 'INM0 or 1'. A pin labeled 'VOUT' is shown, with a note indicating it is 'Always connected to OPAMP output'. The entire circuit is enclosed in a dashed box labeled 'STM32'. The reference number 'MSv68861V1' is located in the bottom right corner of the diagram area.

Schematic diagram of an operational amplifier in follower configuration within an STM32 microcontroller.

Programmable gain amplifier mode

The procedure to use the OPAMP as a programmable gain amplifier is presented below.

  1. 1. Configure VM_SEL bits as “Feedback resistor is connected to OPAMPx_VINM input”, 10
  2. 2. Configure PGA_GAIN bits as “internal gain 2, 4, 8 or 16”, 0000 to 0011
  3. 3. Configure VP_SEL bits as “GPIO connected to OPAMPx_VINP”, 00 or 10
  4. As soon as the OPAEN bit is set, the selected gain amplifies the non-inverting input voltage, and it is visible on pin OPAMPx_VOUT.

Note: To avoid saturation, the input voltage should stay below \(V_{DDA}\) divided by the selected gain.

Figure 328. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input not used

Schematic diagram of the PGA mode configuration within an STM32. The diagram shows an operational amplifier (triangle symbol) with a non-inverting input (+) and an inverting input (-). The non-inverting input (+) is connected to a multiplexer (diamond symbol) that selects between INP0 or 2 and a DAC output (dac_out1). The inverting input (-) is connected to another multiplexer that selects between INM0 or 1 and the output of the op-amp. The op-amp output is connected to a feedback network consisting of a variable resistor (potentiometer symbol) and a fixed resistor in series to ground. The output of the op-amp is labeled 'opamp_out'. A pin labeled 'VOUT' is connected to the output of the op-amp. A note indicates 'Always connected to OPAMP output'. The entire circuit is enclosed in a dashed box labeled 'STM32'. The reference code 'MSv68862V1' is located in the bottom right corner of the dashed box.
Schematic diagram of the PGA mode configuration within an STM32. The diagram shows an operational amplifier (triangle symbol) with a non-inverting input (+) and an inverting input (-). The non-inverting input (+) is connected to a multiplexer (diamond symbol) that selects between INP0 or 2 and a DAC output (dac_out1). The inverting input (-) is connected to another multiplexer that selects between INM0 or 1 and the output of the op-amp. The op-amp output is connected to a feedback network consisting of a variable resistor (potentiometer symbol) and a fixed resistor in series to ground. The output of the op-amp is labeled 'opamp_out'. A pin labeled 'VOUT' is connected to the output of the op-amp. A note indicates 'Always connected to OPAMP output'. The entire circuit is enclosed in a dashed box labeled 'STM32'. The reference code 'MSv68862V1' is located in the bottom right corner of the dashed box.

Programmable gain amplifier mode with external filtering

The procedure to use the OPAMP to amplify the amplitude of an input signal, with an external filtering, is presented below.

  1. 1. Configure VM_SEL bits as “Feedback resistor is connected to OPAMPx_VINM input”, 10
  2. 2. Configure PGA_GAIN bits as “internal gain 2, 4, 8 or 16 with filtering on INM0”, 0100 to 0111
  3. 3. Configure VP_SEL bits as “GPIO connected to OPAMPx_VINP”.
    Any external connection on INM can be used in parallel with the internal PGA. For example, a capacitor can be connected between opamp_out and INM for a filtering purpose. Refer to the datasheet for the value of resistors used in the PGA resistor network.

Figure 329. PGA mode, internal gain setting (x2/x4/x8/x16), inverting input used for filtering

Schematic diagram of the STM32 internal PGA and filtering circuit. The diagram shows an operational amplifier with its non-inverting input (+) connected to a multiplexer selecting between INP0 or 2 and dac_out1. The inverting input (-) is connected to a multiplexer selecting between INM0 and a feedback network. The feedback network consists of a capacitor and a variable resistor (potentiometer) in parallel, with the potentiometer connected to ground. The output of the op-amp is opamp_out. A dashed box labeled 'STM32' encloses the internal components. A note 'Allows optional low-pass filtering (1)' points to the capacitor in the feedback network. A dotted arrow labeled 'Equivalent to' points from the external filtering capacitor (connected between opamp_out and INM0) to the internal feedback capacitor.

MSv68863V1

Schematic diagram of the STM32 internal PGA and filtering circuit. The diagram shows an operational amplifier with its non-inverting input (+) connected to a multiplexer selecting between INP0 or 2 and dac_out1. The inverting input (-) is connected to a multiplexer selecting between INM0 and a feedback network. The feedback network consists of a capacitor and a variable resistor (potentiometer) in parallel, with the potentiometer connected to ground. The output of the op-amp is opamp_out. A dashed box labeled 'STM32' encloses the internal components. A note 'Allows optional low-pass filtering (1)' points to the capacitor in the feedback network. A dotted arrow labeled 'Equivalent to' points from the external filtering capacitor (connected between opamp_out and INM0) to the internal feedback capacitor.
  1. 1. The gain depends on the cutoff frequency.

Programmable gain amplifier, noninverting with external bias or inverting mode

The procedure to use the OPAMP to amplify the amplitude of an input signal with a bias voltage for noninverting mode or inverting mode.

  1. 1. Configure VM_SEL bits as “Feedback resistor is connected to OPAMPx_VINM input”, 10
  2. 2. Configure PGA_GAIN bits as “Inverting gain=-1,-3,-7,-15/ noninverting gain =2,4,8,16 with INM0”, 1000 to 1011
  3. 3. Configure VP_SEL bits as —GPIO connected to OPAMPx_VINP”.

Figure 330. PGA mode, noninverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15)

Schematic diagram of an STM32 internal circuit for PGA mode. It shows an operational amplifier with a non-inverting input (+) connected to a multiplexer selecting between INP0 or 2 and dac_outx. The inverting input (-) is connected to a feedback network consisting of a switchable resistor and a fixed resistor, with INM0 connected to the switch. The output is labeled opamp_out. A note indicates that VOUT is always connected to the OPAMP output. The diagram is enclosed in a dashed box labeled STM32.
Schematic diagram of an STM32 internal circuit for PGA mode. It shows an operational amplifier with a non-inverting input (+) connected to a multiplexer selecting between INP0 or 2 and dac_outx. The inverting input (-) is connected to a feedback network consisting of a switchable resistor and a fixed resistor, with INM0 connected to the switch. The output is labeled opamp_out. A note indicates that VOUT is always connected to the OPAMP output. The diagram is enclosed in a dashed box labeled STM32.

MSv68864V1

Figure 331. Example configuration

Two example circuit configurations for the OPAMP. The left configuration shows a non-inverting setup where VINP is the input, INM0 is connected to a bias voltage, and INM1 is connected to the output through a feedback resistor. This setup provides gains of x2, x4, x8, and x16. The right configuration shows an inverting setup where VINP is connected to a bias voltage, the input signal is applied to the inverting input through a resistor, and INM0 is connected to the input signal. This setup provides gains of x-1, x-3, x-7, and x-15. Both diagrams show the internal feedback switch and resistor network.
Two example circuit configurations for the OPAMP. The left configuration shows a non-inverting setup where VINP is the input, INM0 is connected to a bias voltage, and INM1 is connected to the output through a feedback resistor. This setup provides gains of x2, x4, x8, and x16. The right configuration shows an inverting setup where VINP is connected to a bias voltage, the input signal is applied to the inverting input through a resistor, and INM0 is connected to the input signal. This setup provides gains of x-1, x-3, x-7, and x-15. Both diagrams show the internal feedback switch and resistor network.

MSv68866V1

Programmable gain amplifier, noninverting with external bias or inverting mode with filtering

The procedure to use the OPAMP to amplify the amplitude of an input signal with bias voltage for noninverting mode or inverting mode with filtering

  1. 1. Configure VM_SEL bits as “Feedback resistor is connected to OPAMPx_VINM input”, 10
  2. 2. Configure PGA_GAIN bits as “Inverting gain=-1,-3,-7,-15/ noninverting gain =2,4,8,16 with INM0, INM1 node for filtering”, 1100 to 1111
  3. 3. Configure VP_SEL bits as “GPIO connected to OPAMPx_VINP”.
    Any external connection on VM1 can be used in parallel with the internal PGA. For example, a capacitor can be connected between opamp_out and VM1 for filtering purposes. See the datasheet for the value of resistors used in the PGA resistor network.

Figure 332. PGA mode, noninverting gain setting (x2/x4/x8/x16) or inverting gain setting (x-1/x-3/x-7/x-15) with filtering

Schematic diagram of the PGA mode with filtering. The diagram shows an STM32 block containing an internal PGA and an external opamp. The opamp's non-inverting input (+) is connected to the dac_outx output. The inverting input (-) is connected to the opamp_out through a feedback network consisting of a resistor and a capacitor. The opamp_out is also connected to the VOUT pin. A dashed line indicates an optional low-pass filtering path between the opamp_out and VOUT. A note 'Equivalent to' points to the feedback network.

The diagram illustrates the internal and external components of the PGA mode. Inside the STM32 block, the dac_outx output is connected to the non-inverting input (+) of an internal operational amplifier. The inverting input (-) is connected to the opamp_out through a feedback network consisting of a resistor and a capacitor. The opamp_out is also connected to the VOUT pin. A dashed line indicates an optional low-pass filtering path between the opamp_out and VOUT. A note 'Equivalent to' points to the feedback network.

MSv68865V1

Schematic diagram of the PGA mode with filtering. The diagram shows an STM32 block containing an internal PGA and an external opamp. The opamp's non-inverting input (+) is connected to the dac_outx output. The inverting input (-) is connected to the opamp_out through a feedback network consisting of a resistor and a capacitor. The opamp_out is also connected to the VOUT pin. A dashed line indicates an optional low-pass filtering path between the opamp_out and VOUT. A note 'Equivalent to' points to the feedback network.

Figure 333. Example configuration

Figure 333 shows two example configurations for an operational amplifier. The left configuration shows VINP connected to the non-inverting input (+), INM0 and INM1 connected to the inverting input (-) through a resistor network, and VOUT as the output. The right configuration shows VINP connected to the non-inverting input (+), INM0 connected to the inverting input (-) through a resistor network, and VOUT as the output. Both configurations include a bias voltage input and a gain selection switch.

The diagram illustrates two circuit configurations for an operational amplifier (OPAMP). In the left configuration, the non-inverting input (+) is connected to VINP, and the inverting input (-) is connected to a network of resistors and switches labeled INM0 and INM1. The output is VOUT. The right configuration shows VINP connected to the non-inverting input (+), and the inverting input (-) connected to a network of resistors and switches labeled INM0 and INM1. Both configurations include a bias voltage input and a gain selection switch. The gain values for the left configuration are x2, x4, x8, x16, and for the right configuration are x-1, x-3, x-7, x-15. The diagram is labeled MSv68867V1.

Figure 333 shows two example configurations for an operational amplifier. The left configuration shows VINP connected to the non-inverting input (+), INM0 and INM1 connected to the inverting input (-) through a resistor network, and VOUT as the output. The right configuration shows VINP connected to the non-inverting input (+), INM0 connected to the inverting input (-) through a resistor network, and VOUT as the output. Both configurations include a bias voltage input and a gain selection switch.

34.3.5 Calibration

The OPAMP interface continuously sends trimmed offset values to the operational amplifiers. At startup, the trimming values are initialized with the preset 'factory' trimming value.

The user can trim each operational amplifier. Specific registers allow the user to have different trimming values for normal mode and for high-speed mode.

The aim of the calibration is to cancel as much as possible the OPAMP inputs offset voltage. The calibration circuitry allows the user to reduce the input-offset voltage to less than ±1.5 mV within stable voltage and temperature conditions.

For each operational amplifier and each mode two trimming values need to be trimmed, one for N differential pair and one for P differential pair.

There are two registers for trimming the offsets for each operational amplifier, one for normal mode (OPAMPx_OTR) and one high-speed mode (OPAMPx_HSOTR). Each register is composed of five bits for P differential pair trimming and five bits for N differential pair trimming. These are the 'user' values.

The user is able to switch from 'factory' values to 'user' trimmed values using the USERTRIM bit in the OPAMPx_CSR register. This bit is reset at startup and so the 'factory' value is applied by default to the OPAMP option registers.

The user is liable to change the trimming values in calibration or in functional mode.

The offset trimming registers are typically configured after the calibration operation. It is initialized by setting the CALON bit to 1. When CALON = 1 the inputs of the operational amplifier are disconnected from the functional environment.

When CALON = 1, the bit CALOUT reflects the influence of the trimming value selected by CALSEL and OPAHSM. The software should increment the TRIMOFFSETN bits in the OPAMP control register from 0x00 to the first value that causes the CALOUT bit to change from 1 to 0 in the OPAMP register. If the CALOUT bit is reset, the offset is calibrated correctly and the corresponding trimming value must be stored. The CALOUT flag needs up to 1 ms after the trimming value is changed to become steady (see \(t_{OFFTRIMmax}\) delay specification in the electrical characteristics section of the datasheet).

Note: The closer the trimming value is to the optimum trimming value, the longer it takes to stabilize. The maximum stabilization time remains below 1 ms in any case.

Table 326. Operating modes and calibration
ModeControl bitsOutput
OPAENOPAHSCALONCALSELVOUTCALOUT flag
Normal operating mode100Xanalog0
High-speed mode110Xanalog0
Power down0XXXZ0
Offset calibration N difference for normal mode10111analogX
Offset calibration P difference for normal mode10101analogX
Offset calibration N difference for high-speed mode11111analogX
Offset calibration P difference for high-speed mode11101analogX

Calibration procedure

Here are the steps to perform a full calibration of either one of the operational amplifiers:

  1. 1. Set the OPAEN bit in OPAMPx_CSR to 1 to enable the operational amplifier.
  2. 2. Set the USERTRIM bit in the OPAMPx_CSR register to 1.
  3. 3. Choose a calibration mode (refer to Table 326: Operating modes and calibration). The steps 3 to 4 must be repeated four times. For the first iteration, select the following:
    • – Normal mode and N differential pair

    The above calibration mode corresponds to OPAHS=0 and CALSEL=11 in the OPAMPx_CSR register.

  4. 4. Increment TRIMOFFSETN[4:0] in OPAMPx_OTR starting from 00000b until CALOUT changes to 0 in OPAMPx_CSR.

Note: Between the write to the OPAMPx_OTR register and the read of the CALOUT value, make sure to wait for the \(t_{OFFTRIMmax}\) delay specified in the electrical characteristics section of the datasheet, to get the correct CALOUT value.

Repeat steps 3 to 4 for:

If a mode is not used, it is not necessary to perform the corresponding calibration.

Note: During the whole calibration phase the external connection of the operational amplifier output must not pull up or down currents higher than 500 µA.

34.4 OPAMP low-power modes

Table 327. Effect of low-power modes on the OPAMP

ModeDescription
SleepNo effect.
StopNo effect, OPAMP registers content is kept.
StandbyThe OPAMP registers are powered down and must be reinitialized after exiting Standby.

34.5 OPAMP PGA gain

When OPAMP is configured as PGA mode, it can select the gain of x2, x4, x8, x16 for noninverting mode and x-1, x-3, x-7, x-15 for inverting mode.

When OPAMP is configured as noninverting mode, the gain error is specified in the product datasheet. When it is configured as inverting mode, the gain factor is defined not only on the on-chip feedback resistor but also on the signal source output impedance. If the signal source output impedance is not negligible compare to the input feedback resistance of PGA, it creates the gain error. Refer to the PGA resistance value in the product datasheet.

34.6 OPAMP registers

The registers of this peripheral can only be accessed by-word (32-bit).

34.6.1 OPAMP1 control/status register (OPAMP1_CSR)

Address offset: 0x00

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.CAL OUTTST REFRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.USER TRIMPGA_GAIN[3:2]
rrwrwrwrw
1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA HSMRes.VM_SEL[1:0]Res.VP_SEL[1:0]FORCE_VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 8 OPAHSM: Operational amplifier high-speed mode

The operational amplifier must be disabled to change this configuration.

0: operational amplifier in normal mode

1: operational amplifier in high-speed mode

Bit 7 Reserved, must be kept at reset value.

Bits 6:5 VM_SEL[1:0]: Inverting input selection

00: INM0 connected to OPAMP_VINM input

01: INM1 connected to OPAMP_VINM input

10: Feedback resistor is connected to the OPAMP_VINM input (PGA mode), Inverting input selection depends on the PGA_GAIN setting

11: opamp_out connected to OPAMP_VINM input (Follower mode)

Bit 4 Reserved, must be kept at reset value.

Bits 3:2 VP_SEL[1:0]: Non inverted input selection

00: GPIO INP0 connected to OPAMP_VINP

01: dac_out1 connected to OPAMP_VINP

10: GPIO INP2 is connected to OPAMP_VINP

11: Reserved

Bit 1 FORCE_VP: Force internal reference on VP (reserved for test)

0: Normal operating mode. Noninverting input connected to inputs.

1: Calibration verification mode: Noninverting input connected to calibration reference voltage.

Bit 0 OPAEN: Operational amplifier enable

0: operational amplifier disabled

1: operational amplifier enabled

Note: If OPAMP1 is disconnected in a specific package, it must remain disabled (keep OPAMP1_CSR register default value).

34.6.2 OPAMP1 trimming register in normal mode (OPAMP1_OTR)

Address offset: 0x04

Reset value: 0x0000 XXXX (factory trimmed values)

RM0517 34.6.2column_2Bit 8 Bits 6:5 Bits 3:2 Bit 1 Bit 0OPAHSM: FORCE_VP: voltage. OPAEN:VM_SEL[1:0]: VP_SEL[1:0]: 11: Reservedcolumn_6column_7column_8column_9column_10(reserved for test)column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.TRIMOFFSETP[4:0]Res.Res.Res.TRIMOFFSETN[4:0]
rwrwrwrwrwrwrwrwrwrw
Bits 12:8TRIMOFFSETP[4:0]:Trim for PMOS differential pairs
Bits 4:0TRIMOFFSETN[4:0]:Trim for NMOS differential pairs
RM0517 Rev 11455/3945

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:8 TRIMOFFSETP[4:0]: Trim for PMOS differential pairs

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 TRIMOFFSETN[4:0]: Trim for NMOS differential pairs

34.6.3 OPAMP1 trimming register in high-speed mode (OPAMP1_HSOTR)

Address offset: 0x08

Reset value: 0x0000 XXXX (factory trimmed values)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.TRIMHSOFFSETP[4:0]Res.Res.Res.TRIMHSOFFSETN[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:8 TRIMHSOFFSETP[4:0]: High-speed mode trim for PMOS differential pairs

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 TRIMHSOFFSETN[4:0]: High-speed mode trim for NMOS differential pairs

34.6.4 OPAMP register map

Table 328. OPAMP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00OPAMP1_CSRRes.Res.CALOUTTSTREFRes.Res.Res.Res.Res.Res.Res.Res.Res.USERTRIMPGA_GAINCALSELCALONRes.Res.OPAHSRes.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000
0x04OPAMP1_OTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIM OFFSETP[4:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value(1)(1)
0x08OPAMP1_HSOTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIMHS OFFSETP[4:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value(1)(1)

1. Factory trimmed values.

Refer to Section 2.3 for the register boundary addresses.