25. Operational amplifiers (OPAMP)

25.1 Introduction

The devices embed six operational amplifiers, each with two inputs and one output. The three I/Os can be connected to the external pins, enabling any type of external interconnection. The operational amplifiers can be configured internally as a follower, as an amplifier with a non-inverting gain ranging from 2 to 64, or with inverting gain ranging from -1 to -63.

The positive input can be connected to the internal DAC.

The output can be connected to the internal ADC.

25.2 OPAMP main features

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

25.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.

In functional mode the inputs and output of the OPAMP are connected as described in Section 25.3.4 .

25.3.1 OPAMP output redirection to internal ADC channels

Operational amplifier output can be redirected internally to an ADC channel by setting OPAINTOEN bit in OPAMPx_CSR register. In this case, the GPIO on which is mapped given OPAMPx_VOUT output is free and can be used for another purpose. ADC can measure OPAMPx_VOUT voltage internally. See Figure 204 for assignment between OPAMPx internal outputs and ADC channels.

25.3.2 OPAMP reset and clocks

The OPAMP clock provided by the clock controller is synchronized with the PCLK2 (APB2 clock). There is no clock enable control bit provided in the RCC controller. To use a clock source for the OPAMP, the SYSCFG clock enable control bit must be set in the RCC controller.

The bit OPAEN enables and disables the OPAMP operation. The OPAMP registers configurations must be changed before enabling the OPAEN bit in order 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.

25.3.3 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. The trimming values can be adjusted, see Section 25.3.7: Calibration for changing the trimming values. The default configuration uses the normal mode, which provides the standard performance. The bit OPAHSM can be set in order 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 datasheet.

As soon as the OPAEN bit in OPAMPx_CSR register is set, the operational amplifier is functional. The two input pins and the output pin are connected as defined in Section 25.3.4: 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.

25.3.4 Signal routing

The routing for the operational amplifier pins is determined by OPAMPx_CSR and OPAMPx_TCMR registers.

The connections of the six operational amplifiers (OPAMPx, x = 1...6) are described in the table below.

Table 204. Operational amplifier possible connection

SignalPinInternalComment
OPAMP1_VINMPA3 (VINM0)
PC5 (VINM1)
OPAMP1_VOUT or PGAControlled by bits PGA_GAIN and VM_SEL
OPAMP1_VINPPA1 (VINP0)
PA3 (VINP1)
PA7 (VINP2)
DAC3_CH1controlled by bit VP_SEL.
OPAMP1_VOUTPA2ADC1_IN3
ADC1_IN13 (1)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC
OPAMP2_VINMPA5 (VINM0)
PC5 (VINM1)
OPAMP2_VOUT or PGAcontrolled by bits PGA_GAIN and VM_SEL
OPAMP2_VINPPA7 (VINP0)
PB14 (VINP1)
PB0 (VINP2)
PD14 (VINP3)
-controlled by bit VP_SEL

Table 204. Operational amplifier possible connection (continued)

SignalPinInternalComment
OPAMP2_VOUTPA6ADC2_IN3
ADC2_IN16 (1)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC
OPAMP3_VINMPB2 (VINM0)
PB10 (VINM1)
OPAMP3_VOUT or PGAControlled by bits PGA_GAIN and VM_SEL
OPAMP3_VINPPB0 (VINP0)
PB13 (VINP1)
PA1 (VINP2)
DAC3_CH2 (2)(3)Controlled by bit VP_SEL
OPAMP3_VOUTPB1ADC3_IN1 (2)(3) /ADC1_IN12
ADC2_IN18 (1) /
ADC3_IN13 (1)(2)(3)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC
OPAMP4_VINMPB10 (VINM0)OPAMP4_VOUT or PGAControlled by bits PGA_GAIN and VM_SEL
PD8 (VINM1)
OPAMP4_VINPPB13 (VINP0)
PD11 (VINP1)
PB11 (VINP2)
DAC4_CH1Controlled by bit VP_SEL
OPAMP4_VOUTPB12ADC4_IN3/ADC1_IN11
ADC5_IN5 (1)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC.
OPAMP5_VINMPB15 (VINM0)
PA3 (VINM1)
OPAMP5_VOUT or PGAControlled by bits PGA_GAIN and VM_SEL.
OPAMP5_VINPPB14 (VINP0)
PD12 (VINP1)
PC3 (VINP2)
DAC4_CH2Controlled by bit VP_SEL.
OPAMP5_VOUT (4)PA8ADC5_IN1
ADC5_IN3 (1)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC.
OPAMP6_VINMPA1 (VINM0)
PB1 (VINM1)
OPAMP6_VOUT or PGAControlled by bits PGA_GAIN and VM_SEL.
OPAMP6_VINP (5)PB12 (VINP0)
PD9 (VINP1)
PB13 (VINP2)
DAC3_CH1Controlled by bit VP_SEL.
OPAMP6_VOUTPB11ADC12_IN14
ADC4_IN17 (1)(2)
ADC3_IN17 (1)(3)
The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC.

