The Analog Signal Conditioning (OPAMP) peripheral features up to three internal operational amplifiers (op amps). The op amps can be configured to a multitude of different operations using internal multiplexers and resistor ladders.
The main purpose of op amps is to condition the analog signals before acquisition in a microcontroller or to provide the necessary output drive in control applications.
These examples show the following configurations of the OPAMP peripheral on the AVR® DB family of microcontrollers:
- Voltage Follower: OP0 is configured as a voltage follower
- Non-Inverting PGA: OP0 is configured as a non-inverting PGA
- Differential Amplifier: OP0 and OP1 are combined to create a differential amplifier
- Instrumentation Amplifier: OP0, OP1 and OP2 are combined to create an instrumentation amplifier
- TB3286 - Getting Started With Analog Signal Conditioning (OPAMP)
- AVR128DB48 Device Page
- AVR128DB48 Curiosity Nano User Guide
- MPLAB® X IDE v6.20 or later
- MPLAB® Code Configurator (MCC) v5.5.1 or later
- MPLAB® XC8 v2.50 or later
- MPLAB® AVR-Dx_DFP v2.6.303 or later
- MPLAB® Data Visualizer Stand alone v1.3.1677 or later
- For the Atmel Start version of these projects, please refer to this repository
All examples can be completed using the AVR128DB48 Curiosity Nano without any extra components.
- Connect the AVR128DB48 Curiosity Nano to a computer using a USB cable
- Clone the repository or download the zip to get the source code
- Open the
.X
projects with MPLAB - Press Make and Program Device to run the example
- To reconfigure the example press MPLAB® Code Configurator, reconfigure the project and then press Generate
These examples facilitate a better understanding of how to configure the the OPAMP peripheral to achieve different modes of operation.