The previous section briefly explored an MPLAB® Mindi™ simulation of an instrumentation amplifier
circuit. In this section, the relevant AVR
DB OPAMP peripheral
registers are configured to enable the instrumentation amplifier topology and operation
as follows:
OP0 op amp is set up as a voltage
follower, with the positive input is connected internally to VDD/2. The
top side of the resistor ladder is connected to the output of the op amp, the bottom
side to ground, and the wiper position is selected accordingly to the Table 1.
OP1 op amp is constructed as a
voltage follower, with the positive input internally connected to the on-board DAC.
The resistor ladder is not used.
OP2 op amp is set up to have as
positive input the wiper connection from the OP0 resistor ladder and as negative
input the wiper position of its resistor ladder. The topside of the resistor ladder
is connected to the output of the op amp, the bottom side to the OP1 op amp and the
wiper position is selected accordingly to Table 1.
Table 11-2 summarizes the necessary settings to
set the three internal op amps in an instrumentation amplifier configuration.
Table 11-2. Instrumentation Amplifier
Connected to Internal DAC
MUXPOS
MUXNEG
MUXBOT
MUXWIP
MUXTOP
OP0
VDD/2
OUT
GND
See the table below
OUT
OP1
DAC
OUT
OFF
WIP0
OFF
OP2
LINKWIP (OP0WIP)
WIP
LINKOUT (OP1OUT)
See the table below
OUT
In the case of the instrumentation amplifier, the resistor ladder multiplexer register
will be configured separately for each amplifier.Figure 11-5. OPAMP.OPnRESMUX - Configure
Resistor Ladder Multiplexer
The same goes for the positive and negative inputs for each amplifier. They need to be
separately configured, as outlined in Table 11-2.Figure 11-6. OPAMP.OPnINMUX - Configure the
Input Multiplexer