In this mode, OPAMP0 can be coupled with OPAMP1 or OPAMP1 with OPAMP2 in order to amplify a differential signal.
To configure OPAMP0 and OPAMP1 as differential amplifier, the OPAMPCTRLx register can be configured as follows:
MUXPOS | MUXNEG | RES1MUX | POTMUX | RES2VCC | RES2OUT | RES1EN | ANAOUT | |
---|---|---|---|---|---|---|---|---|
OPAMP0 | 0000 | 011 | 011 | 000 | 0 | 0 | 0 | 0 |
OPAMP1 | 0000 | 001 | 010 | 100 | 0 | 1 | 1 | 0 |
OPAMP2 | 0000 | 000 | 000 | 000 | 0 | 0 | 0 | 0 |
To configure OPAMP1 and OPAMP2 as differential amplifier, the OPAMPCTRLx register can be configured as follows:
MUXPOS | MUXNEG | RES1MUX | POTMUX | RES2VCC | RES2OUT | RES1EN | ANAOUT | |
---|---|---|---|---|---|---|---|---|
OPAMP0 | 0000 | 000 | 000 | 000 | 0 | 0 | 0 | 0 |
OPAMP1 | 0000 | 011 | 011 | 000 | 0 | 0 | 0 | 0 |
OPAMP2 | 0000 | 001 | 010 | 100 | 0 | 1 | 1 | 0 |