1. This ADC channel is connected internally to the OPAMPx_VOUT when OPAINTOEN bit is set. In this case, the I/O on which the OPAMPx_VOUT is available, can be used for another purpose.

2. For category 3 devices only.

3. For category 4 devices only.

4. OPAMP4/5 are supported in category 3 devices only.

5. OPAMP6 is supported only in category 3 and category 4 devices.

25.3.5 OPAMP modes

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

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:

Figure 171. Standalone mode: external gain setting mode

Circuit diagram of an operational amplifier (OPAMP) in standalone mode with external gain setting. The diagram shows an STM32 microcontroller connected to an OPAMP. The non-inverting input (+) is connected to VINP0, VINP1, VINP2, or VINP3 or DACx_CHy. The inverting input (-) is connected to INM0 or INM1. The output is connected to opamp_out(1). The output is also connected to a feedback loop consisting of a variable resistor and a capacitor, which is then connected to the inverting input. The VOUT pin is shown as disconnected from the OPAMP output.

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. In standalone mode, VOUT pin is disconnected from the OPAMP output and the gain cannot be set by an external resistors (in this case OPAMP can be used only as comparator).

MSv48039V2

Circuit diagram of an operational amplifier (OPAMP) in standalone mode with external gain setting. The diagram shows an STM32 microcontroller connected to an OPAMP. The non-inverting input (+) is connected to VINP0, VINP1, VINP2, or VINP3 or DACx_CHy. The inverting input (-) is connected to INM0 or INM1. The output is connected to opamp_out(1). The output is also connected to a feedback loop consisting of a variable resistor and a capacitor, which is then connected to the inverting input. The VOUT pin is shown as disconnected from the OPAMP output.

Follower configuration mode

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

Note: The pin corresponding to OPAMPx_VINM is free for another usage.

The signal on the OPAMP 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 172. Follower configuration

Schematic diagram of an operational amplifier (OPAMP) in follower configuration within an STM32 microcontroller. The diagram shows the internal structure of the OPAMP, including input multiplexers, the op-amp core, and output multiplexers. The non-inverting input (+) is connected to VINP0, VINP1, VINP2, or VINP3/DACx_CHy. The inverting input (-) is connected to VINM0 or VINM1. The output is connected to opamp_out(1) and VOUT. A feedback loop is shown where the output is connected back to the inverting input. A variable resistor and a capacitor are shown in the feedback path. The opamp_out(1) output is also connected to an ADC channel.

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.

MSv48040V1

Schematic diagram of an operational amplifier (OPAMP) in follower configuration within an STM32 microcontroller. The diagram shows the internal structure of the OPAMP, including input multiplexers, the op-amp core, and output multiplexers. The non-inverting input (+) is connected to VINP0, VINP1, VINP2, or VINP3/DACx_CHy. The inverting input (-) is connected to VINM0 or VINM1. The output is connected to opamp_out(1) and VOUT. A feedback loop is shown where the output is connected back to the inverting input. A variable resistor and a capacitor are shown in the feedback path. The opamp_out(1) output is also connected to an ADC channel.

Programmable gain amplifier mode

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

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

Schematic diagram of an operational amplifier (OPAMP) in Programmable Gain Amplifier (PGA) mode within an STM32. The non-inverting input (+) of the OPAMP is connected to a 4-to-1 multiplexer selecting from VINP0, VINP1, VINP2, or VINP3/DACx_CHy. The inverting input (-) is connected to a 2-to-1 multiplexer selecting from VINM0 or VINM1. A feedback network consisting of a variable resistor (potentiometer) and a fixed resistor to ground is connected between the OPAMP output and the inverting input multiplexer. The OPAMP output is also routed to a multiplexer that can drive either the external VOUT pin or an internal opamp_out signal. The entire circuit is enclosed in a dashed box labeled STM32.

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.

MSv48041V1

