41.8.3 OPAMP Control x

Name: OPAMPCTRLx
Offset: 0x04+4*x, [x=0..2]
Reset: 0x00000080
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
  MUXNEG[2:0] MUXPOS[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 15141312111098 
 POTMUX[2:0]RES1MUX[1:0]RES1ENRES2VCCRES2OUT 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 ONDEMANDRUNSTDBY BIAS[1:0]ANAOUTENABLE  
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bits 22:20 – MUXNEG[2:0] Negative Input Mux Selection

Selection on negative input for operational amplifier x.

ValueOPAMPxNameDescription
0x0x=0,1,2OAxNEGNegative I/O pin
0x1x=0,1,2OAxTAPResistor ladder x taps
0x2x=0,1,2OAxOUTOPAMPx output
0x3x=0,1DACDAC output
x=2OA0NEGNegative I/O pin OPA0
0x4x=0,1Reserved
x=2OA1NEGNegative I/O pin OPA1
0x5x=0,1Reserved
x=2DACDAC output
0x6x=0,1,2Reserved
0x7x=0,1,2Reserved

Bits 18:16 – MUXPOS[2:0] Positive Input Mux Selection

Selection on positive input for operational amplifier x.

ValueOPAMPxNameDescription
0x0x=0,1,2OAxPOSPositive I/O pin
0x1x=0,1,2OAxTAPResistor ladder x taps
0x2x=0DACDAC output
x=1OA0OUTOPAMP0 output
x=2OA1OUTOPAMP1 output
0x3x=0,1,2GNDGround
0x4x=0,1Reserved
x=2OA0POSPositive I/O pin OPA0
0x5x=0,1Reserved
x=2OA1POSPositive I/O pin OPA1
0x6x=0,1Reserved
x=2OA0TAPResistor ladder 0 taps
0x7x=0,1,2Reserved

Bits 15:13 – POTMUX[2:0] Potentiometer selection

Resistor selection bits control a numeric potentiometer with eight fixed values.

ValueR1R2Gain = R2/R1
0x014R2R1/7
0x112R4R1/3
0x28R8R1
0x36R10R1 + 2/3
0x44R12R3
0x53R13R4 + 1/3
0x62R14R7
0x7R15R15

Bits 12:11 – RES1MUX[1:0] Resistor 1 Mux

These bits select the connection of R1 resistor of the potentiometer.

ValueOPAMPxNameDescription
0x0x=0,1,2OAxPOSPositive inout of OPAMPx
0x1x=0,1,2OAxNEGNegative input of OPAMPx
0x2x=0DACDAC output
x=1OA0OUTOPAMP0 output
x=2OA1OUTOPAMP1 output
0x3x=0,1,2GND

Bit 10 – RES1EN Resistor 1 Enable

ValueDescription
0R1 disconnected from RES1MUX.
1R1 connected to RES1MUX.

Bit 9 – RES2VCC Resistor ladder To VCC

ValueDescription
0Swith open.
1Switch closed.

Bit 8 – RES2OUT Resistor ladder To Output

ValueDescription
0Swith open.
1Switch closed.

Bit 7 – ONDEMAND On Demand Control

The On Demand operation mode allows the OPAMPx to be enabled or disabled, depending on other peripheral requests.

ValueDescription
0The OPAMPx is always on, if enabled.
1The OPAMPx is enabled when a peripheral is requesting the OPAMPx to be used as an input. The OPAMPx is disabled if no peripheral is requesting it as an input.

Bit 6 – RUNSTDBY Run in Standby

This bit controls how the OPAMPx behaves during standby sleep mode:

ValueDescription
0The OPAMPx is disabled in standby sleep mode.
1The OPAMPx is not stopped in standby sleep mode. If OPAMPCTRLx.ONDEMAND=1, the OPAMPx will be running when a peripheral is requesting it as an input. If OPAMPCTRLx.ONDEMAND=0, OPAMPx will always be running in standby sleep mode.

Bits 4:3 – BIAS[1:0] Bias Selection

These bits are used to select the bias mode.

ValueNameDescription
0x0Mode 0Minimum current consumption, but the slowest mode
0x1Mode 1Low current consumption, slow speed
0x2Mode 2High current consumption, fast speed
0x3Mode 3Maximum current consumption but the fastest mode

Bit 2 – ANAOUT Analog Output

This bit controls a switch connected to the OPAMP output.

ValueDescription
0Swith open. No ADC or AC connection.
1Switch closed. OPAMP output is connected to the ADC or AC input.

Bit 1 – ENABLE Operational Amplifier Enable

ValueDescription
0The OPAMPx is disabled
1The OPAMPx is enabled