6 Assignment 4: OPAMP - Non-Inverting PGA

In this assignment, the AVR128DB48 Curiosity Nano will be configured to use the op amp OP0 in the Analog Signal Conditioning (OPAMP) peripheral as a non-inverting programmable gain amplifier, shown in the block diagram below.

The configuration is done through Atmel START.

The Digital-to-Analog Converter (DAC) is configured to create a sinusoidal signal, which will be used as an input to the op amp.

The Analog-to-Digital Converter (ADC) is configured to sample the output of the op amp. Both the input and output of the op amp is streamed over to the MPLAB® Data Visualizer using the data streamer protocol.

The circuit will also be simulated using MPLAB® Mindi Analog Simulator and a pre-made schematic containing a full model of the AVR DB op amp. The schematic is available at github.com/microchip-pic-avr-examples/avrdb-opamp-mindi-non-inverting-pga.

Info: The schematic file (*.wxsch), uses the encrypted model (*.lb) so as to not count towards the node simulation limit in Mindi. If desired an unencrypted version of the model (*.txt) can be found in the same location, for use with a full version of simulation tools.

The starting point for this assignment is the Atmel Studio Solution Assignment4 found in Assignment4.

  • Objectives
    • Simulate the non-inverting PGA using the pre-made schematic containing a model of the AVR DB op amp
    • Understand how to configure an op amp in Atmel START
    • Configure OP0 instance of the OPAMP, as non-inverting PGA using Atmel START
    • Plot the input and output from OP0 using the MPLAB® Data Visualizer