Schematic diagram of an operational amplifier (OPAMP) in Programmable Gain Amplifier (PGA) mode within an STM32. The non-inverting input (+) of the OPAMP is connected to a 4-to-1 multiplexer selecting from VINP0, VINP1, VINP2, or VINP3/DACx_CHy. The inverting input (-) is connected to a 2-to-1 multiplexer selecting from VINM0 or VINM1. A feedback network consisting of a variable resistor (potentiometer) and a fixed resistor to ground is connected between the OPAMP output and the inverting input multiplexer. The OPAMP output is also routed to a multiplexer that can drive either the external VOUT pin or an internal opamp_out signal. The entire circuit is enclosed in a dashed box labeled STM32.

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 hereafter.

Any external connection on VINM can be used in parallel with the internal PGA, for example a capacitor can be connected between opamp_out and VINM for filtering purpose (see datasheet for the value of resistors used in the PGA resistor network).

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

Circuit diagram of an operational amplifier (OPAMP) in PGA mode with external filtering. The diagram shows an STM32 microcontroller connected to an OPAMP. The non-inverting input (VINP) is connected to a multiplexer that selects between VINP0, VINP1, VINP2, and VINP3 or DACx_CHy. The inverting input (VINM) is connected to a feedback network consisting of a resistor and a capacitor. The output (opamp_out) is connected to a multiplexer that selects between the OPAMP output and a VOUT pin. The diagram includes a dashed line indicating the feedback path and a note about optional low-pass filtering.

STM32

VINP0
VINP1
VINP2
VINP3 or DACx_CHy

INM0

Allows optional low-pass filtering (1)

Equivalent to

opamp_out (1)

VOUT

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.

MSv48042V1

Circuit diagram of an operational amplifier (OPAMP) in PGA mode with external filtering. The diagram shows an STM32 microcontroller connected to an OPAMP. The non-inverting input (VINP) is connected to a multiplexer that selects between VINP0, VINP1, VINP2, and VINP3 or DACx_CHy. The inverting input (VINM) is connected to a feedback network consisting of a resistor and a capacitor. The output (opamp_out) is connected to a multiplexer that selects between the OPAMP output and a VOUT pin. The diagram includes a dashed line indicating the feedback path and a note about optional low-pass filtering.
  1. 1. The gain depends on the cut-off frequency.

Programmable gain amplifier, non-inverting with external bias or inverting mode

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

Figure 175. PGA mode, non-inverting gain setting (x2/x4/x8/x16/x32/x64) or inverting gain setting (x-1/x-3/x-7/x-15/x-31/x-63)

Schematic diagram of the OPAMP in PGA mode. The diagram shows an STM32 microcontroller connected to an operational amplifier. The non-inverting input (+) is connected to a multiplexer that selects between VINP0, VINP1, VINP2, and VINP3 or DACx_CHy. The inverting input (-) is connected to a feedback network consisting of a resistor and a switchable gain network. The output is labeled opamp_out(1). The diagram is enclosed in a dashed box labeled 'STM32'.

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.

MSv48043V1

Schematic diagram of the OPAMP in PGA mode. The diagram shows an STM32 microcontroller connected to an operational amplifier. The non-inverting input (+) is connected to a multiplexer that selects between VINP0, VINP1, VINP2, and VINP3 or DACx_CHy. The inverting input (-) is connected to a feedback network consisting of a resistor and a switchable gain network. The output is labeled opamp_out(1). The diagram is enclosed in a dashed box labeled 'STM32'.

Programmable gain amplifier, non-inverting 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 non-inverting mode or inverting mode with filtering

Any external connection on VINM1 can be used in parallel with the internal PGA, for example a capacitor can be connected between opamp_out and VINM1 for filtering purpose (see datasheet for the value of resistors used in the PGA resistor network).

Figure 176. PGA mode, non-inverting gain setting (x2/x4/x8/x16/x32/x64) or inverting gain setting (x-1/x-3/x-7/x-15/x-31/x-63) with filtering

Figure 176: PGA mode, non-inverting gain setting (x2/x4/x8/x16/x32/x64) or inverting gain setting (x-1/x-3/x-7/x-15/x-31/x-63) with filtering. The diagram shows an STM32 microcontroller connected to an operational amplifier (OPAMP) in a PGA mode. The non-inverting input (VINP) is connected to multiple sources: VINP0, VINP1, VINP2, VINP4 or DACx_CHy, and VINM1. The inverting input (VINM) is connected to VINM0 and VINM1. The output (VOUT) is connected to opamp_out(1). A feedback loop is shown with a variable resistor and a capacitor, labeled 'Allows optional low-pass filtering(1)'. A dashed line indicates the equivalent circuit for the inverting gain setting. The text 'Equivalent to' is present.

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.

MSV48045V1

