3.2.14 Operational Amplifier (OPAMP)

An operational amplifier is a type of analog circuit that is designed to amplify the difference between the inputs non-inverting (positive) and inverting (negative) inputs. Op amps can be connected in Inverting and Non Inverting Applications and are commonly used to buffer or amplify signals, such as the signals from sensors, current shunts and resistive dividers.

Using The Library

The op amp modules implemented in particular family devices provide the following features:

• 100 MHz Gain Bandwidth

• High-Power and Low-Power Operating Modes

• Complementary P and N Channel Differential Pairs on the Input

• User Adjustable Offset

Library Interface

Operational Amplifier peripheral library provides the following interfaces:

Functions

NameDescription
OPAx_InitializeInitializes the OPAx module of the device
OPAx_Deinitialize

Deinitializes the OPAx module of the device

OPAx_Enable

Enables the OPAx module of the device

OPAx_DisableDisables the OPAx module of the device
OPAx_UnityGainEnable

Enables/disables unity gain of OPAx module of the device

OPAx_HighPowerModeEnableEnables/disables high power mode of OPAx module of the device
OPAx_OutputMonitorEnable

Enables/disables the output of OPAx module to ADC of the device.

OPAx_DifferentialInputModeSetSets the differential input mode for the OPAx module of the device.
OPAx_OffsetCorrectionEnables/disables Enables output of OPA module to ADC of the device

Data types and constants

NameDescription
OPA_DIFFERENTIAL_INPUT_MODESelecting the differential input mode of the OPAx module
OPA_OFFSET_INPUT_TYPE

Selecting the offset correction type for the OPAx module

OPA_OUTPUT_VOLTAGE_OFFSET_CORRECTION

Selecting the output voltage offset correction for the OPAx module.