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. Operational amplifiers are commonly used to buffer or amplify signals, such as the signals from sensors, current shunts and resistive dividers. The Operational Amplifier (OPA) module on PIC® microcontrollers (MCUs) and the Analog Signal Conditioning (ASC) module on AVR® MCUs can feature internal resistor ladders that enable the peripheral to function as a Programmable Gain Amplifier (PGA), which increases the size of the signal to maximize the resolution in an Analog-to-Digital Converter (ADC).
Are you an embedded application engineer starting your next design, and do you want to take advantage of an on-chip op amp? Do you find yourself looking for hands-on experience to understand how these features work in real time? Now, you can interact with physical demos on your screen from anywhere. Microchip Try is a website for visual learners that provides real-time demos you can interact with by changing variables and watching how the demo responds.
Embedded operational amplifiers are designed to be used as general-purpose operational amplifiers. A few of the common use cases that benefit from the peripheral are listed below:
Some demanding analog applications require a discrete operational amplifier. Here are some of the benefits that our wide array of discrete operational amplifiers offer:
Features vary by device. Please consult the device data sheet for more information on the features and feature configurations available on each device.
The pins associated with the operational amplifier module are multiplexed. This feature can be used to select a different pin that is farther away from switching logic to reduce the amount of crosstalk or it can be used to simplify PCB layout.
The internal resistor ladder removes the need for external resistors for most configurations. The ladder can be used to select and switch between the desired gains. For applications requiring gains that are not available on the ladder—or those requiring a greater degree of accuracy—the ladder can be disabled, and external feedback resistors can be used instead.
The internal unity gain override forces the operational amplifier into unity gain by shorting the output and the inverting input*. Some devices may leave the negative input pin still connected, enabling this feature to be used as a discharge route for an integration capacitor.
The internal charge pump in the OPA module can be enabled for enhanced analog performance for demanding applications, however, this increases the OPA module’s current consumption.
The ADC on the device can directly sample the output of the operational amplifier without an external jumper to another pin. The module can also be used as a buffer for the ADC, which can improve signal acquisition time and resolution.
Each device is calibrated at the factory with a value that nulls the input offset voltage to within the specified data sheet tolerance. On some devices, this register can be overwritten at runtime for applications that contain a self-calibration routine. On a power-on reset, the factory value of the register is restored.
The software override feature can be used to force the operational amplifier to a specific output, such as VDD, VSS, or tri-state*, while ignoring the inputs to the operational amplifier.
The output of the operational amplifier can be tri-stated, which allows for the creation of sample-and-hold circuits using the output and an external capacitor.
The hardware override can be used to switch the output configuration of the operational amplifier using an internal hardware signal, removing the need for core intervention.
Other on-chip analog peripherals can be connected to the operational amplifier’s inputs*. This could be used to mirror (and/or track) the DAC, to output the Fixed Voltage Reference (FVR) for external devices, or to build a cascade of internal operational amplifiers for more signal bandwidth.
*Implementation varies by device. Consult the MCU family data sheet for more information.
MPLAB Mindi Analog Simulator uses a SIMetrix/SIMPLIS environment to model circuit behavior, reducing design time with software debugging for initial design verification.
Title
|
|
---|---|
Using the Operational Amplifier on PIC16 and PIC18 | Download |
Optimizing Internal Operational Amplifiers for Analog Signal Conditioning | Download |
Using the Internal OPAMP as Regulated Power Supply for MVIO | Download |
Constant-Current Driver Using the Analog Signal Conditioning (OPAMP) Peripheral | Download |
Gain and Offset Calibration of the Analog Signal Conditioning (OPAMP) Peripheral | Download |
Getting Started with Analog Signal Conditioning (OPAMP) | Download |
Low-BOM Microphone Interface Using the Analog Signal Conditioning (OPAMP) Peripheral | Download |
Analog Sensor Measurement and Acquisition | Download |
This video is an overview of the integrated OPAMP peripheral on PIC and AVR microcontrollers and some of the common use cases.