Figure 176: PGA mode, non-inverting gain setting (x2/x4/x8/x16/x32/x64) or inverting gain setting (x-1/x-3/x-7/x-15/x-31/x-63) with filtering. The diagram shows an STM32 microcontroller connected to an operational amplifier (OPAMP) in a PGA mode. The non-inverting input (VINP) is connected to multiple sources: VINP0, VINP1, VINP2, VINP4 or DACx_CHy, and VINM1. The inverting input (VINM) is connected to VINM0 and VINM1. The output (VOUT) is connected to opamp_out(1). A feedback loop is shown with a variable resistor and a capacitor, labeled 'Allows optional low-pass filtering(1)'. A dashed line indicates the equivalent circuit for the inverting gain setting. The text 'Equivalent to' is present.

Figure 177. Example configuration

Figure 177: Example configuration. The diagram shows two example configurations for the OPAMP in PGA mode. The left configuration is a non-inverting gain setting with VINP connected to the non-inverting input, VINM0 connected to a bias voltage, and VINM1 connected to the inverting input. The gain is programmable to x2, x4, x8, x16, x32, or x64. The right configuration is an inverting gain setting with VINP connected to a bias voltage, VINM0 connected to an input signal through a resistor, and VINM1 connected to the inverting input. The gain is programmable to x-1, x-3, x-7, or x-15. Both configurations show the output VOUT and a variable resistor in the feedback loop.

MSV48044V1

Figure 177: Example configuration. The diagram shows two example configurations for the OPAMP in PGA mode. The left configuration is a non-inverting gain setting with VINP connected to the non-inverting input, VINM0 connected to a bias voltage, and VINM1 connected to the inverting input. The gain is programmable to x2, x4, x8, x16, x32, or x64. The right configuration is an inverting gain setting with VINP connected to a bias voltage, VINM0 connected to an input signal through a resistor, and VINM1 connected to the inverting input. The gain is programmable to x-1, x-3, x-7, or x-15. Both configurations show the output VOUT and a variable resistor in the feedback loop.

25.3.6 OPAMP PGA gain

When the OPAMP is configured in PGA mode, the gain can be programmed to x2, x4, x8, x16, x32, x64 in non-inverting configuration and x-1, x-3, x-7, x-15, x-31, x-63 for inverting configuration.

When the OPAMP is configured in non-inverting mode, the gain solely depends on internal resistive divider. When it is configured as inverting mode, Gain factor is defined not only on the on chip feedback resistor but also the signal source output impedance. If signal source output impedance is not negligible compared to the input feedback resistance of PGA, it creates the gain error.

25.3.7 Calibration

The OPAMP offset value is minimized using a trimming circuitry. At startup, the trimming values are initialized with the preset 'factory' trimming value. Each operational amplifier can also be trimmed by the user if the OPAMP is used in conditions different from the factory trimming conditions.

Each operational amplifier can be trimmed by the user. Specific registers allow 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 to reduce the input offset voltage to less than \( \pm 3 \) mV within stable voltage and temperature conditions.

For each operational amplifier and two trimming values (TRIMOFFSETN and TRIMOFFSETP in OPAMPx_CSR register) need to be trimmed, one for N differential pair and one for P differential pair.

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 are applied by default to the OPAMP option registers.

The offset trimming TRIMOFFSETN and TRIMOFFSETP bits are typically configured after the calibration operation is initialized by setting bit CALON to 1. When CALON = 1 the inputs of the operational amplifier are disconnected from the I/Os.

When CALON = 1, the bit CALOUT reflects the influence of the trimming value selected by CALSEL and OPAHSM. The software must 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 2 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 (with a maximum stabilization time remaining below 2 ms in any case).

Table 205. Operating modes and calibration

ModeControl bitsOutput
OPAENOPAHSMCALONCALSELV OUTCALOUT flag
Normal operating mode100Xanalog0
High-speed mode110Xanalog0
Power down0XXXZ0
Offset cal N1X111analogX
Offset cal P diff1X101analogX

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 205: Operating modes and calibration ). The steps 3 to 4 have to be repeated four times. For the first iteration select Normal mode and N differential pair. This calibration mode correspond to OPAHSM = 0 and CALSEL = 11 in the OPAMPx_CSR register.
  4. 4. Increment TRIMOFFSETN[4:0] in OPAMPx_OTR starting from 0b00000 until CALOUT changes to 0 in OPAMPx_CSR.

Note: Between the write to the TRIMOFFSETN bits 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.

The commutation means that the is correctly compensated and that the corresponding trim code must be saved in the TRIMOFFSETN bits.

