Skip to content

microchip-pic-avr-examples/avrdb-opamp-mindi-non-inverting-pga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Microchip logo

Getting started with Mindi™ simulation and AVR®DB microcontrollers

This guide will get you up and running with simulating the analog OPAMP module in AVR DB family devices using the Mindi simulation tool. For a larger overview, see "Getting Started with Analog Signal Conditioning (OPAMP)".

Configuration: Non-Inverting PGA

The Non-Inverting Programmable Gain Amplifier is a configuration whith run-time selectable positive gain.

Non-Inverting PGA

Mindi Simulation

Mindi

Download and open the Mindi schematic here

Press the play button to simulate with an example stimulus source.

Tweaking

The amplification of the Non-Inverting PGA can be adjusted to any of 8 levels from 1.06 to 16 by changing the MUXWIP value in the control register. The Mindi schematic contains a table detailing the levels of gain and their associated register and resistor values.

Updating composer fields

Once the desired result has been verified with Mindi simulation, the corrected values should be moved back into MCC/Start by copying resistor values across to the composer of your preference.

Don't have Mindi?

You can download and install the Mindi simulation tool, or use another SPICE simulator of your own preference. For use with different simulators, a plain spice model can be found in "Opamp_AVR_DB.txt" to replace the mindi-optimized ".lb"