Operational amplifier (OPAMP)
16.3 OPAMP Firmware driver defines
16.3.1 OPAMP
OPAMP
OPAMP_Exported_Constants
ï‚· #define: OPAMP_Trimming_Factory ((uint32_t)0x00000000)
Factory trimming
ï‚· #define: OPAMP_Trimming_User OPAMP_CSR_USERTRIM
User trimming
OPAMP_Input
ï‚· #define: OPAMP_Input_Inverting ((uint32_t)0x00000018)
Inverting input
ï‚· #define: OPAMP_Input_NonInverting ((uint32_t)0x00000013)
Non inverting input
OPAMP_InvertingInput
ï‚· #define: OPAMP_InvertingInput_IO1 ((uint32_t)0x00000000)
IO1 (PC5 for OPAMP1 and OPAMP2, PB10 for OPAMP3 and OPAMP4) connected to
OPAMPx inverting input
ï‚· #define: OPAMP_InvertingInput_IO2 OPAMP_CSR_VMSEL_0
IO2 (PA3 for OPAMP1, PA5 for OPAMP2, PB2 for OPAMP3, PD8 for OPAMP4) connected
to OPAMPx inverting input
ï‚· #define: OPAMP_InvertingInput_PGA OPAMP_CSR_VMSEL_1
Resistor feedback output connected to OPAMPx inverting input (PGA mode)
ï‚· #define: OPAMP_InvertingInput_Vout OPAMP_CSR_VMSEL
Vout connected to OPAMPx inverting input (follower mode)
OPAMP_NonInvertingInput