Repeat steps 3 to 4 for:

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

All operational amplifier can be calibrated at the same time.

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

If the OPAMP output is internally connected to an ADC channel and disconnected from the output pin (OPAINTOEN = 1 in the OPAMPx_CSR register), the offset trimming procedure differs from the case where the OPAMP output is connected to the output pin (OPAINTOEN = 0). The calibration procedure is the similar as above but the CALOUT bit change detection cannot be used as indicated in step 4. Instead, the ADC output data must be used as indicator to detect the OPAMP output change: a change of CALOUT from 1 to 0 corresponds to the change of ADC output data from values close to the maximum ADC output to values close to the minimum ADC output (the ADC works as a comparator connected to the OPAMP output). Another solution is to perform the calibration with OPAINTOEN = 0, and then change OPAINTOEN to 1. In this case, the OPAMP output GPIO toggles during the calibration and care must be taken that there is no conflict on this GPIO.

25.3.8 Timer controlled Multiplexer mode

The selection of the OPAMP inverting and non inverting inputs can be done automatically. In this case, the switch from one input to another is done automatically. This automatic switch is triggered by the TIM1 CC6 or TIM8 CC6 or TIM20 CC6 output arriving on the OPAMP input multiplexers.

This is useful for dual motor control with a need to measure the currents on the 3 phases simultaneously on a first motor and then on the second motor.

The automatic switch is enabled by setting the TxCMEN bit, x = 1,8,20, in the OPAMP switch control register. The inverting and non inverting inputs selection is performed using

the VPS_SEL and VMS_SEL bit fields in the OPAMP timer controlled mode register. If the TxCMEN bit is cleared, the selection is done using the VP_SEL and VM_SEL bit fields in the OPAMP control/status register.

Figure 178. Timer controlled Multiplexer mode

Timing diagram for Timer controlled Multiplexer mode showing CCR6, T1 counter, T8 counter, ADC sampling points, T1 output (1 out of 3), T8 output (1 out of 3), and T1 CC6 output arriving on OPAMP input mux. The diagram shows the relationship between timer signals and OPAMP input selection (Sec, Def).

The diagram illustrates the timing for the timer-controlled multiplexer mode. It shows the following signals and their relationship to the OPAMP input selection:

Legend for OPAMP input selection:
Def = default OPAMP input selection
Sec = secondary OPAMP input selection

MS192230V3

Timing diagram for Timer controlled Multiplexer mode showing CCR6, T1 counter, T8 counter, ADC sampling points, T1 output (1 out of 3), T8 output (1 out of 3), and T1 CC6 output arriving on OPAMP input mux. The diagram shows the relationship between timer signals and OPAMP input selection (Sec, Def).

25.4 OPAMP low-power modes

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

ModeDescription
SleepNo effect.
Low-power runNo effect.
Low-power sleepNo effect.
Stop 0 / Stop 1No effect, OPAMP registers content is kept.
StandbyThe OPAMP registers are powered down and must be re-initialized after exiting Standby or Shutdown mode.
Shutdown

25.5 OPAMP registers

25.5.1 OPAMP1 control/status register (OPAMP1_CSR)

Address offset: 0x00

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCAL OUTRes.TRIMOFFSETN[4:0]TRIMOFFSETP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP1_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP1_CSR register as read-only.

0: OPAMP1_CSR is read-write

1: OPAMP1_CSR is read-only

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 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

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

10: Feedback resistor is connected to 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 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP1 VINP input

01: VINP1 pin connected to OPAMP1 VINP input

10: VINP2 pin connected to OPAMP1 VINP input

11: DAC3_CH1 connected to OPAMP1 VINP input

Bit 1 FORCE_VP : Force internal reference on OPAMP VINP input (reserved for test)

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.2 OPAMP2 control/status register (OPAMP2_CSR)

Address offset: 0x04

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCAL OUTRes.TRIMOFFSETN[4:0]TRIMOFFSETP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP2_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP2_CSR register as read-only.

0: OPAMP2_CSR is read-write

1: OPAMP2_CSR is read-only

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 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

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

10: Feedback resistor is connected to 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 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP2 VINP input

01: VINP1 pin connected to OPAMP2 VINP input

10: VINP2 pin connected to OPAMP2 VINP input

11: VINP3 pin connected to OPAMP2 VINP input

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

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.3 OPAMP3 control/status register (OPAMP3_CSR)

Address offset: 0x08

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCALOUTRes.TRIMOFFSETN[4:0]TRIMOFFSETP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE _VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP3_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP3_CSR register as read-only.

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 OPAHSM : Operational amplifier high-speed mode

