Each OPAMP can be configured as a transimpedance amplifier (current to voltage converter). In this mode the positive input is connected to ground. The negative input is connected to the output through the resistor ladder. The OPAMPCTRLx register can be configured as follows:
MUXPOS | MUXNEG | RES1MUX | POTMUX | RES2VCC | RES2OUT | RES1EN | ANAOUT | |
---|---|---|---|---|---|---|---|---|
OPAMP0 | 0010 | 000 | - | - | 0 | 0 | 0 | 0 |
OPAMP1 | 0010 | 000 | - | - | 0 | 0 | 0 | 0 |
OPAMP2 | 0010 | 000 | - | - | 0 | 0 | 0 | 0 |