4.5 Unity Gain
The OPA module can be configured to force the module into a unity gain configuration. Unity gain can be enabled in software by setting the UG bit of the OPAxCON0 register. While in Unity Gain mode, the inverting input to the operational amplifier becomes connected to the output (OPAxOUT). The inverting input is not used in this mode, and the corresponding pins can be used as general purpose I/O. Refer to Common Configurations for more information.
Note: The NCH multiplexer must not be set
to Resistor mode (
0b001
) when using Unity Gain mode. In this case,
the I/O pin affects the output of the OPA module.