The operational amplifier must be disable to change this configuration.

0: Operational amplifier in normal mode

1: Operational amplifier in high-speed mode

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

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

11: opamp_out connected to OPAMP VINM input (Follower mode)

Bit 4 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP3 VINP input

01: VINP1 pin connected to OPAMP3 VINP input

10: VINP2 pin connected to OPAMP3 VINP input

11: DAC3_CH2 connected to OPAMP3 VINP input

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

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.4 OPAMP4 control/status register (OPAMP4_CSR)

Address offset: 0x0C

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCAL OUTRes.TRIMOFFSETN[4:0]TRIMOFFSETP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP4_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP4_CSR register as read-only.

0: OPAMP4_CSR is read-write

1: OPAMP4_CSR is read-only

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 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

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

10: Feedback resistor is connected to 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 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP4 VINP input

01: VINP1 pin connected to OPAMP4 VINP input

10: VINP2 pin connected to OPAMP4 VINP input

11: DAC4_CH1 connected to OPAMP4 VINP input

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

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.5 OPAMP5 control/status register (OPAMP5_CSR)

Address offset: 0x10

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCALOUTRes.TRIMOFFSETN[4:0]TRIMOFFSETP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP5_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP5_CSR register as read-only.

0: OPAMP5_CSR is read-write

1: OPAMP5_CSR is read-only

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 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

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

10: Feedback resistor is connected to 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 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP5 VINP input

01: VINP1 pin connected to OPAMP5 VINP input

10: VINP2 pin connected to OPAMP5 VINP input

11: DAC4_CH2 connected to OPAMP5 VINP input

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

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.6 OPAMP6 control/status register (OPAMP6_CSR)

Address offset: 0x14

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKCAL OUTRes.TRIMOFFSETN[4:0]TRIMOFFSETTP[4:0]PGA_GAIN[4:2]
rwrrwrwrwrwrwrwrwrwrwrwrwrwrw

1514131211109876543210
PGA_GAIN[1:0]CALSEL[1:0]CALONRes.Res.OPA INTOENOPA HSMVM_SEL[1:0]USER TRIMVP_SEL[1:0]FORCE VPOPAEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK : OPAMP6_CSR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP6_CSR register as read-only.

0: OPAMP6_CSR is read-write

1: OPAMP6_CSR is read-only

Bit 30 CALOUT : Operational amplifier calibration output

This bit shows the digital value of OPAMP output and is the calibration output status during calibration offset mode (Calibration is successful when CALOUT switches from 1 to 0.)

Bit 29 Reserved, must be kept at reset value.

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

Bits 23:19 TRIMOFFSETTP[4:0] : Trim for PMOS differential pairs

At reset these bits are loaded by the factory trimming value. They can be modified only when USER_TRIM = 1

Bits 18:14 PGA_GAIN[4:0] : Operational amplifier Programmable amplifier gain value

00000: Non inverting internal gain =2
00001: Non inverting internal gain =4
00010: Non inverting internal gain =8
00011: Non inverting internal gain =16
00100: Non inverting internal gain =32
00101: Non inverting internal gain =64
00110: Not used
00111: Not used
01000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias
01001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias
01010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias
01011: Inverting gain = -15/ non inverting gain =16 VINM0 pin for input or bias
01100: Inverting gain = -31/ non inverting gain =32 VINM0 pin for input or bias
01101: Inverting gain = -63/ non inverting gain =64 VINM0 pin for input or bias
01110: Not used
01111: Not used
10000: Non inverting gain =2 with filtering on VINM0 pin
10001: Non inverting gain =4 with filtering on VINM0 pin
10010: Non inverting gain =8 with filtering on VINM0 pin
10011: Non inverting gain =16 with filtering on VINM0 pin
10100: Non inverting gain =32 with filtering on VINM0 pin
10101: Non inverting gain =64 with filtering on VINM0 pin
10110: Not used
10111: Not used
11000: Inverting gain = -1 / non inverting gain =2 with VINM0 pin for input or bias, VINM1 pin for filtering
11001: Inverting gain = -3 / non inverting gain =4 with VINM0 pin for input or bias, VINM1 pin for filtering
11010: Inverting gain = -7 / non inverting gain =8 with VINM0 pin for input or bias, VINM1 pin for filtering
11011: Inverting gain = -15/ non inverting gain =16 with VINM0 pin for input or bias, VINM1 pin for filtering
11100: Inverting gain = -31/ non inverting gain =32 with VINM0 pin for input or bias, VINM1 pin for filtering
11101: Inverting gain = -63/ non inverting gain =64 with VINM0 pin for input or bias, VINM1 pin for filtering
11110: Not used
11111: Not used

Bits 13:12 CALSEL[1:0] : Calibration selection

It is used to select the offset calibration bus used to generate the internal reference voltage when CALON = 1 or FORCE_VP= 1.

00: 0.033*VDDA applied on OPAMP inputs
01: 0.1*VDDA applied on OPAMP inputs (for PMOS calibration)
10: 0.5*VDDA applied on OPAMP inputs
11: 0.9*VDDA applied on OPAMP inputs (for NMOS calibration)

Bit 11 CALON : Calibration mode enabled

0: Normal mode
1: Calibration mode (all switches opened by HW)

Bits 10:9 Reserved, must be kept at reset value.

Bit 8 OPAINTOEN : Operational amplifier internal output enable.

0: The OPAMP output is connected to the output pin

1: The OPAMP output is connected internally to an ADC channel and disconnected from the output pin

Bit 7 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

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

00: VINM0 pin connected to OPAMP VINM input

01: VINM1 pin connected to OPAMP VINM input

10: Feedback resistor is connected to 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 USERTRIM : User trimming enable

This bit allows to switch from 'factory' AOP offset trimmed values to 'user' AOP offset trimmed values

This bit is active for both mode normal and high-power.

0: 'factory' trim code used

1: 'user' trim code used

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

00: VINP0 pin connected to OPAMP6 VINP input

01: VINP1 pin connected to OPAMP6 VINP input

10: VINP2 pin connected to OPAMP6 VINP input

11: DAC3_CH1 connected to OPAMP6 VINP input

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

0: Normal operating mode. Non-inverting input connected to inputs.

1: Calibration verification mode: Non-inverting input connected to calibration reference voltage.

Bit 0 OPAEN : Operational amplifier Enable

0: Operational amplifier disabled

1: Operational amplifier enabled

25.5.7 OPAMP1 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x18

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM
_EN
T8CM
_EN
T1CM
_EN
VPS_SEL[1:0]VMS
_SEL
rwrwrwrwrwrw

Bit 31 LOCK: OPAMP1_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP1_TCMR register as read-only.

0: OPAMP1_TCMR is read-write

1: OPAMP1_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMPx input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMPx input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMPx input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP1 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMPx non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP1 VINP input

01: VINP1 pin connected to OPAMP1 VINP input

10: VINP2 pin connected to OPAMP1 VINP input

11: DAC3_CH1 connected to OPAMP1 VINP input

Bit 0 VMS_SEL: OPAMP1 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMPx inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

When standalone mode is used (i.e. VM_SEL = "00" or "01"):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = "10") or Follower mode (VM_SEL = "11") is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.8 OPAMP2 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x1C

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM
_EN
T8CM_
EN
T1CM_
EN
VPS_SEL[1:0]VMS_
SEL
rwrwrwrwrwrw

Bit 31 LOCK: OPAMP2_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP2_TCMR register as read-only.

0: OPAMP2_TCMR is read-write

1: OPAMP2_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMP2 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMP2 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMP2 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP2 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMP2 non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP2 VINP input

01: VINP1 pin connected to OPAMP2 VINP input

10: VINP2 pin connected to OPAMP2 VINP input

11: VINP3 pin connected to OPAMP2 VINP input

Bit 0 VMS_SEL: OPAMP2 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMPx inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

When standalone mode is used (i.e. VM_SEL = "00" or "01"):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = "10") or Follower mode (VM_SEL = "11") is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.9 OPAMP3 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x20

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM
_EN
T8CM
_EN
T1CM
_EN
VPS_SEL[1:0]VMS
_SEL
rwrwrwrwrwrw

Bit 31 LOCK: OPAMP3_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP3_TCMR register as read-only.

0: OPAMP3_TCMR is read-write

1: OPAMP3_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMP3 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMP3 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMP3 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP3 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMP3 non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP3 VINP input

01: VINP1 pin connected to OPAMP3 VINP input

10: VINP2 pin connected to OPAMP3 VINP input

11: DAC3_CH2 connected to OPAMP3 VINP input

Bit 0 VMS_SEL: OPAMP3 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMPx inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

When standalone mode is used (i.e. VM_SEL = "00" or "01"):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = "10") or Follower mode (VM_SEL = "11") is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.10 OPAMP4 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x24

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM
_EN
T8CM
_EN
T1CM
_EN
VPS_SEL[1:0]VMS
_SEL
rwrwrwrwrw

Bit 31 LOCK: OPAMP4_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP4_TCMR register as read-only.

0: OPAMP4_TCMR is read-write

1: OPAMP4_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMP4 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMP4 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMP4 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP4 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMP4 non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP4 VINP input

01: VINP1 pin connected to OPAMP4 VINP input

10: VINP2 pin connected to OPAMP4 VINP input

11: DAC4_CH1 connected to OPAMP4 VINP input

Bit 0 VMS_SEL: OPAMP4 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMP4 inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1).

When standalone mode is used (i.e. VM_SEL = "00" or "01"):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = "10") or Follower mode (VM_SEL = "11") is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.11 OPAMP5 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x28

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SEL[1:0]VMS_SEL
rwrwrwrwrwrw

Bit 31 LOCK: OPAMP5_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP5_TCMR register as read-only.

0: OPAMP5_TCMR is read-write

1: OPAMP5_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMP5 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMP5 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMP5 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP5 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMP5 non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP5 VINP input

01: VINP1 pin connected to OPAMP5 VINP input

10: VINP2 pin connected to OPAMP5 VINP input

11: DAC4_CH2 connected to OPAMP5 VINP input

Bit 0 VMS_SEL: OPAMP5 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMP5 inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

When standalone mode is used (i.e. VM_SEL = “00” or “01”):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = “10”) or Follower mode (VM_SEL = “11”) is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.12 OPAMP6 timer controlled mode register (OPAMPx_TCMR) (x = 1...6)

Address offset: 0x2C

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM
_EN
T8CM
_EN
T1CM
_EN
VPS_SEL[1:0]VMS
_SEL
rwrwrwrwrw

Bit 31 LOCK: OPAMP6_TCMR lock

This bit is write-once. It is set by software. It can only be cleared by a system reset.

This bit is used to configure the OPAMP6_TCMR register as read-only.

0: OPAMP6_TCMR is read-write

1: OPAMP6_TCMR is read-only

Bits 30:6 Reserved, must be kept at reset value.

Bit 5 T20CM_EN: TIM20 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM20 CC6 output arriving on the OPAMP6 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 4 T8CM_EN: TIM8 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM8 CC6 output arriving on the OPAMP6 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bit 3 T1CM_EN: TIM1 controlled mux mode enable

This bit is set and cleared by software. It is used to control automatically the switch between the default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of the inverting and non inverting inputs. This automatic switch is triggered by the TIM1 CC6 output arriving on the OPAMP6 input multiplexers.

0: Automatic switch is disabled.

1: Automatic switch is enabled.

Bits 2:1 VPS_SEL[1:0]: OPAMP6 Non inverting input secondary selection.

These bits are set and cleared by software. They are used to select the OPAMP6 non inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

00: VINP0 pin connected to OPAMP6 VINP input

01: VINP1 pin connected to OPAMP6 VINP input

10: VINP2 pin connected to OPAMP6 VINP input

11: DAC3_CH1 connected to OPAMP6 VINP input

Bit 0 VMS_SEL: OPAMP6 inverting input secondary selection

This bit is set and cleared by software. It is used to select the OPAMP6 inverting input when the controlled mux mode is enabled (T1CM_EN = 1 or T8CM_EN = 1 or T20CM_EN = 1)

When standalone mode is used (i.e. VM_SEL = "00" or "01"):

0: Input from VINM0

1: Input from VINM1

When PGA (VM_SEL = "10") or Follower mode (VM_SEL = "11") is used:

0: Resistor feedback output selected (PGA mode)

1: V OUT selected as input minus (follower mode)

25.5.13 OPAMP register map

Table 207. OPAMP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00OPAMP1_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x04OPAMP2_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x08OPAMP3_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x0COPAMP4_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x10OPAMP5_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x14OPAMP6_CSRLOCKCALOUTRes.TRIMOFFSETNTRIMOFFSETPPGA_GAINCALSELCALONRes.Res.OPAINTOENOPAHSIMVM_SELUSERTRIMVP_SELFORCE_VPOPAEN
Reset value00000000000000000000000000000
0x18OPAMP1_TCMRLOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value0000000
0x1COPAMP2_TCMRLOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value0000000
0x20OPAMP3_TCMRLOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value0000000
0x24OPAMP4_TCMRLOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value0000000

Table 207. OPAMP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x28OPAMP5_
TCMR
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value000000
0x2COPAMP6_
TCMR
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T20CM_ENT8CM_ENT1CM_ENVPS_SELVMS_SEL
Reset value000000

Refer to Section 2.2 on page 82 for the register boundary addresses.